joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8de250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8f2808
push 0x8e2288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x8de329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x8de329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.008e11d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x8de329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x8de329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x8de32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.008de351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8ded20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x8ded58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x8ded60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x8ded94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x8ded94
push eax
push esi
call fcn.008e120b
add esp, 8
pop esi
ret 0x10

Function at 0x8deda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x8dee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x8dee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x8f7320
push ecx
mov dword [esp + 0x1c], 4
call fcn.008e0dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x8dedda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x8dee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x8deec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x8deeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x8f7320
push ecx
mov dword [esp + 0x1c], 4
call fcn.008e0dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x8deeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x8dee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x8df000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x8df131
push esi
call fcn.008e2145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.008d1080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x8df131
push 0
push ebp
call fcn.008d13a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.008d1260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x8df08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008d12f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x8df121
push 0x8f7918
push edi
call fcn.008e03f0
push eax
push ebx
push esi
call fcn.008def60
push 0x8f78f8
push edi
call fcn.008e03f0
push eax
push ebx
push esi
call fcn.008def60
push 0x8f78d8
push edi
call fcn.008e03f0
push eax
push ebx
push esi
call fcn.008def60
push 0x8f78c0
push edi
call fcn.008e03f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.008def60
push 0x8f78a0
push edi
call fcn.008e03f0
push eax
push ebx
push esi
call fcn.008def60
push 0x8f7888
push edi
call fcn.008e03f0
push eax
push ebx
push esi
call fcn.008def60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8e01b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.008e0140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.008e0140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.008e0140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.008e0140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x8e0bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x8e0c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x8f287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8e0c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x8e0c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x3ea36767
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x58e51d99
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4216a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x104
mov eax, dword [ebp + 0xc]
push eax
call dword [0x453fe4]
cmp eax, 1
jne 0x4216c4
mov eax, 3
jmp 0x421797
cmp dword [ebp + 0x14], 0
je 0x4216e5
push 8
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
jne 0x4216e5
mov eax, 3
jmp 0x421797
cmp dword [0x454280], 0
jne 0x42170a
cmp dword [0x45349c], 7
jne 0x42170a
call fcn.00421610
test eax, eax
jne 0x42170a
mov eax, dword [0x45349c]
jmp 0x421797
cmp dword [0x454280], 0
jne 0x42171a
mov eax, dword [0x45349c]
jmp 0x421797
mov dword [ebp - 8], 7
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x4217a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x42177a
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42178a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x421c90
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fdb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 8
mov dword [ebp - 0x10], 0
jmp 0x421cc7
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.0040cc70
cmp dword [ebp - 0x10], eax
jae 0x421d0f
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.00416e60
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x421d06
push 1
mov ecx, dword [ebp - 0x14]
call fcn.00421de0
mov dword [ebp - 0x28], eax
jmp 0x421d0d
mov dword [ebp - 0x28], 0
jmp 0x421cbe
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.00424180
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x421d3d
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.004186a0
mov dword [ebp - 0x2c], eax
jmp 0x421d44
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
add ecx, 0xc0
call fcn.004030a0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
add ecx, 0x50
call fcn.00418730
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
add ecx, 0x40
call fcn.00418730
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
add ecx, 0x30
call fcn.00418730
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
add ecx, 0x24
call fcn.004030a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.004030a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x1c
call fcn.004030a0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.004030a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 8
call fcn.00418730
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x423d70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x18
call fcn.0040f800
mov ecx, dword [ebp - 0xc]
add ecx, 0x18
call fcn.00418080
movzx eax, al
test eax, eax
je 0x423d9a
xor eax, eax
jmp 0x423dca
mov ecx, dword [ebp - 0xc]
add ecx, 0x18
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0040de70
add esp, 8
lea ecx, [ebp - 4]
call fcn.00409aa0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
call fcn.004030a0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x426100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440063
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x44c
mov eax, dword [0x453540]
mov dword [ebp - 0x40], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x45c], ecx
call fcn.00401600
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x3c]
call fcn.00429060
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00426400
lea ecx, [ebp - 0x448]
call fcn.00429060
mov byte [ebp - 4], 1
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406680
add esp, 8
mov dword [ebp - 0x18], eax
push 2
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [0x453fec]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4261a3
call fcn.00401280
mov dword [ebp - 0x450], eax
jmp 0x4262ca
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [0x453f9c]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jne 0x4261d4
call fcn.00401280
mov dword [ebp - 0x450], eax
jmp 0x4262ca
mov eax, dword [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0
jne 0x426204
call fcn.00401280
mov dword [ebp - 0x450], eax
jmp 0x4262ca
mov edx, dword [ebp - 0x44c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
add edx, 1
push edx
lea ecx, [ebp - 0x448]
call fcn.00429040
jmp 0x42623f
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x448]
call fcn.00409aa0
test eax, eax
jne 0x426261
mov dword [ebp - 0x450], 0x8007000e
jmp 0x4262ca
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x448]
call fcn.00409aa0
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
call fcn.00401600
push eax
call dword [0x453ff4]
test eax, eax
jne 0x426298
call fcn.00401280
mov dword [ebp - 0x450], eax
jmp 0x4262ca
lea ecx, [ebp - 0x448]
call fcn.00409aa0
mov ecx, dword [ebp - 0x2c]
mov word [eax + ecx*2], 0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x448]
call fcn.00409aa0
push eax
lea ecx, [ebp - 0x28]
call fcn.00426430
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x20], 0
je 0x4262da
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x458], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.00429080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409a20
mov eax, dword [ebp - 0x458]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x40]
call fcn.0042bcf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x429330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call fcn.00402730
call fcn.0040b4b0
mov dword [ebp - 4], eax
push 5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004185e0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42946c
push 0xf0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004185e0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x1c], 0
je 0x4293ac
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x429453
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x429448
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00418400
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x454034]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call fcn.00429480
add esp, 4
movzx eax, al
test eax, eax
jne 0x42942d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x20]
je 0x429446
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x429451
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x42945c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42946c
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42bcf0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453540]
jne 0x42bcf9
ret
jmp fcn.0042bd00

Function at 0x42f990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x454524], 1
jne 0x42f9ad
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x454520], 1
mov cl, byte [ebp + 0x10]
mov byte [0x45451c], cl
cmp dword [ebp + 0xc], 0
jne 0x42fa12
cmp dword [0x455e48], 0
je 0x42fa00
mov edx, dword [0x455e44]
sub edx, 4
mov dword [0x455e44], edx
mov eax, dword [0x455e44]
cmp eax, dword [0x455e48]
jb 0x42fa00
mov ecx, dword [0x455e44]
cmp dword [ecx], 0
je 0x42f9fe
mov edx, dword [0x455e44]
call dword [edx]
jmp 0x42f9cf
push 0x453058
push 0x453050
call fcn.0042fac0
add esp, 8
push 0x453064
push 0x45305c
call fcn.0042fac0
add esp, 8
cmp dword [0x454528], 0
jne 0x42fa4b
push 0xffffffffffffffff
call fcn.0042dce0
add esp, 4
and eax, 0x20
je 0x42fa4b
mov dword [0x454528], 1
call fcn.0042e310
cmp dword [ebp + 0x10], 0
je 0x42fa53
jmp 0x42fa69
mov dword [0x454524], 1
mov eax, dword [ebp + 8]
push eax
call fcn.0042fa70
add esp, 4
pop ebp
ret
Function at 0x42fb60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, 4
call fcn.0042c4c0
mov dword [ebp - 0x64], esp
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x42fb94
xor eax, eax
jmp 0x42fca2
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
sub eax, 1
not eax
and eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x4544e4]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff1
add ecx, 0x11
imul ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x60]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
jae 0x42fbe7
xor eax, eax
jmp 0x42fca2
cmp dword [0x4544e4], 1
je 0x42fc6d
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x42fc11
xor eax, eax
jmp 0x42fca2
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x48]
and ecx, 0x1000
je 0x42fbf6
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x44]
and eax, 0x100
je 0x42fc3c
mov eax, 1
jmp 0x42fca2
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x5c]
jae 0x42fc48
xor eax, eax
jmp 0x42fca2
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 8]
jae 0x42fc56
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x42fc73
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [0x4544e4]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0x103
add ecx, 1
mov dword [ebp - 4], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x430f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x453540]
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 4], 0
jmp 0x430f74
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x13
jae 0x430f8d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx*8 + 0x453658]
jne 0x430f8b
jmp 0x430f8d
jmp 0x430f6b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax*8 + 0x453658]
jne 0x43114b
cmp dword [ebp + 8], 0xfc
je 0x430fd3
cmp dword [ebp + 8], 0xff
je 0x430fd3
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x45365c]
push eax
push 0
push 0
push 0
push 1
call fcn.004322e0
add esp, 0x14
cmp eax, 1
jne 0x430fd3
int3
cmp dword [0x4544a8], 1
je 0x430fee
cmp dword [0x4544a8], 0
jne 0x431027
cmp dword [0x45353c], 1
jne 0x431027
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x45365c]
push eax
call fcn.00437390
add esp, 4
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*8 + 0x45365c]
push edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x43114b
cmp dword [ebp + 8], 0xfc
je 0x43114b
mov byte [ebp - 0x1c], 0
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x431064
push str._program_name_unknown_
lea ecx, [ebp - 0x120]
push ecx
call fcn.00437590
add esp, 8
lea edx, [ebp - 0x120]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00437390
add esp, 4
add eax, 1
cmp eax, 0x3c
jbe 0x4310ad
lea ecx, [ebp - 0x120]
push ecx
call fcn.00437390
add esp, 4
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax - 0x3b]
mov dword [ebp - 0x10], eax
push 3
push 0x44df50
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00437690
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.00437390
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x45365c]
push ecx
call fcn.00437390
add esp, 4
lea eax, [esi + eax + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0042c4c0
mov dword [ebp - 0x124], esp
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0xc], edx
push str.Runtime_Error__n_nProgram:
mov eax, dword [ebp - 0xc]
push eax
call fcn.00437590
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004375a0
add esp, 8
push 0x44df30
mov eax, dword [ebp - 0xc]
push eax
call fcn.004375a0
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*8 + 0x45365c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004375a0
add esp, 8
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00437420
add esp, 0xc
lea esp, [ebp - 0x128]
mov ecx, dword [ebp - 0x14]
call fcn.0042bcf0
pop esi
mov esp, ebp
pop ebp
ret