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

Disassembly:
push 0xffffffffffffffff
push 0x48eaa3
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.00482531
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x796a028
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], 0x7967490
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 [0x4900c4]
push eax
mov ecx, edi
call fcn.00487bc6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004890e2
test eax, eax
je 0x44d75c
mov ecx, dword [esp + 0x3c]
call fcn.00487bf3
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4903b8]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44d720
push edi
mov ecx, esi
call fcn.0048525b
mov ecx, esi
call fcn.0044d8c0
cmp dword [esp + 0x38], 1
jne 0x44d755
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.00485396
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 0x450180
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4501b3
push esi
call fcn.0045e4c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4501ac
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 0x450239
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x450222
mov eax, dword [esi + 8]
test eax, eax
je 0x4501d7
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 0x45021e
cmp eax, 2
je 0x450222
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4501ca
cmp eax, 3
je 0x4501fd
cmp eax, 1
jne 0x4501ca
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 0x4501ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4501ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00450260
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x450248
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00450260
add esp, 4
pop esi
ret
Function at 0x401202
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x20
call fcn.004012e6
mov esi, eax
test esi, esi
je 0x4012d5
mov eax, dword [0x404184]
lea eax, [eax + 0x405099]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [0x404184]
lea eax, [eax + 0x4051e9]
push eax
push ebx
mov dword [ebp - 4], 0x7f
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x4012cd
mov eax, dword [0x404184]
lea eax, [eax + 0x4051d1]
push eax
push ebx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x4012cd
mov eax, dword [0x404184]
lea eax, [eax + 0x4050cc]
push eax
push ebx
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x4012cd
mov eax, dword [0x404184]
lea eax, [eax + 0x4050ec]
push eax
push ebx
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x4012cd
mov eax, dword [0x404184]
lea eax, [eax + 0x405091]
push eax
push ebx
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4012cd
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, esi
call fcn.0040110b
mov dword [ebp - 4], eax
test eax, eax
jne 0x4012cd
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x4012dc
push esi
call fcn.00401ba9
jmp 0x4012dc
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4014cf
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx ecx, word [eax + 0x14]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
mov edi, dword [0x404180]
lea esi, [ecx + eax + 0x18]
movzx ecx, word [eax + 6]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0xc], ecx
lea ecx, [edi - 0x43175abf]
push ecx
push dword [eax + 0x54]
push dword [ebp + 8]
call ebx
and dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
jbe 0x4015a6
cmp dword [ebp - 8], 0
jne 0x4015a6
lea eax, [edi - 0x43175aa6]
bt dword [esi + 0x24], eax
jae 0x40154a
lea eax, [edi - 0x43175aa4]
bt dword [esi + 0x24], eax
jae 0x401542
lea ecx, [edi - 0x43175a83]
jmp 0x40156e
lea ecx, [edi - 0x43175aa3]
jmp 0x40156e
lea eax, [edi - 0x43175aa5]
bt dword [esi + 0x24], eax
jae 0x401568
lea eax, [edi - 0x43175aa4]
bt dword [esi + 0x24], eax
lea ecx, [edi - 0x43175ac1]
jae 0x40156e
lea ecx, [edi - 0x43175abf]
mov eax, dword [esi + 0xc]
add eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push ecx
push dword [esi + 8]
push eax
call ebx
test eax, eax
jne 0x40158c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
lea eax, [edi - 0x3175ac2]
imul eax, eax, 0x28
add esi, eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x401518
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4015b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x192
push 0x54d38000
push dword [ebp - 8]
push dword [ebp - 0xc]
call sub.ntdll.dll__aulldiv
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x404184]
lea ecx, [eax + 0x4051ca]
push ecx
lea eax, [eax + 0x4051c0]
push eax
lea eax, [ebp - 0x38]
push 0x16
push eax
mov dword [ebp - 8], edx
call sub.ntdll.dll__snwprintf
mov eax, dword [ebp + 8]
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
jne 0x40160e
mov eax, 0x1000
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push 4
push 0x404188
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x401671
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], ebx
jne 0x401642
call edi
cmp eax, 0xb7
je 0x401642
push 2
pop edi
jmp 0x401668
push ebx
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x401660
mov ecx, dword [ebp + 0xc]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor edi, edi
jmp 0x401679
call edi
mov edi, eax
cmp edi, ebx
je 0x401679
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401679
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401688
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x404170]
mov eax, dword [ecx + 0x3c]
sub esp, 0x2c
add eax, ecx
movzx edx, word [eax + 0x14]
push ebx
push esi
movzx esi, word [eax + 6]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edx + eax + 0x18]
xor edx, edx
cmp dword [eax + 4], ebx
jne 0x4016be
cmp dword [eax], 0x7373622e
jne 0x4016be
mov edx, eax
add eax, 0x28
dec esi
je 0x4016c8
test edx, edx
je 0x4016af
test edx, edx
je 0x4016e6
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4016e2
mov edx, dword [edx + 0x10]
test edx, edx
je 0x4016e2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
jmp 0x4016e9
push 0xb
jmp 0x4016e8
push 2
pop ebx
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x4017f6
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
and esi, 0xfff
neg esi
sbb esi, esi
shr eax, 0xc
neg esi
add esi, eax
mov eax, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 0xc
push eax
call fcn.004012e6
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x4017ef
lea edx, [edi - 1]
and edx, 1
cmp edx, esi
jae 0x4017c5
sub eax, dword [ebp - 0xc]
mov ecx, edx
lea edi, [eax + edi + 0x40503f]
mov eax, dword [ebp - 0xc]
shl ecx, 0xc
add ecx, ebx
sub eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
sub eax, edx
and dword [ebp - 0x1c], 0
lea eax, [eax + ebx - 0x7e47c82f]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 4]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40179b
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x24]
add eax, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ebx], eax
jmp 0x4017a2
mov dword [ebp - 8], 1
dec dword [ebp - 8]
jne 0x401772
mov eax, dword [edi + 4]
sub eax, dword [edi + 8]
add ecx, 0x1000
add eax, dword [edi + 0xc]
inc edx
mov dword [0x404180], eax
cmp edx, esi
jb 0x401752
mov ebx, dword [ebp - 0x2c]
jmp 0x4017ca
mov eax, dword [0x404180]
cmp eax, 0x43175ac3
jne 0x4017e0
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, ebx
call fcn.00401fe6
jmp 0x4017e7
mov dword [ebp - 0x14], 0x15
push ebx
call fcn.00401ba9
jmp 0x4017f6
mov dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4019f1
Capabilities:
Create thread
Get geographical location
Get system information on windows
Identify system language via api
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call fcn.00401d68
mov dword [ebp - 4], eax
test eax, eax
jne 0x401ba7
push ebx
push esi
push edi
xor esi, esi
push 0x30
mov dword [ebp - 8], esi
pop ebx
push ebx
call fcn.004012e6
mov edi, eax
test edi, edi
je 0x401a53
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 8
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, eax
and eax, 0xffff
mov dword [ebp - 4], eax
cmp eax, 4
jne 0x401a3e
add ebx, 0x30
mov eax, dword [edi]
push 0x13
pop esi
xor edx, edx
div esi
push edi
lea esi, [edx + ecx + 1]
call fcn.00401ba9
jmp 0x401a5a
mov dword [ebp - 4], 8
cmp dword [ebp - 4], 0
jne 0x401a12
push esi
call fcn.00401688
shl esi, 4
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
cmp eax, 0x15
je 0x401a0a
xor esi, esi
cmp eax, esi
jne 0x401ba4
push 4
lea eax, [ebp - 8]
push eax
push 0x5a
push 0x400
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x401ab7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 4
lea ecx, [ebp - 8]
movzx eax, ax
push ecx
push eax
call sub.KERNEL32.dll_VerLanguageNameA
mov eax, 0x5552
cmp word [ebp - 8], ax
je 0x401b96
lea eax, [ebp - 0xc]
push eax
call fcn.00401800
test eax, eax
jne 0x401b0f
mov ebx, dword [ebp - 0xc]
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401b07
lea eax, [edi + edi + 2]
push eax
call fcn.004012e6
mov dword [0x404178], eax
test eax, eax
je 0x401b07
push edi
push eax
push ebx
call esi
push ebx
call fcn.00401ba9
jmp 0x401b15
mov dword [0x404178], ebx
jmp 0x401b15
mov dword [0x404178], esi
xor edi, edi
push edi
push edi
push dword [0x404180]
push dword [sym.imp.KERNEL32.dll_SleepEx]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x401b8d
lea eax, [ebp - 0x24]
push eax
push esi
push 0x40139f
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x401b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call edi
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x401b8d
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
test eax, eax
jne 0x401b88
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call edi
jmp 0x401b96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x401ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d68
Capabilities:
Check os version

Disassembly:
push esi
mov esi, dword [0x404170]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x40417c], eax
test eax, eax
je 0x401dda
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x401d9b
mov ecx, eax
shr ecx, 8
test cl, cl
ja 0x401d9d
cmp al, al
jbe 0x401dd5
mov dword [0x40416c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x10047a
mov dword [0x404168], eax
mov dword [0x404170], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x404164], eax
test eax, eax
jne 0x401dd1
or dword [0x404164], 0xffffffff
xor eax, eax
pop esi
ret
push 0x32
pop eax
pop esi
ret
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x401de1
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push esi
xor esi, esi
push esi
push 0x400000
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x404160], eax
cmp eax, esi
je 0x401e1f
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x404170], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call fcn.004019f1
push dword [0x404160]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0044c180
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor eax, eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x410
push 0
push 0
push 0
push dword [ebp + 8]
movups xmmword [ebp - 0x10], xmm0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x402bdd
cmp dword [ebp + 0xc], 0
je 0x402bdd
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402bf0
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b4108
push 0x44c3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b93f8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x402cea
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x38], eax
push edi
push edi
push edi
push 4
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x402cea
push edi
push edi
push edi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x402cea
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0x30], eax
mov ecx, 0x5a4d
cmp word [edi], cx
jne 0x402cea
push 0xe0
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x402cea
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0x4550
jne 0x402cea
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push edi
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
mov ecx, eax
test ecx, ecx
je 0x402cea
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0x58], eax
mov esi, 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00402d13
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031c0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp word [esi + 2], 0x3a
jne 0x4031e7
movzx eax, word [esi]
jmp 0x403202
push 0x208
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movzx eax, word [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x4a17f4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x403247
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004495f3
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x20c]
push 1
push eax
push esi
call edi
test eax, eax
je 0x403283
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x403283
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
push esi
push ebx
call edi
test eax, eax
jne 0x403296
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004495f3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret

Function at 0x403670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor eax, eax
mov esi, 4
cmp dword [ebp + 8], eax
push edi
mov edi, ecx
cmovne esi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x403692
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0x4036c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [edi + 4], eax
test eax, eax
pop edi
setne cl
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x4044f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404505
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404546
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404542
nop word [eax + eax]
cmp esi, edx
jae 0x404546
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404530
cmp esi, edx
jb 0x40454b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x405440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push ebx
movzx eax, ax
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x40547f
mov ecx, dword [0x4c11f4]
mov eax, dword fs:[0x2c]
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 4], 5
xor eax, eax
pop ebp
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4054aa
mov ecx, dword [0x4c11f4]
mov eax, dword fs:[0x2c]
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 4], 6
xor eax, eax
pop ebp
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4054d8
mov ecx, dword [0x4c11f4]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 4], 6
xor eax, eax
pop ebp
ret
push 0x48
call fcn.004688da
mov esi, eax
add esp, 4
test esi, esi
jne 0x405508
mov ecx, dword [0x4c11f4]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 4], 1
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [esi], eax
mov word [esi + 4], bx
call fcn.00405a50
add esp, 8
test eax, eax
jne 0x40552f
push esi
call fcn.004688d5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x408280
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x408456
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x408460
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x40846a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x408474
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x40847e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x34], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x408488
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x38], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x408492
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x40], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x40849c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x48], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x4084a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x4c], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x4084b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x50], eax
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x4084ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x40c], 0x400
mov dword [esi + 0x54], eax
lea eax, [ebp - 0x404]
push 0x400
push 0
push eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x10], 1
call fcn.0044c180
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.00407410
lea eax, [ebp - 0x408]
push eax
lea ecx, [esi + 0x34]
call fcn.00409a20
mov edi, dword [ebp - 0x408]
or eax, 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x408436
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
mov dword [esi + 0x3c], 0x84000000
xor ecx, ebp
mov dword [esi + 0x44], 0x50
pop esi
call fcn.004495f3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
int3