joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bb3e0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004b48f6
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x46b373
xor al, al
jmp 0x46b49f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x46b395
xor al, al
jmp 0x46b49f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x46b3a8
xor al, al
jmp 0x46b49f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x46b3bc
xor al, al
jmp 0x46b49f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004a8b32
test eax, eax
jne 0x46b3f0
xor al, al
jmp 0x46b49f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x691734
mov dword [esp + 0x20], ebp
call fcn.004b48f6
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004b1670
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004b16c7
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x46b484
mov ax, word [ebx]
test ax, ax
je 0x46b476
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0046b4c0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x46b45a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004b16c7
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x46ba00
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004b2e1d
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x46ba46
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00495c38
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x6aeefc
push ecx
call fcn.00497402
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x46d100
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x46d14a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x46d179
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x46d1bb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x478bf0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0047f000
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x478ce9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, esi
call fcn.0040d830
test eax, eax
jne 0x478ce9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, esi
call fcn.0040d830
test eax, eax
jne 0x478ce9
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00496f20
mov esi, eax
add esp, 8
test esi, esi
jne 0x478cba
lea eax, [esp + 0x10]
push 0x6b0848
push eax
call fcn.00496f20
mov esi, eax
add esp, 8
test esi, esi
jne 0x478cba
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x478cbd
mov byte [esi], 0
push 0x6b0010
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x47ef40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4bc088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x47eff0
mov eax, dword [0x6b192c]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004aac33
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004aac82
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004aabdf
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47efd7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x47efd7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004aa84f
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4820f0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bc510
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x482297
mov ecx, dword [0x6b192c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4821ec
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00480e10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004aa93c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004aa84f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6b0010
call fcn.004aa8bd
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004811d0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004aa93c
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004aa84f
lea ecx, [esp + 0xc]
call fcn.004aad17
mov ecx, dword [esp + 0xc]
push 0x6b0a4c
push ecx
call fcn.00495d64
add esp, 8
test eax, eax
je 0x482214
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x48214d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004aa84f
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004aa84f
jmp 0x48229b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00481e90
test eax, eax
push 0
je 0x48227f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00480530
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x482265
cmp eax, 0x64
jg 0x482253
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4821f0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4821f0
cmp eax, 0x64
jge 0x4821ec
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4821f0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00480530
mov esi, eax
jmp 0x4821f0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4822a5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x489750
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4897b6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4897b6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x489797
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x48a2f0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0048a440
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x48a310
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x48a2f1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0048a440
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x48a310
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x48a340
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x48a397
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x48a3ad
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0048a3d0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x48a3d0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x48a460
Capabilities:
Get socket status

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

Disassembly:
push 0xffffffffffffffff
push 0x4bc8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048a4d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048a550
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048a550
lea ecx, [esi + 0xc]
call fcn.004aa7da
lea ecx, [esi + 0x10]
call fcn.004aa7da
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048cd80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048cd80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048cd80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004aa84f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004aa84f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x48b5c8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bcb18
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x48b5d8
call fcn.0048baf0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x48b6bb
cmp byte [edi], 0
je 0x48b6bb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x48b5fd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0048a2f0
test eax, eax
jne 0x48b61d
push 0x6b1538
lea ecx, [esi + 0x38]
call fcn.004aa98c
jmp 0x48b6bb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0048a340
test eax, eax
jne 0x48b64c
mov ecx, esi
call fcn.0048a440
push edi
add esi, 0x38
push 0x6b1514
push esi
call fcn.004a7be3
add esp, 0xc
jmp 0x48b6bb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0048c370
test eax, eax
je 0x48b6b4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0048b790
test eax, eax
jne 0x48b6d0
push edi
lea eax, [esi + 0x38]
push 0x6b14f0
push eax
call fcn.004a7be3
add esp, 0xc
mov ecx, esi
call fcn.0048baf0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x48b778
mov ecx, dword [0x6b192c]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004a7be3
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0048a3f0
test eax, eax
jne 0x48b73a
push 0x6b14d4
lea ecx, [esi + 0x38]
call fcn.004aa98c
jmp 0x48b74a
push 0xfa
mov ecx, esi
call fcn.0048c370
test eax, eax
jne 0x48b767
mov ecx, esi
call fcn.0048baf0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004aa84f
jmp 0x48b6bb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004aa84f
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x48e040
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4bcde8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.004b0a79
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0
call fcn.004b0a79
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.004b0a79
mov edi, dword [esp + 0x68]
lea eax, [esp + 0x40]
push eax
push 0x18
push edi
mov byte [esp + 0x6c], 2
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 0x1a0d8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
lea ecx, [esp + 0x10]
push ebp
call fcn.004b0b30
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x6c]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.004b0b30
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ecx
push eax
call ebx
push eax
lea ecx, [esp + 0x34]
call fcn.004b0b30
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x48e11b
mov ecx, dword [esp + 0x24]
push edi
push ecx
call ebx
jmp 0x48e11d
xor eax, eax
mov edi, dword [esp + 0x68]
mov dword [esi + 0x1a2ec], eax
test edi, edi
je 0x48e135
mov edx, dword [esp + 0x34]
push edi
push edx
call ebx
jmp 0x48e137
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1a2f0], eax
lea eax, [esp + 0x20]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, ecx
mov ecx, dword [esp + 0x74]
mov edx, ecx
imul edx, dword [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x1a2ec]
test eax, eax
je 0x48e186
mov edx, dword [esp + 0x24]
push eax
push edx
call ebx
mov esi, dword [esi + 0x1a2f0]
test esi, esi
je 0x48e198
mov eax, dword [esp + 0x34]
push esi
push eax
call ebx
lea ecx, [esp + 0x10]
call fcn.004b0b67
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.004b0bae
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0
call fcn.004b0bae
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.004b0bae
mov ecx, dword [esp + 0x58]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc
Function at 0x492060
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, ebx
mov esi, ecx
mov ecx, dword [esp + 0x14]
and edi, 0xff
or edi, 0x200
mov edx, dword [esi + 0x19d6c]
shl edi, 8
and eax, 0xff
and ecx, 0xff
or edi, eax
shl edi, 8
or edi, ecx
push edi
push edx
call dword [sym.imp.GDI32.dll_GetNearestPaletteIndex]
mov ecx, dword [esi + 0x19d70]
xor edx, edx
mov dl, byte [ecx + eax*4 + 6]
mov ebp, edx
xor edx, edx
mov dl, byte [ecx + eax*4 + 5]
or ebp, 0x200
shl ebp, 8
or ebp, edx
xor edx, edx
mov dl, byte [ecx + eax*4 + 4]
shl ebp, 8
or ebp, edx
cmp ebp, edi
je 0x492166
mov cx, word [ecx + 2]
mov eax, dword [esi + 0x1a180]
mov edx, ecx
dec eax
and edx, 0xffff
cmp edx, eax
jge 0x492166
cmp cx, 0xff
jae 0x492166
mov eax, dword [esi + 0x19d6c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x19d70]
mov dl, byte [esp + 0x14]
xor ecx, ecx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 4], dl
mov eax, dword [esi + 0x19d70]
mov dl, byte [esp + 0x18]
xor ecx, ecx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 5], dl
mov eax, dword [esi + 0x19d70]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 6], bl
mov eax, dword [esi + 0x19d70]
mov dx, word [eax + 2]
mov byte [eax + edx*4 + 7], 0
mov eax, dword [esi + 0x19d70]
inc word [eax + 2]
mov eax, dword [esi + 0x19d70]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [esi + 0x19d6c], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x492870
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bcf11
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
lea edi, [esi + 0x18]
mov dword [esi], fcn.004766e0
mov ecx, edi
call fcn.00492170
push fcn.00492840
push 0x492800
push 0x15
lea eax, [esi + 0x34]
xor ebp, ebp
push 0x1c
push eax
mov dword [esp + 0x2c], ebp
call fcn.00496cd4
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x691ec0
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], 0xffffff
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], 1
mov dword [esi + 0x2c], ebp
call fcn.00492370
mov dword [esi + 0x30], ebp
lea ecx, [esi + 0x280]
lea eax, [esi + 0x38]
mov edx, 0x15
mov dword [eax], 1
mov dword [ecx], ebp
add eax, 0x1c
add ecx, 4
dec edx
jne 0x4928f9
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4acc30
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4acc68
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004aacaa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aac82
jmp 0x4acc74
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4ae42b
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 0x4ae46d
call fcn.004b48f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ae46d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ae464
xor eax, eax
jmp 0x4ae475
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ae47b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b4e26
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 0x4b4e54
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b4e72
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b4d8c
jmp 0x4b4e72
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b4e72
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b4d8c
test edi, edi
mov eax, edi
jne 0x4b4e5c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4010c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor ecx, ecx
jmp 0x4010d0
mov eax, ecx
shr eax, 1
test cl, 1
je 0x4010de
xor eax, 0xedb88320
test al, 1
je 0x4010eb
shr eax, 1
xor eax, 0xedb88320
jmp 0x4010ed
shr eax, 1
test al, 1
je 0x4010fa
shr eax, 1
xor eax, 0xedb88320
jmp 0x4010fc
shr eax, 1
test al, 1
je 0x401109
shr eax, 1
xor eax, 0xedb88320
jmp 0x40110b
shr eax, 1
test al, 1
je 0x401118
shr eax, 1
xor eax, 0xedb88320
jmp 0x40111a
shr eax, 1
test al, 1
je 0x401127
shr eax, 1
xor eax, 0xedb88320
jmp 0x401129
shr eax, 1
test al, 1
je 0x401136
shr eax, 1
xor eax, 0xedb88320
jmp 0x401138
shr eax, 1
test al, 1
je 0x401145
shr eax, 1
xor eax, 0xedb88320
jmp 0x401147
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
add ecx, 1
cmp ecx, 0x100
jl 0x4010d0
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x401191
push ebx
push edi
jmp 0x401170
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ebp + edi*4 - 0x400]
add ecx, 1
cmp ecx, edx
jb 0x401170
pop edi
pop ebx
not eax
mov esp, ebp
pop ebp
ret