joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c150
Capabilities:
Read .ini file

Disassembly:
test byte [0x46d664], 1
push ebx
push ebp
push esi
push edi
jne 0x40c185
or dword [0x46d664], 1
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
push 0x439570
mov dword [0x46d660], eax
call fcn.00405b46
add esp, 4
mov cl, byte [0x46d664]
mov eax, 2
test al, cl
jne 0x40c1bb
or dword [0x46d664], eax
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
push 0x439560
mov dword [0x46d65c], eax
call fcn.00405b46
add esp, 4
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x40c1c7
xor eax, eax
jmp 0x40c1d9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c1d0
sub eax, esi
push eax
push edx
mov ecx, 0x46d660
call fcn.00401690
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x40c1f1
xor eax, eax
jmp 0x40c1ff
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c1f6
sub eax, esi
push eax
push edx
mov ecx, 0x46d65c
call fcn.00401690
mov esi, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call sub.MFC70.DLL_Ordinal_5760
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 8]
test eax, eax
mov dword [0x46d658], eax
je 0x40c285
xor edi, edi
test eax, eax
jle 0x40c310
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ebx, [ebx]
mov eax, dword [0x46d65c]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
push eax
mov eax, dword [0x46d660]
push 0x1000
push 0x46c658
push 0x43a8da
push edx
push eax
call ebp
mov ecx, dword [esi + 8]
push 0x46c658
push ecx
mov ecx, esi
call sub.MFC70.DLL_Ordinal_5474
mov eax, dword [0x46d658]
inc edi
cmp edi, eax
jl 0x40c240
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
mov edx, dword [0x46d65c]
mov eax, dword [0x46d660]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
push 0x1000
push 0x46c658
push 0x43a8da
push 0
push eax
call ebp
push ebx
push 0x46c658
call fcn.0040c080
mov eax, dword [ebx + 8]
add esp, 8
xor edi, edi
test eax, eax
mov dword [0x46d658], eax
jle 0x40c310
jmp 0x40c2d0
mov ecx, dword [0x46d65c]
mov edx, dword [ebx + 4]
mov eax, dword [edx + edi*4]
push ecx
mov ecx, dword [0x46d660]
push 0x1000
push 0x46c658
push 0x43a8da
push eax
push ecx
call ebp
mov edx, dword [esi + 8]
push 0x46c658
push edx
mov ecx, esi
call sub.MFC70.DLL_Ordinal_5474
mov eax, dword [0x46d658]
inc edi
cmp edi, eax
jl 0x40c2d0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x40d3d8
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x438d39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
mov dword [esp + 0xc], esi
mov dword [esi], 0x43aca0
mov dword [edi], 0x43ac9c
mov eax, dword [esi + 0x434]
test eax, eax
mov dword [esp + 0x18], 4
je 0x40d421
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x434], 0
mov ecx, esi
call fcn.0040cfb0
mov ecx, edi
call fcn.00411390
mov eax, dword [esi + 0x43c]
sub eax, 0x10
mov byte [esp + 0x18], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x42c]
sub eax, 0x10
mov byte [esp + 0x18], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d479
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x428]
sub eax, 0x10
mov byte [esp + 0x18], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d49e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, edi
mov byte [esp + 0x18], 0
call fcn.004110d0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004117e0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x411f20
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 0x411f95
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x411f6c
mov word [0x46db24], cx
call fcn.004143b0
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x411f59
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x411f59
mov word [0x46db24], ax
call fcn.00411c70
call fcn.00411e00
call fcn.004143b0
add esp, 0x94
ret

Function at 0x412c50
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.0041e7f0
test eax, eax
jne 0x412c80
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 0x412c95
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 0x412cd9
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x412cb9
cmp eax, 0x102
jne 0x412cc6
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x412cd0
jmp 0x412c9f
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.00412d50
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x412cf0
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.0041e7f0
test eax, eax
jne 0x412d08
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x412d11
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 0x412d24
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x412d3b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x4167e0
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 0x416871
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.0041fbf0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x416867
mov eax, dword [str.NoName]
mov cx, word [0x46a334]
mov dl, byte [0x46a336]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x4168b8
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x41689b
mov dx, word [0x46a334]
mov ecx, dword [str.NoName]
mov al, byte [0x46a336]
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.0041db50
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.0041fbf0
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x416950
mov edx, dword [str.NoShareString]
mov eax, dword [0x46a3b0]
mov ecx, dword [0x46a3b4]
mov dword [esp + 0xd0], edx
mov dx, word [0x46a3b8]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x41697b
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.0041da70
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x46db7c], eax
add esp, 0x4c8
ret
Function at 0x4172d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push edi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x28]
push 0
push esi
push ecx
push edx
push eax
call fcn.004130e0
add esp, 0x24
test ax, ax
je 0x417318
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov word [ecx + 6], ax
pop ebx
ret
cmp word [0x46db8c], 0
jne 0x4173aa
lea edx, [esp + 0x30]
lea eax, [esp + 0x34]
push edx
push 0
push eax
push fcn.00413010
push 0
push 0
call dword [sym.imp.MSVCR70.dll__beginthreadex]
add esp, 0x18
mov dword [0x46db88], eax
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4173aa
mov ax, word [esp + 0x34]
cmp ax, 2
jne 0x4173b2
cmp dword [esp + 0x20], 0xffffffff
jne 0x41737e
test esi, esi
jge 0x41737e
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 0xffffffffffffffff
jmp 0x41738b
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.004130e0
mov ecx, dword [0x46db88]
add esp, 0x24
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
test ax, ax
jne 0x4173cc
mov edx, dword [0x46db88]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
cmp dword [esp + 0x20], 1
jne 0x4173e6
test esi, esi
jle 0x4173e6
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 1
jmp 0x4173f3
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 0xffffffffffffffff
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.004130e0
mov eax, dword [esp + 0x38]
add esp, 0x24
mov word [eax + 6], 0x46
mov ecx, dword [0x46db88]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
ret
Function at 0x417430
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
xor ecx, ecx
push ebp
push esi
cmp eax, ecx
push edi
mov dword [esp + 0x18], ecx
mov ebx, 1
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], cl
je 0x41768b
mov ebp, dword [esp + 0x30]
cmp bp, cx
jbe 0x41768b
cmp bp, 0xffff
jne 0x417478
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x18
ret 0x14
push eax
call fcn.004157c0
mov esi, eax
cmp word [esi], 0x7242
jne 0x41767d
test byte [esi + 0x12], 4
jne 0x4174a4
mov eax, 2
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
mov edi, dword [esp + 0x3c]
test di, di
jbe 0x4174be
mov eax, dword [esp + 0x2c]
push eax
call fcn.00416b50
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
push ecx
push ebp
push edx
call fcn.00419580
test ax, ax
jne 0x41768f
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x1000
call ebp
test eax, eax
je 0x4174fb
mov eax, 0x46
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
cmp word [esp + 0x34], 1
jne 0x417670
cmp word [0x46db8e], 0
jne 0x417589
lea eax, [esp + 0x1c]
push eax
call fcn.0041e810
add esp, 4
test eax, eax
je 0x417535
mov eax, 0x4a
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x46db94], eax
jne 0x417560
mov eax, 0x4a
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0x413a90
push 0
push 0
call dword [sym.imp.MSVCR70.dll__beginthreadex]
add esp, 0x18
mov dword [0x46db98], eax
mov word [0x46db8e], 1
push 0x1000
call ebp
test eax, eax
je 0x4175a7
mov eax, 0x46
pop edi
mov word [esi + 6], ax
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
test di, di
jbe 0x417617
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push esi
call fcn.004212c0
test ax, ax
je 0x4175d0
mov word [esi + 6], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
cmp byte [esp + 0x13], 1
je 0x4175e5
pop edi
pop esi
pop ebp
mov ax, 4
pop ebx
add esp, 0x18
ret 0x14
cmp word [esp + 0x14], 0
ja 0x4175fb
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
add esp, 0x18
ret 0x14
mov ebp, dword [esp + 0x2c]
push edi
push ebp
call fcn.00416a90
add esp, 8
and eax, 0xffff
jne 0x41768f
mov ebx, 3
jmp 0x41761b
mov ebp, dword [esp + 0x2c]
push esi
mov word [esi + 0x30], 3
call fcn.00414ef0
mov cx, word [esi + 0x38]
mov ax, word [esi + 0x36]
mov edx, dword [esp + 0x18]
push 0
push edx
mov edx, dword [0x46db7c]
push edi
push edx
push ebx
push 1
push ecx
push eax
push esi
call fcn.004172d0
add esp, 0x24
test ax, ax
je 0x417670
push 0x404
push ebp
call fcn.00420da0
push ebp
call fcn.00420e00
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
add esp, 0x18
ret 0x14
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x18
ret 0x14
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x18
ret 0x14
mov ax, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14
Function at 0x41da70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x46e50c]
push esi
mov esi, dword [esp + 8]
test eax, eax
jne 0x41da96
call fcn.0041dae0
test eax, eax
je 0x41da8c
or eax, 0xffffffff
pop esi
ret
mov dword [0x46a57c], 0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
je 0x41dad0
push ebx
push edi
lea edi, [eax + 1]
mov eax, dword [edx]
xor ebx, ebx
mov bl, byte [esi]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
mov ebx, dword [0x46e50c]
shr eax, 8
mov ecx, dword [ebx + ecx*4]
inc esi
xor eax, ecx
dec edi
mov dword [edx], eax
jne 0x41daaa
pop edi
pop ebx
mov eax, dword [edx]
pop esi
ret

Function at 0x41dae0
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call dword [sym.imp.MSVCR70.dll_malloc]
add esp, 4
mov dword [0x46e50c], eax
test eax, eax
jne 0x41db17
mov eax, dword [sym.imp.MSVCR70.dll__iob]
push str.macAddr.c
add eax, 0x40
push str.Cant_malloc_space_for_CRC_table_in_file__s_n
push eax
call dword [sym.imp.MSVCR70.dll_fprintf]
add esp, 0xc
or eax, 0xffffffff
ret
push esi
xor edx, edx
jmp 0x41db21
mov eax, dword [0x46e50c]
mov ecx, edx
mov esi, 8
test cl, 1
je 0x41db37
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x41db39
shr ecx, 1
dec esi
jne 0x41db28
mov dword [eax + edx*4], ecx
inc edx
cmp edx, 0xff
jle 0x41db1c
xor eax, eax
pop esi
ret

Function at 0x41e870
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov cl, 0x65
mov al, 0x72
push esi
xor esi, esi
mov byte [esp + 4], 0x54
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x41e8f9
cmp al, 4
jbe 0x41e8e7
lea eax, [esp + 4]
push eax
call fcn.0041e900
add esp, 4
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
push ecx
call fcn.0041e900
add esp, 4
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x41e900
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
xor ebx, ebx
push str.SystemCurrentControlSetControlProductOptions
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41e9d5
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebp
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x41e9d5
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41e9d5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x41e9d5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x41e9c8
cmp dword [esp + 0x18], 7
jne 0x41e9c8
mov al, byte [edi]
mov esi, edi
test al, al
je 0x41e9c8
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
push esi
call ebx
test eax, eax
je 0x41e9c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x41e9a6
jmp 0x41e9c8
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x41e9e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x41f110
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
push 0x4e8
push 5
push 6
mov dword [esp + 0x10], 0x10
call fcn.0041b0b0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x41f1a5
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push edi
mov ebx, ecx
xor eax, eax
lea edi, [esp + 0x10]
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov word [esp + 0x14], 6
push eax
push esi
call sub.WSOCK32.dll_bind
pop edi
cmp eax, 0xffffffff
pop ebx
je 0x41f1a5
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x41f1a5
lea eax, [esp + 8]
push eax
call fcn.0041f080
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.MSVCR70.dll_sprintf]
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push edx
call dword [sym.imp.MSVCR70.dll_sprintf]
add esp, 8
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x4202b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.00423880
add esp, 4
cmp eax, ebp
mov dword [0x46f864], eax
je 0x42032c
push 0x46a714
push str.sntlconfig.xml
call dword [sym.imp.MSVCR70.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x42031e
mov edi, dword [sym.imp.MSVCR70.dll_fseek]
push 2
push ebp
push esi
call edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.MSVCR70.dll_fgetpos]
push ebp
push ebp
push esi
call edi
mov edx, dword [esp + 0x30]
inc edx
push edx
call dword [sym.imp.MSVCR70.dll_malloc]
mov edi, eax
add esp, 0x24
cmp edi, ebp
jne 0x420336
mov eax, dword [0x46f864]
push eax
call fcn.00423c40
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov dword [edi], ebp
mov ecx, dword [esp + 0x10]
push esi
push ecx
push 1
push edi
call dword [sym.imp.MSVCR70.dll_fread]
push esi
mov ebx, eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.MSVCR70.dll_fclose]
mov edx, dword [0x46f864]
push 0x4207f0
push 0x420420
push edx
call fcn.00423d90
mov eax, dword [0x46f864]
push ebx
push ebx
push edi
push eax
call fcn.00423dc0
add esp, 0x30
test eax, eax
jne 0x42039f
push edi
call dword [sym.imp.MSVCR70.dll_free]
mov ecx, dword [0x46f864]
push ecx
call fcn.00423c40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x24]
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea ebx, [edx + 0x40]
mov ecx, 0x10
mov edi, ebx
lea ebp, [edx + 0x80]
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov esi, 0x46f820
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x46f7e0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x46f880
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x46f860]
mov dword [edx + 0xc0], eax
mov ecx, dword [0x46f864]
push ecx
call fcn.00423c40
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x420eb0
Capabilities:
Create thread

Disassembly:
push ecx
cmp word [0x46f5a8], 0
push esi
push edi
jne 0x420f26
lea eax, [esp + 8]
push eax
push 0
push 0x46f5a8
push 0x4224c0
push 0
push 0
call dword [sym.imp.MSVCR70.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x420f02
cmp eax, 0x102
jne 0x420f0b
mov word [0x46f5a8], 1
jmp 0x420f0b
mov word [0x46f5a8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [0x46f5a8], 0
jne 0x420f26
pop edi
mov ax, 0x68
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x420f38
pop edi
mov ax, 2
pop esi
pop ecx
ret 8
push eax
call fcn.004157c0
mov esi, eax
cmp word [esi], 0x7242
je 0x420f51
pop edi
mov ax, 2
pop esi
pop ecx
ret 8
test byte [esi + 0x12], 4
jne 0x420f67
mov word [esi + 6], 0xb39
pop edi
mov ax, 0x39
pop esi
pop ecx
ret 8
push 0
call fcn.00429c40
mov edi, eax
test edi, 0x100
jne 0x420f7a
xor edi, edi
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esi + 0x34]
push eax
push ecx
mov dword [esi + 0xc8], edi
mov word [esi + 0xd0], ax
mov word [esi + 0x30], 8
call fcn.00421030
xor bl, bl
mov eax, 3
cmp ax, 3
je 0x420faf
cmp ax, 7
jne 0x420fc5
push esi
mov byte [esi + 0xa], bl
call fcn.00414ef0
push eax
call fcn.00420d80
inc bl
cmp bl, 3
jbe 0x420fa3
cmp ax, 9
pop ebx
jne 0x420fd6
pop edi
mov ax, 3
pop esi
pop ecx
ret 8
test ax, ax
jne 0x42101f
cmp word [esi + 0x3c], 5
mov byte [esp + 0x10], 0x91
jne 0x420fec
mov byte [esp + 0x10], 1
test edi, edi
je 0x42101c
mov edx, dword [esp + 0x10]
mov esi, dword [esi + 0xc8]
push edi
push edx
call fcn.00421f40
add esp, 8
cmp esi, eax
je 0x42101c
push edi
call fcn.00429d50
cmp esi, eax
je 0x42101c
pop edi
mov ax, 3
pop esi
pop ecx
ret 8
xor ax, ax
pop edi
pop esi
pop ecx
ret 8