joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53cd40
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57a3a0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x53cee7
mov ecx, dword [0x6a4340]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x53ce3c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0053ba60
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0056a46d
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0056a380
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x69afe4
call fcn.0056a3ee
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0053be20
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0056a46d
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0056a380
lea ecx, [esp + 0xc]
call fcn.0056a848
mov ecx, dword [esp + 0xc]
push 0x69ba24
push ecx
call fcn.00559da4
add esp, 8
test eax, eax
je 0x53ce64
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x53cd9d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0056a380
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0056a380
jmp 0x53ceeb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0053cae0
test eax, eax
push 0
je 0x53cecf
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0053b180
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x53ceb5
cmp eax, 0x64
jg 0x53cea3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x53ce40
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x53ce40
cmp eax, 0x64
jge 0x53ce3c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x53ce40
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0053b180
mov esi, eax
jmp 0x53ce40
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x53cef5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x545390
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x69c304]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5453a3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5453e4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x69c3ac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x545416
mov bl, byte [esp + ecx + 0x4c]
jmp 0x54541a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x54540b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x545438
mov bl, byte [esp + ecx + 0x4c]
jmp 0x54543c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x54542d
xor ecx, ecx
mov eax, 0x69c314
xor ebx, ebx
mov bl, byte [ecx + 0x69c3bc]
cmp byte [esp + ebx + 0x14], 0
je 0x545467
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x69c3d4]
cmp byte [esp + ebx + 0x14], 0
je 0x54547e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x54544e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5453d7
lea edx, [esp + 0x84]
push edx
call fcn.005454c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x548040
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x5480e3
test eax, eax
jbe 0x5480e3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x5480e3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x54808e
xor esi, esi
jmp 0x548094
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x5480bf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004dc470
add esi, eax
push esi
mov ebx, esi
call fcn.004dc470
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x5480a0
pop ebp
test edi, edi
pop edi
jne 0x5480e3
test ebx, ebx
je 0x5480e3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0055a6e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x548225
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x54833d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x54833d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0056bde7
mov esi, eax
test esi, esi
je 0x54833d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x54833d
mov ecx, esi
call fcn.00548190
cmp edi, eax
jge 0x54833d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x5482c3
mov dword [esp + 0x34], 1
jmp 0x54831e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x54833d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00547720
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x551cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x551d3c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x551d3c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x551d26
push eax
call ebp
test ax, ax
jl 0x551d34
inc esi
add edi, 4
cmp esi, 6
jb 0x551d18
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.005519f0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5545c0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x554620
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x554620
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x554620
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x554620
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x554630
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x56c78b
Capabilities:
Get graphical window text

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

Function at 0x56de80
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 0x56dec2
call fcn.00573cd5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x56dec2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x56deb9
xor eax, eax
jmp 0x56deca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0056ded0
pop edi
pop esi
pop ebx
ret 4

Function at 0x574205
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 0x574233
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x574251
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0057416b
jmp 0x574251
mov eax, dword [esi + 0x14]
test eax, eax
je 0x574251
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0057416b
test edi, edi
mov eax, edi
jne 0x57423b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x429172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x4291a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x4291a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x429dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00429f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00429f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00429eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00429f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00429ecb
push ecx
push dword [ebp + 8]
call fcn.00429f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00429f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00429ecb
push ecx
push dword [ebp + 8]
call fcn.00429f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00429f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00429ecb
push ecx
push dword [ebp + 8]
call fcn.00429f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00429f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00429ecb
cmp ecx, 0x2b
jne 0x429e0f
leave
ret 0xc

Function at 0x42b4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x42b544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x13550
push 0
call dword [eax + 0x20]
test eax, eax
je 0x42b5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x13550
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x13550
call fcn.0042b3fa
push 0x13550
push dword [ebp + 0xc]
call fcn.004291a8
test eax, eax
jne 0x42b5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x13550
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.0042b5dd
test eax, eax
je 0x42b5d6
jmp 0x42b574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x42b5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x1389053
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1383140]
jne 0x138905d
repz ret
jmp fcn.013892df

Function at 0x138dfeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1383140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.01389a36
and dword [ebp - 0x14], 0
cmp dword [0x1386acc], 0
mov dword [ebp - 0x18], eax
jne 0x138e09e
push str.USER32.DLL
call dword [sym.imp.._kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x138e146
mov edi, dword [sym.imp.._kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x138e146
mov esi, dword [sym.imp.._kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1386acc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1386ad0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1386ad4], eax
call edi
push eax
call esi
mov dword [0x1386adc], eax
test eax, eax
je 0x138e09e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1386ad8], eax
mov eax, dword [0x1386ad8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.._kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x138e0f7
cmp dword [0x1386adc], ecx
je 0x138e0f7
push eax
call esi
push dword [0x1386adc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x138e0f7
test ebx, ebx
je 0x138e0f7
call edi
test eax, eax
je 0x138e0ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x138e0ee
test byte [ebp - 8], 1
jne 0x138e0f7
or dword [ebp + 0x10], 0x200000
jmp 0x138e12a
mov eax, dword [0x1386ad0]
cmp eax, dword [ebp - 0x18]
je 0x138e12a
push eax
call esi
test eax, eax
je 0x138e12a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x138e12a
mov eax, dword [0x1386ad4]
cmp eax, dword [ebp - 0x18]
je 0x138e12a
push eax
call esi
test eax, eax
je 0x138e12a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1386acc]
call esi
test eax, eax
je 0x138e146
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x138e148
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01389053
leave
ret
Function at 0x401287
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [0x4312dc]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4013b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4013b2
call dword [0x430090]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 8], eax
xor eax, eax
mov ax, word [edi]
test ax, ax
mov dword [ebp - 8], eax
je 0x4013b2
inc edi
inc edi
mov ax, word [edi]
inc edi
inc edi
mov ecx, dword [edi]
add edi, 4
cmp ax, 0x403
mov dword [ebp - 0x10], ecx
jne 0x401342
test edi, edi
jne 0x401317
xor eax, eax
jmp 0x401338
push edi
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00422270
mov eax, esp
push dword [ebp + 8]
push esi
push edi
push eax
call fcn.004010d2
push eax
push 0
push 0x143
jmp 0x40138b
cmp ax, 0x1234
jne 0x4013a5
or dword [ebp - 0x30], 0xffffffff
test edi, edi
mov dword [ebp - 0x34], 1
jne 0x40135c
and dword [ebp - 0x2c], edi
jmp 0x401380
push edi
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00422270
mov eax, esp
push dword [ebp + 8]
push esi
push edi
push eax
call fcn.004010d2
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x40b
movzx eax, word [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x4013a5
and dword [ebp - 4], 0
add edi, dword [ebp - 0x10]
cmp dword [ebp - 4], 0
jne 0x4012e9
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401513
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
je 0x4015de
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindow]
lea esi, [ebx + 4]
push 5
push dword [esi]
jmp 0x40154a
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x40153a
lea eax, [ebp - 0x24]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff6
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x28]
mov edi, dword [eax]
cmp edi, eax
je 0x4015dc
push dword [edi + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x4015d2
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00401200
mov eax, dword [0x430098]
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x45
xor eax, eax
push eax
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x14]
sub eax, dword [0x430094]
mov dword [ebp + 8], eax
mov edi, dword [edi]
mov eax, dword [ebp - 4]
cmp edi, dword [eax + 0x28]
jne 0x401571
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402b8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402ba2
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402bb4
xor eax, eax
jmp 0x402be6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402bd8
cmp esi, eax
jae 0x402bb0
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402bca
cmp esi, eax
jae 0x402bb0
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x406d34
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
push esi
mov esi, ecx
jl 0x406fcd
cmp ebp, 6
jg 0x406fcd
push ebx
push edi
lea ebx, [esi + 0x3c]
push 0
mov ecx, ebx
call fcn.00401851
mov ecx, ebx
call fcn.00401861
push 0x400
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
test ebp, ebp
jne 0x406e66
push 5
push dword [esi + 0x70]
call edi
push 0x3ea
mov ecx, ebx
call fcn.004018f0
push 2
mov ecx, ebx
call fcn.004018f0
push 0
push dword [esi + 0xa8]
call edi
cmp dword [esp + 0x14], 2
mov ebp, 0x3eb
jne 0x406eeb
push 3
call fcn.0041a34c
mov ecx, eax
call fcn.00418550
test eax, eax
je 0x406dee
call fcn.0040a251
mov ecx, eax
call fcn.00408e21
test eax, eax
jne 0x406dee
push 0x400
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
call edi
push 5
push dword [esi + 0xe8]
call edi
lea eax, [esi + 0x24]
lea ecx, [esi + 0xe4]
push eax
call fcn.0040c70f
cmp dword [esi + 0x2c], 0
jne 0x406ec5
push 1
mov ecx, ebx
call fcn.004018f0
xor ebp, ebp
push ebp
push dword [esi + 0x148]
call edi
cmp dword [esp + 0x14], 6
jne 0x406fb8
cmp dword [esi + 0x1c4], ebp
je 0x406e44
push 0x3fd
mov ecx, ebx
call fcn.004018f0
push 0x3fc
mov ecx, ebx
call fcn.004018f0
push 5
push dword [esi + 0x18c]
call edi
push ebp
push dword [esi + 0xe8]
jmp 0x406fc0
push 0
push dword [esi + 0x70]
call edi
cmp ebp, 1
jne 0x406d9f
push 5
push dword [esi + 0xa8]
call edi
mov ebp, 0x3ea
push ebp
mov ecx, ebx
call fcn.004018f0
push 2
mov ecx, ebx
call fcn.004018f0
push 0
push ebp
mov ecx, ebx
call fcn.00401264
call fcn.0041a34c
mov ecx, eax
call fcn.00417bab
test eax, eax
jne 0x406e1a
call fcn.0041a34c
mov ecx, eax
call fcn.00418afb
jmp 0x406e1a
lea ecx, [esi + 0xe4]
call fcn.0040c68b
push ebp
mov ecx, ebx
call fcn.004018f0
push 2
mov ecx, ebx
call fcn.004018f0
push 1
push ebp
mov ecx, ebx
call fcn.00401264
cmp dword [esp + 0x14], 3
jne 0x406f18
push ebp
mov ecx, ebx
call fcn.004018f0
push 2
mov ecx, ebx
call fcn.004018f0
push 0
push ebp
mov ecx, ebx
call fcn.00401264
lea ecx, [esi + 0xe4]
call fcn.0040c43c
cmp dword [esp + 0x14], 4
jne 0x406f69
push ebp
mov ecx, ebx
call fcn.004018f0
push 2
mov ecx, ebx
call fcn.004018f0
push 0
push ebp
mov ecx, ebx
call fcn.00401264
push 0
push 2
mov ecx, ebx
call fcn.00401264
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 3
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
lea ecx, [esi + 0xe4]
call fcn.0040c696
cmp dword [esp + 0x14], 5
jne 0x406e1a
cmp dword [esi + 0x2c], 0
jne 0x406f8b
push dword [esi + 0x1cc]
lea ecx, [esi + 0x144]
call fcn.0040bccf
push 0
push dword [esi + 0xe8]
call edi
push 5
lea ebp, [esi + 0x148]
push dword [ebp]
call edi
push 1
push 0
push dword [ebp]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
mov ecx, ebx
call fcn.004018f0
push 0
push dword [esi + 0x18c]
call edi
push 1
mov ecx, ebx
call fcn.00401851
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x408035
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0xc]
lea edi, [eax + 1]
push edi
call fcn.00402554
push edi
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
call fcn.00406d03
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x409902
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x422fd6
call fcn.00422230
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00409690
mov ebx, dword [ebp + 0x14]
and dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.00403cb3
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004021e8
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jge 0x409964
push 0x80070057
call fcn.00401f5b
mov ax, word [eax]
cmp ax, 0x22
jne 0x4099c8
push dword [ebp + 0x10]
mov ecx, esi
push 0x22
call fcn.00408eaf
mov dword [ebp + 8], eax
inc eax
push eax
push 0x22
mov ecx, esi
call fcn.00408eaf
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp + 0x10], eax
je 0x4099da
cmp eax, 0xffffffff
je 0x4099da
sub eax, dword [ebp + 8]
mov ecx, esi
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00409527
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00403cb3
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004021e8
mov eax, dword [ebp + 0x10]
inc eax
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
xor eax, eax
jmp 0x4099cb