joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4899a4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x489b51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x489b32
mov dl, 1
mov eax, dword [0x41d92c]
call fcn.00422b88
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00405ac0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x489b21
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00479424
test al, al
je 0x489b14
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x489b60
lea eax, [ebp - 0x394]
call fcn.0040d098
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x489b14
xor eax, eax
push ebp
push 0x489b0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x489bd0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x489af6
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405cc0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x489af6
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405cc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489b14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x489a17
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00422974
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489b58
lea eax, [ebp - 0x3a0]
call fcn.00405ab0
ret

Function at 0x48a540
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4b31b4]
cmp byte [eax + 0xa9], 0
jne 0x48a5b2
cmp dword [0x4b31cc], 0
jne 0x48a572
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4acde0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4b31cc], eax
cmp dword [0x4b31c8], 0
jne 0x48a58d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4b31c8], eax
cmp dword [0x4b31d0], 0
jne 0x48a5b2
push esp
push 0
push 0
mov eax, dword [0x4acddc]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b31d0], eax
pop edx
ret
Function at 0x48a7c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x48a7df
add esp, 0xfffffff0
call fcn.00404164
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427858
mov eax, dword [0x4ad180]
cmp byte [eax], 0
jne 0x48a80c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4ad450]
cmp word [eax + 2], 0
jne 0x48a826
mov eax, dword [0x4ad450]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048c728
mov eax, dword [0x4ad538]
cmp word [eax + 2], 0
jne 0x48a840
mov eax, dword [0x4ad538]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048c938
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x42e274]
call fcn.004300fc
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x48cdbc
mov dl, 1
mov eax, dword [0x41d248]
call fcn.00403ce4
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x41d248]
call fcn.00403ce4
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x42eed4]
call fcn.00437c04
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x48aa1c
mov eax, dword [0x4ad318]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00438008
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x48d06c
mov dl, 1
mov eax, dword [0x41d248]
call fcn.00403ce4
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4ad318]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040ce7c
test eax, eax
je 0x48a94e
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040cc7c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040ce64
test eax, eax
je 0x48a966
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405cc0
push ebx
push 0x48c0f8
call fcn.00480ef4
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x4ad180]
cmp byte [eax], 0
jne 0x48a9b7
mov eax, ebx
call fcn.0048ab90
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.0048d294
mov eax, ebx
call fcn.0048de58
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48aa14
call fcn.004041bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48ae64
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x48af06
cmp dword [ebx + 0x90], 0
jne 0x48af00
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48adb0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x48af00
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x48aec6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48af00
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.0041faf0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48aed5
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48b124
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4b31b4]
cmp dword [eax + 0x170], 0
je 0x48b289
test bl, bl
jne 0x48b1d7
cmp dword [esi + 0x98], 0
jne 0x48b1cc
mov eax, esi
call fcn.0048dca8
push eax
push 0x48b030
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x48b19d
mov eax, dword [0x4b31b4]
cmp byte [eax + 0xcf], 0
je 0x48b19d
mov eax, dword [esi + 0xd4]
call fcn.0040716c
mov edi, eax
cmp edi, 0
jl 0x48b19d
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x48b186
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x48b1cc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0041faf0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x48b1ac
inc dword [esi + 0x98]
jmp 0x48b289
cmp dword [esi + 0x98], 0
jle 0x48b289
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x48b289
cmp dword [esi + 0x40], 0
je 0x48b234
mov eax, dword [0x4b31b4]
cmp byte [eax + 0xcf], 0
je 0x48b234
mov eax, dword [esi + 0xd4]
call fcn.0040716c
mov edi, eax
cmp edi, 0
jl 0x48b234
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x48b21d
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x48b263
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0041faf0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x48b243
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4808fc]
call fcn.0040732c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x48be44
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x48beaf
cmp byte [ebx + 0xcf], 0
jne 0x48beaf
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405bfc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x48be9c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x48bebc
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405ac0
jmp 0x48bebc
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405ac0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x48d468
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x48d4d6
mov eax, esi
call fcn.00473c74
test al, al
je 0x48d4d6
mov eax, dword [ebx + 0x80]
call fcn.004738c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48d4d6
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x48d4ca
push 0
mov eax, dword [ebx + 0x80]
call fcn.004738c8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0046aed8
jmp 0x48d4d6
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0048d2b4
pop esi
pop ebx
ret
Function at 0x4925b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
test dl, dl
je 0x4925cc
add esp, 0xfffffff0
call fcn.00404164
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00405aa8
xor eax, eax
push ebp
push 0x4926a3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00403ce4
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 4], edx
lea edx, [ebp - 0x14]
mov eax, dword [0x4b0b50]
call fcn.004128ec
mov eax, dword [ebp - 0x14]
call fcn.00405b4c
xor edx, edx
call fcn.00407678
mov ebx, eax
test ebx, ebx
jne 0x492625
mov ebx, dword [0x4b0b50]
push 0xa
mov eax, dword [ebp - 4]
call fcn.00405b4c
push eax
push ebx
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x492685
push eax
push ebx
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x492685
xor eax, eax
push ebp
push 0x49267e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LockResource
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492685
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4926aa
lea eax, [ebp - 0x14]
call fcn.00405ab0
lea eax, [ebp - 4]
call fcn.00405ab0
ret
Function at 0x49cd18
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x40954c]
call fcn.004067bc
xor eax, eax
push ebp
push 0x49ced9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4acf6c], 0
jne 0x49cd6c
mov ecx, dword [0x4ad194]
mov dl, 1
mov eax, dword [0x40a110]
call fcn.004108a4
call fcn.00404708
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403620
mov eax, ebx
call fcn.00405910
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x49cee8
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.00407b14
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
test eax, eax
je 0x49cdb3
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x49ce7f
mov dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x49ce6b
lea eax, [ebp - 4]
lea edx, [ebp - 0x5c]
mov ecx, 0x10
call fcn.00405cc0
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405d28
mov eax, dword [ebp - 4]
test eax, eax
je 0x49ce0e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x49ce0e
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405100
mov ebx, eax
test ebx, ebx
je 0x49ce19
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
test eax, eax
je 0x49ce36
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x49ce36
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405100
mov edi, eax
test edi, edi
je 0x49ce41
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.00405b4c
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.00405b4c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
sete al
jmp 0x49ce6d
xor eax, eax
test al, al
je 0x49ce78
mov ebx, 0x15
jmp 0x49ce84
mov ebx, 0x10
jmp 0x49ce84
mov ebx, 0x15
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push esi
call dword [0x4acf6c]
call fcn.0049cb84
mov eax, dword [ebp - 0xc]
call fcn.0049cb84
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00407b2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49cee0
lea eax, [ebp - 0x14]
mov edx, dword [0x40954c]
call fcn.00406894
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405ab8
ret
Function at 0x4013f3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00402c80
add esp, 4
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
je 0x401443
push 0
call fcn.00402baa
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x4014a1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx]
sub edx, 0x30
imul edx, edx, 0x64
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movsx ecx, byte [eax + 1]
sub ecx, 0x30
imul ecx, ecx, 0xa
add edx, ecx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movsx ecx, byte [eax + 2]
lea edx, [edx + ecx - 0x30]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov cl, byte [ebp - 4]
mov byte [eax], cl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, 3
mov dword [ebp - 8], eax
jmp 0x401443
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0
add esp, 0xc
cmp ebp, esp
call fcn.00402b65
mov esp, ebp
pop ebp
ret

Function at 0x4014b8
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
lea edi, [ebp - 0x110]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, esp
push 0
push 0
push 0
push 0
push 0x40841c
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp esi, esp
call fcn.00402b65
mov dword [ebp - 0x110], eax
mov esi, esp
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [0x40abc4]
cmp esi, esp
call fcn.00402b65
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x4015e5
mov esi, esp
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x13
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp esi, esp
call fcn.00402b65
mov esi, esp
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0x13
mov eax, dword [ebp - 0x10c]
push eax
call dword [0x40abcc]
cmp esi, esp
call fcn.00402b65
test eax, eax
je 0x4015b4
push 0x408468
lea ecx, [ebp - 0x108]
push ecx
call fcn.00402d00
add esp, 8
test eax, eax
je 0x4015b4
xor eax, eax
jmp 0x4015e7
mov esi, esp
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call dword [0x40acf8]
cmp esi, esp
call fcn.00402b65
test eax, eax
jne 0x4015de
xor eax, eax
jmp 0x4015e7
mov eax, 1
jmp 0x4015e7
xor eax, eax
pop edi
pop esi
add esp, 0x110
cmp ebp, esp
call fcn.00402b65
mov esp, ebp
pop ebp
ret
Function at 0x401d9b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.00402b65
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401de7
jmp 0x401e5c
mov esi, esp
push 2
push 0
push 0xffffffffffffffda
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00402b65
mov dword [ebp - 8], eax
mov esi, esp
push 0
lea edx, [ebp - 4]
push edx
push 0x26
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.00402b65
test eax, eax
jne 0x401e28
jmp 0x401e5c
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00402b65
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402c80
add esp, 4
cmp eax, 0x26
je 0x401e5c
push 0x26
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00403020
add esp, 0xc
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.00402b65
mov esp, ebp
pop ebp
ret

Function at 0x401e6b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov esi, esp
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.00402b65
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401eb9
xor eax, eax
jmp 0x401f2e
mov esi, esp
push 2
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, esp
call fcn.00402b65
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401edf
xor eax, eax
jmp 0x401f2e
mov esi, esp
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402c80
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.00402b65
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401f16
xor eax, eax
jmp 0x401f2e
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00402b65
mov eax, 1
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.00402b65
mov esp, ebp
pop ebp
ret
Function at 0x402331
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
lea edi, [ebp - 0x20c]
mov ecx, 0x83
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x20c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0x21
mov esi, esp
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, esp
call fcn.00402b65
push str._vcapi.exe
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00402e90
add esp, 8
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00401d9b
add esp, 8
mov esi, esp
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0x40abf4
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp esi, esp
call fcn.00402b65
test eax, eax
jne 0x4023f2
jmp 0x40247a
lea edx, [ebp - 0x108]
push edx
call fcn.00402c80
add esp, 4
cmp eax, 0x26
jne 0x40241b
cmp dword [ebp - 4], 0x21
jne 0x40241b
lea eax, [ebp - 0x108]
push eax
call fcn.004021d3
add esp, 4
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.00403020
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
call fcn.00401bdd
add esp, 4
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00401e6b
add esp, 8
lea edx, [ebp - 0x108]
push edx
call fcn.00401f3d
add esp, 4
test eax, eax
jne 0x40246b
jmp 0x40247a
lea eax, [ebp - 0x108]
push eax
call fcn.00402075
add esp, 4
pop edi
pop esi
add esp, 0x20c
cmp ebp, esp
call fcn.00402b65
mov esp, ebp
pop ebp
ret
Function at 0x4029c5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
lea edi, [ebp - 0x25c]
mov ecx, 0x97
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [str.073110116101114110101116082101097100070105108101]
push ecx
call fcn.004013f3
add esp, 8
mov esi, esp
lea edx, [ebp - 0x104]
push edx
mov edi, esp
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00402b65
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00402b65
mov dword [0x40acf8], eax
call fcn.00401d70
test eax, eax
jne 0x402a60
call fcn.00402331
call fcn.0040260d
call fcn.004018cb
xor eax, eax
jmp 0x402b50
mov eax, dword [ebp + 0x10]
push eax
call fcn.00402c80
add esp, 4
test eax, eax
je 0x402a85
push str.start
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402fa0
add esp, 8
test eax, eax
jne 0x402af1
push 0x44
push 0
lea edx, [ebp - 0x25c]
push edx
call fcn.00403020
add esp, 0xc
mov dword [ebp - 0x230], 1
mov word [ebp - 0x22c], 5
push str.__start
push 0x40abf4
call fcn.00402e90
add esp, 8
mov esi, esp
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x25c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40abf4
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp esi, esp
call fcn.00402b65
xor eax, eax
jmp 0x402b50
call fcn.00402985
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x208]
push edx
push 0x40abf4
call fcn.00401d9b
add esp, 8
lea eax, [ebp - 0x208]
push eax
call fcn.00402c80
add esp, 4
cmp eax, 0x26
jne 0x402b46
lea ecx, [ebp - 0x208]
push ecx
call fcn.00402075
add esp, 4
call fcn.0040260d
mov eax, 1
pop edi
pop esi
add esp, 0x25c
cmp ebp, esp
call fcn.00402b65
mov esp, ebp
pop ebp
ret 0x10