joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442458
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x442474
cmp dword [esi + 4], 0
je 0x4424a1
test byte [ebx + 0x55], 1
jne 0x442493
mov eax, ebx
call fcn.004410b0
test eax, eax
jne 0x442493
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4425b1
mov edx, esi
mov eax, ebx
call fcn.00441f78
jmp 0x4425b1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4425aa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00444228
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043ed4c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00442458
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00444228
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4425b1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448ad4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4767dc]
cmp byte [eax + 0xc], 0
je 0x448c41
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x448c3a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x477c1c], 0
jne 0x448b28
push 0x448c48
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x448c50
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c1c], eax
cmp dword [0x475bdc], 0
jne 0x448c23
push 0x448c60
call sub.kernel32.dll_LoadLibraryA
mov dword [0x475bdc], eax
cmp dword [0x475bdc], 0
je 0x448c23
push 0x448c6c
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c20], eax
push 0x448c7c
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c24], eax
push 0x448c90
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c28], eax
push 0x448ca8
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c2c], eax
push 0x448cc0
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c30], eax
push 0x448cd4
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c34], eax
push 0x448cec
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c38], eax
push 0x448d04
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c3c], eax
push 0x448d20
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c40], eax
push 0x448d2c
mov eax, dword [0x475bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477c44], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448c41
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44cf04
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040472c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44cf53
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404994
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454da0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x454df0]
test si, 4
je 0x454db4
or bl, 1
test si, 8
je 0x454dbe
or bl, 4
test si, 1
je 0x454dc8
or bl, 8
test si, 2
je 0x454dd2
or bl, 0x10
test si, 0x10
je 0x454ddc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454deb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x454df4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x454e2c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454e0d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454e1c
or bl, 4
test esi, 0x20000000
je 0x454e27
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45b448
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b45a
add esp, 0xfffffff0
call fcn.00403ca0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004244a4
mov eax, dword [0x476484]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b7ec
mov eax, dword [0x476490]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b7f8
mov eax, ebx
call fcn.0045b804
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4196c4]
call fcn.00403924
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4196c4]
call fcn.00403924
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4196c4]
call fcn.00403924
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4196c4]
call fcn.00403924
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4196c4]
call fcn.00403924
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x457ccc
push eax
push 0
push 0
mov eax, dword [0x4765dc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x425eb4]
call fcn.004272f8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x425eb4]
call fcn.004272f8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x425eb4]
call fcn.004272f8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045bc24
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bb00
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bb00
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bb00
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b597
call fcn.00403cf8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45b8e4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ba8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45ba70
mov dl, 1
mov eax, dword [0x419d28]
call fcn.00403924
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040472c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45ba5f
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.00448e34
test al, al
je 0x45ba52
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45baa0
lea eax, [ebp - 0x254]
call fcn.00409b58
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45ba52
xor eax, eax
push ebp
push 0x45ba4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45bad8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ba34
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404994
mov edx, dword [ebp - 0x260]
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 0x45ba34
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ba52
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45b955
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e4c0
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 0x45ba96
lea eax, [ebp - 0x260]
call fcn.0040472c
ret

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

Disassembly:
push ecx
mov eax, dword [0x477c60]
cmp byte [eax + 0xa5], 0
jne 0x45c435
cmp dword [0x477c78], 0
jne 0x45c3f6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c380
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x477c78], eax
cmp dword [0x477c74], 0
jne 0x45c411
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x477c74], eax
cmp dword [0x477c7c], 0
jne 0x45c435
push esp
push 0
push 0
push 0x45c324
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x477c7c], eax
pop edx
ret
Function at 0x45c52c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c543
add esp, 0xfffffff0
call fcn.00403ca0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004244a4
mov eax, dword [0x4765c4]
cmp word [eax + 2], 0
jne 0x45c56b
mov eax, dword [0x4765c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045dc08
mov eax, dword [0x476674]
cmp word [eax + 2], 0
jne 0x45c585
mov eax, dword [0x476674]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045de00
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4196c4]
call fcn.00403924
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4196c4]
call fcn.00403924
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x426664]
call fcn.0042c57c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45c70c
mov eax, dword [0x4764e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c94c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e380
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4764e4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d2b0
test eax, eax
je 0x45c67a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004094a0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d2d8
test eax, eax
je 0x45c68e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404994
mov eax, dword [0x4763d8]
cmp byte [eax], 0
jne 0x45c6c2
mov eax, ebx
call fcn.0045c834
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045e55c
mov eax, ebx
call fcn.0045ef0c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c702
call fcn.00403cf8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45caa8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x477c60]
cmp dword [eax + 0x30], 0
je 0x45cb52
cmp dword [ebx + 0x94], 0
jne 0x45cb4c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45ca38
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45cb4c
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_GetWindowLongA
test al, 8
je 0x45cb12
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45cb4c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041bf50
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45cb21
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d630
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45d665
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040481c
jmp 0x45d672
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404780
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45e738
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e779
mov eax, esi
call fcn.0044452c
test al, al
je 0x45e779
mov eax, dword [ebx + 0x84]
call fcn.00444228
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e779
push 0
mov eax, dword [ebx + 0x84]
call fcn.00444228
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47236c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea ebx, [ebp - 0x10]
push esi
push edi
push eax
push ebx
push ecx
push edx
lea edi, [0x475fb8]
mov esi, dword [ebp - 4]
mov ax, word [ebp - 8]
mov dx, word [ebp - 6]
mov ecx, dword [ebp - 0xc]
or ecx, ecx
je 0x4723bd
xor ebx, ebx
mov bl, al
lodsb al, byte [esi]
xor bl, al
mov al, ah
mov ah, dl
mov dl, dh
xor dh, dh
shl bx, 1
shl bx, 1
add ebx, edi
xor ax, word [ebx]
xor dx, word [ebx + 2]
loop 0x47239d
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], dx
pop edx
pop ecx
pop ebx
pop eax
pop edi
pop esi
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4726d8
Capabilities:
Copy file
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bcc
mov eax, dword [ebp - 8]
call fcn.00404bcc
xor eax, eax
push ebp
push 0x47285b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040910c
test al, al
je 0x47273c
mov eax, dword [ebp - 8]
call fcn.00472658
test al, al
jne 0x472740
xor ebx, ebx
jmp 0x472742
mov bl, 1
test bl, bl
je 0x47278a
lea eax, [ebp - 0x111]
push eax
push 0
push 0x472868
lea edx, [ebp - 0x218]
mov eax, dword [0x477cf8]
call fcn.004092bc
mov eax, dword [ebp - 0x218]
call fcn.00404bdc
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x111]
mov ecx, 0x105
call fcn.00404994
jmp 0x472795
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004047c4
push 0
push 0
push 3
lea eax, [ebp - 0x211]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bdc
push eax
push 0
call sub.URLMON.DLL_URLDownloadToCacheFileA
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x211]
mov ecx, pe_nt_image_headers32
call fcn.00404994
mov eax, dword [ebp - 0x21c]
call fcn.0040910c
test al, al
je 0x472830
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404bdc
mov esi, eax
push esi
lea eax, [ebp - 0x211]
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x220]
lea edx, [ebp - 0x211]
mov ecx, pe_nt_image_headers32
call fcn.00404994
mov eax, dword [ebp - 0x220]
call fcn.00409224
test bl, bl
je 0x472830
mov edx, esi
lea eax, [ebp - 0x224]
call fcn.0040491c
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 8]
call fcn.00472538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472862
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.00404750
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404750
ret
Function at 0x47286c
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x472875
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bcc
mov eax, dword [ebp - 8]
call fcn.00404bcc
xor eax, eax
push ebp
push 0x4729fe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0x472a0c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov eax, esi
call fcn.0040472c
cmp dword [ebp - 0x10], 0
je 0x4729e3
xor eax, eax
push ebp
push 0x4729dc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80400000
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404bdc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4729c5
xor eax, eax
push ebp
push 0x4729be
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x10000
jmp 0x472939
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x10018], 0
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x18], eax
add ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp + ebx - 0x10018]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x47295c
cmp dword [ebp - 0x14], 0
ja 0x472925
mov dword [ebp - 0x18], 0x10000
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea edi, [ebp - 0x10018]
push edi
push ebx
push edi
mov eax, dword [ebp - 4]
call fcn.00404bdc
push eax
call sub.encipher.dll_Decipher
test eax, eax
jne 0x4729a0
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x10018], 0
mov eax, esi
lea edx, [ebp - 0x10018]
call fcn.0040491c
jmp 0x4729a7
mov eax, esi
call fcn.0040472c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4729c5
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4729e3
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472a05
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404750
ret
Function at 0x964790
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x9647bf
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.009654cc
jmp 0x9647dd
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00964718
mov edi, eax
test ebx, ebx
je 0x9647dd
cmp dword [esi], 0
je 0x9647dd
dec ebx
jmp 0x9647c6
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x97803c], 0x8088405
inc edx
mov dword [0x97803c], edx
mul edx
mov eax, edx
ret

Function at 0x9649a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.sect_9]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x964a40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x964a20
xor eax, eax
push ebp
push 0x964a19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x964a5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x964a20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.sect_9]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.sect_9], ax
mov esp, ebp
pop ebp
ret