joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
push ebx
push edi
push 0x40921d
push dword [0x40b820]
call fcn.00402f40
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 1
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
jne 0x40171d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7d5
call fcn.00401019
pop ecx
xor eax, eax
jmp 0x4018f4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push edi
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push dword [ebp - 4]
call sub.WSOCK32.dll_ntohl
cmp eax, 0x8675309
jne 0x40177b
push 2
push ebx
push 0xfffffffffffffff8
push dword [ebp - 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call sub.WSOCK32.dll_ntohl
cmp eax, 0x400
mov dword [ebp - 4], eax
jbe 0x40178c
movzx eax, word [0x40b834]
add eax, 0xbb9
jmp 0x4018e1
push 2
push ebx
push 0xfffffffffffffff8
pop ecx
sub ecx, eax
push ecx
push dword [ebp - 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x510]
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x510]
call sub.WSOCK32.dll_ntohs
cmp ax, 1
mov word [0x40b808], ax
jb 0x4018d5
cmp ax, 2
ja 0x4018d5
mov eax, dword [ebp - 0x50e]
push eax
mov dword [ebp - 4], eax
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [0x40b824]
call fcn.00402f40
lea eax, [ebp - 0x50a]
push eax
push dword [0x40b818]
call fcn.00402f40
lea eax, [ebp - 0x50a]
push eax
call fcn.004030e0
lea esi, [ebp + eax - 0x509]
push esi
push dword [0x40b81c]
call fcn.00402f40
push esi
call fcn.004030e0
add esp, 0x20
cmp word [0x40b808], 2
lea esi, [esi + eax + 1]
jne 0x401888
push esi
push dword [0x40b820]
call fcn.00402f40
push esi
call fcn.004030e0
lea esi, [esi + eax + 1]
xor eax, eax
mov ax, word [esi]
add esp, 0xc
mov word [0x40b834], ax
push eax
call sub.WSOCK32.dll_ntohs
mov word [0x40b834], ax
push 0x200
push dword [0x40b82c]
movzx eax, ax
add eax, 0xbbc
push eax
push dword [0x40b814]
inc esi
inc esi
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
push dword [0x40b828]
call fcn.00402f40
push esi
call fcn.004030e0
lea esi, [esi + eax + 1]
xor eax, eax
mov ax, word [esi]
add esp, 0xc
mov word [0x40b810], ax
push eax
call sub.WSOCK32.dll_ntohs
mov word [0x40b810], ax
xor eax, eax
mov ax, word [esi + 2]
mov word [0x40b80c], ax
push eax
call sub.WSOCK32.dll_ntohs
xor ebx, ebx
mov word [0x40b80c], ax
inc ebx
jmp 0x4018e8
movzx eax, word [0x40b834]
add eax, 0xbba
push eax
call fcn.00401019
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x401dd5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push dword [ebp + 8]
call fcn.004030e0
pop ecx
mov ecx, eax
xor eax, eax
cmp cx, ax
mov word [ebp - 0x40], ax
mov word [ebp - 0x3e], 0xc0c1
mov word [ebp - 0x3c], 0xc181
mov word [ebp - 0x3a], 0x140
mov word [ebp - 0x38], 0xc301
mov word [ebp - 0x36], 0x3c0
mov word [ebp - 0x34], 0x280
mov word [ebp - 0x32], 0xc241
mov word [ebp - 0x30], 0xc601
mov word [ebp - 0x2e], 0x6c0
mov word [ebp - 0x2c], 0x780
mov word [ebp - 0x2a], 0xc741
mov word [ebp - 0x28], 0x500
mov word [ebp - 0x26], 0xc5c1
mov word [ebp - 0x24], 0xc481
mov word [ebp - 0x22], 0x440
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], 0xcc01
mov word [ebp - 0x1c], 0xd801
mov word [ebp - 0x1a], 0x1400
mov word [ebp - 0x18], 0xf001
mov word [ebp - 0x16], 0x3c00
mov word [ebp - 0x14], 0x2800
mov word [ebp - 0x12], 0xe401
mov word [ebp - 0x10], 0xa001
mov word [ebp - 0xe], 0x6c00
mov word [ebp - 0xc], 0x7800
mov word [ebp - 0xa], 0xb401
mov word [ebp - 8], 0x5000
mov word [ebp - 6], 0x9c01
mov word [ebp - 4], 0x8801
mov word [ebp - 2], 0x4600
jbe 0x401ed6
mov edx, dword [ebp + 8]
push esi
push edi
movzx esi, cx
mov cl, byte [edx]
xor cl, al
movzx ecx, cl
mov edi, ecx
shr edi, 4
movzx edi, word [ebp + edi*2 - 0x20]
and ecx, 0xf
xor di, word [ebp + ecx*2 - 0x40]
movzx ax, ah
xor eax, edi
inc edx
dec esi
jne 0x401eb1
pop edi
pop esi
leave
ret

Function at 0x402255
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00403420
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], edi
call fcn.00403420
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4022d8
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov ebx, 0xfa
push ebx
push dword [ebp - 0x10]
call esi
mov edi, 0x102
jmp 0x4022c0
call fcn.00401d88
push ebx
push dword [ebp - 0x10]
call esi
cmp eax, edi
je 0x4022b5
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402a1e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
call fcn.00401d88
cmp dword [0x40b700], 0
jne 0x402b65
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040238b
add esp, 0xc
test eax, eax
je 0x402a57
cmp dword [ebp + 0x10], 0
jne 0x402b65
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00402f40
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.004030e0
add esp, 0xc
cmp byte [eax + esi], 0x5c
mov edi, 0x409200
je 0x402a99
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00402f50
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push 0x409498
push eax
call fcn.00402f50
pop ecx
pop ecx
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b62
test byte [ebp - 0x244], 0x10
je 0x402b37
cmp byte [ebp - 0x218], 0x2e
je 0x402b37
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00402f40
lea eax, [ebp - 0x104]
push eax
call fcn.004030e0
add esp, 0xc
cmp byte [eax + esi], 0x5c
je 0x402b10
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00402f50
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00402f50
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00402a1e
add esp, 0x14
call fcn.00401d88
cmp dword [0x40b700], 0
jne 0x402b5b
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402acb
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b67
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040238b
add esp, 0xc
test eax, eax
je 0x402b89
xor eax, eax
inc eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00402f40
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.004030e0
add esp, 0xc
cmp byte [eax + esi], 0x5c
mov edi, 0x409200
je 0x402bcb
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00402f50
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push 0x409498
push eax
call fcn.00402f50
pop ecx
pop ecx
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402c00
xor eax, eax
jmp 0x402c94
test byte [ebp - 0x244], 0x10
je 0x402c6e
cmp byte [ebp - 0x218], 0x2e
je 0x402c6e
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00402f40
lea eax, [ebp - 0x104]
push eax
call fcn.004030e0
add esp, 0xc
cmp byte [eax + esi], 0x5c
je 0x402c45
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00402f50
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00402f50
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00402b67
add esp, 0x10
test eax, eax
jne 0x402c99
call fcn.00401d88
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c00
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
xor esi, esi
inc esi
jmp 0x402c8b
Function at 0x402c9e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
push edi
lea eax, [ebp - 0x44]
push eax
push dword [0x40b828]
call fcn.00401ed8
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
mov byte [0x40db90], bl
call fcn.0040238b
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x402cfd
push 0x40949c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00403280
cmp eax, ebx
pop ecx
pop ecx
je 0x402cfd
add eax, 4
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402b67
pop ecx
pop ecx
mov edi, eax
movzx esi, word [0x40b834]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [0x40b830]
add esi, 0xbbb
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x402e9a
mov edi, 0x200
push edi
lea eax, [ebp - 0x244]
push eax
push esi
push dword [0x40b814]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
call esi
push 0x40d948
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00402ede
add esp, 0xc
push 0x21
push dword [0x40b82c]
lea eax, [ebp - 0x444]
push eax
push dword [0x40b830]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x402ea9
push 0x20
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00403420
mov eax, dword [0x40b830]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x244]
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x444]
push eax
movzx eax, word [0x40b834]
add eax, 0xbc1
push eax
push dword [0x40b814]
mov dword [ebp - 0x1c], ebx
call esi
lea eax, [ebp - 0x444]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, ebx
je 0x402ea9
lea ecx, [ebp - 0x244]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x402ea9
push 1
mov dword [0x40d8c0], ebx
mov dword [0x40b700], ebx
call fcn.00401127
lea eax, [ebp - 0x244]
push eax
movzx eax, word [0x40b834]
add eax, 0xbc2
push eax
call fcn.004010b2
push 1
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402a1e
push ebx
call fcn.00401127
add esp, 0x1c
xor eax, eax
cmp dword [0x40d8c0], 1
jle 0x402e66
push ebx
push 0x401483
push dword [0x40b830]
push 0x83
push dword [0x40b814]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, dword [0x40d8c0]
jge 0x402ea9
cmp dword [0x40d8c0], ebx
je 0x402e8b
imul eax, eax, 0x104
add eax, 0x40b840
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040238b
add esp, 0xc
mov edi, eax
jmp 0x402e8d
xor edi, edi
movzx esi, word [0x40b834]
add esi, 0xbc0
cmp edi, ebx
je 0x402d23
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x402ea4
Function at 0x4034fc
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4094d0
call fcn.00404d00
mov edi, 0x94
mov eax, edi
call fcn.00403170
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40dc28], ecx
mov eax, dword [esi + 4]
mov dword [0x40dc34], eax
mov edx, dword [esi + 8]
mov dword [0x40dc38], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40dc2c], esi
cmp ecx, 2
je 0x40355c
or esi, 0x8000
mov dword [0x40dc2c], esi
shl eax, 8
add eax, edx
mov dword [0x40dc30], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403597
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403597
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4035af
cmp eax, 0x20b
je 0x40359c
mov dword [ebp - 0x1c], esi
jmp 0x4035c3
cmp dword [ecx + 0x84], 0xe
jbe 0x403597
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4035bd
cmp dword [ecx + 0x74], 0xe
jbe 0x403597
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00404cad
pop ecx
test eax, eax
jne 0x4035ef
cmp dword [0x40dc18], 1
jne 0x4035dc
call fcn.00404456
push 0x1c
call fcn.004042df
push 0xff
call fcn.004040ca
pop ecx
pop ecx
call fcn.00404c0b
mov dword [ebp - 4], esi
call fcn.00404a60
test eax, eax
jge 0x403608
push 0x1b
call fcn.004034d7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f154], eax
call fcn.0040493e
mov dword [0x40dc10], eax
call fcn.0040489c
test eax, eax
jge 0x40362e
push 8
call fcn.004034d7
pop ecx
call fcn.00404669
test eax, eax
jge 0x40363f
push 9
call fcn.004034d7
pop ecx
call fcn.004040fa
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x403652
push eax
call fcn.004034d7
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00404600
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x403673
movzx eax, word [ebp - 0x34]
jmp 0x403676
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401a33
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403694
push edi
call fcn.00404221
call fcn.00404243
jmp 0x4036c6
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00404d3b
ret
Function at 0x40415f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40dc68], esi
push edi
jne 0x40417f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40dc64], esi
mov byte [0x40dc60], al
jne 0x4041e5
mov ecx, dword [0x40f148]
test ecx, ecx
je 0x4041c6
mov eax, dword [0x40f144]
sub eax, 4
cmp eax, ecx
jmp 0x4041bf
mov eax, dword [eax]
test eax, eax
je 0x4041b1
call eax
mov eax, dword [0x40f144]
sub eax, 4
cmp eax, dword [0x40f148]
mov dword [0x40f144], eax
jae 0x4041a9
mov eax, 0x40b020
mov esi, 0x40b028
cmp eax, esi
mov edi, eax
jae 0x4041e5
mov eax, dword [edi]
test eax, eax
je 0x4041de
call eax
add edi, 4
cmp edi, esi
jb 0x4041d6
mov eax, 0x40b02c
mov esi, 0x40b030
cmp eax, esi
mov edi, eax
jae 0x404204
mov eax, dword [edi]
test eax, eax
je 0x4041fd
call eax
add edi, 4
cmp edi, esi
jb 0x4041f5
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40421f
push dword [ebp + 8]
mov dword [0x40dc68], 1
call fcn.004040ca
pop ecx
pop ebp
ret

Function at 0x4042df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40b478]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40b0b8]
je 0x40430c
inc eax
cmp eax, 0x12
jb 0x4042fd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40b0b8]
jne 0x404440
mov eax, dword [0x40dc18]
cmp eax, 1
je 0x40441b
cmp eax, edx
jne 0x40433c
cmp dword [0x40b094], 1
je 0x40441b
cmp ecx, 0xfc
je 0x404440
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404375
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00402f40
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004030e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4043b7
lea eax, [ebp - 0x10c]
push eax
call fcn.004030e0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x409cc8
push edi
call fcn.004060b0
add esp, 0x10
push edi
call fcn.004030e0
push dword [esi + 0x40b0bc]
mov ebx, eax
call fcn.004030e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403170
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402f40
push edi
push ebx
call fcn.00402f50
push 0x409ca8
push ebx
call fcn.00402f50
push dword [esi + 0x40b0bc]
push ebx
call fcn.00402f50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405fa9
add esp, 0x2c
jmp 0x404440
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40b0bc]
push dword [esi]
call fcn.004030e0
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00405148
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404dd8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x40b478]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x40f02c]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x404f68
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40f040]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x404f68
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x404e37
xor eax, eax
jmp 0x404f7c
test al, 0x20
je 0x404e48
push 2
push edi
push edi
push ecx
call fcn.00406b45
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404f04
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x404f3c
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x404e9e
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x404e8f
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x404e74
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404ede
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x404ee7
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x404e68
jmp 0x404ee9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x404f63
cmp dword [ebp + 8], edi
je 0x404f3c
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x404f31
mov dword [0x40dc20], eax
jmp 0x404f6f
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404f26
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x404ee9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x404ee9
push dword [ebp + 8]
call fcn.00406a30
pop ecx
jmp 0x404f79
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404f51
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x404e30
mov dword [0x40dc1c], 0x1c
mov dword [0x40dc20], edi
jmp 0x404f79
sub eax, dword [ebp - 0x14]
jmp 0x404f7c
and dword [0x40dc20], 0
mov dword [0x40dc1c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00405148
leave
ret
Function at 0x405fa9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40ddb4], ebx
push esi
push edi
jne 0x406029
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406064
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x409d7c
push edi
call esi
test eax, eax
mov dword [0x40ddb4], eax
je 0x406064
push 0x409d6c
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40ddb8], eax
call esi
cmp dword [0x40dc28], 2
mov dword [0x40ddbc], eax
jne 0x406029
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40ddc4], eax
je 0x406029
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40ddc0], eax
mov eax, dword [0x40ddc0]
test eax, eax
je 0x40606e
call eax
test eax, eax
je 0x406055
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40ddc4]
test eax, eax
je 0x406055
test byte [ebp - 8], 1
jne 0x40606e
cmp dword [0x40dc34], 4
jb 0x406068
or byte [ebp + 0x12], 0x20
jmp 0x40608d
xor eax, eax
jmp 0x40609d
or byte [ebp + 0x12], 4
jmp 0x40608d
mov eax, dword [0x40ddb8]
test eax, eax
je 0x40608d
call eax
mov ebx, eax
test ebx, ebx
je 0x40608d
mov eax, dword [0x40ddbc]
test eax, eax
je 0x40608d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40ddb4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40765f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403170
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4076f4
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40dc28]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4076f4
cmp eax, 1
je 0x40770c
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4076f4
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4076c9
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4076f0
xor eax, eax
inc eax
jmp 0x407728
cmp esi, ebx
jae 0x4076f8
xor eax, eax
jmp 0x407728
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40dc28]
jmp 0x40770e
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0xaae370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xaae38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xad7074
push ecx
mov edi, eax
call fcn.00ac2198
mov esi, eax
add esp, 8
test esi, esi
jne 0xaae3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ac202e
push esi
call fcn.00ac1fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret