joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40506e
Capabilities:
Read file on windows

Disassembly:
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x43ddf6
add bh, bh
jne fcn.00405094
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00425812
add esp, 0x10
mov esp, ebp
pop ebp
or al, 0
push edi
mov esi, dword [ecx]
lea edi, [ebp - 8]
jge 0x43ddf0
push edi
sar ch, cl
adc byte [ecx - 0xaeafae], bl
push esi
adc al, 0x8b
inc ebp
clc
pop edi
pop esi
jmp 0x40507c

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x4c74a4]
push ebx
push esi
inc eax
mov esi, ecx
mov dword [esp + 0x18], esi
je 0x406c29
sbb byte [ebx + 0x4c74a4], ah
push edi
cmp eax, 0x30
jge 0x43e847
xor ebx, ebx
mov byte [esp + 0x13], 1
mov eax, ebx
mov byte [esp + 0x22], 1
lea ecx, [esp + 0xa8]
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], bl
call fcn.00405906
mov edi, dword [ebp + 8]
lea ecx, [esp + 0xa8]
push 0x8000
push edi
call fcn.00405956
test al, al
je 0x43e861
lea ecx, [esp + 0x98]
call fcn.004077c7
lea ecx, [esp + 0x98]
call fcn.00420b9b
lea ecx, [esp + 0x88]
call fcn.004077c7
lea edx, [esp + 0x88]
mov ecx, edi
call fcn.004048ae
mov edi, dword [esp + 0xb8]
lea eax, [esp + 0x44]
mov esi, dword [esp + 0xbc]
lea ecx, [esp + 0xa8]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x48], 0x18
push eax
call fcn.004059b0
push ebx
push esi
push edi
lea ecx, [esp + 0xb4]
call fcn.00405c4e
cmp dword [esp + 0x70], 0x21335541
je 0x43e87b
lea ecx, [esp + 0x50]
call fcn.004077c7
lea ecx, [esp + 0x28]
call fcn.004077c7
push ebx
lea eax, [esp + 0x2c]
add byte [ebx - 0x3074ef15], cl
push dword [eax]
leave
push 0x244b9fc8
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4c7480]
mov dword [esp + 4], ecx
push esi
push edi
Function at 0x40fe40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]

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

Disassembly:
sub esp, 0x10
mov dword [esp + 0x28], ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x30], 3

Function at 0x415e58
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x415e80
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x415e72
pop edi
pop esi
pop ebp
ret 4

Function at 0x42800a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x4bbd38
call fcn.00428b40
call fcn.0042a048
movzx esi, ax
push 2
call fcn.0043508a
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x427ec1
xor ebx, ebx
jmp 0x427ef4
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x427ebd
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x427ebd
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x427ef4
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.00428dbc
test eax, eax
jne 0x427f08
push 0x1c
call fcn.00427fe3
pop ecx
call fcn.00429d26
test eax, eax
jne 0x427f19
push 0x10
call fcn.00427fe3
pop ecx
call fcn.00429e0b
and dword [ebp - 4], 0
call fcn.0042d812
test eax, eax
jns 0x427f33
push 0x1b
call fcn.00427fe3
pop ecx
call dword [0x48f37c]
mov dword [0x4c5228], eax
call fcn.00435173
mov dword [0x4c41f0], eax
call fcn.00434d6b
test eax, eax
jns 0x427f59
push 8
call fcn.004232f5
pop ecx
call fcn.00434fa8
test eax, eax
jns 0x427f6a
push 9
call fcn.004232f5
pop ecx
push 1
call fcn.0042332f
pop ecx
test eax, eax
je 0x427f7d
push eax
call fcn.004232f5
pop ecx
call fcn.004351d0
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x427f9f
push esi
call fcn.00423598
call fcn.00423320
jmp 0x427fd4
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00428b85
ret
call fcn.004350d7
jmp 0x427e93
Function at 0x433718
Capabilities:
Authenticate hmac
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
in al, dx
in al, 0x49
add byte [eax + ecx], ah
cmp eax, 0x80000000
jae 0x433737
movlpd xmm0, qword [0x31d8e9c0]
invalid
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [0x4c4ae4], eax
je 0x433755
push dword [0x14c5184]
add byte [eax], al
inc esi
mov dword [ebp - 0x14377418], ebx
add eax, 0x437cabb9
add byte [ebx + 0x49ba1445], cl
add al, ch
xchg edi, eax
mov ecx, fcn.00437cab
mov eax, dword [ebp + 0x14]
mov edx, 0x97e80049
push esi
cmp eax, edx
jg 0x418307
inc dword [ebx + 0x64746983]
cmp eax, 0x19
jg 0x41827d
inc dword [ebx + 0x660049f4]
push 2
pop edx
sub eax, edx
je 0x821e2e8b
dec eax
je 0x84b83c59
cmp dword [ebp + 5], eax
je 0x821e2f4a
dec eax
je 0x84b83c3e
cmp dword [ebp + 5], eax
je 0xff7db893
dec eax
je 0x4337fc
sub eax, 9
jne 0x855237da
sahf
inc ebp
fadd dword [ebx]
and edi, 0xfffffffc
or ebx, 0xffffffdc
mov ah, 0x40
dec ecx
invalid
in al, dx
jmp 0x8f528bd5
mov al, byte [eax]
fdiv qword [eax - 0xb6c0]
mov dword [ebp - 0x61ef8ac0], esi
inc ebp
fadd dword [ecx - 0x2064ffb7]
loopne 0x4337f6
or dword [ebx*8 + 0xdde05d], 0xffffff8d
inc ebp
fcomp st(5)
pop ebp
call 0xdd933f01
pop ebp
invalid
Function at 0x402707
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
push esi
push edi
xor edi, edi
xor esi, esi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, 0x9f60fc3
jg 0x40272d
inc esi
cmp esi, 0x1e70dee2
jl 0x402713
cmp dword [0x478624], 0x400
jne 0x402760
push edi
call fcn.00402898
push edi
push edi
call fcn.00402b1d
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.004027c0
push edi
fstp st(0)
call fcn.00402bfb
add esp, 0x14
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x58bc6e
jg 0x40277f
inc esi
cmp esi, 0xe52f
jl 0x402762
mov eax, dword [0x4705ec]
mov dword [0x478624], eax
call fcn.0040247d
mov esi, 0x3078f
cmp dword [0x478624], 0x51f
jne 0x4027ab
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec esi
jne 0x402793
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4053f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f328]
jne 0x4053fe
repz ret
jmp fcn.004078d9
Function at 0x406450
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f328]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403fac
and dword [ebp - 0x14], 0
cmp dword [0x472230], 0
mov dword [ebp - 0x18], eax
jne 0x406503
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4065ab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4065ab
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x472230], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x472234], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x472238], eax
call edi
push eax
call esi
mov dword [0x472240], eax
test eax, eax
je 0x406503
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47223c], eax
mov eax, dword [0x47223c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40655c
cmp dword [0x472240], ecx
je 0x40655c
push eax
call esi
push dword [0x472240]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40655c
test ebx, ebx
je 0x40655c
call edi
test eax, eax
je 0x406553
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406553
test byte [ebp - 8], 1
jne 0x40655c
or dword [ebp + 0x10], 0x200000
jmp 0x40658f
mov eax, dword [0x472234]
cmp eax, dword [ebp - 0x18]
je 0x40658f
push eax
call esi
test eax, eax
je 0x40658f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40658f
mov eax, dword [0x472238]
cmp eax, dword [ebp - 0x18]
je 0x40658f
push eax
call esi
test eax, eax
je 0x40658f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x472230]
call esi
test eax, eax
je 0x4065ab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4065ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053f4
leave
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x401040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
lea eax, [ebp - 0x20c]
push 0x402100
push 0x104
push eax
call fcn.00401010
push 0x44
lea eax, [ebp - 0x260]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0x8000020
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004010be
mov esp, ebp
pop ebp
ret

Function at 0x4018be
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018fd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018fd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018fd
cmp dword [ecx + 0x74], 0xe
jbe 0x4018fd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402db0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043ec
test esi, esi
jne 0x402de7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004044dc
jmp 0x402e08
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c4c
mov dword [esp], eax
test esi, esi
je 0x402e08
cmp dword [ebx], 0
je 0x402e08
dec esi
jmp 0x402def
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4030ec
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x462008], 0x8088405
inc edx
mov dword [ebx + 0x462008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403544
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x462024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035bc
xor eax, eax
push ebp
push 0x4035b5
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 0x4035f8
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 0x4035bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x462024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x462024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4041e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46704c], 0
je 0x404245
cmp word [0x467220], 0xd7b2
jne 0x40420d
cmp dword [0x467228], 0
jbe 0x40420d
mov eax, 0x46721c
call dword [0x467238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x462070
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 0x40426c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x462034], 0
jne 0x404261
push 0
push 0x462068
push 0x462070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4043a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a18
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404368
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40655c
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 0x4065c2
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.0040465c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403108
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4065ac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065c9
lea eax, [ebp - 0x10]
call fcn.004043ec
ret

Function at 0x40b4f8
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_1
test eax, eax
jle 0x40b531
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044dc
jmp 0x40b53a
mov eax, ebx
mov edx, esi
call fcn.00404440
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b544
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_1
test eax, eax
jle 0x40b565
mov al, byte [esp]
jmp 0x40b567
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bbfc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba64
mov eax, dword [0x466cec]
cmp byte [eax], 0
je 0x40bc78
mov eax, dword [0x466a84]
call fcn.00402f1c
call fcn.00402b78
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d18
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bcc0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bcae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x466a2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x467668]
call fcn.004059bc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cb60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cbc4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040465c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040865c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbcb
lea eax, [ebp - 0xc]
call fcn.004043ec
ret

Function at 0x418b20
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041894c
dec esi
jne 0x418b42
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4191c4
Capabilities:
Hash data with md5

Disassembly:
push ebx
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, 0x40
lea ecx, [eax + 0x18]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x4191d7
mov edx, 0x10
lea ecx, [eax + 0x58]
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x4191e6
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebx
ret

Function at 0x41a0b0
Capabilities:
Hash data with md5

Disassembly:
push ebx
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, 0x40
lea ecx, [eax + 0x18]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x41a0c3
mov edx, 0x10
lea ecx, [eax + 0x58]
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x41a0d2
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebx
ret
Function at 0x4253fc
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x42540b
add esp, 0xfffffff0
call fcn.00403938
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.00424b2c
mov dl, 1
mov eax, dword [0x414918]
call fcn.00403680
mov dword [edi + 0x2c], eax
mov dl, 1
mov eax, dword [0x414918]
call fcn.00403680
mov dword [edi + 0x64], eax
mov dl, 1
mov eax, dword [0x414c5c]
call fcn.00403680
mov dword [edi + 0x30], eax
mov dl, 1
mov eax, dword [0x41f6b0]
call fcn.00424044
mov esi, eax
mov dword [edi + 0x1c], esi
mov dword [esi + 0x1c4], edi
mov byte [esi + 0x88], 1
mov eax, esi
mov edx, 0x10000
call fcn.00422448
mov eax, dword [edi + 0x1c]
mov edx, 0x10000
call fcn.00422470
mov dword [edi + 0x10], 0x15f90
lea eax, [edi + 8]
mov edx, 0x425528
call fcn.00404440
lea eax, [edi + 0x48]
call fcn.004043ec
lea eax, [edi + 0x4c]
mov edx, 0x425534
call fcn.00404440
lea eax, [edi + 0x50]
call fcn.004043ec
lea eax, [edi + 0x54]
call fcn.004043ec
lea eax, [edi + 0x24]
call fcn.004043ec
lea eax, [edi + 0x28]
call fcn.004043ec
lea eax, [edi + 0x38]
mov edx, 0x425544
call fcn.00404440
mov byte [edi + 0x3c], 1
mov byte [edi + 0x44], 0
lea eax, [edi + 0x60]
mov edx, 0x425550
call fcn.00404440
xor eax, eax
mov dword [edi + 0x68], eax
xor eax, eax
mov dword [edi + 0x6c], eax
mov byte [edi + 0x78], 1
mov dword [edi + 0x40], 0x12c
mov eax, edi
call fcn.00425608
mov eax, edi
test bl, bl
je 0x425518
call fcn.00403990
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x42accc
Capabilities:
Enumerate pe sections
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
xor edx, edx
mov dword [esp], edx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x42ad07
push 0
push 0x42ae00
push 0x42ae04
push 0
call sub.user32.dll_MessageBoxA_1
push 0
push ebp
call sub.kernel32.dll_GetFileSize
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
call fcn.00402a18
mov ebx, eax
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
push ebx
push ebp
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x42ad48
push 0
push 0x42ae00
push 0x42ae08
push 0
call sub.user32.dll_MessageBoxA_1
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x50]
call fcn.00402a18
mov dword [esp], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x50]
mov eax, dword [esp]
call fcn.00406ed4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x54]
mov edx, ebx
mov eax, dword [esp]
call fcn.00406ecc
mov eax, dword [esp + 0x10]
mov si, word [eax + 6]
dec esi
test si, si
jb 0x42ade1
inc esi
xor edi, edi
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x3c]
mov eax, ebx
add edx, eax
add edx, 0xf8
movzx ecx, di
shl ecx, 3
lea ecx, [ecx + ecx*4]
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x14]
add edx, eax
push edx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
add eax, dword [esp + 4]
pop edx
call fcn.00406ecc
inc edi
dec si
jne 0x42ad99
mov edx, dword [esp + 4]
mov eax, ebx
call fcn.00402a48
push ebp
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42ae78
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov dword [esp], edx
mov esi, eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword [esi + 0x3c]
mov eax, esi
add edx, eax
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
add edx, 0x78
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
mov edx, dword [edx]
add edx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x1c]
add edx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x20]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x24]
add edx, eax
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x18]
dec ebx
test ebx, ebx
jb 0x42af62
inc ebx
mov eax, dword [esp + 0x20]
movzx edx, word [eax]
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp edx, eax
jbe 0x42af05
add dword [esp + 0x18], 4
inc eax
cmp edx, eax
ja 0x42aefb
mov edx, dword [esp + 0xc]
mov edx, dword [edx]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp edx, eax
ja 0x42af20
mov ecx, dword [esp + 0xc]
add edx, dword [ecx + 4]
cmp eax, edx
jb 0x42af55
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
call fcn.0042abb8
mov ecx, eax
mov edx, dword [esp + 0x24]
xor eax, eax
call fcn.0042abcc
cmp eax, dword [esp]
jne 0x42af55
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, esi
mov dword [esp + 4], eax
jmp 0x42af62
add dword [esp + 0x20], 2
add dword [esp + 0x1c], 4
dec ebx
jne 0x42aee6
mov eax, dword [esp + 4]
add esp, 0x28
pop esi
pop ebx
ret