joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x46f868
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jb 0x46f868
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x46f860
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
add edx, edx
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x18]
movzx edx, word [ebp - 0x2e]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
jmp 0x46f868
inc dword [ebp - 0x20]
dec dword [ebp - 0x38]
jne 0x46f7f7
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x470d5c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov eax, dword [0x48ebec]
call fcn.00471170
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x470dc4
xor eax, eax
push ebp
push 0x470db3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x470da9
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov eax, edx
xor edx, edx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470dd4
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4722c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
test dl, dl
je 0x4722d6
add esp, 0xfffffff0
call fcn.00403bec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [0x48ebe4], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x4723d0
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4723ae
mov dword [ebp - 0x1c], 0x105
mov eax, dword [ebp - 0x1c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00407590
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x47240c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4723a5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x47239c
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x416b04]
call fcn.0041ac58
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00472410
mov eax, dword [ebp - 0x10]
call fcn.004038b4
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4723c6
call fcn.00403c44
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x474494
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
push 0x474564
push 0x47457c
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47452f
mov eax, 2
call fcn.00402ac0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 1
call dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x47451d
mov eax, dword [ebp - 0xc]
call fcn.00402af0
mov eax, dword [ebp - 0x10]
add eax, 2
add eax, eax
call fcn.00402ac0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
add eax, 2
mov edx, eax
add edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00407590
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
call dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404eec
jmp 0x474525
mov eax, dword [ebp - 4]
call fcn.00404da4
mov eax, dword [ebp - 0xc]
call fcn.00402af0
jmp 0x47455d
mov eax, 0x106
call fcn.00402ac0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404ebc
mov eax, dword [ebp - 0xc]
call fcn.00402af0
mov esp, ebp
pop ebp
ret
Function at 0x4762bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x4762e6
cmp dword [ebx + 0x64], 0
jne 0x4762e6
cmp dword [ebx + 0x6c], 0
jne 0x4762e6
mov edi, esi
jmp 0x47636d
cmp edi, 0xffffffff
jne 0x4762ee
dec edi
jmp 0x47636d
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x47636d
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004756b8
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x47633b
mov cx, word [esp]
sub cx, si
jmp 0x47633d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x476324
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x476363
mov cx, word [esp]
sub cx, si
jmp 0x476365
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x47634c
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4763ca
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.00476058
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4763b5
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4763ca
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4762c6
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x47c620
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x48ec80
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x47c642
shr eax, 1
xor eax, 0xedb88320
jmp 0x47c644
shr eax, 1
dec edx
jne 0x47c630
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x47c629
mov byte [0x48f080], 1
pop esi
pop ebx
ret

Function at 0x47c660
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x48f080], 0
jne 0x47c677
call fcn.0047c620
mov eax, edi
dec eax
test eax, eax
jl 0x47c6a0
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x48ec80]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x47c681
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x47ec74
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x47eca5
dec al
je 0x47ece1
dec al
je 0x47ed25
dec al
je 0x47ed90
jmp 0x47ee1a
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x47ee1a
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47ecb5
jmp 0x47ee1a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47ee1a
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47ecf1
jmp 0x47ee1a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47ee1a
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x47ed53
xor ebp, ebp
jmp 0x47ed64
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x47ed6d
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47ed35
jmp 0x47ee1a
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47ee1a
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x47ede8
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0047c6a8
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47eda4
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x482e88
Capabilities:
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00482e4c
test esi, esi
jne 0x482eb8
push 0
push 0
push 0
push 0
push 0x482f34
call sub.wininet.dll_InternetOpenA
mov dword [ebx + 4], eax
jmp 0x482ed4
push 0
mov eax, esi
call fcn.00404b84
mov edi, eax
push edi
push edi
push 3
push 0x482f34
call sub.wininet.dll_InternetOpenA
mov dword [ebx + 4], eax
push 4
lea eax, [ebp - 4]
push eax
push 2
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp + 8]
push eax
push 5
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp + 8]
push eax
push 6
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp + 8]
push eax
push 7
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp + 8]
push eax
push 8
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetSetOptionA
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x483010
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x483019
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2014], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4831c6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b84
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebx + 8], eax
push 0
mov eax, dword [ebx + 0x1c]
push eax
push 0
mov eax, dword [ebx + 0x10]
call fcn.00404b84
push eax
push 0x4831d8
mov eax, dword [ebp - 8]
call fcn.00404b84
push eax
mov eax, edi
call fcn.00404b84
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebx + 0xc], eax
mov eax, edi
mov edx, 0x4831ec
call fcn.00404ad0
jne 0x4830cd
cmp byte [ebx + 0x20], 1
jne 0x4830cd
push 0
push 0x3f
push 0x4831f4
mov eax, dword [ebx + 0xc]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebx + 0x14]
call fcn.00404984
push eax
mov eax, dword [ebx + 0x14]
call fcn.00404b84
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.wininet.dll_HttpSendRequestA
push 0x12c
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0xc]
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0xc], 0
jbe 0x483129
lea edx, [ebp - 0x2010]
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x10]
cmp dword [ebp - 0xc], 0
jne 0x4830fa
push 0
push 0
mov eax, esi
call fcn.0041a888
mov dword [ebp - 0xc], 0x2000
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2010]
xor ecx, ecx
mov edx, 0x2000
call fcn.00403248
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2010]
push eax
push 0x16
mov eax, dword [ebx + 0xc]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea edx, [ebp - 0x2014]
lea eax, [ebp - 0x2010]
call fcn.00409b10
mov edx, dword [ebp - 0x2014]
lea eax, [ebx + 0x18]
call fcn.00404718
mov eax, dword [ebx + 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebx + 8]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4831cd
lea eax, [ebp - 0x2014]
call fcn.004046c4
ret
Function at 0x401590
Capabilities:
Access peb ldr_data
Change the wallpaper

Disassembly:
push 0xffffffffffffffff
push 0x441ee6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov esi, ecx
push 7
call edi
push 0xe
mov dword [esi + 0x24], eax
call edi
push 0xf
mov dword [esi + 0x28], eax
call edi
push 4
mov dword [esi + 0x2c], eax
call edi
push 0xd
mov dword [esi + 0x30], eax
call edi
push 0x14
mov dword [esi + 0x34], eax
call edi
push 0x10
mov dword [esi + 0x38], eax
call edi
push 0x11
mov dword [esi + 0x3c], eax
call edi
push 0xf
mov dword [esi + 0x40], eax
call edi
push 0x14
mov dword [esi + 0x44], eax
call edi
push 0x10
mov dword [esi + 0x48], eax
call edi
mov edx, dword [esi + 0x38]
mov dword [esi + 0x4c], eax
mov eax, 0x14
xor ebx, ebx
mov ecx, eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 4], ebx
mov dword [esp + 0x14], 0x808080
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xc0c0c0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0xffffff
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x4459e8
mov dword [esp + 0x188], ebx
call fcn.0043ac13
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x14]
push 3
push ecx
push ebx
push 0xa1
push eax
call dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
push eax
lea ecx, [esp + 0x10]
call fcn.0042904d
push ebx
push 1
push 5
push 0x13
push 0x13
lea ecx, [esi + 0x1c]
call fcn.0041f488
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
push ecx
and eax, edx
mov edx, dword [esi + 0x20]
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0xc]
call fcn.004290a4
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x2c]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x154
push eax
push ebx
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xcc]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esi + 8], eax
mov byte [esi + 0x60], bl
mov byte [esi + 0x61], bl
mov dword [esp + 0xc], vtable.CGdiObject.0
lea ecx, [esp + 0xc]
mov dword [esp + 0x188], 1
call fcn.004290a4
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x180
ret
Function at 0x401730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x441f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
call fcn.0043ac13
mov edi, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
and edi, 0xffff
push 0xf1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x401780
xor al, al
jmp 0x40184b
call fcn.0043ac13
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x40179b
xor al, al
jmp 0x40184b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
jne 0x4017af
xor al, al
jmp 0x40184b
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x4459e8
mov dword [esp + 0x24], ebx
call fcn.0043ac13
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x18]
call fcn.0042904d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
push 0xc0c0c0
and eax, ecx
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.004290a4
cmp word [esi + 6], 0
lea edi, [esi + 8]
jbe 0x401830
mov ax, word [edi]
test ax, ax
je 0x401822
mov ecx, ebp
push eax
push ecx
mov ecx, dword [esp + 0x18]
inc ebp
call fcn.004019e0
xor ecx, ecx
inc ebx
mov cx, word [esi + 6]
add edi, 2
cmp ebx, ecx
jl 0x40180c
mov dword [esp + 0x14], vtable.CGdiObject.0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 1
call fcn.004290a4
mov al, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x401860
Capabilities:
Enumerate pe sections
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x441f20
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0043ac13
mov ebx, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
and ebx, 0xffff
push 0xf1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
xor ebp, ebp
cmp edi, ebp
jne 0x4018ac
xor al, al
jmp 0x4019be
call fcn.0043ac13
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4018c7
xor al, al
jmp 0x4019be
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4018db
xor al, al
jmp 0x4019be
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0xc], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0xc]
mov dword [esi + 0x10], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x14]
call fcn.0041f488
test eax, eax
jne 0x40190f
xor al, al
jmp 0x4019be
mov eax, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4459e8
mov dword [esp + 0x20], ebp
call fcn.0043ac13
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0042904d
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
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.004290a4
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4019a3
mov ax, word [ebx]
test ax, ax
je 0x401995
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004019e0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x401979
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004290a4
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 0x41d2e0
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.0040d250
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41d3ab
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 0x41d3ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41d35e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41d369
or bh, 8
and edi, 0x8000000
je 0x41d384
mov eax, dword [0xf5f9dc]
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 0x41d3ab
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