joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46789f
Capabilities:
Get graphical window text

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

Function at 0x468f91
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 0x468fd3
call fcn.0046ec7b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468fd3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x468fca
xor eax, eax
jmp 0x468fdb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468fe1
pop edi
pop esi
pop ebx
ret 4

Function at 0x46f1ab
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 0x46f1d9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46f1f7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046f111
jmp 0x46f1f7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46f1f7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046f111
test edi, edi
mov eax, edi
jne 0x46f1e1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4057a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41cdb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x425a18]
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 0x18], 1
mov dword [esp + 8], eax
push 0x425120
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call fcn.0041413b
push str.___s
lea ecx, [esp + 8]
call fcn.0041434d
push 0x425120
lea ecx, [esp + 8]
call fcn.0041434d
push str.Content_Disposition:_form_data__name_upload_
lea ecx, [esp + 8]
call fcn.0041434d
push str._r_n_r_n
lea ecx, [esp + 8]
call fcn.0041434d
push str.hello
lea ecx, [esp + 8]
call fcn.0041434d
push 0x425120
lea ecx, [esp + 8]
call fcn.0041434d
push str.___s__
lea ecx, [esp + 8]
call fcn.0041434d
push 0x425120
lea ecx, [esp + 8]
call fcn.0041434d
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov edx, ecx
push ecx
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00412333
mov esi, dword [esp + 0x30]
add esp, 0x10
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.00413db7
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.00414042
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call fcn.00414042
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8

Function at 0x405b20
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x429b74]
xor ebx, ebx
cmp esi, eax
je 0x405ba8
push edi
push esi
mov dword [0x429b74], esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
lea eax, [edi + 2]
push eax
call fcn.0040727b
add esp, 4
inc edi
mov dword [0x4294ac], eax
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x4294ac]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x405b9f
push edx
mov ecx, 0x4294b4
call fcn.0041413b
mov ecx, dword [0x4294ac]
push ecx
push str._r_nThe_Active_Windows_Title:__s_r_n
call fcn.004073b5
mov edx, dword [0x4294ac]
add esp, 8
mov ebx, 1
push edx
call fcn.00407192
add esp, 4
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41682b
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 0x41686d
call fcn.0041b5b7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41686d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x416864
xor eax, eax
jmp 0x416875
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041687b
pop edi
pop esi
pop ebx
ret 4
Function at 0x419ce2
Capabilities:
Create http request

Disassembly:
mov eax, 0x41d1d0
call fcn.00407548
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x419d1a
call fcn.0041b5b7
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x419d3f
push eax
push dword [esi + 4]
call fcn.0041aa22
jmp 0x419d4b
push esi
push eax
mov ecx, 0x42b858
call fcn.00419d5c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

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

Disassembly:
mov eax, 0x41d20b
call fcn.00407548
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00418636
mov eax, dword [0x425a18]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x42b858
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00419d5c
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.0041413b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00406186
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004140eb
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.00414042
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x41bd57
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 0x41bd85
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41bda3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041bcbd
jmp 0x41bda3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41bda3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041bcbd
test edi, edi
mov eax, edi
jne 0x41bd8d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x760c3946
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x50aa49c6
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x41a680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41a6d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41a6ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401533
Capabilities:
Capture screenshot
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
mov edi, eax
push 0x555555
push 1
push 0
call dword cs:[sym.imp.GDI32.dll_CreatePen]
mov ebx, eax
push eax
push edi
call dword cs:[sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push 0
mov eax, dword [0x40b064]
add eax, 0x147
push eax
mov edx, dword [0x40b060]
push edx
push edi
call dword cs:[sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [0x40b064]
add eax, 0x147
push eax
mov eax, dword [0x40b060]
add eax, 0x147
push eax
push edi
call dword cs:[sym.imp.GDI32.dll_LineTo]
mov ecx, dword [0x40b064]
push ecx
mov eax, dword [0x40b060]
add eax, 0x147
push eax
push edi
call dword cs:[sym.imp.GDI32.dll_LineTo]
push 6
call dword cs:[sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
call dword cs:[sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [0x40b064]
push ebp
mov eax, dword [0x40b060]
push eax
push edi
call dword cs:[sym.imp.GDI32.dll_LineTo]
mov eax, dword [0x40b064]
add eax, 0x148
push eax
mov edx, dword [0x40b060]
push edx
push edi
call dword cs:[sym.imp.GDI32.dll_LineTo]
push esi
push edi
call dword cs:[sym.imp.GDI32.dll_SelectObject]
push ebx
call dword cs:[sym.imp.GDI32.dll_DeleteObject]
xor esi, esi
jmp 0x40160c
inc esi
cmp esi, 9
jge 0x401691
xor ebx, ebx
push 0xcc0020
push 0xe1
mov edx, esi
mov eax, esi
shl eax, 3
add eax, esi
xor edx, esi
mov dl, byte [ebx + eax + 0x40b2f0]
mov ecx, edx
shl ecx, 3
add ecx, edx
shl ecx, 2
mov edx, dword [0x40b3ec]
mov eax, edx
shl eax, 3
add eax, edx
shl eax, 5
add ecx, eax
push ecx
mov ecx, dword [0x40b2b4]
push ecx
push 0x24
push 0x24
mov ecx, dword [0x40b064]
add ecx, 2
mov eax, esi
shl eax, 3
add eax, esi
shl eax, 2
add eax, ecx
push eax
mov ecx, dword [0x40b060]
add ecx, 2
mov eax, ebx
shl eax, 3
add eax, ebx
shl eax, 2
add eax, ecx
push eax
push edi
call dword cs:[sym.imp.GDI32.dll_BitBlt]
inc ebx
cmp ebx, 9
jl 0x40160e
jmp 0x401602
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x401ec6
Capabilities:
Capture screenshot

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
mov esi, eax
cmp byte [0x40b080], 0
je 0x401fd0
push 0xcc0020
push 0x1b9
xor edx, edx
mov dl, byte [0x40b2e8]
mov ebx, edx
shl ebx, 3
add ebx, edx
shl ebx, 2
mov edx, dword [0x40b3ec]
mov eax, edx
shl eax, 3
add eax, edx
shl eax, 5
add ebx, eax
push ebx
mov edx, dword [0x40b2b4]
push edx
push 0x24
push 0x24
mov ecx, dword [0x40b07c]
push ecx
mov ebx, dword [0x40b078]
push ebx
push esi
call dword cs:[sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
push 0x1b9
xor edx, edx
mov dl, byte [0x40b2e9]
mov ebx, edx
shl ebx, 3
add ebx, edx
shl ebx, 2
mov edx, dword [0x40b3ec]
mov eax, edx
shl eax, 3
add eax, edx
shl eax, 5
add eax, ebx
push eax
mov edi, dword [0x40b2b4]
push edi
push 0x24
push 0x24
mov ebp, dword [0x40b07c]
push ebp
mov eax, dword [0x40b078]
add eax, 0x24
push eax
push esi
call dword cs:[sym.imp.GDI32.dll_BitBlt]
push 0xcc0020
push 0x1b9
xor edx, edx
mov dl, byte [0x40b2ea]
mov ebx, edx
shl ebx, 3
add ebx, edx
shl ebx, 2
mov edx, dword [0x40b3ec]
mov eax, edx
shl eax, 3
add eax, edx
shl eax, 5
add eax, ebx
push eax
mov eax, dword [0x40b2b4]
push eax
push 0x24
push 0x24
mov edx, dword [0x40b07c]
push edx
mov eax, dword [0x40b078]
add eax, 0x48
push eax
push esi
call dword cs:[sym.imp.GDI32.dll_BitBlt]
jmp 0x40200f
xor ebx, ebx
push 0xcc0020
push 0xe1
push 0
mov ecx, dword [0x40b2b4]
push ecx
push 0x24
push 0x24
mov edi, dword [0x40b07c]
push edi
mov eax, ebx
shl eax, 3
add eax, ebx
shl eax, 2
add eax, dword [0x40b078]
push eax
push esi
call dword cs:[sym.imp.GDI32.dll_BitBlt]
inc ebx
cmp ebx, 3
jl 0x401fd2
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x402a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0x2c
lea eax, [esp + 0x24]
push eax
push str.SOFTWAREIvan_GolubevWinLinezHighScore
push 0x80000002
call dword cs:[sym.imp.ADVAPI32.dll_RegCreateKeyA]
xor ebx, ebx
xor esi, esi
mov dword [0x40b3f0], ebx
mov dword [0x40b2ac], ebx
mov edi, dword [esp + 0x24]
test edi, edi
je 0x402b96
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x30]
push eax
push ebx
push str.Table
push edi
call dword cs:[sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b8a
cmp dword [esp + 0x20], 0x200
jne 0x402b9a
lea eax, [esp + 0x20]
push eax
push 0x40b0ac
lea eax, [esp + 0x30]
push eax
push ebx
push str.Table
mov ecx, dword [esp + 0x38]
push ecx
call dword cs:[sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b96
mov dword [esp + 0x20], 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
push esi
push str.Hash
mov edi, dword [esp + 0x38]
push edi
call dword cs:[sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b9a
mov ebp, dword [esp + 0x24]
push ebp
call dword cs:[sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esp
mov edx, 0x200
mov eax, 0x40b0ac
call fcn.004029c3
mov eax, dword [esp]
xor eax, 0x34a09d43
mov dword [esp], eax
mov edx, dword [esp + 4]
xor edx, 0x7a23de01
mov dword [esp + 4], edx
mov ecx, dword [esp + 8]
xor ecx, 0x147341ef
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0xc]
xor ebx, 0xf7d38e01
mov dword [esp + 0xc], ebx
cmp eax, dword [esp + 0x10]
jne 0x402b7e
cmp edx, dword [esp + 0x14]
jne 0x402b7e
cmp ecx, dword [esp + 0x18]
jne 0x402b7e
cmp ebx, dword [esp + 0x1c]
je 0x402b83
mov esi, 1
mov ebx, 1
jmp 0x402b96
mov eax, dword [esp + 0x24]
push eax
call dword cs:[sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402bd1
push 0x34
push str.WinLinez_v1.30
push 0x40a260
mov ebx, dword [0x40b2c0]
push ebx
call dword cs:[sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402bc5
mov dword [0x40b3f0], 1
jmp 0x402bda
mov dword [0x40b2ac], 1
jmp 0x402bd5
test ebx, ebx
jne 0x402bda
call fcn.00402a05
mov eax, dword [0x40b0c8]
mov dword [0x40b084], eax
mov edx, 0x40b0ac
mov eax, 0x40a038
call fcn.004010e7
add esp, 0x2c
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x402bfd
Capabilities:
Set registry value

Disassembly:
push ebx
push ecx
push edx
sub esp, 0x14
cmp dword [0x40b3f0], 0
jne 0x402caa
cmp dword [0x40b2ac], 0
je 0x402caa
lea ebx, [esp + 0x10]
push ebx
push str.SOFTWAREIvan_GolubevWinLinezHighScore
push 0x80000002
call dword cs:[sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0x200
push 0x40b0ac
push 3
push 0
push str.Table
mov ebx, dword [esp + 0x24]
push ebx
call dword cs:[sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, esp
mov edx, 0x200
mov eax, 0x40b0ac
call fcn.004029c3
xor dword [esp], 0x34a09d43
xor dword [esp + 4], 0x7a23de01
xor dword [esp + 8], 0x147341ef
xor dword [esp + 0xc], 0xf7d38e01
push 0x10
lea ebx, [esp + 4]
push ebx
push 3
push 0
push str.Hash
mov edx, dword [esp + 0x24]
push edx
call dword cs:[sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword cs:[sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x14
pop edx
pop ecx
pop ebx
ret
Function at 0x404f1b
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push ebp
sub esp, 0x210
mov esi, eax
mov edi, edx
mov ebp, ecx
cmp edx, 0x85
jb 0x4050bd
jbe 0x404ffd
cmp edx, 0x86
je 0x40506a
jmp 0x4050c6
push 0xfffffffffffffff0
push eax
call dword cs:[sym.imp.USER32.dll_GetWindowLongA]
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x220]
test ecx, ecx
je 0x404f6d
mov eax, ecx
jmp 0x404f6f
mov eax, ebp
mov dword [esp + 0x200], eax
test byte [esp + 0x20f], 0x10
je 0x404f97
mov eax, dword [esp + 0x20c]
and eax, 0xefffffff
push eax
push 0xfffffffffffffff0
push esi
call dword cs:[sym.imp.USER32.dll_SetWindowLongA]
push ebp
push ebx
push edi
push esi
call dword cs:[sym.imp.USER32.dll_DefWindowProcA]
test byte [esp + 0x20f], 0x10
je 0x404fbe
mov ebx, dword [esp + 0x20c]
push ebx
push 0xfffffffffffffff0
push esi
call dword cs:[sym.imp.USER32.dll_SetWindowLongA]
call dword cs:[sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
sete al
and eax, 0xff
mov ebx, dword [esp + 0x224]
or ebx, eax
mov edx, dword [esp + 0x200]
mov eax, esi
call fcn.00404cee
mov eax, dword [esp + 0x228]
mov dword [eax], 1
mov eax, 1
jmp 0x4050c8
mov eax, dword [esp + 0x220]
test eax, eax
jne 0x405024
push 0x100
lea eax, [esp + 0x104]
push eax
push esi
call dword cs:[sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x100]
mov dword [esp + 0x204], eax
push ebp
push ebx
push edi
push esi
call dword cs:[sym.imp.USER32.dll_DefWindowProcA]
call dword cs:[sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
sete al
xor ebx, ebx
mov bl, al
or ebx, dword [esp + 0x224]
mov edx, dword [esp + 0x204]
mov eax, esi
call fcn.00404cee
mov eax, dword [esp + 0x228]
mov dword [eax], 0
jmp 0x404ff3
mov edx, dword [esp + 0x220]
test edx, edx
je 0x40507e
mov dword [esp + 0x208], edx
jmp 0x405099
push 0x100
lea eax, [esp + 4]
push eax
push esi
call dword cs:[sym.imp.USER32.dll_GetWindowTextA]
mov eax, esp
mov dword [esp + 0x208], eax
push ebp
push ebx
push edi
push esi
call dword cs:[sym.imp.USER32.dll_DefWindowProcA]
and ebx, 0xffff
or ebx, dword [esp + 0x224]
mov edx, dword [esp + 0x208]
jmp 0x404fdf
cmp edx, 0xc
je 0x404f4d
xor eax, eax
add esp, 0x210
pop ebp
pop edi
pop esi
ret 0xc

Function at 0x4055d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
sub esp, 4
mov ebx, edx
push 2
and eax, 0xffff
push eax
mov edx, dword [0x40b048]
push edx
call dword cs:[sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40565e
push eax
mov ecx, dword [0x40b048]
push ecx
call dword cs:[sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test eax, eax
je 0x40565e
push eax
call dword cs:[sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test eax, eax
je 0x40565e
push 0x1c
push 0
call dword cs:[sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp], eax
push 0
push 0
push 0
push 0x40a4e1
call dword cs:[sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
mov eax, dword [esp]
push eax
mov ecx, 0xf
mov edx, edi
mov eax, esi
call fcn.004072d6
push esi
call dword cs:[sym.imp.GDI32.dll_DeleteDC]
push ebp
call dword cs:[sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp]
add esp, 4
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x405fa7
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
sub esp, 0x118
mov esi, eax
mov ebp, edx
push 0
push eax
call dword cs:[sym.imp.USER32.dll_GetWindowLongA]
mov dword [esp + 0x110], eax
push 4
push esi
call dword cs:[sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
push 0x100
lea eax, [esp + 4]
push eax
push esi
call dword cs:[sym.imp.USER32.dll_GetWindowTextA]
push esi
call dword cs:[sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [esp + 0x100]
push eax
push esi
call dword cs:[sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push esi
call dword cs:[sym.imp.USER32.dll_GetWindowLongA]
mov dword [esp + 0x114], eax
push ebp
push esi
call dword cs:[sym.imp.USER32.dll_GetMenu]
push eax
push 0xc
push esi
call dword cs:[sym.imp.USER32.dll_GetWindowLongA]
push eax
mov edx, dword [esp + 0x120]
push edx
mov ecx, dword [esp + 0x120]
push ecx
push ebx
mov ebx, dword [esp + 0x124]
inc ebx
mov edx, dword [esp + 0x120]
inc edx
lea ecx, [esp + 0x18]
mov eax, edi
call fcn.00405a25
push edi
push esi
call dword cs:[sym.imp.USER32.dll_ReleaseDC]
add esp, 0x118
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x40742a
Capabilities:
Hash data with md5

Disassembly:
push edx
mov dword [eax + 0x14], 0
mov edx, dword [eax + 0x14]
mov dword [eax + 0x10], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop edx
ret
Function at 0x4023ee
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
xor ebx, ebx
sub eax, ebx
push edi
je 0x4024fa
dec eax
je 0x402451
dec eax
je 0x40242c
dec eax
je 0x40241a
push dword [esi + 0x18]
push dword [ebp + 8]
call dword [esi + 0x10]
pop ecx
jmp 0x402498
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4024b2
mov byte [eax], bl
jmp 0x4024b2
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x460050
call fcn.0043c55c
cmp eax, 0xffffffff
jne 0x402441
xor eax, eax
cmp esi, ebx
je 0x402505
mov byte [eax + esi], bl
jmp 0x402505
mov eax, esi
call fcn.00401b7d
cmp dword [0x45db28], ebx
jne 0x4024b6
cmp dword [esi + 0xc], ebx
jne 0x4024b6
cmp dword [0x46090c], esi
mov edi, dword [ebp + 8]
jne 0x402474
cmp edi, ebx
jne 0x4024a2
push ebx
lea eax, [ebp - 1]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, ebx
je 0x40249e
cmp edi, ebx
mov dword [0x46090c], ebx
je 0x40249b
push dword [esi + 0x18]
call fcn.00438763
pop ecx
jmp 0x402505
dec eax
jmp 0x402505
cmp edi, ebx
je 0x4024ac
mov byte [edi], bl
mov dword [0x46090c], ebx
jmp 0x4024b2
mov dword [0x46090c], esi
xor eax, eax
jmp 0x402505
mov edi, dword [ebp + 8]
cmp edi, ebx
mov eax, dword [esi + 0xc]
je 0x402505
cmp eax, ebx
jne 0x4024c8
mov byte [edi], bl
jmp 0x4024b2
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x402505
cmp eax, 0x186a0
jb 0x4024f0
push eax
push ecx
push edi
call sub.MSVCR71.dll_memcpy
mov eax, dword [esi + 0xc]
add esp, 0xc
mov byte [edi + eax], bl
mov eax, dword [esi + 0xc]
jmp 0x402505
mov byte [edi], al
inc edi
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x4024ec
mov byte [edi], bl
jmp 0x4024e7
push dword [ebp + 8]
mov ecx, dword [esi + 0xc]
call fcn.004023ee
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d771
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [ebp + 0x10], bl
push esi
mov eax, 0xd0
je 0x40d78e
inc dword [0x45db30]
add dword [0x45b170], eax
push eax
push 0x45c6a0
push dword [0x45b170]
call sub.MSVCR71.dll_memcpy
mov esi, dword [0x45b170]
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [ebp + 0x10], bl
mov dword [esi + 0x2c], eax
je 0x40d7be
push ebx
mov eax, 0x45fb58
call fcn.0040d3d4
cmp dword [0x45db50], ebx
mov dword [0x460010], ebx
mov dword [0x460014], ebx
je 0x40d7dd
push 0x45e2f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [ebp + 0xc], bl
jne 0x40d853
or ecx, 0xffffffff
cmp byte [esi + 0xc6], bl
jne 0x40d806
cmp byte [ebp + 0x14], 0x64
sete al
cmp al, bl
mov byte [esi + 0xc6], al
je 0x40d806
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x46001c], ebx
je 0x40d816
cmp dword [0x460018], ebx
jne 0x40d81e
cmp byte [esi + 0xc6], bl
je 0x40d853
cmp byte [esi + 0xc6], bl
mov byte [esi + 0xc4], bl
jne 0x40d853
cmp dword [0x46001c], ebx
jge 0x40d83c
mov dword [esi + 0xb8], ecx
jmp 0x40d853
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb4], eax
mov eax, dword [0x46001c]
mov dword [esi + 0xb8], eax
pop esi
pop ebx
pop ebp
ret