joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4937bb
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x529de4
call fcn.004e66c0
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx + 4], 0x207
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
jne 0x493989
cmp dword [esi + 0x40], 0
jne 0x493989
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
push 0x11
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 0xfe
test ax, ax
jne 0x493989
cmp dword [ebp + 8], 0x10
jne 0x493989
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0050143c
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi + 0x3c]
mov byte [ebp + 0xb], al
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
jne 0x493842
test al, al
je 0x493989
test al, al
jne 0x493861
push 0xd9
lea ecx, [esi + 0x4c]
mov dword [esi + 0x40], 1
call fcn.0043ee5d
mov eax, dword [0x5a3468]
jmp 0x49389b
cmp byte [ebp + 0xb], 0
jne 0x493882
push 0xda
lea ecx, [esi + 0x4c]
mov dword [esi + 0x40], 2
call fcn.0043ee5d
mov eax, dword [0x5a346c]
jmp 0x49389b
push 0xd8
lea ecx, [esi + 0x4c]
mov dword [esi + 0x40], 3
call fcn.0043ee5d
mov eax, dword [0x5a3464]
xor edx, edx
mov dword [ebp + 8], eax
cmp dword [esi + 0x50], edx
je 0x493986
mov eax, dword [0x58e2e4]
mov ecx, dword [0x58e2e0]
push edx
push eax
push ecx
mov dword [ebp - 4], edx
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x4938d8
and byte [ebp - 0x11], al
lea eax, [ebp - 0x11]
push 0x567048
push eax
call fcn.004e692b
and byte [esi + 0x44], 0
lea eax, [ebp - 0x30]
push eax
push 0x18
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
push dword [esi + 0x50]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [esi + 0x54], eax
mov eax, ecx
cdq
sub eax, edx
mov dword [esi + 0x58], ecx
mov edi, eax
mov eax, dword [esi + 0x54]
cdq
sub eax, edx
push 1
push dword [esi + 0x58]
sar eax, 1
push dword [esi + 0x54]
mov dword [esi + 0x64], eax
sar edi, 1
mov dword [esi + 0x68], edi
mov ecx, dword [ebx + 0xc]
movzx edx, word [ebx + 0xc]
shr ecx, 0x10
sub ecx, edi
sub edx, eax
push ecx
push edx
mov ecx, esi
call fcn.0050436f
push 5
mov ecx, esi
call fcn.005043ff
mov ecx, esi
call fcn.00504468
test eax, eax
je 0x49394a
mov eax, dword [eax + 0x1c]
push dword [esi + 0x1c]
mov dword [esi + 0x48], eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0050143c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCursor]
and dword [esi + 0x6c], 0
and dword [esi + 0x78], 0
jmp 0x493989
mov dword [esi + 0x40], edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4c0daa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x52c554
call fcn.004e66c0
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], esp
push 0
mov edi, ecx
push 0
push 0x418
mov dword [ebp - 0x1c], edi
push dword [edi + 0x1c]
call ebx
test eax, eax
jg 0x4c0f9c
call fcn.00518d40
mov esi, dword [eax + 0xc]
push 0xf1
movzx eax, word [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c0f9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c0f9c
and dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4c0e40
and byte [ebp - 0x11], al
lea eax, [ebp - 0x11]
push 0x567048
push eax
call fcn.004e692b
mov eax, 0x4c0f9c
ret
push 0x14
lea eax, [ebp - 0x30]
push 0
push eax
mov byte [ebp - 4], 1
call fcn.004e77b0
and dword [edi + 0x44], 0
add esp, 0xc
and dword [ebp - 0x18], 0
movzx ecx, word [esi + 6]
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jge 0x4c0ea7
movzx eax, word [esi + eax*2 + 8]
test eax, eax
mov byte [ebp - 0x28], 4
mov dword [ebp - 0x2c], eax
jne 0x4c0e84
mov byte [ebp - 0x27], 1
mov dword [ebp - 0x30], 8
jmp 0x4c0e92
mov eax, dword [edi + 0x44]
and byte [ebp - 0x27], 0
mov dword [ebp - 0x30], eax
inc eax
mov dword [edi + 0x44], eax
lea eax, [ebp - 0x30]
push eax
push 1
push 0x414
push dword [edi + 0x1c]
call ebx
inc dword [ebp - 0x18]
jmp 0x4c0e5c
movzx eax, word [esi + 4]
movzx ecx, word [esi + 2]
movzx eax, ax
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x420
push dword [edi + 0x1c]
call ebx
movzx eax, word [esi + 4]
movzx ecx, word [esi + 2]
add eax, 7
add ecx, 7
movzx eax, ax
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x41f
push dword [edi + 0x1c]
call ebx
or dword [ebp - 4], 0xffffffff
call fcn.00518d40
mov esi, dword [eax + 0xc]
push 2
movzx eax, word [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4c0f9c
push 0
push ebx
push esi
call fcn.0050bb6b
test eax, eax
mov dword [ebp + 8], eax
je 0x4c0f9c
lea ecx, [edi + 0x3c]
push eax
mov dword [ebp - 4], 4
call fcn.00509039
test eax, eax
jne 0x4c0f46
and byte [ebp - 0x12], al
lea eax, [ebp - 0x12]
push 0x567048
push eax
call fcn.004e692b
lea eax, [edi + 0x3c]
mov ecx, edi
push eax
mov byte [ebp - 4], 5
push dword [edi + 0x44]
call fcn.004fec17
cmp eax, 0xffffffff
jne 0x4c0f6f
and byte [ebp - 0x13], 0
lea eax, [ebp - 0x13]
push 0x567048
push eax
call fcn.004e692b
mov dword [edi + 0x48], esi
mov dword [edi + 0x4c], ebx
mov al, 1
jmp 0x4c0f9e
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4c3f22
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push dword [esp + 0x10]
mov edi, ecx
push 4
push 0x110a
push dword [edi + 0x288]
call ebx
mov ebp, eax
test ebp, ebp
je 0x4c3fa2
push esi
push ebp
lea ecx, [edi + 0x26c]
call fcn.004fee5c
mov ecx, eax
push ebp
movzx eax, ax
shr ecx, 0x10
lea esi, [eax + edi + 0x2be]
mov al, byte [eax + edi + 0x2be]
mov dl, al
xor dl, cl
and dl, 1
xor dl, al
shr cl, 1
and cl, 1
mov al, dl
shl cl, 1
and al, 0xfd
mov byte [esi], dl
or cl, al
mov byte [esi], cl
mov ecx, edi
call fcn.004c3f22
push ebp
push 1
push 0x110a
push dword [edi + 0x288]
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4c3f47
pop esi
pop edi
pop ebp
pop ebx
ret 4

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

Disassembly:
test edx, edx
mov eax, ecx
jne 0x4d669b
xor eax, eax
ret 4
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp esi, 8
not eax
jb 0x4d679a
push edi
mov edi, esi
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x54b700]
sub esi, 8
xor eax, ebx
inc edx
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [edx + 1]
mov ecx, dword [ecx*4 + 0x54b700]
shr eax, 8
xor ecx, eax
inc edx
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [edx + 1]
mov eax, dword [eax*4 + 0x54b700]
shr ecx, 8
xor eax, ecx
inc edx
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [edx + 1]
mov ecx, dword [ecx*4 + 0x54b700]
shr eax, 8
xor ecx, eax
inc edx
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [edx + 1]
mov eax, dword [eax*4 + 0x54b700]
shr ecx, 8
xor eax, ecx
inc edx
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [edx + 1]
mov ecx, dword [ecx*4 + 0x54b700]
shr eax, 8
xor ecx, eax
inc edx
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [edx + 1]
mov eax, dword [eax*4 + 0x54b700]
shr ecx, 8
xor eax, ecx
inc edx
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x54b700]
xor eax, ecx
inc edx
dec edi
jne 0x4d66b2
pop edi
test esi, esi
je 0x4d67bc
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x54b700]
xor eax, ecx
inc edx
dec esi
jne 0x4d679e
pop esi
pop ebx
not eax
ret 4
Function at 0x4e4090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x52ef90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
call fcn.004e3b90
xor ebx, ebx
mov dword [esp + 0x10], 0x54c8c4
mov dword [esp + 0x2c], ebx
mov al, byte [esp + 0x34]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.004016d9
mov esi, dword [esp + 0x34]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401b06
test al, al
je 0x4e4111
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004dd6e0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x2c], 1
lea esi, [eax - 1]
cmp eax, esi
jb 0x4e4138
cmp dword [esp + 0x18], ebx
je 0x4e4138
lea ecx, [esp + 0x14]
call fcn.00419069
mov eax, dword [esp + 0x18]
add eax, esi
jmp 0x4e413d
mov eax, 0x53091c
cmp byte [eax], 0x5c
je 0x4e4185
mov ecx, dword [0x530940]
mov edx, dword [esp + 0x1c]
sub ecx, edx
cmp ecx, 1
ja 0x4e4158
call fcn.004f5f96
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea esi, [edx + 1]
push esi
call fcn.00401b06
test al, al
je 0x4e4185
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add eax, ecx
push esi
lea ecx, [esp + 0x18]
mov byte [eax], 0x5c
call fcn.004dd6e0
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx]
mov edx, dword [esp + 0x1c]
mov edi, esi
repne scasb al, byte es:[edi]
mov eax, dword [0x530940]
not ecx
dec ecx
sub eax, edx
mov ebp, ecx
cmp eax, ebp
ja 0x4e41ad
call fcn.004f5f96
cmp ebp, ebx
jbe 0x4e41ef
mov ecx, dword [esp + 0x1c]
push 0
lea ebx, [ecx + ebp]
lea ecx, [esp + 0x18]
push ebx
call fcn.00401b06
test al, al
je 0x4e41ed
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, ebp
push ebx
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004dd6e0
xor ebx, ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4e41fc
mov eax, 0x53091c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov byte [esp + 0x2c], 0
je 0x4e4275
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4e4231
mov al, byte [ecx - 1]
test al, al
je 0x4e4227
cmp al, 0xff
je 0x4e4227
dec al
mov byte [ecx - 1], al
jmp 0x4e4231
dec ecx
push ecx
call fcn.00504ab7
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
add eax, 4
mov dword [esp + 0x1c], ebx
cmp eax, 0x54c8d8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
jb 0x4e40bf
mov dword [0x596f58], 3
call fcn.004e3b90
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
push 1
lea ecx, [esp + 0x18]
call fcn.004016d9
jmp 0x4e425d
Function at 0x4e4d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52efc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
push 0
mov dword [esp + 0xc], esi
call fcn.004e6080
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
add eax, 0x1c
push edx
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esi], vtable.TPalette16.0
call fcn.004e4ec0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c

Function at 0x4e4e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52efe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push 0x60
push eax
mov dword [esp + 0xc], esi
call fcn.004e6080
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
add ecx, 0x1c
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esi], vtable.TPalette16.0
call fcn.004e4ec0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20

Function at 0x4eeff9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x597a30
cmp edx, dword [eax]
je 0x4ef01b
add eax, 8
inc ecx
cmp eax, 0x597ac0
jl 0x4ef00c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x597a30]
jne 0x4ef149
mov eax, dword [0x5aa9f4]
cmp eax, 1
je 0x4ef123
test eax, eax
jne 0x4ef04c
cmp dword [0x5972c4], 1
je 0x4ef123
cmp edx, 0xfc
je 0x4ef149
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ef083
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004e7250
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004e68b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ef0c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004e68b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x54d050
push edi
call fcn.004e8050
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004e7250
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004e7260
lea eax, [ebp - 0xa0]
push 0x584b54
push eax
call fcn.004e7260
push dword [esi + 0x597a34]
lea eax, [ebp - 0xa0]
push eax
call fcn.004e7260
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004f42ce
add esp, 0x2c
pop edi
jmp 0x4ef149
lea eax, [ebp + 8]
lea esi, [esi + 0x597a34]
push 0
push eax
push dword [esi]
call fcn.004e68b0
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 0x4fbd00
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.004e8410
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4fbdcb
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 0x4fbdcb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4fbd7e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4fbd89
or bh, 8
and edi, 0x8000000
je 0x4fbda4
mov eax, dword [0x5acb5c]
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 0x4fbdcb
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 0x4fc1a0
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 0x4fc1cb
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 0x4fc1ef
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 0x4fc20a
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 0x500769
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 0x50078b
cmp dword [edi + 0x3c], 0
jne 0x50078b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00518d40
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.005007b8
pop edi
pop esi
pop ebx
ret 8

Function at 0x501e32
Capabilities:
Get graphical window text

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

Function at 0x5039ca
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 0x503a0c
call fcn.00518d40
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x503a0c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x503a03
xor eax, eax
jmp 0x503a14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00503a1a
pop edi
pop esi
pop ebx
ret 4

Function at 0x5191b7
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.00518d40
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5191f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5191f4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x5191f8
xor eax, eax
jmp 0x519276
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00504a8e
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x519230
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 0x51921a
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00519367
push ebx
mov edi, eax
call fcn.00504ab7
test edi, edi
pop ecx
je 0x519272
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.00519130
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0051927b
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x51b51a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x51b5ca
mov ecx, 0x5a9b48
call fcn.0051b0f5
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x51b5a8
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x51b586
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x51b586
push ebx
push edi
push eax
call fcn.0050734e
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.00504ed6
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x4033a0
Capabilities:
Access peb ldr_data

Disassembly:
push esi
sub eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
pop esi
ret

Function at 0x403488
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x4034d0
mov ebx, dword [esi + 0x20]
add ebx, edi
or ebx, ebx
je 0x4034c2
mov eax, dword [ebx]
push 0xffffffffffffffff
push 0xffffffffffffffff
add eax, edi
push eax
push dword [ebp + 8]
call fcn.004033ce
add esp, 0x10
or eax, eax
je 0x4034d6
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
sub ebx, 0xfffffffc
cmp eax, dword [esi + 0x18]
jb 0x4034a6
sub eax, eax
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x4034d2

Function at 0x4034f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x401130]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x24], 0xfafff1d2
mov dword [ebp - 0x20], 0xecfcf7d2
mov dword [ebp - 0x1c], 0xdbe7ecff
mov word [ebp - 0x18], 0xdfe6
mov byte [ebp - 0x16], 0
mov dword [ebp - 0x14], 0xceeafbd9
mov dword [ebp - 0x10], 0xdffdf1ec
mov dword [ebp - 0xc], 0xfbecfafa
mov word [ebp - 8], 0xeded
mov byte [ebp - 6], 0
call fcn.004033a0
push eax
pop edi
sub eax, eax
xor byte [ebp + eax - 0x14], 0x9e
inc eax
cmp eax, 0xe
jb 0x403548
sub eax, eax
xor byte [ebp + eax - 0x24], 0x9e
inc eax
cmp eax, 0xe
jb 0x403555
lea eax, [ebp - 0x14]
push eax
call fcn.00403488
mov dword [0x409524], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403488
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x409528], eax
pop edi
call fcn.00404f9a
leave
ret