joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5c8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040804b
mov dword [ebp - 0x14], eax
cmp dword [0x43f2e0], esi
jne 0x40d6bb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d648
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d79b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d79b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d79b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43f2e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43f2e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43f2e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f2f0], eax
test eax, eax
je 0x40d6b8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43f2ec], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6e0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6d3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6f5
push 4
pop eax
jmp 0x40d79d
cmp dword [ebp - 0x14], esi
je 0x40d6f5
push dword [0x43f2e0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6da
mov eax, dword [0x43f2ec]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d753
cmp dword [0x43f2f0], edi
je 0x40d753
push eax
call ebx
push dword [0x43f2f0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d753
test eax, eax
je 0x40d753
call ecx
test eax, eax
je 0x40d748
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d748
test byte [ebp - 8], 1
jne 0x40d753
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d783
mov eax, dword [0x43f2e4]
cmp eax, edi
je 0x40d780
push eax
call ebx
test eax, eax
je 0x40d780
call eax
mov esi, eax
test esi, esi
je 0x40d780
mov eax, dword [0x43f2e8]
cmp eax, edi
je 0x40d780
push eax
call ebx
test eax, eax
je 0x40d780
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43f2e0]
call ebx
test eax, eax
je 0x40d79b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d79d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040434c
mov esp, ebp
pop ebp
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x40ca60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40ca82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ca89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ca78
mov eax, 1
add ebx, ebx
jne 0x40ca9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ca90
jne 0x40caac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ca90
xor ecx, ecx
sub eax, 3
jb 0x40cac0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40cb32
mov ebp, eax
add ebx, ebx
jne 0x40cacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40cad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cafc
inc ecx
add ebx, ebx
jne 0x40cae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cadd
jne 0x40caf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cadd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cb1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cb0d
jmp 0x40ca7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cb1c
add edi, ecx
jmp 0x40ca7e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cb7b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe99c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe9f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cb39
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe9fc]
or eax, eax
je 0x40cb75
mov dword [ebx], eax
add ebx, 4
jmp 0x40cb56
call dword [esi + 0xe9f8]
mov ebp, dword [esi + 0xea00]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40cbaf
sub esp, 0xffffff80
jmp 0x401978
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40325b
pop dword [ebp - 0x14]
mov eax, 0x467ce04c
sub eax, 0x463cadf1
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xc04e6aa2
sub dword [ebp - 0x24], 0x71fc2557
mov dword [ebp - 0x20], 0x48255fb2
sub dword [ebp - 0x20], 0x15f2136d
mov dword [ebp - 0x1c], 0x1291cc01
sub dword [ebp - 0x1c], 0xc64587d3
mov dword [ebp - 0x18], 0xdd3945fc
sub dword [ebp - 0x18], 0xdd3945fc
lea eax, [ebp - 0x24]
push eax
mov eax, 0x291fd483
add eax, 0xd720abf5
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x3d50bbc6
add dword [ebp - 0x24], 0x3721ad90
mov dword [ebp - 0x20], 0xc5e9833b
sub dword [ebp - 0x20], 0x847d21c6
mov dword [ebp - 0x1c], 0x771e9983
add dword [ebp - 0x1c], 0xec50d2e9
mov dword [ebp - 0x18], 0xa650c526
add dword [ebp - 0x18], 0x59af3ada
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x38818
push 0
call eax
mov ecx, 0x967176b
sub ecx, 0x966c985
mov edx, eax
mov esi, 0x451400
add esi, dword [ebp - 0x14]
mov ebx, 0x17528b0b
add ebx, 0x7b3fe0a6
xor dword [ebp - 0xc], ecx
mov edi, dword [esi]
xor dword [ebp - 4], 0xecbe5eb8
add edi, ebx
mov dword [edx], edi
xor dword [ebp - 8], edi
add edx, 0xd7cb603c
sub edx, 0xd7cb6038
add esi, 0xc6669d03
add esi, 0x39996301
loop 0x403372
add eax, 0xf3d9447
add eax, 0xf0c39624
mov ebx, eax
add eax, 0x566e58be
sub eax, 0x566e58b9
mov ecx, 0x75ac1114
sub ecx, 0x756c1114
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x404470
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x404499
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x91
jge 0x4044b5
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x423ce8]
je 0x4044b5
jmp 0x404490
cmp dword [ebp - 4], 0x91
jne 0x4044c5
mov dword [ebp - 4], 0x1c
mov eax, dword [ebp - 4]
imul eax, eax, 0x48
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x423d28]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x48
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x423d2c]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x405ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41a4ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push esi
mov esi, ecx
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x18]
push eax
push str.SOFTWAREElectronic_Arts_
push ecx
mov dword [esp + 0xac], 1
call fcn.00411445
push 0x427c48
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0xac], 2
call fcn.004113d1
lea ecx, [esp + 0xac]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0xac], 3
call fcn.0041136b
push str.ergc
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0xa8], 4
push eax
call fcn.004113d1
lea ecx, [esp + 0x14]
mov byte [esp + 0xa0], 8
call fcn.004111c9
lea ecx, [esp + 0xc]
mov byte [esp + 0xa0], 7
call fcn.004111c9
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 6
call fcn.004111c9
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 1
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fec
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 8]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push eax
mov dword [esp + 0x28], 0x76
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fe1
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00406420
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov byte [esp + 0xa0], 1
call fcn.004111c9
lea ecx, [esp + 0xa8]
mov byte [esp + 0xa0], 0
call fcn.004111c9
lea ecx, [esp + 0xac]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004111c9
mov ecx, dword [esp + 0x98]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xa0
ret 8
Function at 0x406050
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41a507
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
mov dword [esp + 0x18], 0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
push eax
push str.SOFTWAREElectronic_Arts_
push ecx
mov dword [esp + 0x30], 2
call fcn.00411445
push 0x427c48
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x30], 3
call fcn.004113d1
lea ecx, [esp + 0x34]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x30], 4
call fcn.0041136b
push str.ergc
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x2c], 5
push eax
call fcn.004113d1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 9
call fcn.004111c9
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 8
call fcn.004111c9
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 7
call fcn.004111c9
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406151
test esi, esi
je 0x406129
lea ecx, [esi + 4]
jmp 0x40612b
xor ecx, ecx
mov eax, dword [esi + 4]
mov ecx, dword [ecx]
mov eax, dword [eax - 8]
push eax
push ecx
mov ecx, dword [esp + 0xc]
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40615a
lea eax, [esi + 4]
jmp 0x40615c
xor eax, eax
mov esi, dword [esp + 0x2c]
push eax
lea ecx, [esi + 4]
call fcn.00410f3e
mov dword [esi], 0x41bac4
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
call fcn.004111c9
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.004111c9
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 0
call fcn.004111c9
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x40a199
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x428a80
cmp edx, dword [eax]
je 0x40a1bb
add eax, 8
inc ecx
cmp eax, 0x428b10
jl 0x40a1ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x428a80]
jne 0x40a2e9
mov eax, dword [0x42b2a8]
cmp eax, 1
je 0x40a2c3
test eax, eax
jne 0x40a1ec
cmp dword [0x428284], 1
je 0x40a2c3
cmp edx, 0xfc
je 0x40a2e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a223
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b2d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b3c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a266
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b3c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d3ac
push edi
call fcn.00407730
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b2d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b2e0
lea eax, [ebp - 0xa0]
push 0x41d38c
push eax
call fcn.0040b2e0
push dword [esi + 0x428a84]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b2e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bdec
add esp, 0x2c
pop edi
jmp 0x40a2e9
lea eax, [ebp + 8]
lea esi, [esi + 0x428a84]
push 0
push eax
push dword [esi]
call fcn.0040b3c0
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 0x410220
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.00407a20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4102eb
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 0x4102eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41029e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4102a9
or bh, 8
and edi, 0x8000000
je 0x4102c4
mov eax, dword [0x42ca1c]
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 0x4102eb
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 0x4106c0
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 0x4106eb
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 0x41070f
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 0x41072a
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 0x413715
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41374d
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.00411530
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00411508
jmp 0x413759
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x414c97
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 0x414cd9
call fcn.00418e61
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x414cd9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x414cd0
xor eax, eax
jmp 0x414ce1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00414ce7
pop edi
pop esi
pop ebx
ret 4

Function at 0x415f04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00418e61
mov esi, dword [eax + 0xc]
test esi, esi
je 0x415f28
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x415f2c
xor eax, eax
jmp 0x415f53
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
mov ecx, ebp
call fcn.00415e96
push 1
pop eax
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x4195a0
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 0x4195ce
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4195ec
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419506
jmp 0x4195ec
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4195ec
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00419506
test edi, edi
mov eax, edi
jne 0x4195d6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x18]
mov dword [esi + 8], ecx
mov dword [esi + 0x14], ecx

Function at 0x401020
Capabilities:
Parse pe header

Disassembly:
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
and byte [ecx + 0x4e89244e], cl
sub byte [ecx + 0x4d8d2c4e], cl
dec esi
sub al, 0x8d
dec ebp
or byte [ecx + 0x6a], dl
inc eax

Function at 0x401028
Capabilities:
Parse pe header

Disassembly:
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
and byte [ecx + 0x4e89244e], cl
sub byte [ecx + 0x4d8d2c4e], cl
dec esi
sub al, 0x8d
dec ebp
or byte [ecx + 0x6a], dl
inc eax

Function at 0x401038
Capabilities:
Parse pe header

Disassembly:
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0x14]
push edi
mov dword [esi + 4], eax
mov dword [esi + 0x10], edx
call dword [eax + 0x18]
test eax, eax
jne 0x401058
mov dword [esi + 8], 9
jmp 0x40112d
push ebx
mov ebx, dword [esi + 0x10]
cmp ebx, 0x40
jae 0x40106d
invalid
mov dword [esi + 8], 1
mov eax, dword [esi + 0xc]

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
lea ecx, [ecx + eax + 0x78]
cmp dword [ecx + 4], 0
push ebx
push edi
jne 0x401173
xor eax, eax
jmp 0x4011e3
push esi
mov esi, dword [ecx]
add esi, eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4011e0
cmp dword [esi + 0x14], 0
je 0x4011e0
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
or dword [ebp - 8], 0xffffffff
add edi, eax
add ebx, eax
test ecx, ecx
je 0x4011e0
mov dword [ebp - 4], ecx
jmp 0x40119f

Function at 0x401933
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, section..data
mov ecx, 0x3e82
mov esi, 0x5388a6
imul ecx, ecx, 0x19660d
add ecx, 0x3c6ef35f
mov edx, ecx
shr edx, 0xc
xor byte [eax], dl
inc eax
dec esi
jne 0x401943
pop esi
ret

Function at 0x401a9f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push ebx
mov ebx, eax