joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ad40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x42ad62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42ad69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42ad58
mov eax, 1
add ebx, ebx
jne 0x42ad7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42ad70
jne 0x42ad8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ad70
xor ecx, ecx
sub eax, 3
jb 0x42ada0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ae12
mov ebp, eax
add ebx, ebx
jne 0x42adab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42adb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42addc
inc ecx
add ebx, ebx
jne 0x42adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42adbd
jne 0x42add9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42adbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42adfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42aded
jmp 0x42ad5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42adfc
add edi, ecx
jmp 0x42ad5e
pop esi
mov edi, esi
mov ecx, 0xb06
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ae1a
cmp byte [edi], 9
jne 0x42ae1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42ae1f
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42ae8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a62c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a6d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42ae4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a6dc]
or eax, eax
je 0x42ae88
mov dword [ebx], eax
add ebx, 4
jmp 0x42ae69
call dword [esi + 0x2a6d8]
mov ebp, dword [esi + 0x2a6e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42aec2
sub esp, 0xffffff80
jmp 0x40b463

Function at 0xf08c3c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf08c46
pushal
call 0xf08c4c
pop ebp
sub ebp, 0x10
sub ebp, 0xb08c3c
jmp 0xf08c62
mov eax, 0xb08c3c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d5
mov edx, 0xa815e27
xor byte [eax], dl
inc eax
dec ecx
jne 0xf08c79
jmp 0xf08c8c
lodsb al, byte [esi]
ljmp 0x2727
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40633c
pop dword [ebp - 0x1c]
mov eax, 0xfbb340e7
add eax, 0x48d2255
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x46313bbb
sub dword [ebp - 0x2c], 0xf7def670
mov dword [ebp - 0x28], 0x28900034
add dword [ebp - 0x28], 0x9a34c11
mov dword [ebp - 0x24], 0x173e67b4
sub dword [ebp - 0x24], 0xcaf22386
mov dword [ebp - 0x20], 0xcbdf2c3c
sub dword [ebp - 0x20], 0xcbdf2c3c
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xa4492d49
add dword [ebp - 0x2c], 0xd0293c0d
mov dword [ebp - 0x28], 0xe267a8bb
sub dword [ebp - 0x28], 0xa0fb4746
mov dword [ebp - 0x24], 0xc08b2122
add dword [ebp - 0x24], 0xa2e44b4a
mov dword [ebp - 0x20], 0xc70a6a15
sub dword [ebp - 0x20], 0xc70a6a15
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xc9c751f0
sub eax, 0xc986e0f0
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x36dcd
push 0
call eax
mov ecx, 0xfb6ee855
add ecx, 0x49160a5
mov edi, eax
mov edx, 0xe2baa235
add edx, 0x1d865dcb
add edx, dword [ebp - 0x1c]
mov esi, 0x28c71ae4
sub esi, 0x1cab5271
xor dword [ebp - 0xc], ecx
mov ebx, dword [edx]
mov dword [ebp - 0x10], 0x6770d07d
sub ebx, esi
add dword [ebp - 0x14], eax
mov dword [edi], ebx
xor dword [ebp - 0x18], esi
add edi, 0xc3b7746
sub edi, 0xc3b7742
add edx, 4
loop 0x406459
add eax, 0x942f84c4
add eax, 0x6bd191f7
mov ebx, eax
add eax, 0x2897f1e0
sub eax, 0x2897f1db
mov ecx, 0xc53ff7a4
add ecx, 0x3b00085c
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, reloc.msvcrt.dll_memmove
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40c404
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40c413
pop dword [ebp - 0x48]
mov eax, 0xb4cc0c4a
sub eax, 0xb48b4837
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3e2df
push 0
mov eax, 0x14a47745
sub eax, 0x1462252d
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x49b2
mov ebx, eax
mov esi, 0x2220f966
sub esi, 0x21dda566
add esi, dword [ebp - 0x48]
mov edi, 0x28617164
add dword [ebp - 0x30], 0xf97ba26b
mov edx, dword [esi]
add dword [ebp - 0x38], esi
xor edx, edi
sub dword [ebp - 8], 0x485084bf
mov dword [ebx], edx
add dword [ebp - 0x14], 0x3c0a3034
add ebx, 4
add esi, 0x70cde941
add esi, 0x8f3216c3
loop 0x40c466
add eax, 0xceea9ecd
add eax, 0x31167ace
mov ebx, eax
add eax, 0xbbd6472d
sub eax, 0xbbd64728
mov ecx, 0x731dd97b
add ecx, 0x8d222685
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x180b71de
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.18148a10
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor ebx, ebx
inc ebx
test eax, eax
je 0x180b7245
push ebx
mov edx, str..google.com
lea ecx, [ebp - 0x204]
call fcn.1800cb89
pop ecx
test al, al
jne 0x180b728a
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push esi
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov esi, dword [ebp - 0x208]
test eax, eax
jne 0x180b7280
cmp dword [esi + 8], eax
je 0x180b7280
push str.google
push dword [esi + 8]
call fcn.18152c93
pop ecx
pop ecx
test eax, eax
je 0x180b7282
xor bl, bl
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret

Function at 0x180b8c74
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x180b8ca7
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x180b8c8e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x180b8c9f
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x180b8ca9
inc edi
add eax, 0x28
cmp edi, esi
jb 0x180b8c84
xor eax, eax
pop edi
pop esi
ret

Function at 0x180b9079
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.180b8c3c
push eax
push esi
push dword [ebp + 8]
call fcn.180b8bf1
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.180b8c2c
sal ebx, cl
dec edi
xchg ebx, eax
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
invalid

Function at 0x180bbde5
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x180bbdf5
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x180bbdfb
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x180bbe23
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x1819f870]
test ax, ax
jne 0x180bbe0a
mov esi, ecx
jmp 0x180bbe26
movzx esi, si
pop edi
cmp cx, si
je 0x180bbe43
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x1819f870]
test cx, cx
jne 0x180bbe27
mov eax, 0x18181a7c
jmp 0x180bbe4b
imul eax, edx, 0x1a
add eax, 0x1819f872
push eax
mov ecx, ebx
call fcn.18006e44
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x180bc321
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push ecx
xor edi, edi
mov dword [esp + 0x18], edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov ebx, eax
test ebx, ebx
jne 0x180bc34b
call fcn.18013e1e
jmp 0x180bc3d2
call fcn.180040b1
push eax
lea ecx, [esp + 0x10]
call fcn.1800717c
lea ecx, [esp + 0xc]
call fcn.18010ec1
test eax, eax
jns 0x180bc372
lea eax, [esp + 0xc]
push eax
call fcn.18010e03
pop ecx
mov esi, dword [esp + 0xc]
mov eax, edi
mov dword [esp + 0x10], eax
cmp dword [esi - 0xc], edi
je 0x180bc391
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov eax, dword [esp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
push dword [ebp + 8]
push edi
push dword [esp + 0x30]
push ebx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x180bc3b7
call fcn.18013e1e
mov edi, eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea ecx, [esi - 0x10]
call fcn.18004715
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0xf135f4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf135fe
pushal
call 0xf13604
pop ebp
sub ebp, 0x10
sub ebp, 0xb135f4
jmp 0xf1361a
mov eax, 0xb135f4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c8
mov edx, 0x1de38736
xor byte [eax], dl
inc eax
dec ecx
jne 0xf13631
jmp 0xf13644
mov ebp, 0xabfbdfb
mov bh, 0xf7
into
xor eax, 0x36308efb
mov word ss:[esi], ds
rcl esp, 0x35
invalid
Function at 0x401bc2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
mov eax, dword [0x407c04]
or eax, eax
je 0x401c1e
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [0x407c04]
call sub.kernel32.dll_VirtualProtectEx
or eax, eax
jne 0x401bf8
push 0x4079f6
call fcn.00403e2b
jmp 0x401c28
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x407c04]
call sub.kernel32.dll_WriteProcessMemory
or eax, eax
jne 0x401c1c
push 0x4079da
call fcn.00403e2b
jmp 0x401c28
push 0x407982
call fcn.00403e2b
leave
ret 0xc

Function at 0x403740
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 0
push 0
push dword [ebp + 8]
call sub.kernel32.dll_SetFilePointer
push 0
push dword [ebp + 8]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
push 0x8000
call fcn.004010f4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
cmp dword [ebp - 8], 0x8000
jb 0x40378b
push 0x8000
jmp 0x40378e
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_ReadFile
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00403715
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
or eax, eax
je 0x4037b6
sub dword [ebp - 8], eax
jne 0x403775
push dword [ebp - 4]
call fcn.0040111a
mov eax, dword [ebp - 0x10]
not eax
leave
ret 4

Function at 0x4037c7
Capabilities:
Accept command line arguments

Disassembly:
mov dword [0x407cec], 0x40384d
mov dword [0x407ce8], ebp
push section..text
push dword fs:[0]
mov dword [0x407ce4], esp
mov dword fs:[0], esp
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x417f2d], eax
call fcn.00403b95
call sub.kernel32.dll_GetCommandLineA
push eax
call fcn.004041cd
mov dword [0x417f31], eax
push 0x104
push 0x417e29
push 0
call sub.kernel32.dll_GetModuleFileNameA
call fcn.004017a8
call fcn.00401031
push 0xa
push dword [0x417f31]
push 0
push dword [0x417f2d]
call fcn.004038ef
pop dword fs:[0]
add esp, 4
jmp 0x403890
mov dword [0x407be0], 1
push 0x3e8
push dword [0x417f52]
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4038be
push 0
push dword [0x417f52]
call sub.kernel32.dll_TerminateThread
call fcn.004046c0
push eax
call sub.kernel32.dll_ExitProcess
Function at 0x4038ef
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push ecx
push edx
xor eax, eax
dec al
mov edx, eax
mov cl, 8
shr edx, 1
jae 0x40390a
xor edx, 0xedb88320
dec cl
jne 0x403900
mov dword [eax*4 + 0x4197c0], edx
dec eax
jns 0x4038fc
call fcn.00403c16
call fcn.00403d1e
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x403b21
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 5
mov dword [ebp - 0xc], 0
cmp dword [0x407bb8], 0
je 0x4039b0
call fcn.00401031
mov eax, 0x407d14
mov dword [eax], 0x3a786641
push eax
push 0x40000000
call fcn.0040103f
and eax, 0x7070707
add eax, 0x30303030
mov ebx, eax
push 0x40000000
call fcn.0040103f
and eax, 0x7070707
add eax, 0x30303030
mov ecx, eax
pop eax
mov dword [eax + 4], ebx
mov byte [eax + 8], 0x3a
mov dword [eax + 9], ecx
mov byte [eax + 0xd], 0
jmp 0x4039b5
mov eax, str.___Class
mov dword [ebp - 0x50], eax
mov dword [ebp - 8], eax
push 0x1f4
push dword [ebp + 8]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [0x407d00], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
xor ebx, ebx
cmp dword [0x407c70], 0
je 0x4039fb
mov ebx, 0x10
push 0
push dword [ebp + 8]
push 0
push 0
push 0xc8
push 0x136
push 0x80000000
push 0x80000000
push 0x80000
push dword [0x407c38]
push dword [ebp - 0x50]
push ebx
call sub.user32.dll_CreateWindowExA
mov dword [0x407cf4], eax
push 0
push dword [0x417f2d]
push 0xffff
push dword [0x407cf4]
push 0x3a
push 0x12e
push 2
push 1
push 0x5000000e
push 0
push str.STATIC
push 0x20000
call sub.user32.dll_CreateWindowExA
mov dword [0x407cf8], eax
push 0x258
push dword [0x417f2d]
call sub.user32.dll_LoadBitmapA
mov dword [0x407cfc], eax
push dword [0x407cfc]
push 0
push 0x172
push dword [0x407cf8]
call sub.user32.dll_SendNotifyMessageA
call fcn.00404764
call fcn.00404844
call fcn.00401d7b
cmp dword [0x407c2c], 0
jne 0x403ac7
push 1
push dword [0x407cf4]
call sub.user32.dll_ShowWindow
push dword [0x407cf4]
call sub.user32.dll_UpdateWindow
call fcn.0040194e
or eax, eax
je 0x403b1a
push 0x417f52
push 0
push 0
push 0x4019d9
push 0
push 0
call sub.kernel32.dll_CreateThread
jmp 0x403b0e
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x403b17
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
cmp dword [0x407be0], 0
je 0x403ae9
mov eax, dword [ebp - 0x44]
pop edx
pop ecx
pop ebx
leave
ret 0x10
Function at 0x403c16
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x417e29
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x403cb9
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
mov esi, dword [ebp - 8]
inc esi
push esi
call fcn.004010f4
mov dword [0x407c5c], eax
mov esi, dword [ebp - 8]
add esi, 4
neg esi
push 2
push 0
push esi
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [0x407c5c]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x407c5c]
add eax, dword [ebp - 8]
mov byte [eax], 1
mov dword [0x407d08], eax
jmp 0x403cc3
push 0x407768
call fcn.00403e2b
pop esi
leave
ret

Function at 0x403cc6
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push ecx
mov eax, 0x417e29
lea ecx, [ebp - 0x105]
mov bl, byte [eax]
cmp bl, 0x5c
jne 0x403ce5
mov bl, 0x2e
mov byte [ecx], bl
inc eax
inc ecx
or bl, bl
jne 0x403cdc
lea eax, [ebp - 0x105]
push eax
push 1
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [0x407c54], eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x403d15
mov eax, 1
jmp 0x403d1a
mov eax, 0
pop ecx
pop ebx
leave
ret

Function at 0x4040e9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push edx
call fcn.004040ab
call fcn.004040ca
lea edx, [ebp - 0x44]
push 0
push 0x44
push edx
call fcn.004011c7
mov dword [edx], 0x44
mov edx, 0x20
cmp dword [0x407c64], 0
je 0x40411e
or edx, 4
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push edx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_CreateProcessA
or eax, eax
jne 0x404156
mov dword [0x407c04], eax
mov dword [0x407c08], eax
push 0x407832
call fcn.00403e2b
jmp 0x40416a
lea ecx, [ebp - 0x54]
push dword [ecx]
pop dword [0x407c04]
push dword [ecx + 4]
pop dword [0x407c08]
pop edx
leave
ret 8

Function at 0x404a5a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
cmp dword [0x407c0c], 0xffffffff
je 0x404a90
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x407c0c]
call sub.kernel32.dll_WriteFile
or eax, eax
jne 0x404a9a
push 0x4078ab
call fcn.00403e2b
jmp 0x404a9a
push 0x4078df
call fcn.00403e2b
leave
ret 8

Function at 0x404e37
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor al, al
mov byte [ebp - 0x105], al
lea eax, [ebp - 0x105]
push eax
call fcn.00404881
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
or eax, eax
jne 0x404e6e
push 0x407949
call fcn.00403e2b
leave
ret 8
Function at 0x405038
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405119
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
cmp eax, 8
jb 0x405119
push 0
push 0
push 4
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp - 8]
sub eax, 8
sub eax, dword [ebp - 0xc]
jle 0x405119
mov dword [ebp - 0xc], eax
cmp dword [0x407bb0], 0
je 0x4050cf
push dword [0x407bb0]
call fcn.0040111a
jmp 0x4050d4
call fcn.00402c63
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.004010f4
mov dword [0x407bb0], eax
add eax, dword [ebp - 0xc]
mov byte [eax], 1
mov dword [0x407bb4], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [0x407bb0]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x407bb0]
mov dword [0x407c58], eax
jmp 0x405131
cmp dword [ebp - 4], 0xffffffff
je 0x405127
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push 0x40796b
call fcn.00403e2b
leave
ret 4