joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403861
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.004048d0
or dword [ebp - 4], 0xffffffff
push ebx
push edi
push 0x80000000
push dword [ebp + 8]
call fcn.004014ce
mov ebx, eax
xor edi, edi
cmp ebx, edi
pop ecx
pop ecx
je 0x403926
push esi
push ebx
call fcn.0040155a
mov esi, eax
shr esi, 0x13
test eax, 0x7ffff
pop ecx
je 0x4038a4
inc esi
push edi
push edi
push edi
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x80000
lea eax, [ebp - 0x8000c]
push eax
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], edi
je 0x40391c
xor eax, eax
cmp dword [ebp - 8], edi
jbe 0x403901
movzx ecx, byte [ebp + eax - 0x8000c]
mov edx, dword [ebp - 4]
and edx, 0xff
xor ecx, edx
mov edx, dword [ebp - 4]
shr edx, 8
xor edx, dword [ecx*4 + 0x406130]
inc eax
cmp eax, dword [ebp - 8]
mov dword [ebp - 4], edx
jb 0x4038d8
cmp dword [0x406c88], edi
je 0x4038b1
inc dword [ebp - 0xc]
push 1
push esi
push dword [ebp - 0xc]
call fcn.00402e87
add esp, 0xc
jmp 0x4038b1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x403931
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x406dd4], eax
mov eax, dword [ebp - 4]
pop edi
not eax
pop ebx
leave
ret
Function at 0x403a8c
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push ebx
push 0xf0
push dword [0x406128]
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x2c], 0x1a
mov dword [esp + 0x30], 0x2e
call edi
mov dword [esp + 0x14], eax
mov esi, 0x406a14
mov ebp, 0xd0
push ebx
push ebx
push 0x402
push dword [esi - 0xc]
mov dword [esi - 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
call edi
add esi, ebp
cmp esi, 0x406c84
jle 0x403ad0
xor edi, edi
inc edi
mov esi, 0x406a18
lea ebx, [esp + 0x18]
push edi
mov ecx, 0x4060a0
call fcn.0040187a
test eax, eax
mov dword [esi], eax
je 0x403b18
cmp edi, 4
jge 0x403b18
mov eax, dword [ebx]
add dword [0x406c8c], eax
add esi, ebp
inc edi
add ebx, 4
cmp esi, 0x406c88
jle 0x403afa
cmp dword [0x406c88], 0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x403b3f
push 5
push dword [0x406c78]
call ebx
mov ecx, 0x406a1c
lea esi, [esp + 0x18]
cmp dword [ecx - 4], 0
je 0x403b5d
mov eax, dword [esi]
imul eax, eax, 0x64
xor edx, edx
div dword [0x406c8c]
mov dword [ecx], eax
add ecx, ebp
add esi, 4
cmp ecx, 0x406c8c
jl 0x403b48
xor edi, edi
xor esi, esi
push edi
mov ecx, 0x4060a0
call fcn.0040187a
test eax, eax
je 0x403be2
cmp dword [0x406c88], 0
je 0x403c0a
test edi, edi
jbe 0x403c0a
push 5
push dword [esi + 0x406938]
mov dword [esp + 0x18], 1
call ebx
push dword [esp + 0x14]
push edi
push dword [esp + 0x30]
call fcn.00403a30
add esp, 0xc
cmp word [eax], 0
je 0x403bc5
push eax
push 1
push edi
mov ecx, 0x4060a0
call fcn.004017af
cmp dword [esp + 0x10], 0
je 0x403be2
push 0
push dword [esi + 0x406938]
call ebx
mov eax, dword [esi + 0x40694c]
add dword [0x406c84], eax
add esi, ebp
inc edi
cmp esi, 0x340
jb 0x403b6e
cmp dword [0x406c88], 0
je 0x403c00
push 0
push dword [0x406c78]
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
and dword [esp + 0x10], 0
jmp 0x403ba0
Function at 0x403c11
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push esi
push edi
push 0
push 0
push 0xf0
push dword [0x406128]
call ebx
xor ebp, ebp
mov dword [esp + 0x10], eax
inc ebp
mov esi, 0x406a08
mov edi, 0xd0
xor eax, eax
push eax
push eax
push 0x402
push dword [esi]
mov dword [esi + 8], eax
call ebx
push ebp
mov ecx, 0x4060a0
call fcn.0040187a
mov dword [esi + 0x10], eax
add esi, edi
inc ebp
cmp esi, 0x406c78
jle 0x403c3e
xor ebx, ebx
cmp dword [0x406c88], ebx
je 0x403c8f
mov esi, 0x406a08
cmp dword [esi + 0x10], ebx
je 0x403c85
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
add esi, edi
cmp esi, 0x406c78
jle 0x403c76
mov esi, 0x4060a0
push ebx
mov ecx, esi
call fcn.0040187a
test eax, eax
je 0x403cbc
push ebx
push dword [esp + 0x1c]
call fcn.00402bb5
cmp word [eax], bx
pop ecx
pop ecx
je 0x403cbc
push eax
push 1
push ebx
mov ecx, esi
call fcn.004017af
xor eax, eax
cmp dword [0x406a18], ebx
je 0x403cc7
inc eax
cmp dword [0x406ae8], ebx
je 0x403cd2
or eax, 2
cmp dword [0x406bb8], ebx
je 0x403cdd
or eax, 4
push dword [esp + 0x10]
push eax
push dword [esp + 0x20]
call fcn.00403277
xor ebp, ebp
add esp, 0xc
mov dword [esp + 0x10], eax
inc ebp
mov esi, 0x406dd8
mov ebx, edi
cmp dword [ebx + 0x406948], 0
je 0x403d19
cmp word [esi], 0
je 0x403d19
push esi
push 1
push ebp
mov ecx, 0x4060a0
call fcn.004017af
add ebx, edi
inc ebp
add esi, 0xa4
cmp ebx, 0x270
jbe 0x403cfc
mov esi, 0x406a08
cmp dword [esi + 0x10], 0
je 0x403d3f
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
add esi, edi
cmp esi, 0x406c78
jle 0x403d2f
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x5472541d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x64500da8
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4010cc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [eax]
cmp al, 0x22
jne 0x4010fc
push esi
call dword [sym.imp.user32.dll_CharNextA]
mov esi, eax
mov al, byte [eax]
test al, al
je 0x4010f4
cmp al, 0x22
jne 0x4010e1
cmp byte [esi], 0x22
jne 0x40110e
inc esi
jmp 0x40110e
cmp al, 0x20
jle 0x40110e
push esi
call dword [sym.imp.user32.dll_CharNextA]
cmp byte [eax], 0x20
mov esi, eax
jg 0x401100
cmp byte [esi], 0
je 0x401126
cmp byte [esi], 0x20
ja 0x401126
push esi
call dword [sym.imp.user32.dll_CharNextA]
cmp byte [eax], 0
mov esi, eax
jne 0x401113
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
mov eax, 0xa
je 0x401146
movzx eax, word [ebp - 0x14]
push eax
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
push eax
mov esi, eax
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x401193
Capabilities:
Get geographical location

Disassembly:
mov dword [0x4057f4], 0x4045eb
sub esp, 4
mov dword [0x4057fc], 0xe
lea eax, [esp + 2]
push 2
push eax
push 0xd
push 0x400
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
cmp byte [esp + 2], 0x31
jne 0x4011ef
mov dword [0x4057c0], 0xa006
mov eax, 0x3e8
mov dword [0x4057e0], eax
mov dword [0x4057e8], eax
mov eax, 0x2ee
mov dword [0x4057dc], eax
mov dword [0x4057e4], eax
jmp 0x401217
mov dword [0x4057c0], 0xa00a
mov eax, 0x9c4
mov dword [0x4057e0], eax
mov dword [0x4057e8], eax
mov eax, 0x7d0
mov dword [0x4057dc], eax
mov dword [0x4057e4], eax
add esp, 4
ret
Function at 0x401a60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov ebx, 1
mov esi, section..text
lea edi, [ebp - 0x104]
xor eax, eax
mov ecx, pe_nt_image_headers32
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x405010], eax
je 0x401ab2
push eax
push eax
push 0xe
mov eax, dword [0x405004]
push eax
call dword [sym.imp.user32.dll_SendMessageA]
test eax, eax
jne 0x401ab2
mov eax, ebx
jmp 0x401c85
cmp dword [0x40503c], 0
je 0x401ae8
cmp dword [ebp + 8], 0
jne 0x401ac8
xor eax, eax
jmp 0x401c85
mov eax, dword [section..data]
push eax
call dword [sym.imp.user32.dll_GetLastActivePopup]
mov esi, eax
push 0
push esi
call dword [sym.imp.user32.dll_ShowWindow]
push 2
push esi
call dword [sym.imp.user32.dll_EndDialog]
xor esi, esi
mov eax, dword [0x405004]
push esi
push esi
push 0xb8
push eax
call dword [sym.imp.user32.dll_SendMessageA]
test eax, eax
je 0x401c72
cmp dword [0x405010], esi
je 0x401b14
mov eax, dword [0x405050]
jmp 0x401b29
cmp word [0x4056a2], 0x5c5c
mov eax, 0x4056a2
je 0x401b29
mov eax, 0x4056a0
mov dword [0x40503c], 1
cmp dword [ebp + 8], 1
mov ecx, 0
adc ecx, 0xffffffff
and cx, 0x1000
mov cl, 0x33
push ecx
push eax
push dword [0x40504c]
push dword [0x405064]
mov eax, dword [section..data]
push eax
call fcn.0040240d
mov ebx, eax
xor eax, eax
mov dword [0x40503c], eax
cmp ebx, 6
jne 0x401c72
cmp dword [0x405010], eax
je 0x401b80
push 0x405601
jmp 0x401ba5
push 0
mov eax, dword [section..data]
push 0x4056a0
push eax
call fcn.004031dd
test eax, eax
je 0x401ba0
mov eax, 1
jmp 0x401c85
push 0x4056a0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
mov dword [0x405684], 0x8806
mov dword [0x40565c], 0x405550
mov dword [0x405660], 0x405600
lea eax, [ebp - 0x104]
push 0x405650
mov dword [0x405028], 1
mov dword [0x40566c], eax
mov eax, dword [0x405094]
add eax, 3
mov dword [0x40568c], eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x401c3f
mov eax, dword [0x40566c]
lea ecx, [ebp - 0x104]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpy]
push 1
lea ecx, [ebp - 0x104]
push ecx
push dword [section..data]
call fcn.004031dd
test eax, eax
je 0x401c72
lea eax, [ebp - 0x104]
push eax
push 0x4056a0
call dword [sym.imp.kernel32.dll_lstrcpy]
jmp 0x401c72
mov dword [0x40503c], 1
mov ebx, 2
call sub.comdlg32.dll_CommDlgExtendedError
test eax, eax
je 0x401c72
push 0x10
mov eax, dword [0x405058]
push 0
push eax
push dword [0x405064]
push dword [section..data]
call fcn.0040240d
mov dword [0x40503c], 0
sub ebx, 2
cmp ebx, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40225a
Capabilities:
Open clipboard

Disassembly:
push ebp
mov eax, dword [section..data]
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push eax
call dword [sym.imp.user32.dll_GetMenu]
mov esi, eax
push 0
push 0
mov eax, dword [0x405004]
push 0xb0
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, eax
shr ecx, 0x10
sub cx, ax
cmp cx, 1
sbb ebx, ebx
neg ebx
push ebx
push 0x300
push 1
push esi
call dword [sym.imp.user32.dll_GetSubMenu]
push eax
call dword [sym.imp.user32.dll_EnableMenuItem]
push ebx
push 0x301
push 1
push esi
call dword [sym.imp.user32.dll_GetSubMenu]
push eax
call dword [sym.imp.user32.dll_EnableMenuItem]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4022e0
push 1
call dword [sym.imp.user32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 4], eax
call dword [sym.imp.user32.dll_CloseClipboard]
mov edi, 1
cmp dword [ebp - 4], edi
sbb eax, eax
neg eax
push eax
push 0x302
push edi
push esi
call dword [sym.imp.user32.dll_GetSubMenu]
push eax
call dword [sym.imp.user32.dll_EnableMenuItem]
push ebx
push 0x303
push edi
xor ebx, ebx
push esi
call dword [sym.imp.user32.dll_GetSubMenu]
push eax
call dword [sym.imp.user32.dll_EnableMenuItem]
push ebx
mov eax, dword [0x405004]
push ebx
push 0xc6
push eax
call dword [sym.imp.user32.dll_SendMessageA]
cmp eax, edi
sbb eax, eax
neg eax
push eax
push 0x19
push edi
push esi
call dword [sym.imp.user32.dll_GetSubMenu]
push eax
call dword [sym.imp.user32.dll_EnableMenuItem]
mov eax, 0
cmp dword [0x40501c], edi
adc eax, 0xffffffff
and eax, 8
push eax
push 0x1b
push edi
push esi
call dword [sym.imp.user32.dll_GetSubMenu]
push eax
call dword [sym.imp.user32.dll_CheckMenuItem]
cmp dword [0x4057bc], ebx
jne 0x40238d
push 0x14
lea eax, [ebp - 0x18]
push eax
push section..text
push 0x40100c
push 0x401004
call dword [sym.imp.kernel32.dll_GetProfileStringA]
test eax, eax
je 0x40238f
xor edi, edi
push edi
push 0xe
push esi
call dword [sym.imp.user32.dll_EnableMenuItem]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402446
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
ret 0xc
Function at 0x4029ee
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x2f
jne 0x402b8b
cmp byte [esi + 1], 0x2e
jne 0x402b8b
mov al, byte [esi + 2]
cmp al, 0x53
je 0x402a15
cmp al, 0x73
jne 0x402b8b
mov al, byte [esi + 3]
cmp al, 0x45
je 0x402a24
cmp al, 0x65
jne 0x402b8b
mov al, byte [esi + 4]
cmp al, 0x54
je 0x402a33
cmp al, 0x74
jne 0x402b8b
mov al, byte [esi + 5]
cmp al, 0x55
je 0x402a42
cmp al, 0x75
jne 0x402b8b
mov al, byte [esi + 6]
cmp al, 0x50
je 0x402a51
cmp al, 0x70
jne 0x402b8b
push 0
mov eax, dword [section..data]
mov dword [0x405018], 1
push eax
call dword [sym.imp.user32.dll_GetSystemMenu]
push 2
add esi, 7
mov dword [0x4055b0], eax
mov eax, dword [0x405540]
push eax
call dword [sym.imp.user32.dll_LoadAcceleratorsA]
mov dword [0x4055e8], eax
mov al, byte [esi]
cmp al, 0x20
je 0x402a8e
cmp al, 9
jne 0x402a91
inc esi
jmp 0x402a84
cmp byte [esi], 0
je 0x402b84
push esi
mov esi, 0x4056a0
push esi
call fcn.00402894
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [0x405640], eax
cmp eax, 0xffffffff
jne 0x402b5a
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x402aec
cmp eax, 5
je 0x402b30
push 0x30
cmp eax, 0x7b
je 0x402b3e
push esi
mov eax, dword [0x405040]
jmp 0x402b48
push 0x34
mov esi, 0x4056a0
push esi
mov eax, dword [0x405044]
push eax
push dword [0x405064]
push dword [section..data]
call fcn.0040240d
cmp eax, 6
jne 0x402b5a
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [0x405640], eax
jmp 0x402b5a
push 0x30
mov eax, dword [0x4050b0]
push 0x4056a0
jmp 0x402b48
push 0x4056a0
mov eax, dword [0x405078]
push eax
push dword [0x405064]
push dword [section..data]
call fcn.0040240d
cmp dword [0x405640], 0xffffffff
je 0x402b8b
xor esi, esi
push esi
push 0x4056a0
call fcn.004034a4
test al, 0x80
je 0x402b84
push esi
mov eax, dword [section..data]
push esi
push 0x10
push eax
call dword [sym.imp.user32.dll_PostMessageA]
mov eax, 1
jmp 0x402b8d
xor eax, eax
pop esi
ret 4
Function at 0x402b91
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x2f
jne 0x402c9b
mov al, byte [esi + 1]
cmp al, 0x50
je 0x402bae
cmp al, 0x70
jne 0x402c9b
add esi, 2
mov al, byte [esi]
cmp al, 0x20
je 0x402bbb
cmp al, 9
jne 0x402bbe
inc esi
jmp 0x402bb1
cmp byte [esi], 0
je 0x402c9b
push dword [esp + 0xc]
push dword [section..data]
call dword [sym.imp.user32.dll_ShowWindow]
push esi
mov esi, 0x4056a0
push esi
call fcn.00402894
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [0x405640], eax
cmp eax, 0xffffffff
jne 0x402c27
push 0x30
mov eax, dword [0x40509c]
push esi
push eax
push dword [0x405064]
push dword [section..data]
call fcn.0040240d
mov eax, 1
jmp 0x402c9d
push 1
push 0x4056a0
call fcn.004034a4
test al, 0x80
je 0x402c3e
mov eax, 1
jmp 0x402c9d
call fcn.00403d9a
test eax, eax
jge 0x402c94
cmp eax, 0xfffffffd
je 0x402c94
cmp eax, 0xfffffffc
jne 0x402c59
mov ecx, dword [0x405080]
jmp 0x402c6c
cmp eax, 0xfffffffb
jne 0x402c66
mov ecx, dword [0x405084]
jmp 0x402c6c
mov ecx, dword [0x405074]
cmp dword [0x405010], 0
mov eax, 0x4056a0
je 0x402c7f
mov eax, dword [0x405050]
push 0x30
push eax
push ecx
mov eax, dword [section..data]
push dword [0x405064]
push eax
call fcn.0040240d
mov eax, 1
jmp 0x402c9d
xor eax, eax
pop esi
ret 8
Function at 0x4031dd
Capabilities:
Delete file
Get graphical window text

Disassembly:
push ebp
mov eax, dword [0x4055f0]
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov edi, dword [ebp + 0x10]
cmp edi, esi
jne 0x403216
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_CreateFileA]
jmp 0x403240
push 2
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll__lopen]
mov dword [0x405640], eax
test eax, eax
jge 0x403240
push 0
mov esi, 1
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll__lcreat]
test eax, eax
jge 0x403240
xor esi, esi
mov dword [0x405640], eax
cmp eax, 0xffffffff
jne 0x40326e
test edi, edi
je 0x403267
push 0x30
push dword [ebp + 0xc]
push dword [0x405088]
push dword [0x405064]
push dword [ebp + 8]
call fcn.0040240d
xor eax, eax
jmp 0x4033b0
xor edi, edi
mov eax, dword [0x405004]
push edi
push edi
push 0xc8
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push edi
mov dword [ebp - 8], eax
push edi
mov eax, dword [0x405004]
push 0xe
push eax
call dword [sym.imp.user32.dll_SendMessageA]
lea ebx, [eax + 1]
push 0x42
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x405644]
push eax
call dword [sym.imp.kernel32.dll_LocalReAlloc]
mov dword [0x405644], eax
cmp eax, edi
jne 0x4032d4
push 0x30
push dword [ebp + 0xc]
push dword [0x40506c]
push dword [0x405064]
push dword [ebp + 8]
call fcn.0040240d
xor eax, eax
jmp 0x4033b0
mov eax, dword [0x405644]
push eax
call dword [sym.imp.kernel32.dll_LocalLock]
push eax
mov edi, eax
push ebx
mov eax, dword [0x405004]
push 0xd
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push dword [ebp - 4]
push edi
push dword [0x405640]
call dword [sym.imp.kernel32.dll__hwrite]
cmp eax, dword [ebp - 4]
je 0x403349
mov eax, dword [0x405644]
push eax
call dword [sym.imp.kernel32.dll_LocalUnlock]
mov eax, dword [0x405640]
push eax
call dword [sym.imp.kernel32.dll__lclose]
test esi, esi
je 0x40332c
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0x30
push dword [ebp + 0xc]
push dword [0x40506c]
push dword [0x405064]
push dword [ebp + 8]
call fcn.0040240d
xor eax, eax
jmp 0x4033b0
xor esi, esi
mov eax, dword [0x405640]
push esi
push edi
push eax
call dword [sym.imp.kernel32.dll__hwrite]
push esi
mov eax, dword [0x405004]
push esi
push 0xb9
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push dword [ebp + 0xc]
call fcn.00402170
mov eax, dword [0x405640]
mov dword [0x405010], esi
push eax
call dword [sym.imp.kernel32.dll__lclose]
cmp dword [ebp - 8], esi
je 0x40339f
push esi
mov eax, dword [0x405004]
push 1
push 0xc8
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [0x405644]
push eax
call dword [sym.imp.kernel32.dll_LocalUnlock]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4033b9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
lea eax, [ebp - 0x170]
push esi
push edi
push eax
xor esi, esi
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
push 0x24
mov eax, dword [0x4050b4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_MessageBoxA]
cmp eax, 6
jne 0x403496
push 0x104
lea eax, [ebp - 0x274]
cmp dword [ebp + 0x10], 1
sbb edi, edi
push eax
add edi, 0x37
push 0x38
push dword [0x405540]
call dword [sym.imp.user32.dll_LoadStringA]
push 0x12c
lea ecx, [ebp - 0x12c]
push ecx
mov eax, dword [0x405540]
push edi
mov ebx, 0x40105c
push eax
call dword [sym.imp.user32.dll_LoadStringA]
push ebx
lea eax, [ebp - 0x12c]
push eax
mov edi, dword [sym.imp.kernel32.dll_lstrcat]
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x12c]
push eax
call edi
push ebx
lea ecx, [ebp - 0x12c]
push ecx
call edi
push 1
lea ecx, [ebp - 0x12c]
push esi
lea edx, [ebp - 0x274]
push ecx
push edx
push esi
push esi
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40348f
push 0x30
mov eax, dword [0x405064]
push eax
push dword [0x4050b8]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_MessageBoxA]
xor eax, eax
jmp 0x40349b
mov eax, 0x81
jmp 0x40349b
mov eax, 0x82
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403820
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
cmp byte [eax], bl
je 0x4039f8
mov eax, dword [0x4055f0]
push eax
call dword [sym.imp.user32.dll_SetCursor]
lea ecx, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push 0xb0
push dword [0x405004]
call dword [sym.imp.user32.dll_SendMessageA]
push ebx
push ebx
push 0xe
push dword [0x405004]
call dword [sym.imp.user32.dll_SendMessageA]
lea edi, [eax + 1]
push edi
push 0x42
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4039f8
push eax
call dword [sym.imp.kernel32.dll_LocalLock]
cmp eax, ebx
mov esi, eax
jne 0x4038a1
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_LocalFree]
jmp 0x4039f8
push esi
mov eax, dword [0x405004]
push edi
push 0xd
push eax
call dword [sym.imp.user32.dll_SendMessageA]
cmp dword [0x40529c], 0
je 0x40394a
push 0
push dword [ebp - 8]
push 0xc9
push dword [0x405004]
call dword [sym.imp.user32.dll_SendMessageA]
push 0
mov dword [ebp - 4], eax
push eax
push 0xbb
push dword [0x405004]
call dword [sym.imp.user32.dll_SendMessageA]
mov edi, eax
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
cmp dword [0x405298], 0
je 0x403910
add ebx, esi
lea ecx, [esi + edi]
push ebx
push ecx
call fcn.00404e4f
jmp 0x40391c
add ebx, esi
lea ecx, [esi + edi]
push ebx
push ecx
call fcn.00404f2d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40396e
cmp dword [ebp - 0x10], 0
mov ebx, edi
je 0x40396e
push 0
dec dword [ebp - 0x10]
push dword [ebp - 0x10]
push 0xbb
push dword [0x405004]
call dword [sym.imp.user32.dll_SendMessageA]
mov edi, eax
jmp 0x4038f6
push dword [ebp + 8]
cmp dword [0x405298], 0
mov eax, dword [ebp - 0x14]
je 0x403963
add eax, esi
push eax
call fcn.00404e07
jmp 0x40396b
add eax, esi
push eax
call fcn.00404ee5
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_LocalUnlock]
push dword [ebp - 0x18]
call dword [sym.imp.user32.dll_SetCursor]
cmp dword [ebp - 4], 0
jne 0x4039b8
cmp dword [0x405008], 0
je 0x403997
mov ecx, dword [0x405008]
jmp 0x40399d
mov ecx, dword [section..data]
push pe_nt_image_headers32
mov eax, dword [0x405054]
push 0x405590
push eax
push dword [0x405064]
push ecx
call fcn.0040240d
jmp 0x4039f8
push dword [ebp + 8]
mov eax, dword [ebp - 4]
sub eax, esi
mov dword [ebp - 8], eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, dword [ebp - 8]
add ecx, eax
mov eax, dword [0x405004]
push ecx
push dword [ebp - 8]
push 0xb1
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push 0
push 0
push 0xb7
push dword [0x405004]
call dword [sym.imp.user32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4