joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f560
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004690f2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043ef00
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00469020
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004658de
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004658de
push 1
push 0
push 0
mov ecx, esi
call fcn.00465886
push 1
push 0
push 1
mov ecx, esi
call fcn.00465886
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469164
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43f6e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4703b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004690f2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043ef00
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00469020
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43f7a4
cmp dword [esp + 0x40], 1
jne 0x43f7a2
cmp ecx, eax
jge 0x43f7a4
mov eax, ecx
cmp eax, 0xc8
jge 0x43f7b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043f560
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469164
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ff30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470423
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00463cfb
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046939a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046a8b6
test eax, eax
je 0x44004c
mov ecx, dword [esp + 0x3c]
call fcn.004693c7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x440010
push edi
mov ecx, esi
call fcn.00466a2d
mov ecx, esi
call fcn.004401b0
cmp dword [esp + 0x38], 1
jne 0x440045
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00466b68
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x442a70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442aa3
push esi
call fcn.00445b70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x442a9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442b29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442b12
mov eax, dword [esi + 8]
test eax, eax
je 0x442ac7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x442b0e
cmp eax, 2
je 0x442b12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x442aba
cmp eax, 3
je 0x442aed
cmp eax, 1
jne 0x442aba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x442aba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x442aba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442b50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442b38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442b50
add esp, 4
pop esi
ret

Function at 0x44def0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44df56
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44df56
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44df37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44e6c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44e709
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44eb80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4708d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044e730
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044e7b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044e7b0
lea ecx, [esi + 0xc]
call fcn.004626d8
lea ecx, [esi + 0x10]
call fcn.004626d8
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044fd50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044fd50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044fd50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046274d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046274d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x464af1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x464b29
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00462ba8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00462b80
jmp 0x464b35
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4661e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466224
call fcn.0046bd60
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466224
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46621b
xor eax, eax
jmp 0x46622c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466232
pop edi
pop esi
pop ebx
ret 4

Function at 0x46c290
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 0x46c2be
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c2dc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046c1f6
jmp 0x46c2dc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46c2dc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046c1f6
test edi, edi
mov eax, edi
jne 0x46c2c6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40288e
pop dword [ebp - 8]
mov eax, 0x40288e
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x5171fea3
sub dword [ebp - 0x18], 0x31fb958
mov dword [ebp - 0x14], 0x79d82c08
sub dword [ebp - 0x14], 0x47a4dfc3
mov dword [ebp - 0x10], 0xd18e784a
sub dword [ebp - 0x10], 0x8542341c
mov dword [ebp - 0xc], 0xebd53eab
add dword [ebp - 0xc], 0x142ac155
lea eax, [ebp - 0x18]
push eax
mov eax, 0xe0145fa4
add eax, 0x202c10c0
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x57277f52
add dword [ebp - 0x18], 0x1d4aea04
mov dword [ebp - 0x14], 0xd346d89c
sub dword [ebp - 0x14], 0x91da7727
mov dword [ebp - 0x10], 0x2de2481d
sub dword [ebp - 0x10], 0xca72dbb1
mov dword [ebp - 0xc], 0xcb4bac05
add dword [ebp - 0xc], 0x34b453fb
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xc282b84c
sub eax, 0xc24247a4
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37f26
push 0
call eax
mov ecx, 0x48c8a2d7
sub ecx, 0x48c85570
mov edi, eax
mov edx, 0x410000
add edx, dword [ebp - 8]
mov esi, 0x3e20dfb4
sub esi, 0x59a626e7
xor dword [ebp - 4], 0x3c994aa4
mov ebx, dword [edx]
xor dword [ebp - 4], 0xc3581269
add ebx, esi
sub dword [ebp - 4], ebx
mov dword [edi], ebx
add dword [ebp - 4], ebx
add edi, 0x74287d44
add edi, 0x8bd782c0
add edx, 4
loop 0x4029a5
add eax, 0x6c8f6f7e
add eax, 0x9371b8f1
mov ebx, eax
add eax, 0xe4969a53
sub eax, 0xe4969a4e
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401730
Capabilities:
Create directory

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
mov ecx, 0x40
test edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
jle 0x4017e5
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x1d]
lea ebx, [esp + 0x1e]
sub ecx, esi
lea ebp, [esp + 0x1f]
sub edi, esi
sub ebx, esi
mov dword [esp + 0x14], ecx
sub ebp, esi
mov al, byte [esi]
cmp al, 0x5c
je 0x401791
cmp al, 0x2f
je 0x401791
mov byte [ecx + esi], al
jmp 0x4017d3
mov byte [ecx + esi], 0x5c
lea eax, [esp + 0x1c]
mov byte [edi + esi], 0x2a
mov byte [ebx + esi], 0x2e
push eax
mov byte [esi + ebp], 0x2a
call fcn.004016f0
add esp, 4
mov byte [edi + esi], 0
test al, al
mov byte [ebx + esi], 0
mov byte [esi + ebp], 0
jne 0x4017cf
lea ecx, [esp + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4017e5
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
inc eax
inc esi
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401782
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret

Function at 0x4017f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x200
lea eax, [esp]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x25
push 0x25
push 0x41e0b8
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x104]
lea edx, [esp + 4]
push 0x100
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, dword [esp + 0x208]
lea ecx, [esp + 0x104]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x41e0a8
push edx
call esi
lea eax, [esp + 0x14]
push eax
call fcn.00401730
mov edx, dword [esp + 0x220]
lea ecx, [esp + 0x18]
push ecx
push 0x41e090
push edx
call esi
add esp, 0x20
pop esi
add esp, 0x200
ret
Function at 0x401870
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x264
push ebx
push ebp
push esi
mov esi, dword [esp + 0x278]
cmp esi, 3
push edi
jle 0x4019d1
mov ebx, dword [esp + 0x278]
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 1]
mov al, byte [ebx + 2]
shl edx, 8
add edx, eax
lea ebp, [edx + 3]
cmp esi, ebp
jl 0x4019d1
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
cmp edx, 0x40
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x40
jg 0x4018c5
mov ecx, edx
mov edx, ecx
lea esi, [ebx + 3]
lea edi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x27c]
lea esi, [ebp + 2]
cmp edi, esi
jle 0x4019d1
xor edx, edx
xor eax, eax
mov dl, byte [ebx + ebp]
mov al, byte [ebx + ebp + 1]
shl edx, 8
add edx, eax
lea ebp, [edx + esi]
cmp edi, ebp
jl 0x4019d1
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
cmp edx, 0x20
rep stosd dword es:[edi], eax
mov ecx, 0x20
jg 0x401920
mov ecx, edx
mov edx, ecx
add esi, ebx
lea edi, [esp + 0x10]
lea eax, [esp + 0x174]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call fcn.004017f0
lea edx, [esp + 0x18]
lea eax, [esp + 0x17c]
push edx
push eax
lea ecx, [esp + 0x84]
push 0x41e0d4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x8c]
push edx
call fcn.004016f0
add esp, 0x1c
test al, al
jne 0x4019d1
mov eax, dword [esp + 0x27c]
lea edi, [ebp + 2]
cmp eax, edi
jle 0x4019d1
xor ecx, ecx
xor edx, edx
mov cl, byte [ebx + ebp]
mov dl, byte [ebx + ebp + 1]
mov esi, ecx
shl esi, 8
add esi, edx
lea ecx, [esi + edi]
cmp eax, ecx
jl 0x4019d1
lea edx, [esp + 0x74]
push 0x41e0d0
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4019d1
push ebp
push esi
add edi, ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret
Function at 0x403588
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4179d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.00402e40
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], 0
test eax, eax
je 0x4035c0
mov al, byte [esp + 0xb]
lea ecx, [esp + 0xb]
push 0x41b020
push ecx
mov byte [esp + 0x13], al
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0xc]
push edx
push 4
push esi
push 0x403320
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [esp + 0x24]
add esp, 0x18
test eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jne 0x403601
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x41af38
push edx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esi + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x403629
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push 0x41af38
push edx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x403651
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push 0x41af38
push ecx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, edi
mov dword [esi + 0x1c], 1
call fcn.00402e50
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x405480
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x408c90
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x418078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0
call fcn.004171f2
lea eax, [esp + 0x34]
push str..htm
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 1
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
je 0x408d35
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
mov esi, eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x408d3d
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40e7c0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40e81f
push esi
push edi
push 0x28
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0xa
xor eax, eax
mov edi, esi
add esp, 4
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esp + 0x10]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
push edx
lea eax, [esi + 8]
push 0x41e090
push eax
mov dword [esi + 4], ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
push esi
push 0
push 0x40cdd0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0x18
pop edi
pop esi
pop ebx
ret 4
Function at 0x412220
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x418d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
push 0x2e
mov ecx, dword [edi + 4]
add ecx, 0x4c
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [edi + 4]
push eax
lea eax, [esp + 0x1c]
add ecx, 0x4c
push eax
call sub.MFC42.DLL_CString::Mid
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
push 0x20019
push ebx
push edx
push bind
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41233a
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
push ebx
push ebx
push str.Content_Type
push ecx
call esi
test eax, eax
jne 0x41232f
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ebx
push str.Content_Type
push ecx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp esi, ebx
jne 0x412322
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004171fe
push ecx
mov byte [esp + 0x34], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Content_type
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x34], 1
call fcn.00410f40
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret