joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b10
Capabilities:
Create directory
Get common file path
Persist via run registry key

Disassembly:
sub esp, 0x104
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x19c]
push edi
test eax, eax
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersion
jne 0x402b30
mov esi, str.SoftwareMicrosoftWindowsCurrentVersion
lea eax, [ebx + 0xe4]
push eax
push str.RegisteredOwner
push esi
push 0x80000002
call fcn.00403a10
lea ecx, [ebx + 0xdc]
push ecx
push str.RegisteredOrganization
push esi
push 0x80000002
call fcn.00403a10
lea edx, [ebx + 0xf0]
push edx
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00403a10
lea eax, [ebx + 0xf4]
push eax
push str.Programs
push 0x426164
push 0x80000001
call fcn.00403a10
add esp, 0x40
lea ecx, [ebx + 0xf8]
push ecx
push str.Common_Desktop
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call fcn.00403a10
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [ebx + 0xfc]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004141e1
push str.PYJJ_
mov ecx, esi
call fcn.0041435a
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.IMERovasoft_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0xec]
call fcn.004141e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x4038b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4038d3
xor eax, eax
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x403910
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push 0x20006
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403948
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x403948
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
ret

Function at 0x403a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
lea eax, [esp + 0x14]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403acf
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push edi
push edx
call ebx
test eax, eax
jne 0x403ac4
cmp dword [esp + 0xc], 1
jne 0x403ac4
mov eax, dword [esp + 0x14]
push eax
call fcn.00413530
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push esi
push edx
push 0
push edi
push eax
call ebx
mov ecx, dword [esp + 0x18]
mov edi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
push esi
je 0x403aa8
call fcn.00413559
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x24]
call fcn.004141e1
push esi
call fcn.00413559
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x408b25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4271a8
cmp edx, dword [eax]
je 0x408b47
add eax, 8
inc ecx
cmp eax, 0x427238
jl 0x408b38
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4271a8]
jne 0x408c75
mov eax, dword [0x429bec]
cmp eax, 1
je 0x408c4f
test eax, eax
jne 0x408b78
cmp dword [0x426cec], 1
je 0x408c4f
cmp edx, 0xfc
je 0x408c75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408baf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407560
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407650
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408bf2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407650
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x420ebc
push edi
call fcn.0040a2e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407560
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407570
lea eax, [ebp - 0xa0]
push 0x420e9c
push eax
call fcn.00407570
push dword [esi + 0x4271ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407570
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a257
add esp, 0x2c
pop edi
jmp 0x408c75
lea eax, [ebp + 8]
lea esi, [esi + 0x4271ac]
push 0
push eax
push dword [esi]
call fcn.00407650
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40e960
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00405b00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40ea2b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40ea2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40e9de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40e9e9
or bh, 8
and edi, 0x8000000
je 0x40ea04
mov eax, dword [0x42b37c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40ea2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ee00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40ee2b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40ee4f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40ee6a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4126ad
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 0x4126ef
call fcn.0041bb70
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4126ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4126e6
xor eax, eax
jmp 0x4126f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004126fd
pop edi
pop esi
pop ebx
ret 4

Function at 0x41480d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x41483d
push edi
call ebx
push eax
call fcn.004157dc
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x414867
test byte [ebp - 4], 1
je 0x414867
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x414867
push edi
call ebx
push eax
call fcn.004157dc
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x41490d
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0041475a
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x414899
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0041475a
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x4148af
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0041475a
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4148d9
push 0
call ebx
push eax
call fcn.004157dc
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4148f7
push eax
call ebx
push eax
call fcn.004157dc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41490b
push eax
call ebx
push eax
call fcn.004157dc
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x414934
test byte [ebp - 4], 1
jne 0x414934
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x414934
push edi
call ebx
push eax
call fcn.004157dc
pop edi
pop ebx
leave
ret 8
Function at 0x41c6fd
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 0x41c72b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41c749
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041c663
jmp 0x41c749
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41c749
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041c663
test edi, edi
mov eax, edi
jne 0x41c733
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x41ceab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x41cf5b
mov ecx, 0x429be0
call fcn.0041c7ea
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x41cf39
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x41cf17
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41cf17
push ebx
push edi
push eax
call fcn.0041631e
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.004141e1
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x401ac0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 0x419
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esp, ebp
pop ebp
ret 4

Function at 0x403080
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x4030f1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x4030bd
cmp dword [ebp + 0xc], 0x43
je 0x4030b4
cmp dword [ebp + 0xc], 0x58
je 0x4030b4
cmp dword [ebp + 0xc], 0x41
je 0x4030b4
cmp dword [ebp + 0xc], 0x50
jne 0x4030bd
mov dword [ebp - 8], 1
jmp 0x4030c4
mov dword [ebp - 8], 0
mov cl, byte [ebp - 8]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x4030ea
cmp dword [ebp + 0xc], 0x74
je 0x4030ea
cmp dword [ebp + 0xc], 0x204
je 0x4030ea
cmp dword [ebp + 0xc], 0x205
jne 0x4030f1
mov eax, 1
jmp 0x4030f3
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4105dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x410624
call fcn.0040a66d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x410624
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x410640
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00410155
mov esi, eax
test edi, edi
je 0x41063e
test ebx, ebx
je 0x41063e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410e13
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45ead8
call fcn.0042dc65
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410e38
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x410e7e
lea ecx, [ebp - 0x10]
call fcn.004012a0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409636
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401370
mov eax, esi
call fcn.0042dd3d
ret 8
Function at 0x412e55
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], 0x465184
test eax, eax
jne 0x412e80
call fcn.0040a66d
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x412ea3
push eax
push dword [esi + 4]
call fcn.00412ddb
push esi
push eax
mov ecx, 0x47ee10
call fcn.00412a62
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x413726
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x45ec05
call fcn.0042dc65
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004136e6
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], 0x465214
call fcn.004012a0
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x41378c
push eax
push dword [esi + 8]
call fcn.00412ddb
push dword [esi + 0xc]
mov ecx, 0x47ee10
push eax
call fcn.00412a62
mov eax, esi
call fcn.0042dd3d
ret 0x18

Function at 0x416057
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41607b
cmp dword [edi + 0x54], 0
jne 0x41607b
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040a66d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00416018
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41c3fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0040a66d
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x41c42a
xor eax, eax
jmp 0x41c4d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x41c423
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c423
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040852b
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x41c481
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x41c470
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0041b150
push edi
mov ebx, eax
call fcn.00408565
pop ecx
test ebx, ebx
je 0x41c4c3
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0041b812
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0041b8c6
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x42c3c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b870]
jne 0x42c3d3
repz ret
jmp fcn.004336de
Function at 0x43bdf4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00433042
and dword [ebp - 4], 0
cmp dword [0x47fcfc], 0
mov ebx, eax
jne 0x43bea5
push 0x46894c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43bf56
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x468940
push edi
call esi
test eax, eax
je 0x43bf56
push eax
call fcn.00432fd0
mov dword [esp], 0x468930
push edi
mov dword [0x47fcfc], eax
call esi
push eax
call fcn.00432fd0
mov dword [esp], 0x46891c
push edi
mov dword [0x47fd00], eax
call esi
push eax
call fcn.00432fd0
mov dword [esp], 0x468900
push edi
mov dword [0x47fd04], eax
call esi
push eax
call fcn.00432fd0
pop ecx
mov dword [0x47fd0c], eax
test eax, eax
je 0x43bea5
push 0x4688e8
push edi
call esi
push eax
call fcn.00432fd0
pop ecx
mov dword [0x47fd08], eax
mov eax, dword [0x47fd08]
cmp eax, ebx
je 0x43befd
cmp dword [0x47fd0c], ebx
je 0x43befd
push eax
call fcn.0043304b
push dword [0x47fd0c]
mov esi, eax
call fcn.0043304b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43befd
test edi, edi
je 0x43befd
call esi
test eax, eax
je 0x43bef4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43bef4
test byte [ebp - 0xc], 1
jne 0x43befd
or dword [ebp + 0x10], 0x200000
jmp 0x43bf36
mov eax, dword [0x47fd00]
cmp eax, ebx
je 0x43bf36
push eax
call fcn.0043304b
pop ecx
test eax, eax
je 0x43bf36
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43bf36
mov eax, dword [0x47fd04]
cmp eax, ebx
je 0x43bf36
push eax
call fcn.0043304b
pop ecx
test eax, eax
je 0x43bf36
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47fcfc]
call fcn.0043304b
pop ecx
test eax, eax
je 0x43bf56
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43bf58
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret