joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460330
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x496b28
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x460369
inc eax
mov dword [esi + 0x10], eax
jmp 0x46047c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x46037d
mov eax, 0xffffffc7
jmp 0x46047e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x46038e
cmp dword [esi + 8], eax
jne 0x46037d
cmp dword [esi + 8], eax
jne 0x4603a7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4603a7
mov eax, 0xffffffc7
jmp 0x46047e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4603bb
push eax
mov ecx, ebx
call fcn.0045fb60
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0042e920
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4603ec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0042e940
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0045f2d0
test eax, eax
mov dword [esp + 0x38], eax
je 0x46041f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x568828
call fcn.0042eb20
mov eax, dword [esp + 0x38]
jmp 0x46047e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00460190
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x460463
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004601b0
mov esi, eax
test esi, esi
jne 0x460493
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00460190
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x460435
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x568828
call fcn.0042eb20
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x568828
call fcn.0042eb20
mov eax, esi
jmp 0x46047e

Function at 0x4635a0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x463600
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x463600
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x463600
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x463600
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 0x463640
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 0x4697a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0048fb4d
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00469140
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048fa7b
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048c341
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048c341
push 1
push 0
push 0
mov ecx, esi
call fcn.0048c2e9
push 1
push 0
push 1
mov ecx, esi
call fcn.0048c2e9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048fbbf
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x469920
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0048fb4d
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00469140
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048fa7b
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4699e4
cmp dword [esp + 0x40], 1
jne 0x4699e2
cmp ecx, eax
jge 0x4699e4
mov eax, ecx
cmp eax, 0xc8
jge 0x4699f0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004697a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048fbbf
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46a160
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4971e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048a75d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048fdf5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0049140b
test eax, eax
je 0x46a27c
mov ecx, dword [esp + 0x3c]
call fcn.0048fe22
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46a240
push edi
mov ecx, esi
call fcn.0048d48c
mov ecx, esi
call fcn.0046a3e0
cmp dword [esp + 0x38], 1
jne 0x46a275
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048d5c7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x46ccb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46cce3
push esi
call fcn.0046fda0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46ccdc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x46cd69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46cd52
mov eax, dword [esi + 8]
test eax, eax
je 0x46cd07
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46cd4e
cmp eax, 2
je 0x46cd52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46ccfa
cmp eax, 3
je 0x46cd2d
cmp eax, 1
jne 0x46ccfa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46ccfa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46ccfa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046cd90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46cd78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046cd90
add esp, 4
pop esi
ret

Function at 0x48b552
Capabilities:
Get graphical window text

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

Function at 0x48cc49
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 0x48cc8b
call fcn.00492801
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48cc8b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48cc82
xor eax, eax
jmp 0x48cc93
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048cc99
pop edi
pop esi
pop ebx
ret 4

Function at 0x492d31
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 0x492d5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492d7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492c97
jmp 0x492d7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492d7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492c97
test edi, edi
mov eax, edi
jne 0x492d67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405a30
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43afdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ec
mov eax, dword [0x44c960]
push edi
mov dword [esp + 4], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x1f8], 0
push ecx
call fcn.00405060
lea edx, [esp + 0x2c]
lea eax, [esp + 0xf4]
push edx
push str._sdata
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 8]
call fcn.0042396d
mov edi, dword [esp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
lea ecx, [esp + 8]
call fcn.00423c17
mov edi, dword [esp + 4]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0xc]
call fcn.00423c92
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405b22
mov ecx, 6
xor eax, eax
lea edi, [esp + 0xc]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
call fcn.00423ba0
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov word [esp + 0x1c], 0x10
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00423bef
lea ecx, [esp + 4]
mov dword [esp + 0x1f8], 0xffffffff
call fcn.004237e4
mov ecx, dword [esp + 0x1f0]
pop edi
mov dword fs:[0], ecx
add esp, 0x1f8
ret

Function at 0x405b50
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43affb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ec
mov eax, dword [0x44c960]
push edi
mov dword [esp + 4], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x1f8], 0
push ecx
call fcn.00405060
lea edx, [esp + 0x2c]
lea eax, [esp + 0xf4]
push edx
push str._sdata2
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 8]
call fcn.0042396d
mov edi, dword [esp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
lea ecx, [esp + 8]
call fcn.00423c17
mov edi, dword [esp + 4]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0xc]
call fcn.00423c92
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c42
mov ecx, 6
xor eax, eax
lea edi, [esp + 0xc]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
call fcn.00423ba0
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov word [esp + 0x1c], 0x10
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00423bef
lea ecx, [esp + 4]
mov dword [esp + 0x1f8], 0xffffffff
call fcn.004237e4
mov ecx, dword [esp + 0x1f0]
pop edi
mov dword fs:[0], ecx
add esp, 0x1f8
ret
Function at 0x4061e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43b0f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
mov eax, dword [0x44c960]
mov dword [esp + 0x14], 0x800
mov dword [esp + 0xc], eax
mov dword [esp + 0x820], 0
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push str.online
push str.http:__www.doingmedia.com
mov byte [esp + 0x830], 4
call dword [sym.imp.WININET.dll_InternetGetCookieA]
test eax, eax
jne 0x4062ae
push 0x44c608
lea ecx, [esp + 8]
call fcn.0042396d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 4]
push 0x44c604
push edx
call fcn.0041dcaf
add esp, 0xc
lea eax, [esp]
lea ecx, [esp + 4]
push eax
call fcn.00423b88
push 0
push 0
push 0x44c5e0
call fcn.0042b79e
push 5
push 0x44c510
push str.inetcpl.cpl
push str.control.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
mov byte [esp + 0x820], 3
call fcn.004237e4
lea ecx, [esp + 4]
mov byte [esp + 0x820], 2
call fcn.004237e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x820], 1
call fcn.004237e4
lea ecx, [esp + 8]
mov byte [esp + 0x820], 0
call fcn.004237e4
lea ecx, [esp + 0xc]
mov dword [esp + 0x820], 0xffffffff
call fcn.004237e4
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
add esp, 0x824
ret
Function at 0x406970
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x43b1bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x44c960]
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, 1
push 0x280
push 0x40
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], 0x280
call edi
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4069e0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x10]
push edx
push 0x40
call edi
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x406a9c
test esi, esi
je 0x406a86
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 0x199]
mov dl, byte [esi + 0x198]
xor eax, eax
push ecx
mov al, byte [esi + 0x197]
push edx
xor ecx, ecx
push eax
mov cl, byte [esi + 0x196]
xor edx, edx
mov dl, byte [esi + 0x195]
xor eax, eax
mov al, byte [esi + 0x194]
push ecx
push edx
push eax
push str._02X__02X__02X__02X__02X__02X
push 0x44f714
call ebp
add esp, 0x20
push 0x44f714
push 0x44fb14
call edi
mov esi, dword [esi]
push 0x44c448
push 0x44fb14
call edi
push 0x44fb14
lea ecx, [esp + 0x10]
push 0x44c324
push ecx
call fcn.0041dcaf
add esp, 0xc
test esi, esi
jne 0x406a07
mov ebp, 1
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00423559
mov dword [esp + 0x14], ebp
jmp 0x406ab0
mov esi, dword [esp + 0x28]
push str.NoFound
mov ecx, esi
call fcn.00423852
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.004237e4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x416762
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44e380
cmp edx, dword [eax]
je 0x416784
add eax, 8
inc ecx
cmp eax, 0x44e410
jl 0x416775
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44e380]
jne 0x4168b2
mov eax, dword [0x452010]
cmp eax, 1
je 0x41688c
test eax, eax
jne 0x4167b5
cmp dword [0x44da04], 1
je 0x41688c
cmp edx, 0xfc
je 0x4168b2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4167ec
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417440
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00414b50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41682f
lea eax, [ebp - 0x1a4]
push eax
call fcn.00414b50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x442750
push edi
call fcn.0040f530
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417440
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417450
lea eax, [ebp - 0xa0]
push 0x442730
push eax
call fcn.00417450
push dword [esi + 0x44e384]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417450
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00418b4b
add esp, 0x2c
pop edi
jmp 0x4168b2
lea eax, [ebp + 8]
lea esi, [esi + 0x44e384]
push 0
push eax
push dword [esi]
call fcn.00414b50
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 0x41d0e0
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.0040fb40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41d1ab
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 0x41d1ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41d15e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41d169
or bh, 8
and edi, 0x8000000
je 0x41d184
mov eax, dword [0x45379c]
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 0x41d1ab
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 0x41d580
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 0x41d5ab
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 0x41d5cf
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 0x41d5ea
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 0x4229ef
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 0x422a31
call fcn.0043359d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x422a31
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x422a28
xor eax, eax
jmp 0x422a39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00422a3f
pop edi
pop esi
pop ebx
ret 4

Function at 0x424377
Capabilities:
Extract resource via kernel32 functions

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