joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4157d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4c90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [eax + 0x1c]
push edi
mov dword [ebp - 0x10], esp
push ecx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
xor esi, esi
cmp eax, esi
je 0x41592d
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, esi
je 0x41592d
lea edx, [ebp - 0x18]
push esi
lea ecx, [ebp - 0x14]
push edx
push ecx
push eax
call fcn.0041daf5
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x20], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp edi, esi
je 0x415923
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x415923
mov eax, dword [ebx + 0x164]
cmp eax, esi
je 0x415867
push eax
call fcn.00485006
add esp, 4
mov eax, dword [ebx + 0x168]
mov dword [ebx + 0x164], esi
cmp eax, esi
mov dword [ebx + 0x160], esi
mov dword [ebx + 0x15c], esi
je 0x41588c
push eax
call fcn.00485006
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x168], esi
imul eax, dword [ebp - 0x18]
mov dword [ebx + 0x16c], esi
mov dword [ebx + 0x170], esi
lea edi, [eax + eax*2]
mov dword [ebp - 4], esi
push edi
call fcn.00484fdd
mov esi, dword [ebp - 0x1c]
mov ecx, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebx + 0x168], eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
mov dword [ebp - 4], 0xffffffff
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00416060
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push esi
mov dword [ebx + 0x170], eax
mov dword [ebx + 0x16c], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.00499790
mov eax, dword [eax + 4]
push 0xffffffffffffffff
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x90]
mov eax, dword [ebp + 8]
mov ecx, ebx
push eax
call fcn.00413780
xor esi, esi
push esi
push esi
push esi
mov ecx, ebx
call fcn.0048b86d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x417180
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a4e60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [edi], 0x4aae68
mov eax, dword [edi + 0xe8]
mov esi, dword [sym.imp.USER32.dll_DestroyCursor]
test eax, eax
mov dword [esp + 0x1c], 4
je 0x4171c2
push eax
call esi
mov eax, dword [edi + 0xec]
test eax, eax
je 0x4171cf
push eax
call esi
mov ebx, dword [edi + 0xc0]
test ebx, ebx
jle 0x41720d
xor esi, esi
test ebx, ebx
jle 0x41720d
push ebp
lea ebp, [edi + 0xb8]
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, ebp
call fcn.00401310
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
call fcn.00484a00
inc esi
cmp esi, ebx
jl 0x4171e6
pop ebp
lea ecx, [edi + 0xe4]
mov byte [esp + 0x1c], 3
call fcn.00484a00
lea ecx, [edi + 0xb8]
mov byte [esp + 0x1c], 2
call fcn.0047f544
lea ecx, [edi + 0x88]
mov byte [esp + 0x1c], 1
call fcn.0049d8fe
lea ecx, [edi + 0x84]
mov byte [esp + 0x1c], 0
call fcn.00484a00
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.00489873
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41baf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4a5398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
call fcn.00499790
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x34]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41bc24
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, edi
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x3c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ebx
call fcn.0041bc40
mov edi, eax
xor esi, esi
test edi, edi
je 0x41bbdd
mov cl, byte [ebx + 0xe]
mov esi, 1
shl esi, cl
push 0
lea ecx, [esp + 0x18]
call fcn.004884ef
mov ecx, dword [ebx]
mov eax, dword [esp + 0x18]
push 0
push ebx
lea edx, [ecx + esi*4]
mov dword [esp + 0x38], 0
add edx, ebx
push edx
push 4
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ecx, dword [esp + 0x40]
mov esi, eax
push esi
call fcn.00488797
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00488561
xor ecx, ecx
push ebp
test esi, esi
setne cl
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x41bc02
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41bc02
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
pop ebp
je 0x41bc24
test esi, esi
je 0x41bc24
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x41c350
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a5448
push eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004887ee
mov ecx, dword [esp + 0x38]
call fcn.004887ee
call fcn.00499790
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x30]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x41c3b5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, edi
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x3c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.0041bec0
mov esi, dword [ebx]
mov edi, eax
add esp, 8
xor eax, eax
cmp esi, 0x28
jne 0x41c41e
mov cx, word [ebx + 0xe]
cmp cx, 8
ja 0x41c432
mov eax, 1
shl eax, cl
shl eax, 2
jmp 0x41c432
mov cx, word [ebx + 0xa]
cmp cx, 8
ja 0x41c432
mov eax, 1
shl eax, cl
lea eax, [eax + eax*2]
add esi, eax
push 0
lea ecx, [esp + 0x14]
add esi, ebx
call fcn.004885a3
test edi, edi
mov dword [esp + 0x2c], 0
je 0x41c468
mov ecx, dword [esp + 0x3c]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00487e0d
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
push 0
push ebx
sbb eax, eax
push esi
and eax, edx
push 4
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
test esi, esi
je 0x41c49b
mov ecx, dword [esp + 0x38]
push eax
call fcn.00488797
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00488615
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x41c4c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c4c8
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x24]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x424db0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x424ddd
push esi
call fcn.00437048
cmp byte [esi + 0x40], 0
pop ecx
je 0x424dd6
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x424e4c
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x424e41
mov eax, dword [esi + 8]
test eax, eax
je 0x424dfe
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x424e3d
cmp eax, 2
je 0x424e41
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x424df3
cmp eax, 3
je 0x424e22
cmp eax, 1
jne 0x424df3
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x424df3
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x424df3
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x424e6a
cmp eax, 0xcc
je 0x424e6a
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.00424e73
pop ecx
pop esi
ret
Function at 0x43b21a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x43b22a
xor eax, eax
jmp 0x43b3f3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x43b3ab
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4abf0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4abf0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4abf0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4abf0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4abf0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4abf0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4abf0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x4abf0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x43b233
cmp dword [ebp + 0x10], 0
je 0x43b3ed
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x4abf0c]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x43b3b1
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x43bf50
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
jne 0x43bfa3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
xor dx, dx
mov al, byte [eax]
mov dl, al
cmp dx, word [ecx + 0x110]
jbe 0x43bf86
push 0x4d28e4
push ecx
call fcn.00437d30
add esp, 8
add esp, 8
ret
mov byte [esp], al
lea eax, [esp]
push 1
push eax
push str.bKGD
push ecx
call fcn.0043b480
add esp, 0x10
add esp, 8
ret
test al, 2
je 0x43bffd
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
lea edx, [esp + 4]
mov cx, word [esi + 2]
push ecx
push edx
call fcn.0043b460
xor eax, eax
lea ecx, [esp + 0xe]
mov ax, word [esi + 4]
push eax
push ecx
call fcn.0043b460
xor edx, edx
lea eax, [esp + 0x18]
mov dx, word [esi + 6]
push edx
push eax
call fcn.0043b460
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push 6
push ecx
push str.bKGD
push edx
call fcn.0043b480
add esp, 0x28
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
lea edx, [esp]
mov ax, word [ecx + 8]
push eax
push edx
call fcn.0043b460
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 2
push eax
push str.bKGD
push ecx
call fcn.0043b480
add esp, 0x18
add esp, 8
ret

Function at 0x473809
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d7060
cmp edx, dword [eax]
je 0x47382b
add eax, 8
inc ecx
cmp eax, 0x4d70f0
jl 0x47381c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d7060]
jne 0x473959
mov eax, dword [0x4f3ee8]
cmp eax, 1
je 0x473933
test eax, eax
jne 0x47385c
cmp dword [0x4d6518], 1
je 0x473933
cmp edx, 0xfc
je 0x473959
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x473893
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0046c630
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0046c720
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4738d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0046c720
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0d8c
push edi
call fcn.0046b130
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0046c630
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0046c640
lea eax, [ebp - 0xa0]
push 0x4c0d6c
push eax
call fcn.0046c640
push dword [esi + 0x4d7064]
lea eax, [ebp - 0xa0]
push eax
call fcn.0046c640
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0047893e
add esp, 0x2c
pop edi
jmp 0x473959
lea eax, [ebp + 8]
lea esi, [esi + 0x4d7064]
push 0
push eax
push dword [esi]
call fcn.0046c720
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 0x47ce90
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.0046c5c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x47cf5b
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 0x47cf5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x47cf0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x47cf19
or bh, 8
and edi, 0x8000000
je 0x47cf34
mov eax, dword [0x4f569c]
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 0x47cf5b
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 0x47d330
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 0x47d35b
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 0x47d37f
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 0x47d39a
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 0x480377
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x480399
cmp dword [edi + 0x3c], 0
jne 0x480399
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00499790
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004803c6
pop edi
pop esi
pop ebx
ret 8

Function at 0x480414
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00499790
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x480445
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00480458
pop edi
pop esi
pop ebx
ret 8

Function at 0x481a06
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x481a3e
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.00484ea7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00484e7f
jmp 0x481a4a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48360c
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 0x48364e
call fcn.00499790
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48364e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x483645
xor eax, eax
jmp 0x483656
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048365c
pop edi
pop esi
pop ebx
ret 4
Function at 0x499f83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00499790
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x499fc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x499fc0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x499fc4
xor eax, eax
jmp 0x49a042
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00484fdd
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x499ffc
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x499fe6
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0049a133
push ebx
mov edi, eax
call fcn.00485006
test edi, edi
pop ecx
je 0x49a03e
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00499efc
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0049a047
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x49b9bf
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 0x49b9ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49ba0b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049b925
jmp 0x49ba0b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49ba0b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049b925
test edi, edi
mov eax, edi
jne 0x49b9f5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8