joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x423190]
push ebx
push esi
push edi
mov dword [esp + 0x21c], eax
mov ebx, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.XlaccAir_
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [0x4240d4], 1
jne 0x401b02
mov edx, dword [0x4240d4]
or edx, 1
mov ecx, 0x4240c0
mov dword [0x4240d4], edx
call fcn.00407fe0
push 0x41b1b0
call fcn.0040c70c
add esp, 4
lea edx, [esp + 0x10]
push edx
mov ecx, 0x4240c0
call fcn.00407f70
test byte [0x4240d4], 1
jne 0x401b40
mov edx, dword [0x4240d4]
or edx, 1
mov ecx, 0x4240c0
mov dword [0x4240d4], edx
call fcn.00407fe0
push 0x41b1b0
call fcn.0040c70c
add esp, 4
push 1
mov ecx, 0x4240c0
call fcn.00407fd0
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, ebx
mov esi, eax
call fcn.004016f0
mov edi, eax
test byte [0x4240d4], 1
jne 0x401ba3
mov edx, dword [0x4240d4]
or edx, 1
mov ecx, 0x4240c0
mov dword [0x4240d4], edx
call fcn.00407fe0
push 0x41b1b0
call fcn.0040c70c
add esp, 4
push edi
push 0x41c4c0
push 0
lea edx, [esp + 0x1c]
push edx
push esi
mov ecx, 0x4240c0
call fcn.00407f80
mov ecx, dword [esp + 0x21c]
call fcn.0040c26e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4023d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x423190]
push ebx
push esi
push edi
mov dword [esp + 0x23c], eax
call fcn.004015c0
test eax, eax
je 0x4024ce
xor ebx, ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
xor esi, esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.0040c616
add esp, 4
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
lea ecx, [esp + 0x1c]
call fcn.00402270
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x402438
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40249e
mov esi, dword [esp + 0x10]
mov word [esp + 0x30], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
push 0x104
lea edx, [esp + 0x34]
push edx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push ebx
lea ecx, [esp + 0x40]
push ecx
push esi
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esp + 0x2c], 8
jb 0x4024b2
mov edx, dword [esp + 0x18]
push edx
call fcn.0040c611
add esp, 4
cmp esi, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
je 0x4024ce
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x23c]
call fcn.0040c26e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4041b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x238
mov eax, dword [0x423190]
push ebp
push esi
mov dword [esp + 0x23c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x10], esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x404254
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x404210
push 0x41cb34
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404243
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
je 0x404243
push eax
push 0
push 1
call edi
mov esi, eax
push 0
push esi
call ebx
push esi
call ebp
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404210
pop edi
pop ebx
push esi
call ebp
mov ecx, dword [esp + 0x23c]
pop esi
pop ebp
call fcn.0040c26e
add esp, 0x238
ret
Function at 0x406df0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x423190]
mov edx, dword [esp + 0x220]
push esi
mov dword [esp + 0x21c], eax
mov eax, dword [ecx]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x406e51
lea ecx, [esp + 4]
call fcn.00401880
mov esi, eax
test esi, esi
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
je 0x406e72
lea ecx, [esp + 4]
call fcn.00401880
mov eax, esi
pop esi
mov ecx, dword [esp + 0x218]
call fcn.0040c26e
add esp, 0x21c
ret 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
push ecx
push 0
push eax
mov dword [esp + 0x2c], pe_nt_image_headers32
call edi
test eax, eax
jne 0x406eda
nop
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xc]
call fcn.00406df0
mov esi, eax
test esi, esi
jne 0x406f08
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
push esi
push esi
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
push eax
mov dword [esp + 0x2c], pe_nt_image_headers32
call edi
test eax, eax
je 0x406ea0
mov eax, dword [esp + 8]
test eax, eax
je 0x406ef1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x228]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
lea ecx, [esp + 8]
call fcn.00401880
mov ecx, dword [esp + 0x220]
pop edi
mov eax, esi
pop esi
call fcn.0040c26e
add esp, 0x21c
ret 4
Function at 0x4072a0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4072b2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x407fe0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x423190]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esp + 0x234], eax
xor eax, eax
mov word [esp + 0x28], bx
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...XLBugHandler.dll
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
call fcn.0040c616
add esp, 4
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
call fcn.00402270
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x40807e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x4080c7
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push edi
call ebx
push str._XL_InitBugHandler_20
push edi
mov dword [esi], eax
call ebx
push str._XL_SetPeerID_4
push edi
mov dword [esi + 4], eax
call ebx
push str._XL_SetReportShowMode_4
push edi
mov dword [esi + 8], eax
call ebx
push str._XL_SetAlwaysSendReport_4
push edi
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
cmp dword [esp + 0x24], 8
jb 0x4080db
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040c611
add esp, 4
mov ecx, dword [esp + 0x234]
mov eax, esi
call fcn.0040c26e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408100
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ad90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
xor ebx, ebx
mov dword [ebp - 4], edi
cmp dword [esi], edi
je 0x408149
mov dword [ebp - 0x20], 1
push 0x420934
lea eax, [ebp - 0x20]
push eax
call fcn.0040cb21
lea ecx, [ebp - 0x18]
push ecx
push 0x41cf74
push 1
push edi
push 0x41cf64
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x40817c
mov dword [ebp - 0x24], 2
push 0x420934
lea edx, [ebp - 0x24]
push edx
call fcn.0040cb21
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x4081a5
mov dword [ebp - 0x28], 3
push 0x420934
lea eax, [ebp - 0x28]
push eax
call fcn.0040cb21
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jge 0x4081dc
mov dword [ebp - 0x2c], 4
push 0x420934
lea edx, [ebp - 0x2c]
push edx
call fcn.0040cb21
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov eax, 0x4081d7
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x4081f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4081fd
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409289
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40929d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4092be
cmp esi, eax
jae 0x409297
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4092b0
cmp esi, eax
jae 0x409297
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40d40c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41d218
call fcn.0040d640
mov edi, 0x94
mov eax, edi
call fcn.0040ced0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4245c0], ecx
mov eax, dword [esi + 4]
mov dword [0x4245cc], eax
mov edx, dword [esi + 8]
mov dword [0x4245d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4245c4], esi
cmp ecx, 2
je 0x40d46c
or esi, 0x8000
mov dword [0x4245c4], esi
shl eax, 8
add eax, edx
mov dword [0x4245c8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d4a7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d4a7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d4bf
cmp eax, 0x20b
je 0x40d4ac
mov dword [ebp - 0x1c], esi
jmp 0x40d4d3
cmp dword [ecx + 0x84], 0xe
jbe 0x40d4a7
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d4cd
cmp dword [ecx + 0x74], 0xe
jbe 0x40d4a7
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040dcc3
pop ecx
test eax, eax
jne 0x40d4e7
push 0x1c
call fcn.0040d392
pop ecx
call fcn.00410b3b
test eax, eax
jne 0x40d4f8
push 0x10
call fcn.0040d392
pop ecx
call fcn.0041283f
mov dword [ebp - 4], esi
call fcn.004125f5
test eax, eax
jge 0x40d511
push 0x1b
call fcn.0040d36d
pop ecx
call fcn.00412556
mov dword [0x425dc4], eax
call fcn.004123ec
mov dword [0x424408], eax
call fcn.00412356
test eax, eax
jge 0x40d536
push 8
call fcn.0040d36d
pop ecx
call fcn.00412123
test eax, eax
jge 0x40d547
push 9
call fcn.0040d36d
pop ecx
push 1
call fcn.0040fb38
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40d55d
push eax
call fcn.0040d36d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004120dd
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40d57e
movzx eax, word [ebp - 0x40]
jmp 0x40d581
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00407e00
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40d59f
push edi
call fcn.0040fc65
call fcn.0040fc87
jmp 0x40d5d1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040d67b
ret
Function at 0x40eeb2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40eee0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40eee7
cmp ebx, dword [eax + 4]
jae 0x40eee7
xor eax, eax
jmp 0x40f0d7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40eef8
xor eax, eax
inc eax
jmp 0x40f0d6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40ef0e
cmp ecx, edx
jae 0x40f053
cmp dword [eax + 4], 0
je 0x40ef17
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40eeff
cmp dword [ebp + 8], 0
je 0x40ef39
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f053
cmp eax, esi
jae 0x40f053
mov eax, dword [0x424570]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40ef5e
cmp dword [esi*4 + 0x424578], edi
je 0x40f057
inc esi
cmp esi, eax
jl 0x40ef4c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f0d3
cmp dword [ebp - 8], 0x1000000
jne 0x40f0d3
test byte [ebp - 0xc], 0xcc
je 0x40efdc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f0d3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f0d3
cmp word [eax + 0x18], 0x10b
jne 0x40f0d3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f0d3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40efdc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40efdc
test byte [ecx + 0x27], 0x80
jne 0x40f053
push 1
push 0x4245b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40eef0
mov ecx, dword [0x424570]
test ecx, ecx
mov edx, ecx
jle 0x40f010
lea eax, [ecx*4 + 0x424574]
cmp dword [eax], edi
je 0x40f010
dec edx
sub eax, 4
test edx, edx
jg 0x40f004
test edx, edx
jne 0x40f041
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f01d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f035
lea eax, [edx*4 + 0x424578]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40f023
cmp ecx, 0x10
jge 0x40f041
inc ecx
mov dword [0x424570], ecx
push 0
push 0x4245b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40eef0
xor eax, eax
jmp 0x40f0d6
test esi, esi
jle 0x40eef0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4245b8
call ebx
test eax, eax
jne 0x40eef0
cmp dword [esi*4 + 0x424578], edi
je 0x40f0ad
mov eax, dword [0x424570]
lea esi, [eax - 1]
test esi, esi
jl 0x40f09b
cmp dword [esi*4 + 0x424578], edi
je 0x40f097
dec esi
jns 0x40f08b
test esi, esi
jge 0x40f0ab
cmp eax, 0x10
jge 0x40f0a6
inc eax
mov dword [0x424570], eax
lea esi, [eax - 1]
jmp 0x40f0ad
je 0x40f0c5
xor ecx, ecx
test esi, esi
jl 0x40f0c5
lea eax, [ecx*4 + 0x424578]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f0b3
push 0
push 0x4245b8
call ebx
jmp 0x40eef0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fba2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41d448
call fcn.0040d640
push 8
call fcn.0040df04
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x424600], esi
jne 0x40fbd6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4245fc], esi
mov al, byte [ebp + 0x10]
mov byte [0x4245f8], al
cmp dword [ebp + 0xc], edi
jne 0x40fc20
cmp dword [0x425d90], edi
je 0x40fc10
mov eax, dword [0x425d8c]
sub eax, 4
mov dword [0x425d8c], eax
cmp eax, dword [0x425d90]
jb 0x40fc10
mov eax, dword [eax]
cmp eax, edi
je 0x40fbf1
call eax
jmp 0x40fbf1
push 0x42304c
mov eax, 0x423044
call fcn.0040fb02
pop ecx
push 0x423058
mov eax, 0x423050
call fcn.0040fb02
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40fc51
cmp dword [ebp + 0x10], edi
jne 0x40fc5f
mov dword [0x424600], esi
push dword [ebp + 8]
call fcn.0040fac0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40fc5e
push 8
call fcn.0040de37
pop ecx
ret
call fcn.0040d67b
ret

Function at 0x410ef8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040ced0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410f93
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4245c0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x410f93
cmp eax, 1
je 0x410fb4
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410f93
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x410f60
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x410f8f
xor eax, eax
inc eax
jmp 0x410fd3
cmp edi, eax
jae 0x410f97
xor eax, eax
jmp 0x410fd3
cmp eax, esi
jae 0x410f9e
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4245c0]
jmp 0x410fb7
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411d58
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x423190]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x423550]
je 0x411d8d
inc eax
cmp eax, 0x13
jb 0x411d7e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x423550]
jne 0x411eb3
mov eax, dword [0x42440c]
cmp eax, 1
je 0x411e8b
cmp eax, edx
jne 0x411dbd
cmp dword [0x423220], 1
je 0x411e8b
cmp ecx, 0xfc
je 0x411eb3
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411df3
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00410e00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040d6e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411e27
mov eax, edi
push eax
call fcn.0040d6e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d25c
push edi
call fcn.004129c0
add esp, 0x10
push edi
call fcn.0040d6e0
push dword [esi + 0x423554]
mov ebx, eax
call fcn.0040d6e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040ced0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00410e00
push edi
push ebx
call fcn.00410e10
push 0x41d258
push ebx
call fcn.00410e10
push dword [esi + 0x423554]
push ebx
call fcn.00410e10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004128c7
add esp, 0x2c
jmp 0x411eb3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x423554]
push dword [esi]
call fcn.0040d6e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040c26e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4123ec
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x42483c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x412435
call ebp
mov esi, eax
cmp esi, ebx
je 0x41241b
mov dword [0x42483c], 1
jmp 0x41243a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x412430
push 2
pop eax
mov dword [0x42483c], eax
jmp 0x412435
mov eax, dword [0x42483c]
cmp eax, 1
jne 0x412492
cmp esi, ebx
jne 0x41244d
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41244d
xor eax, eax
jmp 0x412539
cmp word [esi], bx
mov eax, esi
je 0x412462
inc eax
inc eax
cmp word [eax], bx
jne 0x412454
inc eax
inc eax
cmp word [eax], bx
jne 0x412454
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040c394
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x412485
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x412539
push ebp
push esi
push edi
call fcn.0040d770
add esp, 0xc
jmp 0x412477
cmp eax, 2
je 0x41249b
cmp eax, ebx
jne 0x412446
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x412446
cmp byte [ebp], bl
mov esi, ebp
je 0x4124d1
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x412446
push esi
add edi, eax
call fcn.0040d6e0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4124ae
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040c394
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41254a
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x41252b
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x412540
push edi
call fcn.0040d6e0
push esi
lea edi, [edi + eax + 1]
call fcn.0040c616
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4124f1
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040c27c
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x412446