joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41641d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp byte [ebp + 8], 0
mov dword [ebp - 0x68], edi
jne 0x41644c
cmp dword [ebx + 8], edi
jne 0x41647a
xor eax, eax
jmp 0x41659a
push edi
push 0x4278d0
push 1
push str.NtMapViewOfSection
mov esi, 0x42795c
push esi
call fcn.00415d43
push 1
push 0x4278f0
push 1
push str.NtUnmapViewOfSection
push esi
mov ecx, ebx
call fcn.00415d43
mov eax, dword [ebx]
push 1
push 0x2000
push 0x10000
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
mov dword [ebp - 0x60], eax
call edi
mov esi, eax
mov eax, dword [ebx + 8]
shl eax, 6
add eax, 0x50
mov ecx, eax
mov dword [ebp - 0x64], eax
call fcn.00415f81
mov ecx, eax
mov edx, 0xfffff000
and ecx, edx
and eax, 0xfff
add esi, ecx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x64]
push 0x40
push 0x1000
add ecx, 0xfff
and ecx, edx
push ecx
push esi
push dword [ebp - 0x60]
call edi
mov esi, eax
test esi, esi
jne 0x4164f9
push ecx
push 0x1a8
push str.z:_build_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
lea ecx, [ebp - 0x124]
call fcn.0040b2a0
xor ecx, ecx
inc ecx
jmp 0x4164fc
mov ecx, dword [ebp - 0x68]
test cl, 1
je 0x416515
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x11c]
call fcn.0040b4ca
mov edi, dword [ebp - 0x6c]
and dword [ebp - 0x50], 0
add edi, esi
mov esi, dword [ebp - 0x64]
push 0xa4
push 0
push sym.firefox.exe_g_originals
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0x10
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
push esi
push edi
call fcn.0041610b
test eax, eax
jne 0x41659a
lea eax, [ebp - 0x70]
push eax
push 0x10
lea eax, [ebp - 0x5c]
push eax
push edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x416597
cmp dword [ebp - 0x70], 0x10
jne 0x416597
lea eax, [ebp - 0x74]
push eax
push 0x20
push esi
push edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebx]
push 0xa4
push sym.firefox.exe_g_originals
push 0x427948
call fcn.00423d3b
jmp 0x41659a
push 0x2a
pop eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406335
mov esp, ebp
pop ebp
ret 4

Function at 0x41a910
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push dword [ebp + 8]
push edi
push 0x8000004
push edi
mov dword [esi], edi
push 0xffffffffffffffff
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
mov ecx, esi
call fcn.0040a3d1
mov ecx, dword [esi]
call fcn.0040db06
test al, al
je 0x41a956
push dword [ebp + 8]
push edi
push edi
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x41cd1f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x43e00c]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
cmp dword [sym.firefox.exe_g_shared_section], eax
je 0x41cd8a
call fcn.00423eec
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp byte [eax + 4], 0
je 0x41cdc4
push dword [esp + 0x10]
push dword [esp + 0x24]
push ebx
push dword [esp + 0x30]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [esp + 0x40]
push dword [esp + 0x34]
push edi
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x41cdc4
xor eax, eax
inc eax
jmp 0x41ced4
mov edx, esi
mov ecx, 0x428224
call fcn.0040d891
cmp dword [sym.firefox.exe_g_shared_section], 0
jne 0x41cddd
xor eax, eax
jmp 0x41cde2
call fcn.00423eec
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp dword [eax], 1
jle 0x41ced2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push 1
push 0x10
pop edx
mov dword [esp + 0x18], eax
call fcn.004207c4
pop ecx
test al, al
je 0x41cec8
call fcn.004204ae
mov edi, eax
test edi, edi
je 0x41cec8
and dword [esp + 0x10], 0
lea eax, [esp + 0x70]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41ce50
cmp eax, 0x104
lea ecx, [esp + 0x70]
push 0
pop eax
cmovae ecx, eax
mov dword [esp + 0x10], ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.00421a93
xor eax, eax
push 0x34
push eax
lea eax, [esp + 0x44]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0041c814
add esp, 0x18
test eax, eax
jne 0x41cec8
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x44], 0
jne 0x41ced2
mov edx, esi
mov ecx, 0x428224
call fcn.0040d793
jmp 0x41cdbc
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406335
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41d4a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x2c]
mov ebx, edx
push edi
push esi
push dword [ebp + 0x28]
xor edi, edi
mov dword [ebp - 4], ecx
push dword [ebp + 0x24]
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41d4d9
xor eax, eax
jmp 0x41d53b
push 1
push edi
mov edi, 0x1fffff
mov ecx, 0x101c01
test ebx, ebx
mov eax, edi
cmove eax, ecx
push eax
push esi
push dword [ebp - 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x41d510
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d4d5
push 1
push 0
mov ecx, 0x100c43
lea eax, [esi + 4]
test ebx, ebx
cmove edi, ecx
push edi
push eax
push dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d5ed
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x41d617
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push 3
push edi
push edi
push dword [ebp + 0x18]
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
pop edi
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
pop esi
pop ebp
ret
Function at 0x41e93f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], ebx
cmp byte [eax + 0x2c], bl
jne 0x41e96f
mov eax, 0x3f0
jmp 0x41ea4a
push esi
lea ecx, [ebp - 0x50]
push ecx
push 2
lea edx, [eax + 0x24]
lea ecx, [ebp - 0x58]
call fcn.0041f2bb
mov esi, dword [ebp - 0x58]
pop ecx
pop ecx
test esi, esi
jne 0x41e992
mov ebx, dword [ebp - 0x50]
jmp 0x41ea47
mov eax, ebx
mov dword [ebp - 0x54], eax
cmp dword [esi], ebx
jbe 0x41ea40
push edi
lea edi, [esi + 4]
mov dword [ebp - 0x64], 0x44
test dword [edi + 4], 0xc0000020
jne 0x41ea30
mov edx, dword [ebp - 0x5c]
mov cl, bl
test edx, edx
je 0x41ea0a
mov dword [ebp - 0x50], ebx
mov ecx, ebx
mov dword [ebp - 0x58], ebx
mov eax, dword [edx]
mov dword [ebp - 0x60], eax
mov eax, dword [edx + 4]
sub eax, dword [edx]
cdq
idiv dword [ebp - 0x64]
cmp dword [ebp - 0x50], eax
jae 0x41ea05
mov eax, dword [ebp - 0x60]
push dword [edi]
add eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41e9fc
mov ecx, dword [ebp - 0x58]
inc dword [ebp - 0x50]
mov edx, dword [ebp - 0x5c]
push 0x44
pop eax
add ecx, eax
mov dword [ebp - 0x58], ecx
jmp 0x41e9c4
mov byte [ebp - 0x49], 1
mov cl, byte [ebp - 0x49]
jmp 0x41ea07
mov cl, bl
mov eax, dword [ebp - 0x54]
test cl, cl
jne 0x41ea30
push dword [edi]
lea eax, [ebp - 0x48]
push eax
push 0x44
pop eax
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x48]
push eax
add ecx, 0x18
call fcn.0041f5bc
mov eax, dword [ebp - 0x54]
inc eax
add edi, 8
mov dword [ebp - 0x54], eax
cmp eax, dword [esi]
jb 0x41e9aa
pop edi
push esi
call fcn.00406346
pop ecx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406335
mov esp, ebp
pop ebp
ret 4
Function at 0x41ea5b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], edx
cmp byte [eax + 0x2c], 0
mov dword [ebp - 0x5c], edi
jne 0x41ea8c
mov eax, 0x3f0
jmp 0x41eb47
push esi
lea ecx, [ebp - 0x4c]
push ecx
push 2
lea edx, [eax + 0x24]
lea ecx, [ebp - 0x50]
call fcn.0041f2bb
mov esi, dword [ebp - 0x50]
pop ecx
pop ecx
test esi, esi
jne 0x41eaaf
mov edi, dword [ebp - 0x4c]
jmp 0x41eb44
mov ecx, edi
mov dword [ebp - 0x4c], ecx
cmp dword [esi], edi
jbe 0x41eb3d
push ebx
lea ebx, [esi + 4]
mov dword [ebp - 0x5c], 0x44
test dword [ebx + 4], 0xc0000020
jne 0x41eb31
mov dword [ebp - 0x54], edi
mov ecx, edi
mov dword [ebp - 0x50], edi
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
cdq
idiv dword [ebp - 0x5c]
cmp dword [ebp - 0x54], eax
jae 0x41eb2e
mov edx, dword [ebp - 0x58]
push dword [ebx]
mov eax, dword [edx]
add eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41eb0f
mov ecx, dword [ebp - 0x50]
inc dword [ebp - 0x54]
push 0x44
pop eax
add ecx, eax
mov dword [ebp - 0x50], ecx
jmp 0x41ead8
push dword [ebx]
lea eax, [ebp - 0x48]
push eax
push 0x44
pop eax
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ecx + 0x18]
call fcn.0041f5bc
mov ecx, dword [ebp - 0x4c]
inc ecx
add ebx, 8
mov dword [ebp - 0x4c], ecx
cmp ecx, dword [esi]
jb 0x41eac7
pop ebx
push esi
call fcn.00406346
pop ecx
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406335
mov esp, ebp
pop ebp
ret 4
Function at 0x423bd5
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 0x10000
push ebx
push 0x8000004
push ebx
push 0xffffffffffffffff
lea esi, [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
mov ecx, esi
call fcn.0040a3d1
mov ecx, dword [esi]
call fcn.0040db06
test al, al
jne 0x423c10
push 0x19
jmp 0x423c2e
push ebx
push ebx
push 7
lea eax, [ebp - 4]
push eax
push dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x423c34
push 0x1a
pop esi
jmp 0x423cd7
push ebx
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x423c4b
push 0x1b
jmp 0x423c2e
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x2000]
push eax
call fcn.004239e4
mov eax, dword [ebp - 4]
pop ecx
push 4
push sym.firefox.exe_g_shared_section
push 0x43a048
mov ecx, edi
mov dword [sym.firefox.exe_g_shared_section], eax
call fcn.00423d3b
and dword [sym.firefox.exe_g_shared_section], 0
mov esi, eax
test esi, esi
jne 0x423cd7
push 4
push sym.firefox.exe_g_shared_IPC_size
push 0x43a034
mov ecx, edi
mov dword [sym.firefox.exe_g_shared_IPC_size], 0x2000
call fcn.00423d3b
and dword [sym.firefox.exe_g_shared_IPC_size], 0
mov esi, eax
test esi, esi
jne 0x423cd7
push 4
push sym.firefox.exe_g_shared_policy_size
push 0x43a074
mov ecx, edi
mov dword [sym.firefox.exe_g_shared_policy_size], 0xe000
call fcn.00423d3b
and dword [sym.firefox.exe_g_shared_policy_size], 0
mov esi, eax
test esi, esi
je 0x423ce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, esi
jmp 0x423d32
push 0x1c
call fcn.004065c1
pop ecx
push dword [ebp + 8]
mov ecx, eax
push dword [edi + 0x24]
push dword [edi + 8]
push dword [edi]
call fcn.00421c5a
push eax
lea ecx, [edi + 0x20]
call fcn.00423db2
push ecx
push ecx
mov ecx, dword [edi + 0x20]
push ebx
call fcn.00421e14
test al, al
jne 0x423d1d
push 4
pop eax
jmp 0x423d32
and dword [edi + 0xc], 0
lea ecx, [edi + 4]
call fcn.0040dbfc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x423ff1
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [0x43fe7c]
test esi, esi
jne 0x424046
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x42402e
xor al, al
jmp 0x42406f
push str.GetUserDefaultLocaleName
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x43fe7c], esi
test esi, esi
je 0x42402a
push edi
mov edi, 0xaa
lea eax, [ebp - 0xb0]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb0]
push edi
push eax
call esi
neg eax
pop edi
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406335
mov esp, ebp
pop ebp
ret
Function at 0x424910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.004248a9
test al, al
je 0x42493b
mov eax, 0x1126
jmp 0x424ad1
lea ecx, [ebp - 0x228]
call fcn.0040adeb
lea edx, [ebp - 0x228]
mov ecx, esi
call fcn.0042483a
lea ecx, [ebp - 0x228]
mov byte [ebp - 0x229], al
call fcn.00424f25
lea edx, [ebp - 0x228]
mov bl, al
mov ecx, edx
call fcn.004247cc
xor esi, esi
mov bh, al
test bl, bl
jne 0x42499c
test bh, bh
jne 0x42498b
cmp byte [ebp - 0x229], bl
je 0x424a0b
push str.._
push ecx
lea ecx, [ebp - 0x228]
call fcn.00413786
cmp dword [ebp - 0x214], 8
lea ecx, [ebp - 0x210]
push 0x104
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x4249d9
push 0x7b
test bh, bh
mov eax, 0x1126
pop esi
cmovne esi, eax
jmp 0x424ac0
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4249e2
sub ecx, edx
lea edx, [ebp - 0x210]
sar ecx, 1
lea edi, [ecx - 1]
push edi
lea ecx, [ebp - 0x228]
call fcn.0042461e
pop ecx
test al, al
jne 0x424a13
push 0x7b
pop esi
jmp 0x424ac0
cmp dword [ebp - 0x214], 8
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x424a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x424a4f
cmp esi, 3
je 0x424a4f
cmp esi, 1
je 0x424a4f
cmp esi, 0x7b
jne 0x424ac0
xor esi, esi
push ecx
push ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x5c
push eax
lea ecx, [ebp - 0x228]
call fcn.0040d68d
lea ecx, [ebp - 0x228]
cmp eax, dword [ebp - 0x218]
ja 0x424aa2
cmp dword [ebp - 0x214], 8
mov dword [ebp - 0x218], eax
cmovae ecx, dword [ebp - 0x228]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x424aaf
test eax, 0x400
jne 0x424ac0
jmp 0x424a51
sub eax, dword [ebp - 0x218]
push esi
push eax
call fcn.0040e5af
cmp dword [ebp - 0x218], edi
ja 0x424a13
mov esi, 0x1126
push 0
push 1
lea ecx, [ebp - 0x228]
call fcn.0040a189
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406335
mov esp, ebp
pop ebp
ret
Function at 0x401005
Capabilities:
Terminate process

Disassembly:
jmp 0x40a47b
push 0x14
push 0x40fc80
call fcn.004010aa
push 1
call fcn.00401258
pop ecx
test al, al
je 0x40a39c
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040128a
mov byte [ebp - 0x24], al
mov eax, dword [0x4ce764]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40a39c
test eax, eax
jne 0x40a2c0
mov dword [0x4ce764], ecx
push 0x40d71c
push 0x40d410
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40a2a3
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40a38c
push 0x40d30c
push section..rdata
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4ce764], 2
jmp 0x40a2c5
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040114f
pop ecx
call fcn.0040103c
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40a2f6
push esi
call fcn.00401104
pop ecx
test al, al
je 0x40a2f6
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.00401023
mov esi, eax
cmp dword [esi], edi
je 0x40a314
push esi
call fcn.00401104
pop ecx
test al, al
je 0x40a314
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00401096
movzx esi, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push esi
push eax
push edi
push 0x400000
call fcn.004012e4
mov esi, eax
call fcn.00401294
test al, al
je 0x40a3a3
test bl, bl
jne 0x40a342
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00401159
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40a38c
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00401195
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00401316
jmp 0x40a236

Function at 0x401294
Capabilities:
Parse pe header

Disassembly:
jmp 0x40afae
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40afed
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40afed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40afed
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40afed
cmp dword [ecx + 0x74], 0xe
jbe 0x40afed
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43b636
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edi
or esi, edx
call fcn.0043b67b
and esi, edx
or edx, edx
sub esi, 0xa8ad6b59
xor dword [ebx], edi
mov edx, 0xd06dcaa7
add edx, edx
inc edx
add ebx, 1
dec esi
add esi, edx
add edx, 1
cmp ebx, ecx
jne fcn.0043b636
sub esi, 0x50ab27a5
and edx, esi
ret
Function at 0x403260
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x200c
call fcn.0040a700
mov eax, dword [0x450b14]
mov ecx, dword [0x450a88]
shr eax, 3
test eax, eax
jbe 0x403392
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4032b0
cmp dword [0x450b14], 0x959
jne 0x403374
push 0
lea eax, [esp + 0x420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0xc20]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1820]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402b44
push 0x402b60
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.004030b0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4032b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret
Function at 0x407303
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440a30]
jne 0x40730d
repz ret
jmp fcn.0040a09f

Function at 0x409c2f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004059f8
and dword [ebp - 4], 0
cmp dword [0x4418e0], 0
mov ebx, eax
jne 0x409ce0
push 0x402378
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409d91
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40236c
push edi
call esi
test eax, eax
je 0x409d91
push eax
call fcn.00405986
mov dword [esp], 0x40235c
push edi
mov dword [0x4418e0], eax
call esi
push eax
call fcn.00405986
mov dword [esp], 0x402348
push edi
mov dword [0x4418e4], eax
call esi
push eax
call fcn.00405986
mov dword [esp], 0x40232c
push edi
mov dword [0x4418e8], eax
call esi
push eax
call fcn.00405986
pop ecx
mov dword [0x4418f0], eax
test eax, eax
je 0x409ce0
push 0x402314
push edi
call esi
push eax
call fcn.00405986
pop ecx
mov dword [0x4418ec], eax
mov eax, dword [0x4418ec]
cmp eax, ebx
je 0x409d38
cmp dword [0x4418f0], ebx
je 0x409d38
push eax
call fcn.00405a01
push dword [0x4418f0]
mov esi, eax
call fcn.00405a01
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409d38
test edi, edi
je 0x409d38
call esi
test eax, eax
je 0x409d2f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409d2f
test byte [ebp - 0xc], 1
jne 0x409d38
or dword [ebp + 0x10], 0x200000
jmp 0x409d71
mov eax, dword [0x4418e4]
cmp eax, ebx
je 0x409d71
push eax
call fcn.00405a01
pop ecx
test eax, eax
je 0x409d71
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409d71
mov eax, dword [0x4418e8]
cmp eax, ebx
je 0x409d71
push eax
call fcn.00405a01
pop ecx
test eax, eax
je 0x409d71
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4418e0]
call fcn.00405a01
pop ecx
test eax, eax
je 0x409d91
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409d93
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret