joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d7c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], ecx
or ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
movsx eax, word [eax + 8]
sub eax, ecx
je 0x40d827
sub eax, 1
je 0x45104f
sub eax, 0x32
jne 0x450fc6
push edi
mov ecx, esi
call fcn.0040f8d0
lea ecx, [esp + 0x18]
call fcn.0040e8a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0040f650
test ebx, ebx
js 0x40d815
jmp 0x451069
or dl, byte [eax + 0x68]
scasb al, byte es:[edi]
add byte [eax], al
add bl, ch
or cl, byte [ebx - 0x40f06efc]
inc eax
or dl, byte [eax + 0x6a]
jg 0x450f65
invalid
dec ebp
hlt
and al, 0x1c
push eax
lea eax, [esp + 0x18]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0040d86d
jmp 0x45108f

Function at 0x410540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword fs:[0x2c]
mov dword [esp + 0x18], ecx
push ebx
push esi
mov ecx, dword [eax]
mov eax, dword [0x4d2580]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x8c], ecx
cmp eax, dword [ecx + 4]
add byte [eax], al
add byte [edi], cl
pop esp
adc dword [eax], eax
invalid
mov ebx, dword [ebp + 0x10]
xor esi, esi
xor al, al
mov word [esp + 0x54], 1
mov dword [esp + 0x54], 0x86a0001
mov byte [esp + 0x1f], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
mov word [esp + 0x38], 1
call fcn.0041fd5b
mov ecx, dword [edi]
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], 1
mov dword [edx], 0x14
mov dword [edx + 4], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], 0x17
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x49c470]
mov dword [esp + 0x70], ecx
movsx eax, word [eax + 0xa]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
jmp 0xbcbf067f
Function at 0x41056d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword fs:[0x2c]
mov dword [esp + 0x18], ecx
push ebx
push esi
mov ecx, dword [eax]
mov eax, dword [0x4d2580]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x8c], ecx
cmp eax, dword [ecx + 4]
add byte [eax], al
add byte [edi], cl
pop esp
adc dword [eax], eax
invalid
mov ebx, dword [ebp + 0x10]
xor esi, esi
xor al, al
mov word [esp + 0x54], 1
mov dword [esp + 0x54], 0x86a0001
mov byte [esp + 0x1f], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
mov word [esp + 0x38], 1
call fcn.0041fd5b
mov ecx, dword [edi]
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], 1
mov dword [edx], 0x14
mov dword [edx + 4], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], 0x17
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x49c470]
mov dword [esp + 0x70], ecx
movsx eax, word [eax + 0xa]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
jmp 0xbcbf067f
Function at 0x41fde8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x41fe23
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x41fe1c
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x41fe28
add edx, 0x28
cmp edx, esi
jne 0x41fe0d
xor eax, eax
pop esi
movsd dword es:[edi], dword [esi]
ret
mov eax, edx
jmp 0x41fe25

Function at 0x441a8d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 8], al
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x441ac9
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x441ac1
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x441acb
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x441ab1
xor eax, eax
pop edi
pop esi
pop ebx
movsd dword es:[edi], dword [esi]
ret
Function at 0x46962d
Capabilities:
Encode data using xor

Disassembly:
xor word [edi + eax*2], cx
xor dword [edi + eax*2], ecx
inc eax
cmp eax, ecx
jl 0x46962c
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46eadb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
xor esi, esi
cmp dword [edi + 4], edx
jbe 0x46eb1f
add al, 0x76
xor ecx, dword [ebx - 0x48f0f7a3]
add esi, dword [ebx]
leave
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
xor ecx, ecx
test word [ebx + 0x74c1f74], cx
movzx eax, word [eax + edx*2]
mov dword [ebp + 8], eax
movzx eax, word [ebx]
cmp word [ebp + 8], ax
je 0x46eb29
inc ecx
movzx eax, word [ebx + ecx*2]
dec bp
add byte [ebp - 0x10], dh
movzx eax, word [ebx]
inc edx
inc esi
cmp esi, dword [edi + 4]
jb 0x46eaf2
je 0x46eae9
call [edi + 0x5e]
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, edx
jmp 0x46eb22

Function at 0x471e62
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [ecx + 0xc]
je 0x471e5f
pop es
jg 0x471e96
je 0x471e92
add al, 0
jmp 0x471ee4
push 4
pop eax
ret
sub eax, 9
je 0x471eb4
js 0x471ea1
add bl, ch
je 0x471eaf
add al, 0
jmp fcn.00471f19
mov eax, dword [ecx]
mov eax, dword [eax]
ret
xor eax, eax
inc eax
ret
loopne 0x471eed
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
invalid

Function at 0x471efe
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471f11
call fcn.00471fa2
mov eax, dword [0x4d2fe4]
mov ecx, dword [eax]
add eax, 4
rol byte [ebx], 0xe4
das
dec ebp
add byte [ebx + 0xbe8c1c1], cl

Function at 0x471f62
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2620], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d261c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2620], eax
inc edx
cmp edx, 0x870270
jl 0x471f6e
mov dword [0x4d06e0], esi
mov dword [0x4d2fe0], esi
pop esi
ret
Function at 0x471fa2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2fe0], 0
push esi
push edi
mov esi, 0x4d2620
jne 0x471fc5
push 0
call 0x8b53e4b6
inc ebx
sub al, cl
call 0xe8cb1f62
mov dword [0x4d06e0], 0x870270
mov edx, 0xe3
mov dword [0x4d2fe4], esi
mov ecx, dword [edi]
add al, 0x8b
push cs
xor ecx, eax
and al, 1
and ecx, 0x7f0845fe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
je 0x8f7ff1d
cdq
xor ecx, eax
xor ecx, dword [esi + 0xf030634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x471fda
mov eax, dword [esi]
mov dword [ebp - 4], 0x8b00018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7f0845fe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
je 0x8f7ff59
cdq
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x472014
mov eax, dword [0x4d2620]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7f0845fe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
je 0x8f7ff90
cdq
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret

Function at 0x47285a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xdc]
call 0x8c4726aa
push dword [ebp + 8]
lea ecx, [ebp - 0xdc]
call 0x1d126ee
xor esi, esi
test ebx, ebx
je 0x47289e
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call 0x463e742e
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x472889
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
inc eax
cmp eax, 0xd9bcfa6
mov eax, 0x4c92c312
mov eax, ebx
mov eax, 0x3e23a77c
inc eax
mov eax, 0xd2703c2f
mov eax, ecx
inc eax
mov eax, ebx
nop
inc eax
mov eax, ecx
cmp eax, 0xffffff84
cmp eax, 0xffffff80
mov eax, ecx
nop
push 3
push 2
push 1
call fcn.1000c130
add esp, 0xc
mov eax, ecx
inc eax
mov eax, 0x49fe561c
inc eax
nop
mov eax, ecx
cmp eax, 0xffffffa6
mov eax, ecx
mov eax, ebx
cmp eax, 8
mov eax, 0x87601eb
nop
cmp eax, 0xb8d5a07
inc eax
inc eax
cmp eax, 0xb5d2eb2
nop
nop
push 3
push 2
push 1
call fcn.1000c130
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x63
cmp eax, 0x46de522
cmp eax, 0xfffffff2
mov eax, ebx
cmp eax, 0xe5554f06
mov eax, ebx
cmp eax, 0x3b96ca8b
cmp eax, 0x79
mov eax, ebx
nop
mov eax, ecx
cmp eax, 0x71
mov eax, ecx
mov eax, ebx
nop
inc eax
push 3
push 2
push 1
call fcn.1000c130
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, ebx
mov eax, 0x40e65bdc
mov eax, ecx
inc eax
mov eax, 0x1f6193df
cmp eax, 0xea7af4df
cmp eax, 0xffffff94
mov eax, 0x96ceef65
mov eax, ecx
mov eax, ebx
nop
mov eax, ebx
mov eax, ecx
cmp eax, 0x66fe2c0e
push 3
push 2
push 1
call fcn.1000c130
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
cmp eax, 0x53
cmp eax, 0x778cf4fd
cmp eax, 0xffffff97
cmp eax, 0x3cebe2cc
nop
inc eax
mov eax, ecx
inc eax
mov eax, ecx
mov eax, ecx
mov eax, ebx
nop
cmp eax, 0xffffffac
cmp eax, 0x48
cmp eax, 0xb7c7ae44
nop
nop
inc eax
push 3
push 2
push 1
call fcn.1000c130
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491c
push 0x10
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
inc eax
mov eax, ecx
mov eax, ebx
inc eax
nop
cmp eax, 0xffffffde
cmp eax, 0x8592ccb1
mov eax, ecx
cmp eax, 0x3e7bd3a0
mov eax, ecx
cmp eax, 0x79
mov eax, ebx
mov eax, ecx
mov eax, 0xd533e30d
cmp eax, 0xffffff9a
nop
nop
inc eax
push 3
push 2
push 1
call fcn.1000c130
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x1000492e
mov dword [ebp - 4], 1
jmp 0x10004935
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10009780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
je 0x100097b3
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100097bf
mov al, 1
jmp 0x10009962
mov dword [ebp - 0x2c], 8
call fcn.1000c2b0
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x20], eax
call fcn.1000c2b0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.1000c340
add esp, 8
movzx eax, al
test eax, eax
je 0x10009802
xor al, al
jmp 0x10009962
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.10006820
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x54]
call fcn.1000b930
mov ecx, eax
call fcn.100083a0
mov esi, eax
lea ecx, [ebp - 0x54]
call fcn.1000f860
add esi, eax
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.1000b930
mov ecx, eax
call fcn.100083a0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x38]
call fcn.10010100
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000987d
cmp dword [ebp - 0x1c], 1
je 0x10009884
cmp dword [ebp - 0x1c], 3
je 0x1000991e
jmp 0x10009936
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x54]
call fcn.1000b930
mov ecx, eax
call fcn.100083a0
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x18], edx
je 0x100098e7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x54]
call fcn.1000b930
mov ecx, eax
call fcn.100083a0
push eax
call fcn.1001846c
add esp, 0x10
cmp dword [ebp - 0x18], eax
je 0x100098e7
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10007970
mov al, byte [ebp - 0xd]
jmp 0x10009962
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1000990a
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10007970
mov al, byte [ebp - 0xe]
jmp 0x10009962
cmp dword [ebp - 0x18], 0
jne 0x1000991c
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.1000b2a0
jmp 0x1000994e
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10007970
mov al, byte [ebp - 0xf]
jmp 0x10009962
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10007970
mov al, byte [ebp - 0x10]
jmp 0x10009962
jmp 0x10009815
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001e65b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001e4d1
Function at 0x10001000
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push 8
xor edi, edi
push edi
push str.DriverDebug.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, edi
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
je 0x10001076
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateDebugInstance
push eax
call edi
push str.FinalizeDebugInstance
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.ReReadParameters
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.ShouldLog
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.ShouldLogUnit
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.DriverLogInternal
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
ret
Function at 0x10002014
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1005e650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x103
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x10f]
push 0
push eax
mov edi, ecx
mov ebx, edx
mov byte [ebp - 0x110], 0
call sub.MSVCR80.dll_memset
movzx eax, word [esi + 0xc]
push eax
movzx eax, word [esi + 0xe]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 0xa]
push eax
push ebx
push edi
lea eax, [ebp - 0x110]
push str._s__s_Driver_v_01d._02d._02d._03d
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
and dword [ebp - 0x118], 0
mov al, byte [ebp - 0x110]
add esp, 0x2c
and dword [ebp - 0x114], 0
lea edi, [ebp - 0x110]
jmp 0x100020d1
movzx eax, al
cdq
xor dword [ebp - 0x114], edx
xor dword [ebp - 0x118], eax
push 0x100
push 0x1b3
push dword [ebp - 0x114]
inc edi
push dword [ebp - 0x118]
call fcn.10045520
mov dword [ebp - 0x118], eax
mov al, byte [edi]
mov dword [ebp - 0x114], edx
test al, al
jne 0x10002097
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x2c]
xor ebx, ebx
or ebx, eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x11c]
xor ecx, ecx
or edi, ecx
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x1000210e
cmp ebx, dword [ebp - 0x118]
jne 0x1000210e
cmp edi, dword [ebp - 0x114]
jne 0x1000210e
inc eax
jmp 0x10002110
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1004510e
leave
ret
Function at 0x10021e00
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x10021e75
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x10021e4c
mov word [0x100707ac], cx
call fcn.10023e10
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x10021e39
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x10021e39
mov word [0x100707ac], ax
call fcn.10021b50
call fcn.10021ce0
call fcn.10023e10
add esp, 0x94
ret

Function at 0x100226b0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.1002bad0
test eax, eax
jne 0x100226e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x100226f5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x10022739
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x10022719
cmp eax, 0x102
jne 0x10022726
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x10022730
jmp 0x100226ff
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x73
pop ebx
ret
push esi
call fcn.100227b0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x10022750
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.1002bad0
test eax, eax
jne 0x10022768
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x10022771
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x10022784
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002279b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x10026000
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push ebx
mov bx, word [esp + 0x220]
neg bx
push ebp
mov ebp, dword [esp + 0x21c]
sbb ebx, ebx
push esi
mov al, byte [ebp]
and ebx, 0xfffffffe
add ebx, 4
push edi
test al, al
je 0x1002604e
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.NSP_CONTACT_NUM_SERVERS
mov byte [ebp], 0
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x10026076
jbe 0x10026076
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1002607e
mov dword [esp + 0x14], 0xa
mov ecx, dword [esp + 0x21c]
cmp word [ecx + 0x74], 4
jne 0x10026091
mov ebx, 2
mov edx, dword [esp + 0x228]
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0xc4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0xc8]
push eax
push ecx
push edx
push ebx
call fcn.10028610
test ax, ax
jne 0x10026206
cmp word [esp + 0x14], ax
mov dword [esp + 0x10], 0x46
mov dword [esp + 0x1c], 0
jbe 0x1002621b
mov ebx, dword [sym.imp.MSVCR80.dll_sprintf]
lea esi, [esp + 0xc4]
mov dword [esp + 0x18], esi
cmp word [esi + 0x20], 0
jbe 0x100261e0
mov ecx, 0x10
xor eax, eax
mov edi, ebp
push str._ninside_licthruen__consrvr_set
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
call ebx
mov ecx, dword [esp + 0x224]
push esi
push ecx
call fcn.100254d0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push str._ninside_licthruen__consrvr_set
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x74]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x78]
push str._ninside_licthruen__consrvr_set
push ecx
call ebx
mov esi, dword [sym.imp.MSVCR80.dll__stricmp]
lea edx, [esp + 0x40]
push str.RNBO_SPN_ALL_MODES
push edx
call esi
add esp, 0x28
test eax, eax
je 0x1002618c
lea eax, [esp + 0x20]
push str.RNBO_SPN_BROADCAST
push eax
call esi
add esp, 8
test eax, eax
jne 0x1002619b
push str.RNBO_SPN_LOCAL
push ebp
call esi
add esp, 8
test eax, eax
je 0x100261dc
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x220]
push ecx
mov ecx, dword [esp + 0x220]
push edx
push ebp
push eax
push ecx
call fcn.10025950
add esp, 0x14
mov dword [esp + 0x10], eax
test ax, ax
je 0x10026202
lea edx, [esp + 0x60]
push str._ninside_licthruen__consrvr_set
push edx
call ebx
add esp, 8
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
and ecx, 0xffff
add esi, 0x22
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
jl 0x100260f9
mov eax, dword [esp + 0x10]
cmp ax, 0x45
jne 0x1002621f
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x10026230
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4c8
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x100262c1
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.1002cda0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100262b7
mov eax, dword [str.NoName]
mov cx, word [0x1005d63c]
mov dl, byte [0x1005d63e]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x10026308
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x100262eb
mov dx, word [0x1005d63c]
mov ecx, dword [str.NoName]
mov al, byte [0x1005d63e]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x16], al
lea edi, [esp + 0x10]
lea edx, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
push ebx
push ecx
call fcn.1002b940
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2dc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe0]
push ecx
call fcn.1002cda0
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x100263a0
mov edx, dword [str.NoShareString]
mov eax, dword [0x1005d6b8]
mov ecx, dword [0x1005d6bc]
mov dword [esp + 0xd0], edx
mov dx, word [0x1005d6c0]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x100263cb
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
lea edi, [esp + 0xd0]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
push ecx
push edx
call fcn.1002b860
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x10070804], eax
add esp, 0x4c8
ret