joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408940
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
sub eax, 0x6fca16ef
call fcn.00408963
xor dword [ebx], edi
sub ecx, eax
inc ebx
cmp ebx, esi
jne fcn.00408940
sub ecx, 1
inc ecx
ret
Function at 0x401240
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x26
fld dword [esi + 0x4c]
fmul dword [esi + 0x48]
fstp dword [esp + 0x10]
call edi
mov ebx, dword [esp + 0xc]
test al, 0x80
je 0x40126a
push ebx
mov ecx, esi
call fcn.004012d0
push 0x28
call edi
test al, 0x80
je 0x401283
fld dword [esp + 0xc]
push ecx
mov ecx, esi
fchs
fstp dword [esp]
call fcn.004012d0
push 0x25
call edi
test al, 0x80
je 0x40129c
fld dword [esp + 0xc]
push ecx
mov ecx, esi
fchs
fstp dword [esp]
call fcn.004013d0
push 0x27
call edi
test al, 0x80
je 0x4012ac
push ebx
mov ecx, esi
call fcn.004013d0
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4015c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43c0b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
fld dword [esp + 0x60]
fcos
lea esi, [ecx + 4]
lea edi, [ecx + 0x10]
lea eax, [esp + 0x38]
push esi
push eax
mov ecx, edi
mov byte [esp + 0x60], 1
fstp dword [esp + 0x10]
fld dword [esp + 0x68]
fsin
fstp dword [esp + 0x68]
call fcn.004013a0
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00401120
fld dword [0x43f744]
fsub dword [esp + 8]
fld st(0)
fmul dword [esp + 0x64]
fld st(0)
fmul dword [esp + 0x68]
fstp dword [esp + 0x10]
fld dword [esp + 0x60]
fmul dword [esp + 0x6c]
fstp dword [esp + 0xc]
fld st(0)
fmul dword [esp + 0x6c]
fstp dword [esp + 0x14]
fld dword [esp + 0x60]
fmul dword [esp + 0x68]
fstp dword [esp + 0x18]
fmul dword [esp + 0x64]
fadd dword [esp + 8]
fmul dword [esp + 0x20]
fld dword [esp + 0x10]
fsub dword [esp + 0xc]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x18]
fadd dword [esp + 0x14]
fmul dword [esp + 0x28]
faddp st(1)
fstp dword [esp + 0x2c]
fld st(0)
fmul dword [esp + 0x68]
fld st(0)
fmul dword [esp + 0x6c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x60]
fmul dword [esp + 0x64]
fstp dword [esp + 0x64]
fmul dword [esp + 0x68]
fadd dword [esp + 8]
fmul dword [esp + 0x24]
fld dword [esp + 0xc]
fadd dword [esp + 0x10]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x1c]
fsub dword [esp + 0x64]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x44]
fmul dword [esp + 0x28]
push edx
push eax
mov ecx, esi
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x1c]
fsub dword [esp + 0x20]
fmul dword [esp + 0x28]
fld dword [esp + 0x6c]
fadd dword [esp + 0x24]
fmul dword [esp + 0x2c]
faddp st(1)
fxch st(1)
fmul dword [esp + 0x74]
fmul dword [esp + 0x74]
fadd dword [esp + 0x10]
fmul dword [esp + 0x30]
faddp st(1)
fstp dword [esp + 0x3c]
call fcn.00401760
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, edi
call fcn.00401120
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret 0x10
Function at 0x401da0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401e6b
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xe
jbe 0x401e5a
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x24]
push edi
push ecx
lea edx, [esp + 0x18]
push 0xe
push edx
push ebx
call ebp
cmp dword [esp + 0x24], 0xe
jne 0x401e5a
cmp word [esp + 0x10], 0x4d42
jne 0x401e5a
lea edi, [esi - 0xe]
push edi
call fcn.00422378
mov esi, dword [esp + 0x2c]
add esp, 4
lea ecx, [esp + 0x24]
push 0
push ecx
push edi
push eax
push ebx
mov dword [esi], eax
call ebp
mov eax, dword [esi]
lea ecx, [eax + 0x28]
mov dword [esi + 8], ecx
cmp word [eax + 0xe], 8
jne 0x401e4e
mov dword [esi + 4], ecx
mov eax, dword [eax + 0x20]
test eax, eax
je 0x401e43
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x401e55
add ecx, 0x400
mov dword [esi + 8], ecx
jmp 0x401e55
mov dword [esi + 4], 0
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x415be6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x52f2a0
cmp edx, dword [eax]
je 0x415c08
add eax, 8
inc ecx
cmp eax, 0x52f330
jl 0x415bf9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x52f2a0]
jne 0x415d36
mov eax, dword [0x531f74]
cmp eax, 1
je 0x415d10
test eax, eax
jne 0x415c39
cmp dword [0x52ea90], 1
je 0x415d10
cmp edx, 0xfc
je 0x415d36
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415c70
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004168a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416990
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x415cb3
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416990
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x444958
push edi
call fcn.0041ae30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004168a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004168b0
lea eax, [ebp - 0xa0]
push 0x444938
push eax
call fcn.004168b0
push dword [esi + 0x52f2a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004168b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041ad9a
add esp, 0x2c
pop edi
jmp 0x415d36
lea eax, [ebp + 8]
lea esi, [esi + 0x52f2a4]
push 0
push eax
push dword [esi]
call fcn.00416990
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 0x41fac0
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.00410ee0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41fb8b
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 0x41fb8b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41fb3e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41fb49
or bh, 8
and edi, 0x8000000
je 0x41fb64
mov eax, dword [0x53371c]
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 0x41fb8b
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 0x41ff60
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 0x41ff8b
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 0x41ffaf
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 0x41ffca
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 0x422564
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x422586
cmp dword [edi + 0x3c], 0
jne 0x422586
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00438a64
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004225b3
pop edi
pop esi
pop ebx
ret 8

Function at 0x4228fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43cae4
call fcn.00410cb8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00438a64
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x42293d
call fcn.00438a64
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42294b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x422959
or eax, 0xffffffff
jmp 0x422a41
mov ecx, esi
call fcn.00422874
mov dword [ebp - 0x14], eax
call fcn.00424757
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x422990
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x422990
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0042470b
push dword [ebp - 0x14]
call fcn.00424259
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00422601
cmp eax, edi
je 0x422a03
test byte [esi + 0x24], 0x10
je 0x4229d1
push 4
mov ecx, esi
pop ebx
call fcn.00423a36
test ah, 1
je 0x4229c9
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004267df
cmp dword [esi + 0x1c], edi
je 0x422a03
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00423b7e
jmp 0x422a03
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x422a17
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x422a30
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x422a30
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004228ae
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x424c07
Capabilities:
Get graphical window text

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

Function at 0x426588
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 0x4265ca
call fcn.00438a64
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 0x4265ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4265c1
xor eax, eax
jmp 0x4265d2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004265d8
pop edi
pop esi
pop ebx
ret 4
Function at 0x43846b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00438a64
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4384a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4384a8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4384ac
xor eax, eax
jmp 0x43852a
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00422378
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4384e4
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4384ce
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0043861b
push ebx
mov edi, eax
call fcn.004223a1
test edi, edi
pop ecx
je 0x438526
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004383e4
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0043852f
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x438fc1
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 0x438fef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43900d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00438f27
jmp 0x43900d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43900d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00438f27
test edi, edi
mov eax, edi
jne 0x438ff7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Create thread

Disassembly:
sub esp, 0x260
mov ecx, 0x11
xor eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x27c]
mov ebx, dword [esp + 0x274]
lea edi, [esp + 0x2c]
mov dword [0x405840], ebx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x401045
lea edx, [esp + 0x170]
mov edi, str.war3.exe
jmp 0x4010a6
mov esi, str.about
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401070
test cl, cl
je 0x40106c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401070
add eax, 2
add esi, 2
test cl, cl
jne 0x40104c
xor eax, eax
jmp 0x401075
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40109d
lea eax, [esp + 0x70]
push 0xfe
push eax
push 1
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
lea ecx, [esp + 0x74]
push 0x405038
push ecx
jmp 0x401168
lea edx, [esp + 0x170]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x405848
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x174]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401149
call fcn.004011b0
test al, al
je 0x401170
mov eax, dword [0x405848]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x401180
call fcn.00401260
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
call fcn.00401210
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x260
ret 0x10
lea edx, [esp + 0x70]
push 0xfe
push edx
push 2
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [esp + 0x74]
push 0x405030
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x260
ret 0x10
Function at 0x4022ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4052d0
cmp edx, dword [eax]
je 0x40230f
add eax, 8
inc ecx
cmp eax, 0x405360
jl 0x402300
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4052d0]
jne 0x40243d
mov eax, dword [0x405864]
cmp eax, 1
je 0x402417
test eax, eax
jne 0x402340
cmp dword [0x40509c], 1
je 0x402417
cmp edx, 0xfc
je 0x40243d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402377
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004031e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403360
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4023ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403360
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043e8
push edi
call fcn.004037a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004031e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004031f0
lea eax, [ebp - 0xa0]
push 0x4043c8
push eax
call fcn.004031f0
push dword [esi + 0x4052d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004031f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403715
add esp, 0x2c
pop edi
jmp 0x40243d
lea eax, [ebp + 8]
lea esi, [esi + 0x4052d4]
push 0
push eax
push dword [esi]
call fcn.00403360
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 0x4667b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x54115b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00534766
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x466832
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00531451
mov eax, dword [eax]
push 0x6af2a4
push eax
call fcn.00510f24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005349f1
test bl, bl
je 0x466832
push 0x6af2a4
lea ecx, [esp + 0xc]
call fcn.00534d81
push 0x6b2e30
lea ecx, [esp + 0xc]
call fcn.00534d81
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x46686e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005349f1
jmp 0x466939
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4668f2
lea edx, [esp + 0x7c]
push 0x6b2e2c
push edx
call fcn.00510f24
add esp, 8
test eax, eax
je 0x4668f2
lea eax, [esp + 0x7c]
push 0x6b2e28
push eax
call fcn.00510f24
add esp, 8
test eax, eax
je 0x4668f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x466882
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.005349f1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4