joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
lea eax, [ebp - 4]
push eax
push 0
push 0
mov eax, 0x404010
push eax
push 0
push 0
call sub.kernel32.dll_CreateThread
leave
ret

Function at 0x4049c0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x3c]
push ebx
push esi
mov edx, str._r_vtScriptData_b
lea eax, [ebp - 8]
call fcn.0040f610
mov dword [ebp - 0xc], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040e9f0
call fcn.00410590
push eax
test eax, eax
jne 0x404ae0
call fcn.00402a60
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x3c], 0
push 0
push 1
mov eax, str.https:__pastebin.com_
test eax, eax
jne 0x404a1a
mov eax, 0x4563a0
push eax
call sub.wininet.dll_InternetCheckConnectionA
or eax, eax
setne al
test al, al
je 0x404a68
lea eax, [ebp - 0xc]
call fcn.00404950
test al, al
je 0x404a44
call fcn.00404840
test al, al
je 0x404a44
mov byte [ebp - 0x3c], 1
jmp 0x404a48
mov byte [ebp - 0x3c], 0
mov al, byte [ebp - 0x3c]
test al, al
je 0x404a64
push dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00403920
test al, al
je 0x404a64
mov byte [ebp - 0x3c], 1
jmp 0x404a68
mov byte [ebp - 0x3c], 0
push 0x3e8
call sub.kernel32.dll_Sleep
mov al, byte [ebp - 0x3c]
test al, al
je 0x404a08
mov al, byte [ebp - 0x38]
test al, al
jne 0x404a8e
call fcn.004026a0
call fcn.00404150
mov byte [ebp - 0x38], 1
call fcn.00402fb0
mov ebx, 0
push 0
push 1
mov eax, str.https:__pastebin.com_
test eax, eax
jne 0x404aaa
mov eax, 0x4563a0
push eax
call sub.wininet.dll_InternetCheckConnectionA
or eax, eax
setne al
test al, al
je 0x404ac1
lea eax, [ebp - 8]
call fcn.00403a00
lea eax, [ebx + 0x493e0]
mov ebx, eax
push 0x493e0
call sub.kernel32.dll_Sleep
cmp ebx, 0x124f80
jb 0x404a98
jmp 0x404a04
call fcn.0040ec70
mov edx, str._r_vtScriptData_b
lea eax, [ebp - 8]
call fcn.0040f670
mov edx, 0x44af24
lea eax, [ebp - 0xc]
call fcn.0040f670
pop eax
test eax, eax
je 0x404b09
call fcn.0040eda0
pop esi
pop ebx
leave
ret

Function at 0x40fa60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4564d0], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x4564cc]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x4564d0], eax
cmp ecx, 0x26f
jl 0x40fa70
mov dword [0x447da0], 0x270
ret
Function at 0x40fab0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x4550d0]
cmp eax, dword [0x4474f0]
je 0x40fac8
mov dword [0x447da0], 0x271
cmp dword [0x447da0], 0x270
jl 0x40fbe7
cmp dword [0x447da0], 0x271
jne 0x40faff
mov eax, dword [0x4550d0]
call fcn.0040fa60
mov eax, dword [0x4550d0]
not eax
mov dword [0x4550d0], eax
mov dword [0x4474f0], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x4564d4]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x4564d0]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x456b04]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x447db0]
xor edx, eax
mov dword [ebx*4 + 0x4564d0], edx
cmp ebx, 0xe2
jl 0x40fb08
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x4564d4]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x4564d0]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x456144]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x447db0]
xor edx, eax
mov dword [ebx*4 + 0x4564d0], edx
cmp ebx, 0x26e
jl 0x40fb5c
mov eax, dword [0x456e8c]
and eax, 0x80000000
mov edx, dword [0x4564d0]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x456b00]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x447db0]
xor eax, edx
mov dword [0x456e8c], eax
mov dword [0x447da0], 0
mov eax, dword [0x447da0]
mov eax, dword [eax*4 + 0x4564d0]
add dword [0x447da0], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret

Function at 0x411700
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x447220]
cmp ax, 0xcb
je 0x4117fc
cmp ax, 0xcc
je 0x4117fc
mov edx, dword [0x4570e0]
test edx, edx
je 0x411732
mov eax, dword [0x456f80]
call edx
mov ebx, eax
jmp 0x411737
mov ebx, 0x456f84
cmp word [0x456f70], 0
jle 0x41175a
mov eax, 0x456f50
call fcn.00411970
mov eax, ebx
call fcn.004112e0
mov eax, ebx
call fcn.00411350
mov edi, dword [ebx]
jmp 0x41177a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x411775
mov edx, edi
mov eax, ebx
call fcn.004107b0
jmp 0x411778
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x411760
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x456f70], 0
jle 0x4117fc
mov edx, 0x456e90
mov eax, ebx
call fcn.004108e0
mov edi, eax
test edi, edi
je 0x4117cf
mov eax, dword [0x456f24]
mov dword [edi + 0xc], eax
cmp dword [0x456f24], 0
je 0x4117c4
mov eax, dword [0x456f24]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x456f24], eax
sub word [0x456f70], 1
cmp word [0x456f70], 0
sete bl
mov eax, 0x456f50
call fcn.00411980
test bl, bl
je 0x4117fc
mov eax, 0x456f50
call fcn.00411960
pop edi
pop esi
pop ebx
ret
Function at 0x413a30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x456310], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.00413c10
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x456310]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004054b0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x447290], eax
mov esi, dword [0x447290]
jmp 0x413bd0
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x413ac0
cmp byte [esi], 0
je 0x413bd9
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x413b35
mov al, byte [esi]
cmp al, 1
jb 0x413b2b
sub al, 0x20
jbe 0x413afc
sub al, 2
je 0x413b0f
jmp 0x413b2b
mov al, byte [ebp - 0x10c]
test al, al
je 0x413b3a
add dword [ebp - 0x110], 1
jmp 0x413b32
cmp byte [esi + 1], 0x22
je 0x413b26
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x413b32
add esi, 1
jmp 0x413b32
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x413aec
test dword [ebp - 0x114], 0xffffffff
je 0x413bc9
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.00413c10
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x456310]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x413bc1
mov al, byte [esi]
cmp al, 1
jb 0x413bb7
sub al, 0x20
jbe 0x413b88
sub al, 2
je 0x413b9b
jmp 0x413bb7
mov al, byte [ebp - 0x10c]
test al, al
je 0x413bc6
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x413bbe
cmp byte [esi + 1], 0x22
je 0x413bb2
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x413bbe
add esi, 1
jmp 0x413bbe
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x413b78
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x413ac3
mov ebx, dword [ebp - 0x114]
mov dword [0x456300], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x456310
call fcn.00411560
mov eax, dword [0x456310]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x41635c
mov eax, 0x4563a0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x416370
and eax, 0x10
jbe 0x416370
mov al, 1
jmp 0x416372
mov al, 0
leave
ret
Function at 0x416750
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1408]
mov dword [esp + 0x40c], eax
push eax
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x140c], 0
mov dword [ebp - 0x1408], 0
mov dword [ebp - 0x1404], 0
mov dword [ebp - 0x1400], 0
mov dword [ebp - 0x13fc], 0
mov dword [ebp - 0x13f8], 0
mov eax, 1
lea edx, [ebp - 0x13c8]
lea ecx, [ebp - 0x13b0]
call fcn.0040e9f0
call fcn.00410590
push eax
test eax, eax
jne 0x416927
mov eax, dword [ebp - 0xc]
mov edx, 0
call fcn.0040a750
mov eax, 1
lea edx, [ebp - 0x13f0]
lea ecx, [ebp - 0x13d8]
call fcn.0040e9f0
call fcn.00410590
push eax
test eax, eax
jne 0x4168fe
push 0
push 0
push 0
push 0
push dword [ebp - 4]
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
push 0
push 0x80000000
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x10]
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x14], eax
lea esi, [esi]
lea eax, [ebp - 0x13a4]
push eax
push 0x1389
lea eax, [ebp - 0x13a0]
push eax
push dword [ebp - 0x14]
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x416922
lea eax, [ebp - 0x13fc]
call fcn.0040c7e0
lea eax, [ebp - 0x1404]
push eax
push 1
lea eax, [ebp - 0x1408]
push eax
lea eax, [ebp - 0x13a0]
mov cx, 0
mov edx, 0x1388
call fcn.0040b110
mov eax, dword [ebp - 0x1408]
mov ecx, dword [ebp - 0x13a4]
mov edx, 1
call fcn.0040b4f0
mov eax, dword [ebp - 0x1404]
lea edx, [ebp - 0x1400]
call fcn.0040d820
mov ebx, dword [ebp - 0x1400]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
lea edx, [ebp - 0x140c]
call fcn.0040c960
mov edx, dword [ebp - 0x140c]
lea eax, [ebp - 0x13fc]
mov ecx, ebx
call fcn.0040ca80
mov eax, dword [ebp - 0x13fc]
lea ecx, [ebp - 0x13f8]
mov dx, 0
call fcn.0040c8f0
mov edx, dword [ebp - 0x13f8]
mov eax, dword [ebp - 0xc]
call fcn.0040a750
cmp dword [ebp - 0x13a4], 0
jne 0x41682c
call fcn.0040ec70
push dword [ebp - 0x10]
call sub.wininet.dll_InternetCloseHandle
push dword [ebp - 0x14]
call sub.wininet.dll_InternetCloseHandle
pop eax
test eax, eax
je 0x416927
cmp eax, 2
je 0x416927
call fcn.0040eda0
pop eax
push 2
jmp 0x4168fe
call fcn.0040ec70
lea eax, [ebp - 0x140c]
call fcn.0040c7e0
lea eax, [ebp - 0x1408]
call fcn.00405a50
lea eax, [ebp - 0x1404]
call fcn.00405a50
lea eax, [ebp - 0x1400]
call fcn.0040c7e0
lea eax, [ebp - 0x13fc]
call fcn.0040c7e0
lea eax, [ebp - 0x13f8]
call fcn.00405a50
pop eax
test eax, eax
je 0x416978
call fcn.0040eda0
pop ebx
leave
ret
Function at 0x41c690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x5c]
push ebx
push esi
push edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov eax, 1
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x10]
call fcn.0040e9f0
call fcn.00410590
push eax
test eax, eax
jne 0x41c7d2
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
call fcn.0041a6b0
mov edx, dword [eax]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
call fcn.0041a7e0
mov edx, dword [ebp - 0x54]
add eax, dword [edx]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
call fcn.0041a870
lea ebx, [eax + 8]
push 0
lea edx, [ebp - 0x40]
call fcn.00419060
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.00419060
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov eax, str.KERNEL32.dll
mov dword [ebp - 0x34], eax
mov eax, str.VirtualAlloc
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x3c]
lea eax, [ebp - 4]
mov ecx, 3
call fcn.0040aac0
mov eax, dword [ebp - 0x54]
call fcn.0041c2c0
mov edx, eax
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
call fcn.0041a7e0
sub eax, 0x21
mov dword [ebp - 0x50], eax
lea edx, [eax - 0x1f4]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x50]
call fcn.004150b0
lea eax, [ebp - 0x48]
call fcn.00405a50
mov dword [ebp - 0x58], 0
sub dword [ebp - 0x58], 1
mov esi, esi
add dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x54]
call fcn.00405a90
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0x54]
mov ebx, dword [eax]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
lea esi, [edx + eax]
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
lea edx, [edi + eax]
mov al, byte [ebx + esi - 1]
mov dl, byte [ebx + edx - 1]
xor dl, al
mov eax, dword [ebp - 0x5c]
mov byte [eax + ecx - 1], dl
cmp dword [ebp - 0x58], 0x21
jb 0x41c78c
call fcn.0040ec70
lea eax, [ebp - 0x48]
call fcn.00405a50
lea eax, [ebp - 0x44]
call fcn.00405a50
lea eax, [ebp - 0x40]
call fcn.00405a50
lea eax, [ebp - 4]
call fcn.00405a50
pop eax
test eax, eax
je 0x41c801
call fcn.0040eda0
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x42460c
mov eax, 0x4563a0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42461f
and eax, 0x10
seta al
jmp 0x424621
mov al, 0
leave
ret

Function at 0x424700
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x42470e
mov eax, 0x4563a0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x42471f
mov ebx, 0
jmp 0x424726
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
leave
ret
Function at 0x424cc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040e9f0
call fcn.00410590
push eax
test eax, eax
jne 0x424d84
mov ebx, 1
sub ebx, 1
mov esi, esi
add ebx, 1
lea eax, [ebx*4 + 0x45783c]
mov edx, 0
call fcn.0040a750
mov dword [ebx*4 + 0x45785c], 0xffffffff
cmp ebx, 7
jl 0x424cf8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x424d84
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
mov cx, 0
mov edx, 0xa
call fcn.0040b110
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.0041d620
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x424d84
push 4
push ebx
push esi
mov eax, 0x424b80
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x424c20
push eax
call sub.kernel32.dll_EnumCalendarInfoA
call fcn.0040ec70
lea eax, [ebp - 0x38]
call fcn.00405a50
pop eax
test eax, eax
je 0x424d9b
call fcn.0040eda0
pop esi
pop ebx
leave
ret

Function at 0x425db0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
and edx, 0xff
mov ebx, dword [eax + 0xc]
mov ecx, ebx
xor ecx, edx
and ecx, 0xff
shr ebx, 8
and ebx, 0xffffff
mov edx, dword [ecx*4 + 0x448800]
xor ebx, edx
mov dword [eax + 0xc], ebx
pop ebx
ret
Function at 0x402600
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4198a8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x420624]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x420624]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0x9c]
xor esi, esi
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
xor eax, eax
push 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x9c], esi
call fcn.004072e0
mov eax, dword [ebx + 0x14]
add esp, 0xc
xor edi, edi
cmp eax, esi
mov dword [esp + 0x24], 0x44
je 0x40272b
lea esi, [eax + 0x208]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406d1f
push 0x41b2c4
mov edi, eax
push esi
push edi
call fcn.00408122
add esp, 0x10
cmp dword [ebp + 0x18], 8
jb 0x4026d1
mov ebp, dword [ebp + 4]
jmp 0x4026d4
add ebp, 4
push ebp
push esi
push edi
call fcn.004080a8
push 0x41b2bc
push esi
push edi
call fcn.004080a8
mov ebp, 8
add esp, 0x18
cmp dword [ebx + 0x18], ebp
jb 0x4026fa
mov ebx, dword [ebx + 4]
jmp 0x4026fd
add ebx, 4
push ebx
push esi
push edi
call fcn.004080a8
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor esi, esi
jmp 0x402757
cmp dword [ebp + 0x18], 8
jb 0x402736
mov ebp, dword [ebp + 4]
jmp 0x402739
add ebp, 4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 8
cmp eax, esi
jne 0x402775
cmp dword [esp + 0x80], ebp
jb 0x402771
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004071f9
add esp, 4
xor al, al
jmp 0x4027d1
mov eax, dword [esp + 0x18]
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40278a
push eax
call ebx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4027ac
cmp byte [esp + 0xa0], 0
je 0x4027a9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
push eax
call ebx
cmp edi, esi
je 0x4027b9
push edi
call fcn.0040735a
add esp, 4
cmp dword [esp + 0x80], ebp
jb 0x4027cf
mov edx, dword [esp + 0x6c]
push edx
call fcn.004071f9
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004079bb
add esp, 0x80
ret
Function at 0x404540
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x420624]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
mov edi, dword [esp + 0x630]
xor esi, esi
push 0x20a
lea eax, [esp + 0xe]
push esi
push eax
mov word [esp + 0x14], si
call fcn.004072e0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x40464a
push 0x410
lea edx, [esp + 0x21a]
push esi
push edx
mov word [esp + 0x21e], si
mov word [esp + 0x220], si
call fcn.004072e0
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40460e
cmp eax, esi
je 0x40460e
lea edx, [esp + 0x214]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x218], si
call fcn.00403730
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004079bb
add esp, 0x624
ret
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x404615
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.00402cd0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004079bb
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.004079bb
add esp, 0x624
ret

Function at 0x405a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x419eab
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push esi
push edi
mov eax, dword [0x420624]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
movzx eax, word [esp + 0xa4]
push 0x41b3c0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x405b3f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405b3f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x405b3f
mov eax, dword [esp + 0xa8]
cmp dword [eax + 0x18], 8
jb 0x405aca
mov eax, dword [eax + 4]
jmp 0x405acd
add eax, 4
push 1
push 0x40
push 0x20
push eax
lea ecx, [esp + 0x1c]
call fcn.004055a0
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0xa4], 0
call fcn.00405490
lea ecx, [esp + 0xc]
call fcn.00404b60
lea ecx, [esp + 0x60]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00404af0
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x64], vtable.std::ios_base.0
call fcn.00406bdf
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x94
ret
xor al, al
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x94
ret
Function at 0x4079bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420624]
jne 0x4079c5
repz ret
jmp fcn.0040dcec
Function at 0x40ff0c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4211f8]
je 0x40ff27
inc edi
cmp edi, 0x17
jb 0x40ff18
cmp edi, 0x17
jae 0x4100a7
push ebp
push 3
call fcn.00416daa
cmp eax, 1
pop ecx
je 0x410073
push 3
call fcn.00416daa
test eax, eax
pop ecx
jne 0x40ff5b
cmp dword [0x42062c], 1
je 0x410073
cmp ebx, 0xfc
je 0x4100a6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x421d48
push ebp
call fcn.0040bf5b
add esp, 0xc
test eax, eax
je 0x40ff91
push esi
push esi
push esi
push esi
push esi
call fcn.004073f7
add esp, 0x14
push 0x104
mov esi, 0x421d61
push esi
push 0
mov byte [0x421e65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ffd5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040bf5b
add esp, 0xc
test eax, eax
je 0x40ffd5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004073f7
add esp, 0x14
push esi
call fcn.00409a40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41001a
push esi
call fcn.00409a40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42205c
push 0x41c5a4
sub ecx, eax
push ecx
push eax
call fcn.00411f46
add esp, 0x14
test eax, eax
je 0x41001a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004073f7
add esp, 0x14
jmp 0x41001c
xor esi, esi
push 0x41c5a0
push ebx
push ebp
call fcn.00411e85
add esp, 0xc
test eax, eax
je 0x41003c
push esi
push esi
push esi
push esi
push esi
call fcn.004073f7
add esp, 0x14
push dword [edi*8 + 0x4211fc]
push ebx
push ebp
call fcn.00411e85
add esp, 0xc
test eax, eax
je 0x41005e
push esi
push esi
push esi
push esi
push esi
call fcn.004073f7
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416bed
add esp, 0xc
jmp 0x4100a6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4100a6
cmp ebp, 0xffffffff
je 0x4100a6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4211fc]
push dword [esi]
call fcn.00409a40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret