joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013dc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b490
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10040014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10013e03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push 0x2c
mov word [edi + 4], 0
mov dword [ebp - 0x18], 0
call fcn.100174b1
mov esi, eax
mov dword [ebp - 0x20], 0
add esp, 4
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], 0
mov dword [esi], 0
lea eax, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], eax
xor eax, eax
push 0xc
push str.Advapi32.dll
mov dword [esi + 0x10], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.100050b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.1000fcf0
mov ecx, eax
call fcn.1000fdb0
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x10013ecc
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013ec2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013faa
push edx
push ecx
call fcn.10017942
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
sub esp, 8
mov word [ebp - 0x30], ax
lea eax, [esi + 0x14]
mov dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x18]
push eax
call fcn.10015fe0
mov esi, dword [ebp - 0x18]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x10013f05
lea eax, [esi + 8]
jmp 0x10013f07
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x10013f17
cmp dword [ebx + 0x14], 8
jb 0x10013f19
mov ebx, dword [ebx]
jmp 0x10013f19
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10013f3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10013f3a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10013f63
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10013f78
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.10017942
add esp, 8
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100174a0
mov esp, ebp
pop ebp
ret 4
call fcn.1001b6a9
int3
Function at 0x10014450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b605
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10040014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.100174b1
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call fcn.10019120
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015fe0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1003ebe0
push 0x10018a40
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10040014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x10016049
xor eax, eax
jmp 0x100161bf
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1001618a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1001618a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1001618a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1001618a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001618a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1001618a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1001618a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10016173
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10016160
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10016170
jmp 0x1001618a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.100161e6
test ebx, ebx
jne 0x100161bd
test esi, esi
je 0x100161af
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100161bd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100174a0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001625c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
add eax, 0xffff0000
push esi
push edi
push eax
call fcn.10016383
mov esi, eax
pop ecx
cmp esi, dword [ebp + 8]
jbe 0x100162eb
mov edi, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x10016293
mov esi, 0x4fff0000
jmp 0x100162e6
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.10019120
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100162eb
cmp dword [ebp - 0xc], edi
jne 0x100162d5
cmp dword [ebp - 0x10], edi
jb 0x100162d5
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x100162ed
sub esi, edi
jmp 0x100162e6
mov eax, dword [ebp - 0x18]
add eax, 0xffff0000
push eax
call fcn.10016383
pop ecx
mov esi, eax
cmp esi, dword [ebp + 8]
ja 0x1001627f
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100162f3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 8]
call fcn.10016394
mov esi, eax
pop ecx
cmp esi, dword [ebp + 0xc]
jae 0x1001637b
mov edi, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x10016324
mov esi, 0x80010000
jmp 0x10016376
push 0x1c
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.10019120
add esp, 0xc
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001637b
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0xc], edi
jne 0x10016368
cmp ecx, edi
jb 0x10016368
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1001637d
add esi, edi
jmp 0x10016376
mov eax, dword [ebp - 0x1c]
add eax, ecx
push eax
call fcn.10016394
pop ecx
mov esi, eax
cmp esi, dword [ebp + 0xc]
jb 0x10016310
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100163aa
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x10040b74]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10040b70]
test edx, edx
jne 0x100163f6
test eax, eax
je 0x10016409
mov edx, eax
mov dword [0x10040b74], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10016409
cmp ecx, ebx
jb 0x10016409
cmp ecx, edi
jbe 0x100164f2
mov edx, eax
test eax, eax
jmp 0x1001642b
test edx, edx
je 0x10016426
mov eax, dword [edx + 8]
test eax, eax
je 0x10016426
cmp eax, ebx
jb 0x10016426
cmp eax, edi
jbe 0x100164f2
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10040b74], edx
jne 0x1001640f
movzx eax, si
sub esi, eax
cmp esi, 0x40000000
jbe 0x10016470
lea eax, [esi - 0x40000000]
push esi
push eax
call fcn.100162f3
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
lea eax, [esi - 0x40000000]
push eax
push ebx
call fcn.1001625c
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
cmp esi, 0x40000000
jae 0x1001649c
lea eax, [esi + 0x40000000]
push eax
push esi
call fcn.1001625c
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
lea eax, [esi + 0x40000000]
push edi
push eax
call fcn.100162f3
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
push esi
push ebx
call fcn.1001625c
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x100164ba
push edi
push esi
call fcn.100162f3
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x10016517
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10040b70]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10040b74], edx
mov dword [0x10040b70], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
dec esi
jne 0x100164e4
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x10016517
cmp esi, edi
ja 0x10016517
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.10019120
add esp, 0xc
mov eax, esi
jmp 0x10016519
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10016607
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x1003ec00
call fcn.10017eb0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10016670
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10016670
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x10016670
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x10016670
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10016679
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.10017ef6
ret
Function at 0x1001667f
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10016691
xor eax, eax
pop ebp
ret
push esi
lea esi, [eax + 0x10000]
xor ecx, ecx
lea edx, [eax + 0x88]
cmp dword [edx], 0
je 0x100166ad
cmp dword [edx], eax
jb 0x100166bf
cmp dword [edx], esi
jae 0x100166bf
inc ecx
add edx, 0x48
cmp ecx, 0x38d
jb 0x100166a0
xor eax, eax
inc eax
pop esi
pop ebp
ret
xor eax, eax
jmp 0x100166bc

Function at 0x1001675e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x10040b70]
jmp 0x10016780
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x1001676b
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016a47
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10040b80], eax
je 0x10016a63
mov eax, 0x10dd
jmp 0x10016b53
mov eax, dword [0x10040b84]
test eax, eax
jne 0x10016b53
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10016a80
push 6
pop eax
jmp 0x10016b52
cmp dword [edi], 0
jne 0x10016a98
push 6
pop eax
mov dword [0x10040b84], eax
mov dword [0x10040b88], edi
jmp 0x10016b52
push ebx
push esi
push 0x18
call fcn.100174b1
mov esi, eax
pop ecx
test esi, esi
jne 0x10016ab0
push 8
pop ebx
jmp 0x10016b37
push 0
push dword [edi]
call fcn.10016a33
push 0
push dword [ebp + 0xc]
mov ebx, eax
call fcn.10016a33
movzx ecx, byte [ebx + 0x36]
mov edx, eax
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp + 8], eax
test ecx, ecx
je 0x10016b2b
cmp ecx, 0x1e
ja 0x10016b2b
cmp dword [ebx + 0x44], edx
jne 0x10016b2b
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10016b01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10016b37
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x10040b90]
mov dword [esi], eax
xor eax, eax
mov dword [0x10040b90], esi
jmp 0x10016b50
cmp dword [0x10040b78], 0
push 9
pop ebx
jne 0x10016b3d
mov dword [0x10040b84], ebx
test esi, esi
je 0x10016b48
push esi
call fcn.10017e9c
pop ecx
mov dword [0x10040b88], edi
mov eax, ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x10016b59
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10040b80], eax
je 0x10016b75
mov eax, 0x10dd
jmp 0x10016bff
push ebx
push esi
push edi
mov edi, dword [0x10040b90]
xor ebx, ebx
test edi, edi
je 0x10016bc1
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x10016bb2
cmp dword [edi + 0x10], ebx
je 0x10016bb2
push dword [edi + 0x10]
call fcn.10016575
pop ecx
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push edi
call fcn.10017e9c
mov edi, esi
pop ecx
test esi, esi
jne 0x10016b84
mov dword [0x10040b90], ebx
call fcn.100166c3
mov edi, dword [0x10040b8c]
test edi, edi
je 0x10016bee
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.10017e9c
mov edi, esi
pop ecx
test esi, esi
jne 0x10016bd6
pop edi
pop esi
mov dword [0x10040b8c], ebx
xor eax, eax
mov dword [0x10040b80], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016eba
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10040b84]
test eax, eax
jne 0x10016f2b
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, dword [ebp + 8]
cmp ebx, eax
jne 0x10016ed8
xor eax, eax
jmp 0x10016f2a
push esi
push edi
push 8
pop esi
push esi
call fcn.100174b1
mov edi, eax
pop ecx
test edi, edi
je 0x10016f05
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10016f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.10017e9c
pop ecx
and dword [0x10040b88], 0
mov eax, esi
mov dword [0x10040b84], esi
jmp 0x10016f28
mov eax, dword [0x10040b8c]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
mov dword [0x10040b8c], edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404840], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40410c], ecx
mov dword [0x4047c0], 0x30
mov dword [0x4047c4], 2
mov dword [0x4047cc], 0
mov dword [0x4047d0], 0
mov dword [0x4047c8], 0x402f50
jmp 0x402c23
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4047d4], eax
mov dword [0x4047e0], 0xf
mov dword [0x4047e8], 0x404767
mov dword [0x404104], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4047d8], eax
mov dword [0x4047ec], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4047dc], eax
push 0x4047c0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x404104]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.litform
push str.ndcls
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404838], eax
xor eax, eax
jmp 0x402cc2
push eax
push dword [0x404838]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404838]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4047f0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402d08
push 0x4047f0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4047f0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402cdb
mov eax, dword [0x4047f8]
jmp 0x402d15
call 0x4022b2
ret
Function at 0x402a9c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402af5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402938
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402938
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402adf
inc ebx
jmp 0x402ac8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402afc
lea eax, [ebp - 8]
call fcn.00403658
ret

Function at 0x402b04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403658
test esi, esi
jne 0x402b3b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00403748
jmp 0x402b5c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402938
mov dword [esp], eax
test esi, esi
je 0x402b5c
cmp dword [ebx], 0
je 0x402b5c
dec esi
jmp 0x402b43
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x402d58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402df0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402dd0
xor eax, eax
push ebp
push 0x402dc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402e0c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402dd0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403458
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x4034b9
cmp word [0x40a208], 0xd7b2
jne 0x403481
cmp dword [0x40a210], 0
jbe 0x403481
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4034e0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40901c], 0
jne 0x4034d5
push 0
push 0x409050
push 0x409058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x403614
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027e4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40a035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4035dc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40425c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4042c2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004038d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c4c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4042ac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042c9
lea eax, [ebp - 0x10]
call fcn.00403658
ret

Function at 0x404e70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
mov ebx, eax
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.00402bc0
mov dword [ebp - 0x44], 0x44
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov eax, ebx
call fcn.00403d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x404ef9
xor eax, eax
push ebp
push 0x404ef2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ef9
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle
ret
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403d24
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [0x40a674], eax
cmp dword [0x40a674], 0xffffffff
je 0x404fd3
test byte [0x40a674], 0x10
je 0x404fd7
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret