joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ceb1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d2c
jmp 0x40ceba
mov eax, ebx
mov edx, esi
call fcn.00403ce0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cec4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cee5
mov al, byte [esp]
jmp 0x40cee7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40fe0f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
sbb byte [esi + 0x23], dh
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40fe31
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40fe42
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40fe4c
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40fe27
xor eax, eax
pop edi
pop esi
ret

Function at 0x4100b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
clc
div ecx
test edx, edx
je 0x4100bd
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040fdcf
ret 0x9bdb

Function at 0x410438
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x410483
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x41047e
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x410468
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x410470
cmp edx, ebx
jne 0x4105be
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x41043f
add eax, dword [eax + 4]
jmp 0x41042c
mov dword [ebp + 0xc], ebx
jmp 0x41048e
Function at 0x4104b0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4104a6
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4104c4
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add dword [eax], eax
add byte [ebx + 0x108c794], cl
add byte [eax], al
add dword [eax], eax
add byte [ebx + 0x108c794], cl
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x410522
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x410509
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x410512
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41051c
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4104fe
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x410488
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x41b36c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41b372
ret

Function at 0x41d858
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41d8a9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d890
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d880
jmp 0x41d8a9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41d891
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4475c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x4475f5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d2c
jmp 0x4475ff
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403ce0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x448504
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x44853c
mov eax, esi
call fcn.00431930
test al, al
je 0x44853c
mov eax, dword [ebx + 0x6c]
call fcn.00431508
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44853c
push 0
mov eax, dword [ebx + 0x6c]
call fcn.00431508
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45f0e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404088
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x45f0f9
test al, 0x10
jne 0x45f0fd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4626bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x52393e
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462713
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x52395f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x462709
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x462717
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406060], 1
mov dword [0x40605c], 1
mov dword [0x406058], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x406014], eax
mov eax, dword [0x40606c]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406080]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406068]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403020], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x401b20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406074]
test esi, esi
jle 0x401ca0
mov eax, dword [0x406078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401bb4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401c37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401ba0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401cc7
mov eax, dword [0x406078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x406078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ca7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401c30
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401c40
add dword [0x406074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401c30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401bbe
mov eax, dword [0x406078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x4021e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406088]
sub esp, 4
test ebx, ebx
je 0x402235
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40222e
test esi, esi
je 0x40222e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402210
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402570
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402595
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4025a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402595
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4025e8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4025de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4025ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4025d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 3
and esp, 0xfffffff8
add esp, 4
mov eax, 0x110c
call fcn.00401560
call fcn.00401378
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
cmp ebx, 3
jae 0x40103a
call fcn.0040133c
push 0xffffffffffffffff
call dword [sym.imp.MSVCR71.dll_exit]
pop ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
movsx eax, byte [edi]
cmp eax, 0x6c
jne 0x401121
mov esi, str.launch
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x401071
or dl, dl
je 0x40106d
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x401071
add edi, 2
add esi, 2
or dl, dl
jne 0x401051
xor eax, eax
jmp 0x401076
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40107f
cmp ebx, 4
jae 0x401099
push 0x4020bc
call dword [sym.imp.MSVCR71.dll_printf]
pop ecx
call fcn.0040133c
push 0xffffffffffffffff
call dword [sym.imp.MSVCR71.dll_exit]
pop ecx
lea eax, [ebp - 0x110c]
push 0
push eax
call sub.MSVCR71.dll__strset
add esp, 8
mov eax, 3
cmp ebx, 3
jbe 0x4011b5
mov ebx, eax
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x110c]
mov edx, dword [ecx + ebx*4]
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov al, byte [edx]
add edx, 1
mov byte [edi], al
add edi, 1
test al, al
jne 0x4010d2
mov edx, dword [ebp + 8]
add ebx, 1
cmp ebx, edx
jae 0x4011b5
cmp ebx, 3
je 0x4010ba
mov edx, dword [ebp + 8]
cmp ebx, edx
je 0x4010ba
lea edi, [ebp - 0x110c]
mov edx, 0x4020c8
mov ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov al, byte [edx]
add edx, 1
mov byte [edi], al
add edi, 1
test al, al
jne 0x401111
jmp 0x4010ba
cmp eax, 0x69
jne 0x40118c
mov esi, str.isalive
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x40114b
or dl, dl
je 0x401147
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40114b
add edi, 2
add esi, 2
or dl, dl
jne 0x40112b
xor eax, eax
jmp 0x401150
sbb eax, eax
or eax, 1
test eax, eax
je 0x40116e
push 0x4020bc
call dword [sym.imp.MSVCR71.dll_printf]
pop ecx
call fcn.0040133c
push 0xffffffffffffffff
call dword [sym.imp.MSVCR71.dll_exit]
pop ecx
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
call dword [sym.imp.MSVCR71.dll_atoi]
push eax
call fcn.004012e8
push eax
call dword [sym.imp.MSVCR71.dll_exit]
add esp, 0xc
jmp 0x4011a6
push 0x4020bc
call dword [sym.imp.MSVCR71.dll_printf]
pop ecx
call fcn.0040133c
push 0xffffffffffffffff
call dword [sym.imp.MSVCR71.dll_exit]
pop ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x110c]
push eax
push dword [edx + 8]
call fcn.004011d4
push eax
call dword [sym.imp.MSVCR71.dll_exit]
add esp, 0xc
jmp 0x4011a6
Function at 0x4011d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov edx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x5c], 0x44
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push 0x4020d4
push edx
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x401255
push edi
push str.launchprocess::Launching_process_:__s_n
push esi
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x18]
push edx
xor eax, eax
push ecx
push eax
push eax
push 0x8000200
push eax
push eax
push eax
push edi
push eax
call dword [sym.imp.orauts.dll_CreateProcessA]
test eax, eax
je 0x40128e
mov edi, dword [ebp - 0x10]
test esi, esi
je 0x4012b9
push edi
push str.launchprocess::Launched_process_successfuly._Process_Id_is_:__d_n
push esi
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
jmp 0x4012b1
call dword [sym.imp.orauts.dll_GetLastError]
test esi, esi
je 0x4012a8
push eax
push str.launchprocess::Could_not_launch_process__error_code_is_:__d_n
push esi
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
mov edi, 0xffffffff
test esi, esi
je 0x4012b9
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.orauts.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.orauts.dll_CloseHandle]
push edi
push 0x4021a0
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov esi, dword [ebp - 8]
mov eax, edi
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40159d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x402228
call fcn.00401824
xor edi, edi
push edi
call dword [sym.imp.orauts.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4015d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4015d8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4015f0
cmp eax, 0x20b
je 0x4015dd
mov dword [ebp - 0x1c], edi
jmp 0x401604
cmp dword [ecx + 0x84], 0xe
jbe 0x4015d8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4015fe
cmp dword [ecx + 0x74], 0xe
jbe 0x4015d8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40302c], 0xffffffff
or dword [0x403030], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x403024]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x403020]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403028], eax
call fcn.00401780
call fcn.00401820
cmp dword [0x403010], edi
jne 0x401664
push fcn.00401820
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040180e
push 0x40300c
push 0x403008
call sub.MSVCR71.dll__initterm
push 0x4017c4
call fcn.0040176e
mov eax, dword [0x40301c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x403018]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x4016b8
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x403004
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call section..text
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x4016f4
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x401729
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040185f
ret
Function at 0x405a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.shell32.dll_ShellExecuteExW]
ret 4

Function at 0x405b23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x405b32
pop dword [ebp - 0x34]
mov eax, 0x405b32
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xd7212620
add dword [ebp - 0x44], 0x77311f2b
mov dword [ebp - 0x40], 0x2208e120
sub dword [ebp - 0x40], 0xefd594db
mov dword [ebp - 0x3c], 0xb8b9d12f
sub dword [ebp - 0x3c], 0x6c6d8d01
mov dword [ebp - 0x38], 0x8ead8d74
add dword [ebp - 0x38], 0x7152728c
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x4d145048
sub dword [ebp - 0x44], 0xd8a1e6f2
mov dword [ebp - 0x40], 0x302f61f7
sub dword [ebp - 0x40], 0xeec30082
mov dword [ebp - 0x3c], 0x5d384c2a
add dword [ebp - 0x3c], 0x6372042
mov dword [ebp - 0x38], 0x82810f61
sub dword [ebp - 0x38], 0x82810f61
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x7d6b27b5
add eax, 0x82d558c7
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x35620
push 0
call eax
mov ecx, 0x33ec5f19
sub ecx, 0x33ec1d9b
xor edx, edx
add edx, eax
mov edi, 0xf4acfb7d
sub edi, 0xf467697d
add edi, dword [ebp - 0x34]
mov esi, 0xea550b20
sub esi, 0x82a5e617
xor dword [ebp - 0x18], 0xc2e5d6ca
mov ebx, dword [edi]
sub dword [ebp - 0x28], edi
sub ebx, esi
add dword [ebp - 0x14], 0xdf645cf0
mov dword [edx], ebx
add dword [ebp - 8], 0x16f4dbc1
add edx, 0xcd1b810e
sub edx, 0xcd1b810a
add edi, 4
loop 0x405c4c
add eax, 0x1d322036
sub eax, 0x1d31276b
mov ebx, eax
add eax, 5
mov ecx, 0x48c569ad
add ecx, 0xb77a9653
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x405dee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.00406411
push esi
call fcn.00405d91
mov edi, eax
test edi, edi
jne 0x405e0f
xor eax, eax
jmp 0x405e67
push edi
call fcn.004066c0
test byte [0x434f1c], 0x80
je 0x405e2c
mov ax, word [edi]
test ax, ax
je 0x405e0b
cmp ax, 0x5c
je 0x405e0b
sub edi, esi
sar edi, 1
jmp 0x405e46
call fcn.0040676f
test eax, eax
je 0x405e40
test byte [eax], 0x10
je 0x405e0b
push esi
call fcn.00405d32
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e32
call fcn.00405ce6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ee2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f01
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4