joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414cb6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
cmp byte [0x43eb60], 0
push esi
push edi
jne 0x414cfb
mov esi, 0x43eb78
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x43eb60], 0
jne 0x414cf4
and dword [0x43f3c0], 0
mov dword [0x43eb64], 0x4149eb
mov byte [0x43eb60], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
cmp dword [0x43f3c0], edi
jne 0x414e05
mov eax, dword [0x43ed34]
or dword [0x43f3c0], 0xffffffff
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov ebx, eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, edi
je 0x414dfc
push esi
call fcn.00421cc7
mov edi, eax
test edi, edi
je 0x414dfc
push edi
push esi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x414d60
push edi
call fcn.00421ce7
jmp 0x414dfc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x408b94
push edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x414d90
mov eax, dword [ebp - 8]
test al, 3
jne 0x414d90
mov edi, dword [ebp - 0xc]
shr eax, 2
mov dword [ebp - 4], eax
jmp 0x414d92
xor edi, edi
test edi, edi
je 0x414dfc
lea esi, [ebp - 0x4c]
xor eax, eax
call fcn.00413de7
lea esi, [ebp - 0x2c]
mov eax, ebx
call fcn.00413de7
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x414dfc
lea eax, [ebp - 0x4c]
push eax
push dword [edi + esi*4]
lea eax, [ebp - 0x14]
push eax
call fcn.0041e540
test eax, eax
je 0x414dd4
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.0042808d
test eax, eax
je 0x414ddc
inc esi
cmp esi, dword [ebp - 4]
jb 0x414db1
jmp 0x414dfc
push ebx
call fcn.00421cc7
mov ecx, eax
test ecx, ecx
je 0x414df5
xor eax, eax
mov edi, ecx
stosb byte es:[edi], al
mov dword [0x43f3c0], ecx
jmp 0x414dfc
and dword [0x43f3c0], 0
push dword [ebp - 0x14]
call fcn.00421ce7
pop ebx
mov ecx, dword [0x43f3c0]
lea eax, [ecx + 1]
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
leave
ret

Function at 0x4156a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x47a
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x415728
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00413324
mov esi, eax
cmp esi, ebx
je 0x415720
sub eax, dword [0x43ecec]
push ebx
push ebx
push ebx
add eax, 0x413935
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x415712
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 1], 1
jmp 0x415720
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x415731
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
xor edi, edi
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
cmp eax, 0xffffffff
je 0x41589b
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x250], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x415885
mov ecx, dword [ebp - 0x248]
cmp ecx, edi
jbe 0x415875
cmp ecx, dword [0x43f14c]
je 0x415875
xor eax, eax
cmp dword [ebp - 8], edi
jbe 0x4157b9
mov edx, dword [ebp - 0xc]
cmp dword [edx + eax*4], ecx
je 0x415875
inc eax
cmp eax, dword [ebp - 8]
jb 0x4157a7
push ecx
call fcn.00413214
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x415875
push dword [ebp - 0x248]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x415870
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0041eb07
push esi
mov edi, eax
call ebx
test edi, edi
je 0x41586e
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x43ece8]
jne 0x415868
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, dword [0x43ece0]
jne 0x415868
mov ecx, dword [edi]
push eax
mov eax, dword [0x43ecdc]
mov eax, dword [eax]
call fcn.00421dac
test eax, eax
jne 0x415868
mov ecx, dword [ebp - 8]
lea ecx, [ecx*4 + 4]
lea esi, [ebp - 0xc]
call fcn.00421c25
test al, al
je 0x415868
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x18]
inc dword [ebp - 8]
inc dword [ebp - 0x14]
mov dword [ecx + edx*4], eax
push dword [ebp - 0x248]
call fcn.004156a8
test al, al
je 0x415868
mov byte [ebp - 1], 1
push edi
call fcn.00421ce7
xor edi, edi
push dword [ebp - 0x18]
call ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x415786
push dword [ebp - 0x10]
call ebx
cmp dword [ebp - 0x14], edi
jne 0x41574f
push dword [ebp - 0xc]
call fcn.00421ce7
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4158d1
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
jbe 0x415931
cmp eax, 0xffffffff
je 0x4158fe
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
inc eax
neg eax
sbb eax, eax
lea ecx, [ebp - 8]
and eax, ecx
push eax
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
push esi
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x41595b
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jle 0x41595b
sub dword [ebp + 0xc], eax
add dword [ebp + 8], eax
cmp dword [ebp + 0xc], esi
jg 0x4158dd
xor eax, eax
cmp dword [ebp + 0xc], esi
sete al
pop esi
leave
ret 0xc
xor al, al
jmp 0x415956
Function at 0x41598f
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [esp + 0xc]
sete al
ret 0xc

Function at 0x4159ad
Capabilities:
Connect socket

Disassembly:
movzx eax, word [edi]
push esi
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4159ea
xor eax, eax
cmp word [edi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4159ea
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, esi
pop esi
ret

Function at 0x4159ee
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
rol ax, 8
movzx ebx, ax
xor edi, edi
lea eax, [ebp + 8]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x415a1f
or eax, 0xffffffff
jmp 0x415aa1
push esi
mov esi, dword [ebp + 8]
jmp 0x415a53
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x415a3d
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.00421d55
mov dword [ebp - 4], eax
jmp 0x415a50
cmp eax, 0x17
jne 0x415a50
push dword [esi + 0x10]
push dword [esi + 0x18]
call fcn.00421d55
mov dword [ebp - 8], eax
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x415a25
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 4]
or esi, 0xffffffff
cmp eax, edi
je 0x415a77
mov edi, eax
mov word [eax + 2], bx
call fcn.004159ad
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x415a8e
cmp esi, 0xffffffff
jne 0x415a8e
mov word [edi + 2], bx
call fcn.004159ad
mov esi, eax
push dword [ebp - 4]
call fcn.00421ce7
push dword [ebp - 8]
call fcn.00421ce7
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x415b08
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x510
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_select]
xor esi, esi
jmp 0x415b84
mov dword [ebp + 0x70], esi
cmp dword [ebp - 0x9c], esi
jbe 0x415b84
mov eax, dword [ebp + 0x70]
mov eax, dword [ebp + eax*4 - 0x98]
cmp eax, ebx
jne 0x415b40
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x6c], ecx
jmp 0x415b43
mov dword [ebp + 0x6c], ebx
push esi
push 0x400
lea ecx, [ebp - 0x49c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 0x68], eax
cmp eax, 1
jl 0x415bb3
push esi
push eax
lea eax, [ebp - 0x49c]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x68]
jne 0x415bb3
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp - 0x9c]
jb 0x415b2a
mov eax, dword [ebp + 0x7c]
push esi
push esi
mov dword [ebp - 0x94], eax
push esi
lea eax, [ebp - 0x9c]
push eax
push esi
mov dword [ebp - 0x9c], 2
mov dword [ebp - 0x98], ebx
call edi
cmp eax, 1
jge 0x415b1f
pop edi
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x415bbc
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 1]
cmp ecx, 0x40
jae 0x415c50
test eax, eax
je 0x415bf3
xor edx, edx
mov ebx, 0x3e8
div ebx
mov ebx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 4
push ebx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], ecx
call fcn.00421d23
test esi, esi
je 0x415c21
mov eax, esi
shl eax, 2
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call fcn.00421d23
xor eax, eax
cmp eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
sbb eax, eax
and eax, ecx
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x415c59
push 0x274c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0xffffffff
je 0x415c50
xor esi, esi
push dword [ebx + esi*4]
lea eax, [ebp - 0x10c]
call fcn.004158ab
test al, al
jne 0x415c7a
inc esi
cmp esi, 1
jb 0x415c60
jmp 0x415c50
mov eax, dword [ebx + esi*4]
jmp 0x415c53

Function at 0x415cc5
Capabilities:
Create udp socket

Disassembly:
movzx eax, word [esi]
push edi
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x415d02
xor eax, eax
cmp word [esi], 2
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x415d02
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or edi, 0xffffffff
mov eax, edi
pop edi
ret

Function at 0x417596
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 2
mov dword [ebp - 4], 0x104
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x4175e7
mov eax, dword [ebp - 4]
test eax, eax
je 0x4175e7
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, esi
cmp word [esi], cx
je 0x4175ef
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x4175d6
cmp ecx, 0x5c
jne 0x4175dc
push 0x7c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x4175c9
jmp 0x4175ef
push 0x7f
pop eax
call fcn.00413de7
pop esi
leave
ret
Function at 0x4178b6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4178ee
push 0x208
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.004179c2
mov ebx, eax
jmp 0x4178f1
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x417966
test bl, 1
jne 0x417966
cmp dword [ebp + 8], 1
je 0x417907
cmp dword [ebp + 8], 2
jne 0x417966
test ebx, ebx
jne 0x417912
xor eax, eax
mov word [edi], ax
jmp 0x417962
shr ebx, 1
lea eax, [ebx - 1]
cmp word [edi + eax*2], 0
jne 0x417921
dec ebx
jmp 0x417931
inc eax
cmp eax, 0x104
jae 0x417966
xor ecx, ecx
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x417962
cmp dword [ebp + 8], 2
jne 0x417962
push edi
call fcn.0041b3b2
mov esi, eax
test esi, esi
je 0x417959
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x41795c
or ebx, 0xffffffff
push esi
call fcn.00421ce7
mov eax, ebx
jmp 0x417969
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 8

Function at 0x4179f5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov eax, 0x80000001
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x417a42
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x417a39
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 0x14

Function at 0x417a49
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x417abf
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x417a80
mov dword [ebp - 8], ebx
jmp 0x417abf
add eax, 4
cmp eax, ebx
je 0x417abf
call fcn.00421cb4
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x417abf
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x417ab7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x417abf
push dword [ebp - 0xc]
call fcn.00421ce7
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 0xc
Function at 0x417ce5
Capabilities:
Encode data using xor
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 8]
dec eax
dec eax
push edi
je 0x417d52
call fcn.00417c45
test al, al
jne 0x417d02
xor al, al
jmp 0x417d80
lea edi, [esi + 4]
xor ebx, ebx
cmp dword [edi], ebx
jne 0x417d3b
mov eax, dword [esi + 8]
sub eax, ebx
je 0x417d1e
dec eax
jne 0x417d25
mov dword [ebp - 4], 0x8004
jmp 0x417d25
mov dword [ebp - 4], 0x8003
push edi
push ebx
push ebx
push dword [ebp - 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x417d3b
mov dword [edi], ebx
jmp 0x417cfe
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
dec eax
neg eax
sbb eax, eax
inc eax
jmp 0x417d80
mov eax, dword [esi]
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
jbe 0x417d7c
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43f3c8]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x417d5d
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41bf89
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
push 2
push 0x8793aef0
mov edi, eax
call fcn.004132d1
xor ebx, ebx
mov dword [edi + 8], eax
cmp eax, ebx
je 0x41c0b6
lea esi, [ebp - 0x200]
call fcn.00422702
mov eax, dword [ebp - 0x32]
or dword [ebp - 4], 0xffffffff
or eax, 0x800000
push eax
xor eax, eax
cmp byte [ebp + 8], bl
setne al
add eax, 3
push eax
push 1
push 0xc0000000
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 4]
call fcn.0042e86f
test al, al
je 0x41c09d
lea eax, [ebp - 4]
push eax
lea esi, [ebp - 0x10]
call fcn.0042e8cf
test al, al
je 0x41c09d
cmp dword [ebp - 0xc], ebx
ja 0x41c011
cmp dword [ebp - 0x10], 0x40000000
jb 0x41c048
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
call fcn.0042e93e
test al, al
je 0x41c02d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41c048
lea eax, [ebp - 4]
call fcn.0042e85c
mov ecx, 0x1ee
lea eax, [ebp - 0x200]
mov byte [eax], bl
inc eax
dec ecx
jne 0x41c040
jmp 0x41c0b6
mov eax, dword [ebp - 4]
push dword [ebp - 0x16]
or dword [ebp - 4], 0xffffffff
push eax
call fcn.0040ab70
cmp eax, ebx
jne 0x41c07d
push ebx
call fcn.0041c0bf
lea eax, [ebp - 4]
call fcn.0042e85c
mov ecx, 0x1ee
lea eax, [ebp - 0x200]
mov byte [eax], bl
inc eax
dec ecx
jne 0x41c075
jmp 0x41c0b6
mov dword [edi + 0xc], eax
lea eax, [ebp - 4]
call fcn.0042e85c
mov ecx, 0x1ee
lea eax, [ebp - 0x200]
mov byte [eax], bl
inc eax
dec ecx
jne 0x41c093
mov al, 1
jmp 0x41c0b8
lea eax, [ebp - 4]
call fcn.0042e85c
mov ecx, 0x1ee
lea eax, [ebp - 0x200]
mov byte [eax], bl
inc eax
dec ecx
jne 0x41c0b0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41c6a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push edi
mov edi, eax
lea eax, [ebp - 0x414]
push eax
push 0xf6
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x41c730
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x408b58
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41c730
lea eax, [ebp - 0x20c]
push eax
call fcn.0042ec57
test al, al
je 0x41c730
lea eax, [ebp - 0x20c]
push eax
call fcn.00427f83
test al, al
je 0x41c730
push dword [ebp + 8]
mov eax, dword [edi + 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041c662
mov bl, al
lea eax, [ebp - 0x20c]
push eax
call fcn.0042ec57
pop edi
mov al, bl
pop ebx
leave
ret 4
Function at 0x41c982
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push 0x124
push 0x439128
call fcn.00438f5c
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x41cac2
cmp dword [ebp - 0x2c], ebx
jle 0x41c9f4
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x41c9e9
push 2
push 0x408b60
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x41c9e9
lea edx, [esi + 4]
lea edi, [ebp - 0x28]
call fcn.004174cc
test eax, eax
jne 0x41c9e9
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x41c9f1
inc ebx
cmp ebx, dword [ebp - 0x2c]
jl 0x41c9b7
jmp 0x41c9f4
mov dword [ebp - 0x20], eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x20], 0
je 0x41cac2
cmp dword [ebp - 0x20], 0xffffffff
je 0x41cac2
mov esi, 0x1000
push esi
call fcn.00421cc7
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x41cac2
push esi
push 0
push 0
push 4
pop ebx
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x41ca84
and dword [ebp - 4], 0
push esi
push eax
push edi
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
mov dword [ebp - 0x134], ebx
mov edx, esi
mov ecx, edi
lea eax, [ebp - 0x134]
call fcn.00422618
or dword [ebp - 4], 0xffffffff
jmp 0x41ca7b
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 0x830
cmp dword [edi + 4], eax
je 0x41ca9b
push edi
mov ebx, dword [ebp + 8]
call fcn.0041ce11
mov bl, al
jmp 0x41caab
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
mov bl, 1
push edi
call fcn.00421ce7
test bl, bl
je 0x41cac2
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x41cac4
xor al, al
call fcn.00438f97
ret 4
Function at 0x41cc1b
Capabilities:
Create process on windows
Create process suspended
Read file via mapping
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push esi
push edi
push 0xc
lea eax, [ebp - 0x28]
push 0x43ed10
xor ebx, ebx
mov esi, 0x1000
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
push ebx
push esi
push ebx
push 0x8000004
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x41cc87
push esi
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x41cc98
lea esi, [ebp - 0xc]
call fcn.0041c7e7
lea esi, [ebp - 0xc]
call fcn.0041c7e7
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, 0x408b68
cmp byte [ebp + 0xc], bl
jne 0x41cca7
mov eax, 0x408b54
push eax
push edi
push 0x408b70
push ebx
lea eax, [ebp - 0xac]
push eax
push 0x1e
pop ecx
call fcn.0042f671
add esp, 0x14
test eax, eax
jne 0x41cc87
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 4
push 1
push ebx
push ebx
lea eax, [ebp - 0xac]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41cd19
lea esi, [ebp - 0xc]
call fcn.0041c7e7
mov al, bl
jmp 0x41cc91
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
call fcn.0041c80a
test al, al
je 0x41cd39
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41cd39
mov bl, 1
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
jmp 0x41cd0a