joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push esi
push 0x20019
push 0x433174
xor esi, esi
xor ebx, ebx
push 0x80000000
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
inc esi
mov dword [ebp - 8], ebx
call fcn.004206b7
test eax, eax
jne 0x433156
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0x104
call fcn.00426863
cmp eax, ebx
jle 0x4330d6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jne 0x433156
lea eax, [ebp - 0x114]
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x433156
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00436891
lea eax, [ebp - 0x214]
push 0x41d9cc
push eax
call fcn.0040eb1d
add esp, 0x1c
test eax, eax
je 0x43314f
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [ebp + 0xc]
jae 0x433146
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0x114]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x43313a
jmp 0x43314f
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x43314f
mov byte [eax], bl
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 8]
call fcn.00420652
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.004037c0
leave
ret 8
Function at 0x4339c3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esi], eax
je 0x433a75
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x433a15
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x15c]
push eax
call fcn.00414446
test eax, eax
jl 0x433a15
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
ja 0x433a75
jb 0x433a15
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jae 0x433a75
push dword [ebp + 0x10]
push dword [esi]
push 0
push 1
call fcn.0040ceaa
mov ebx, eax
test ebx, ebx
je 0x433a6e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x433a3a
xor esi, esi
jmp 0x433a65
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x433a4c
call esi
mov esi, eax
jmp 0x433a5c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x433a65
mov esi, 0x80040956
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x433a78
mov esi, 0x80040955
jmp 0x433a78
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x433ba1
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x433bd3
lea eax, [ebp - 0xc]
push eax
push 0x41563c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x433bd7
xor eax, eax
jmp 0x433c0f
and dword [ebp - 0x10], 0
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push esi
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4

Function at 0x433c13
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
test esi, esi
je 0x433c48
lea eax, [ebp - 0xc]
push eax
push 0x41563c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x433c4c
xor eax, eax
jmp 0x433c98
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
neg eax
push 0
sbb eax, eax
push 0
and eax, 2
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x433c8d
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4
Function at 0x433d4d
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov word [eax], si
mov eax, dword [ebp + 0xc]
push esi
push esi
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 8]
mov dword [edi], esi
mov dword [eax], esi
call ebx
test eax, eax
jne 0x433e83
push esi
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x433e83
cmp word [ebp - 0x60], 0x5a4d
jne 0x433e83
push esi
push esi
push dword [ebp - 0x24]
mov dword [edi], 1
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
je 0x433e7e
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x433e7e
cmp word [ebp - 0xc], 0x454e
jne 0x433dfa
mov dword [edi], 2
cmp dword [ebp - 0xc], 0x4550
jne 0x433e7e
push esi
lea eax, [ebp - 8]
push eax
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x433e7e
mov ax, word [ebp - 0xe]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov ax, word [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
push esi
mov word [ecx], ax
lea eax, [ebp - 8]
push eax
push 0xf0
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
je 0x433e7e
cmp word [ebp - 0x150], 0x20b
mov ecx, dword [ebp + 0xc]
movzx eax, word [ebp - 0x10c]
jne 0x433e69
mov dword [edi], 6
mov dword [ecx], eax
xor eax, eax
cmp dword [ebp - 0x6c], esi
jmp 0x433e76
mov dword [edi], 3
mov dword [ecx], eax
xor eax, eax
cmp dword [ebp - 0x7c], esi
mov ecx, dword [ebp + 0x18]
setne al
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x433e85
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004037c0
leave
ret 0x14
Function at 0x4340f3
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call fcn.00433b67
cmp eax, 2
je 0x43417d
call fcn.00433b67
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x434176
push 0x104
push dword [ebp + 8]
lea esi, [ebp - 0x228]
call fcn.004173a5
test eax, eax
je 0x434176
push edi
lea eax, [ebp - 0x124]
push eax
push edi
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00436891
push 7
lea eax, [ebp - 0x124]
push 0x4342dc
push eax
call fcn.00436d64
add esp, 0x20
test eax, eax
jne 0x434176
mov eax, ebx
jmp 0x4342a2
xor eax, eax
jmp 0x4342a2
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push edi
push 0x400
call fcn.0040ceaa
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x43427f
lea ecx, [ebp - 0xc]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43427f
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp + 8]
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov edi, esp
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push edi
push ebx
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x434272
mov eax, pe_nt_image_headers32
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [edi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x434272
mov al, byte [ebp - 0x120]
test al, al
je 0x434272
cmp al, 0x53
je 0x434233
cmp al, 0x4c
je 0x434233
cmp al, 0x4e
jne 0x434272
push 7
mov edi, 0x41d3d8
lea esi, [ebp - 0x120]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x43426f
push 0xe
mov edi, 0x4342cc
lea esi, [ebp - 0x120]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x43426f
push 0x10
mov edi, 0x4342bc
lea esi, [ebp - 0x120]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x434272
mov dword [ebp - 8], ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x434286
mov dword [ebp - 8], 1
cmp dword [ebp - 0x10], edi
je 0x434294
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x43429f
push edi
call fcn.00433c13
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x234]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004037c0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43462d
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
call fcn.00403d52
test eax, eax
je 0x43463d
xor eax, eax
jmp 0x43469e
push ebx
push edi
push 0x80000000
push 0x4346b0
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x43469a
push ebp
push esi
push 4
push 0x4346a4
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x434695
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
test edi, edi
je 0x434692
xor eax, eax
cmp dword [esp + 0x14], 4
sete al
mov edi, eax
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0x1c
ret

Function at 0x4348a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4348fc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4348c9
xor eax, eax
jmp 0x4348fb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4348ed
cmp esi, eax
jae 0x4348c5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4348df
cmp esi, eax
jae 0x4348c5
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x435104
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0x41d9d0
push 0x446ed0
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.00434cac
lea ecx, [ebp - 0xc]
call fcn.00434b5d
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x18], 1
call dword [0x446f78]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov esi, eax
cmp esi, edi
jl 0x4351c6
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.00434ddc
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4351a4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.004031ad
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x435200
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4351ab
mov esi, 0x80004005
jmp 0x4351c6
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
call fcn.00434b07
mov eax, dword [ebp - 0xc]
push dword [eax - 0xc]
push eax
call fcn.004349e1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 4], edi
je 0x4351d4
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], edi
je 0x4351e2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.004039d1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004039d1
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x4353b9
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x40
mov dword [ebp - 4], eax
pop ecx
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x118], bl
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push 0x1a
push ebx
mov dword [ebp - 8], ebx
call esi
cmp dword [ebp - 8], ebx
jne 0x435498
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x4354f8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x435485
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x4354ec
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x435485
cmp dword [ebp - 0x10], 1
jne 0x435485
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x435457
mov edx, dword [ebp + 8]
mov esi, 0x41d9d8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x118]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x118]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x435479
jmp 0x4354d8
cmp dword [ebp - 8], ebx
jne 0x435498
lea eax, [ebp - 8]
push eax
push 5
push ebx
call esi
cmp dword [ebp - 8], ebx
je 0x4354d0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4354d8
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4354d8
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4354d8
mov eax, dword [ebp + 8]
mov word [eax], 0xa
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004037c0
leave
ret 4
Function at 0x435ac6
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
mov eax, dword [0x446a0c]
xor eax, dword [esp + 0x160]
push ebp
push esi
mov esi, dword [esp + 0x16c]
push edi
mov dword [esp + 0x168], eax
push 0x11
xor eax, eax
pop ecx
push dword [esi + 0xc]
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x68]
push 0x435be8
push eax
mov dword [esp + 0x2c], 0x44
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
xor eax, eax
push eax
push eax
push 0x4000020
xor ebp, ebp
inc ebp
push ebp
push eax
push eax
lea ecx, [esp + 0x84]
push ecx
push eax
mov dword [esp + 0x34], 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x435bc5
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov ebx, 0x4e20
push ebx
push dword [esi]
call edi
test eax, eax
jne 0x435b76
push 1
push dword [esi + 4]
call edi
test eax, eax
jne 0x435bb5
xor ebp, ebp
mov dword [esp + 0x10], ebp
jmp 0x435bb5
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
je 0x435bc4
cmp eax, 0x80
je 0x435bbb
push 1
push dword [esi]
call edi
test eax, eax
je 0x435b9f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x435baa
push 1
push dword [esi + 4]
call edi
test eax, eax
jne 0x435bac
xor ebp, ebp
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebp, ebp
jne 0x435b5a
jmp 0x435bc4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
call fcn.004037c0
add esp, 0x160
ret 4

Function at 0x435bf4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 0x7c]
mov dword [ebp - 0x20], 0x94
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
inc eax
cmp dword [ebp - 0x10], eax
jne 0x435c28
mov dword [0x4488f0], eax
cmp dword [ebp - 0x10], 2
jne 0x435c3c
cmp dword [ebp - 0x1c], 5
sbb eax, eax
add eax, 3
mov dword [0x4488f0], eax
mov ecx, dword [ebp + 0x74]
xor ecx, dword [ebp + 0x7c]
call fcn.004037c0
add ebp, 0x78
leave
ret
Function at 0x43741e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x448640]
je 0x43744b
inc eax
cmp eax, 0x12
jb 0x43743c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x448640]
jne 0x43757f
mov eax, dword [0x4488f4]
cmp eax, 1
je 0x43755a
cmp eax, edx
jne 0x43747b
cmp dword [0x448610], 1
je 0x43755a
cmp ecx, 0xfc
je 0x43757f
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4374b4
lea eax, [ebp - 0x10c]
push 0x41dfd8
push eax
call fcn.004039b7
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00403938
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4374f6
lea eax, [ebp - 0x10c]
push eax
call fcn.00403938
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41dfd4
push edi
call fcn.0040d251
add esp, 0x10
push edi
call fcn.00403938
push dword [esi + 0x448644]
mov ebx, eax
call fcn.00403938
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040366c
mov ebx, esp
push 0x437598
push ebx
call fcn.004039b7
push edi
push ebx
call fcn.00418f60
push 0x41dfd0
push ebx
call fcn.00418f60
push dword [esi + 0x448644]
push ebx
call fcn.00418f60
push 0x12010
push 0x41dfa8
push ebx
call fcn.0043aa59
add esp, 0x2c
jmp 0x43757f
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x448644]
push dword [esi]
call fcn.00403938
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004037c0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a2f6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040366c
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43a38b
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x446400]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x43a38b
cmp eax, 1
je 0x43a3a3
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43a38b
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x43a360
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x43a387
xor eax, eax
inc eax
jmp 0x43a3bf
cmp esi, ebx
jae 0x43a38f
xor eax, eax
jmp 0x43a3bf
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x446400]
jmp 0x43a3a5
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43aa59
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x448920], ebx
push esi
push edi
jne 0x43aad9
push 0x43abb8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43ab14
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43abac
push edi
call esi
test eax, eax
mov dword [0x448920], eax
je 0x43ab14
push 0x43ab9c
push edi
call esi
push 0x43ab88
push edi
mov dword [0x448924], eax
call esi
cmp dword [0x446400], 2
mov dword [0x448928], eax
jne 0x43aad9
push 0x43ab6c
push edi
call esi
test eax, eax
mov dword [0x448930], eax
je 0x43aad9
push 0x43ab54
push edi
call esi
mov dword [0x44892c], eax
mov eax, dword [0x44892c]
test eax, eax
je 0x43ab1e
call eax
test eax, eax
je 0x43ab05
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x448930]
test eax, eax
je 0x43ab05
test byte [ebp - 8], 1
jne 0x43ab1e
cmp dword [0x44640c], 4
jb 0x43ab18
or byte [ebp + 0x12], 0x20
jmp 0x43ab3d
xor eax, eax
jmp 0x43ab4d
or byte [ebp + 0x12], 4
jmp 0x43ab3d
mov eax, dword [0x448924]
test eax, eax
je 0x43ab3d
call eax
mov ebx, eax
test ebx, ebx
je 0x43ab3d
mov eax, dword [0x448928]
test eax, eax
je 0x43ab3d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x448920]
pop edi
pop esi
pop ebx
leave
ret