joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0855
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d0883
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d08a1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d07bb
jmp 0x4d08a1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d08a1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d07bb
test edi, edi
mov eax, edi
jne 0x4d088b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4db640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x56d020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4db6d8
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x4db6b8
xor eax, eax
push ebp
push 0x4db6b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4db6f4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db6b8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x56d020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x56d020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4dc404
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x57e044], 0
je 0x4dc465
cmp word [0x57e218], 0xd7b2
jne 0x4dc42d
cmp dword [0x57e220], 0
jbe 0x4dc42d
mov eax, 0x57e214
call dword [0x57e230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x56d090
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4dc48c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x56d030], 0
jne 0x4dc481
push 0
push 0x56d088
push 0x56d090
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret
Function at 0x4de304
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4de36a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004dc7f8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004db234
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4de354
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de371
lea eax, [ebp - 0x10]
call fcn.004dc588
ret

Function at 0x4e2790
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x4e27c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004dc678
jmp 0x4e27d2
mov eax, ebx
mov edx, esi
call fcn.004dc5dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4e27dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x4e27fd
mov al, byte [esp]
jmp 0x4e27ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4e3c58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
Function at 0x4e4d84
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x56d33c
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x4e4e48
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x4e4dbc
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x4e4e5f
dec edx
je 0x4e4ea0
jmp 0x4e4efd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x4e4efd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e4f60
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x4e4f7d
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x4e508f
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x4e4fb0
je 0x4e4ffc
sub ecx, 0x2b
je 0x4e4ff2
sub ecx, 4
je 0x4e4ff7
dec ecx
sub ecx, 0xa
jb 0x4e4fe1
jmp 0x4e4fff
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4e4fc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4e4fd0
jmp 0x4e4fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4e4fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4e4fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4e4fff
mov byte [eax], 0x3e
jmp 0x4e4fff
mov byte [eax], 0x3f
jmp 0x4e4fff
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4e4f8f
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x4e504f
cmp byte [esp + 3], 0xff
jne 0x4e504f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x4e5087
cmp dl, 0xff
je 0x4e5087
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x4e4f88
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x4e511c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x57e7a0
mov eax, ebx
mov edx, 8
test al, 1
je 0x4e5138
shr eax, 1
xor eax, 0xedb88320
jmp 0x4e513a
shr eax, 1
dec edx
jne 0x4e512b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x4e5124
pop ebx
ret
Function at 0x4e5150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4e5159
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004dca38
xor eax, eax
push ebp
push 0x4e5239
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004e511c
mov eax, dword [0x57de0c]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.004dae7c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.004db218
call fcn.004daba8
test eax, eax
jne 0x4e5216
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.004dafcc
mov dx, word [ebp - 8]
test dx, dx
jbe 0x4e5210
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x57e7a0]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x4e51ec
cmp dword [ebp - 8], 0
jne 0x4e51c3
lea eax, [ebp - 0x154]
call fcn.004dafec
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e5240
lea eax, [ebp - 4]
call fcn.004dc588
ret

Function at 0x4f0718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x4f0738
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4f0726
pop edi
pop esi
pop ebx
ret
Function at 0x4f8fd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0x57ecb4
mov eax, ebp
shr eax, 1
and eax, 0xff
mov dword [esp], eax
mov esi, ebp
and esi, 1
mov eax, ebp
and eax, 0x200
shr eax, 8
or esi, eax
mov edx, dword [esi*4 + 0x573670]
mov eax, dword [esi*4 + 0x5736b0]
xor eax, dword [esp]
call fcn.004f8f70
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.004f8fac
mov dword [ebx], eax
mov edx, dword [esi*4 + 0x573680]
mov eax, dword [esi*4 + 0x5736c0]
xor eax, dword [esp]
call fcn.004f8f70
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.004f8fac
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0x573690]
mov eax, dword [esi*4 + 0x5736d0]
xor eax, dword [esp]
call fcn.004f8f70
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.004f8fac
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0x5736a0]
mov eax, dword [esi*4 + 0x5736e0]
xor eax, dword [esp]
call fcn.004f8f70
mov edi, eax
mov eax, edi
call fcn.004f8fac
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x4f8fe0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4f9138
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x4c]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + ebx*4], edx
inc ebx
cmp ebx, 3
jne 0x4f916d
xor ebx, ebx
mov eax, ebx
mov esi, 3
xor edx, edx
div esi
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edx, [eax + ecx]
and edx, 3
mov esi, dword [ebp - 8]
lea edx, [esi + edx*2]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dx, word [edx]
and dx, 1
movzx edx, dx
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
add esi, esi
or esi, edx
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi]
shr esi, 1
xor dx, 1
shl edx, 0xf
or si, dx
mov edx, dword [ebp - 0x1c]
mov word [edx], si
inc eax
cmp eax, 4
jne 0x4f9193
inc ebx
cmp ebx, 0xf
jne 0x4f917d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x4f914f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401730
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [0x46f014]
ret 8

Function at 0x401750
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x401764
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [0x46f074]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [0x46f014]
pop edi
pop esi
ret 0xc

Function at 0x401790
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x4017a6
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [0x46f074]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4017b3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [0x46f014]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x402090
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x489ec0]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [0x46f010]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40210f
xor eax, eax
cmp ecx, ebx
je 0x4020f7
push ecx
call dword [0x46f008]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x402133
cmp ecx, ebx
je 0x40211a
push ecx
call dword [0x46f008]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0044e030
mov esp, ebp
pop ebp
ret 4
mov esi, dword [0x46f01c]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x40219a
jmp 0x402160
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00402090
mov edi, eax
cmp edi, ebx
jne 0x4021e9
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x402160
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4021ad
push eax
call dword [0x46f008]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.00401640
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4021d0
push eax
call dword [0x46f008]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0044e030
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4021f8
push eax
call dword [0x46f008]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044e030
mov esp, ebp
pop ebp
ret 4
Function at 0x404c60
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x24
mov eax, dword [0x489ec0]
xor eax, esp
mov dword [esp + 0x20], eax
lea ecx, [esp + 4]
xor eax, eax
push ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
call fcn.0042e400
add esp, 4
push 6
push str.Logs_
lea ecx, [esp + 0xc]
call fcn.004048c0
push 0xa
push 0x46fac8
lea ecx, [esp + 0xc]
call fcn.004048c0
cmp dword [esp + 0x1c], 8
jb 0x404cc6
mov edx, dword [esp + 8]
push edx
call fcn.0044db5e
add esp, 4
lea eax, [esp]
push eax
call dword [0x46f0c4]
push eax
call dword [0x46f30c]
cmp dword [esp], 1
jg 0x404cf1
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044e030
add esp, 0x24
ret 0x10
call fcn.00401080
mov ecx, eax
call fcn.0042b730
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, 0x48b370
call fcn.00404c10
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044e030
add esp, 0x24
ret 0x10

Function at 0x404ee0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [0x46f0e0]
mov edi, eax
test edi, edi
jne 0x404f08
pop edi
ret 4
push esi
push 0
push 0
push 0
push 2
push 0
push edi
call dword [0x46f0dc]
mov esi, eax
test esi, esi
jne 0x404f2e
push edi
call dword [0x46f184]
pop esi
xor eax, eax
pop edi
ret 4
push 0
push 0
push 0
push 4
push esi
call dword [0x46f0d8]
test eax, eax
je 0x404f52
mov ecx, 0x5a4d
push eax
cmp word [eax], cx
je 0x404f65
call dword [0x46f0d4]
push esi
mov esi, dword [0x46f184]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
ret 4
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx], 0x4550
jne 0x404f4c
call dword [0x46f0d4]
push esi
mov esi, dword [0x46f184]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
ret 4

Function at 0x405e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46b693
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x489ec0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, 7
xor ecx, ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov word [esi + 4], cx
xor edx, edx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ecx
mov dword [esp + 0x14], ecx
mov word [esi + 0x20], dx
mov ecx, esi
mov byte [esp + 0x14], 1
call fcn.00418ff0
push 0
mov ecx, esi
call fcn.0041e1e0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x408140
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x46b988
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x489ec0]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
mov eax, dword [0x489ec0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x98]
push 0x41
lea eax, [esp + 0x44]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
call fcn.0044e890
xor eax, eax
add esp, 0xc
push eax
push 0x46fbec
mov ecx, ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
call fcn.00406460
test esi, esi
je 0x40829e
mov ebx, dword [esi + 8]
mov esi, dword [esi + 4]
push 0xf0000000
push 1
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [section..rdata]
test eax, eax
je 0x40829e
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x8004
push eax
call dword [0x46f038]
test eax, eax
je 0x40829e
mov ecx, dword [esp + 0x10]
push 0
push ebx
push esi
push ecx
call dword [0x46f03c]
test eax, eax
je 0x40829e
mov ecx, dword [esp + 0x10]
xor eax, eax
push eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], al
lea eax, [esp + 0x30]
push eax
push 2
push ecx
mov dword [esp + 0x28], 0x14
call dword [0x46f040]
test eax, eax
je 0x40829e
xor esi, esi
mov edi, edi
movzx edx, byte [esp + esi + 0x28]
xor eax, eax
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x20]
push str._02x
push eax
call fcn.00405070
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x50]
push 0x41
push edx
call fcn.0044ec16
inc esi
add esp, 0x18
cmp esi, 0x14
jb 0x408260
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.00407dc0
push eax
mov ecx, ebp
mov dword [esp + 0x94], 0
call fcn.004068e0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x90], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4082f9
push eax
call dword [0x46f044]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408312
push 0
push eax
call dword [0x46f020]
mov ecx, dword [ebp]
mov eax, dword [ecx - 0xc]
jmp 0x408318
mov edx, dword [ebp]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0044e030
add esp, 0x84
ret
Function at 0x4089f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ba48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489ec0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
sub eax, 0x10
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp dword [eax + 0xc], 1
mov byte [esp + 0x17], 0
jle 0x408a3c
mov eax, dword [eax + 4]
push eax
call fcn.00405520
mov esi, dword [esi]
push edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
push 2
push 0x400
push esi
push 1
call dword [0x46f054]
cmp eax, edi
je 0x408b65
mov ebx, dword [0x46f060]
mov ebp, 0x1e
xor esi, esi
mov edi, edi
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [0x46f050]
mov edi, eax
test edi, edi
je 0x408b65
mov eax, dword [edi + 0xc]
test eax, eax
je 0x408b62
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x30]
mov esi, dword [eax + 0x1c]
mov eax, dword [eax + 0x34]
cmp edx, ecx
jne 0x408aee
cmp ecx, 4
jb 0x408aca
mov edx, dword [esi]
cmp edx, dword [eax]
jne 0x408aee
sub ecx, 4
add eax, 4
add esi, 4
cmp ecx, 4
jae 0x408ab6
test ecx, ecx
je 0x408afa
mov dl, byte [eax]
cmp dl, byte [esi]
jne 0x408aee
cmp ecx, 1
jbe 0x408afa
mov dl, byte [eax + 1]
cmp dl, byte [esi + 1]
jne 0x408aee
cmp ecx, 2
jbe 0x408afa
mov al, byte [eax + 2]
cmp al, byte [esi + 2]
je 0x408afa
push edi
dec ebp
mov esi, edi
call ebx
test ebp, ebp
jg 0x408a80
jmp 0x408b65
mov edx, dword [0x48b668]
mov eax, dword [edx + 0xc]
mov ecx, 0x48b668
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [esp + 0x3c], 0
call fcn.00408140
add esp, 4
lea esi, [esp + 0x18]
call fcn.00408850
test al, al
je 0x408b3a
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408b62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408b76
push 0
push eax
call dword [0x46f05c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x408b85
push eax
call dword [0x46f058]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret