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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6808
push 0x5b6288
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 0x5b2329
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 0x5b2329
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.005b51d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x5b2329
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 0x5b2329
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 0x5b232c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005b2351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b2d20
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 0x5b2d58
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 0x5b2d60
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 0x5b2d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5b2d94
push eax
push esi
call fcn.005b520b
add esp, 8
pop esi
ret 0x10

Function at 0x5b2da0
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 0x5b2e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x5b2e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x5cb320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005b4dff
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 0x5b2dda
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 0x5b2e30
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 0x5b2ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x5b2eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x5cb320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005b4dff
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 0x5b2eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x5b2e6a
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 0x5b3000
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 0x5b3131
push esi
call fcn.005b6145
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.005a5080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x5b3131
push 0
push ebp
call fcn.005a53a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.005a5260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5b308b
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.005a52f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5b3121
push 0x5cb918
push edi
call fcn.005b43f0
push eax
push ebx
push esi
call fcn.005b2f60
push 0x5cb8f8
push edi
call fcn.005b43f0
push eax
push ebx
push esi
call fcn.005b2f60
push 0x5cb8d8
push edi
call fcn.005b43f0
push eax
push ebx
push esi
call fcn.005b2f60
push 0x5cb8c0
push edi
call fcn.005b43f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.005b2f60
push 0x5cb8a0
push edi
call fcn.005b43f0
push eax
push ebx
push esi
call fcn.005b2f60
push 0x5cb888
push edi
call fcn.005b43f0
push eax
push ebx
push esi
call fcn.005b2f60
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 0x5b41b0
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.005b4140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005b4140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005b4140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005b4140
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 0x5b4bfa
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 0x5b4c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5c687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b4c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5b4c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4018c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4018d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401914
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401910
lea ebx, [ebx]
cmp esi, eax
jae 0x401914
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401900
cmp esi, eax
jb 0x40191a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40383b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40385f
cmp dword [edi + 0x54], 0
jne 0x40385f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040cd8d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004037fc
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x408eb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x408efd
call fcn.0040cd8d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x408efd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x408f19
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00408a30
mov esi, eax
test edi, edi
je 0x408f17
test ebx, ebx
je 0x408f17
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410f21
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42dc70]
jne 0x410f2b
repz ret
jmp fcn.00415b9c
Function at 0x41eb1f
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.0041558a
and dword [ebp - 4], 0
cmp dword [0x431914], 0
mov ebx, eax
jne 0x41ebd0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ec81
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x427de0
push edi
call esi
test eax, eax
je 0x41ec81
push eax
call fcn.00415518
mov dword [esp], 0x427dd0
push edi
mov dword [0x431914], eax
call esi
push eax
call fcn.00415518
mov dword [esp], 0x427dbc
push edi
mov dword [0x431918], eax
call esi
push eax
call fcn.00415518
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43191c], eax
call esi
push eax
call fcn.00415518
pop ecx
mov dword [0x431924], eax
test eax, eax
je 0x41ebd0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415518
pop ecx
mov dword [0x431920], eax
mov eax, dword [0x431920]
cmp eax, ebx
je 0x41ec28
cmp dword [0x431924], ebx
je 0x41ec28
push eax
call fcn.00415593
push dword [0x431924]
mov esi, eax
call fcn.00415593
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ec28
test edi, edi
je 0x41ec28
call esi
test eax, eax
je 0x41ec1f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ec1f
test byte [ebp - 0xc], 1
jne 0x41ec28
or dword [ebp + 0x10], 0x200000
jmp 0x41ec61
mov eax, dword [0x431918]
cmp eax, ebx
je 0x41ec61
push eax
call fcn.00415593
pop ecx
test eax, eax
je 0x41ec61
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ec61
mov eax, dword [0x43191c]
cmp eax, ebx
je 0x41ec61
push eax
call fcn.00415593
pop ecx
test eax, eax
je 0x41ec61
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431914]
call fcn.00415593
pop ecx
test eax, eax
je 0x41ec81
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ec83
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47286f
Capabilities:
Encode data using xor

Disassembly:
push sp
invalid
add ebp, dword [ecx]
sti
mov dword [eax + 0xa], ebx
cmpsd dword [esi], dword es:[edi]
cmp dword [esi - 0x5d], edi
cmp dh, bl
mov edi, dword [ebx + 0x6a]
lds esp, [esi + ebx]
xlatb
xor byte [ebp + 0x21b7926e], cl
pushfd
lds esp, [eax]
loop 0x472851
dec esp
jbe 0x4728b8
wait
or ch, byte [ecx]
je 0x472909
pop esi
xchg ebp, eax
mov ebp, 0x79e40888
aas
pop esp
dec esp
mov dword [0x8caca314], eax
adc dword [ebx], edx
jmp 0x4728fe
adc eax, edx
mov bh, 0x50
xchg ecx, eax
jne 0x472871
salc
test byte [ebx], bl
xor dword [ebx], 9
invalid
mov byte [esi], 0x55
push es
push ebp
lea edi, [ebp + 0x29a9c918]
or al, 0x50
jae 0x472961
push edi
sbb ebp, ebx
push es
add dword [eax + 0x4c], esp
sbb eax, 0xb9e0b6f9
add dword [esi - 0x27], edx
xchg esi, eax
fcom qword [esi + ecx*2 + 0x46]
push esp
dec esi
inc esi
stc
cwde
setno dh
rol byte [eax - 0x64], 1
push ecx
invalid
imul dword [esi - 0x53928c03]
xchg ebp, eax
and eax, esp
adc esp, dword [esi]
sub edi, dword [eax + 0x3e]
std
std
inc dword [edi + ecx - 0x78]
xchg ebp, eax
jns 0x47291a
mov al, byte [0x5fa84ab1]
loopne 0x4729de
inc esp
dec esi
in al, dx
loope 0x4728fd
in eax, 4
les ecx, [edi - 0x6446aac7]
nop
mov dword [0x8b8037b], eax
add eax, edi
inc ebx
sub dword [ebp + 0x57d6aaea], edi
loopne 0x4729ca
mov dword [ebp + edx*8 - 0x13e940d4], ebx
push eax
push eax
pushfd
aad 0x2c
mov edi, 0x5050ec16
dec edi
std
stosb byte es:[edi], al
shr byte [eax - 0x5d], 1
invalid
jo 0x472954
adc eax, dword [ecx + 0x3e]
insb byte es:[edi], dx
insb byte es:[edi], dx
mov ecx, 0xa10f58af
js 0x472a2a
push edi
in al, 0x87
dec ecx
xchg dword [ebx + 0x47], esi
xchg edx, eax
clc
jae 0x4729c6
and dword [edx + 5], esp
push edi
rsqrtps xmm3, xmmword [esp + ecx*8 + 0x31]
ja 0x472990
bound eax, qword [0x5c520f57]
int3
je 0x4729d2
insb byte es:[edi], dx
mov word [edi - 0xa], fs
mov ebx, dword [ecx]
adc dh, bh
push ebx
xor edx, dword [ecx + ecx*4]
mov dword fs:[ebp - 0x6a], esp
push 0xe1f89dee
sbb esi, eax
fidiv word [eax + 0xe6ce96f]
xchg esp, eax
push ebx
sub ah, byte [ebp - 0x7f]
dec esp
out 0x98, al
lahf
mov eax, 0x462ee123
add al, 0xea
xchg ecx, eax
std
sub ebx, esp
retf 0xfa67
pop ecx
invalid
Function at 0x5f597d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5fe390
cmp edx, dword [eax]
je 0x5f599f
add eax, 8
inc ecx
cmp eax, 0x5fe420
jl 0x5f5990
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5fe390]
jne 0x5f5acd
mov eax, dword [0x605d28]
cmp eax, 1
je 0x5f5aa7
test eax, eax
jne 0x5f59d0
cmp dword [0x5fe2bc], 1
je 0x5f5aa7
cmp edx, 0xfc
je 0x5f5acd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f5a07
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005f6360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005f67f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5f5a4a
lea eax, [ebp - 0x1a4]
push eax
call fcn.005f67f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5fab44
push edi
call fcn.005f86c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005f6360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005f6370
lea eax, [ebp - 0xa0]
push 0x5fab24
push eax
call fcn.005f6370
push dword [esi + 0x5fe394]
lea eax, [ebp - 0xa0]
push eax
call fcn.005f6370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005f8634
add esp, 0x2c
pop edi
jmp 0x5f5acd
lea eax, [ebp + 8]
lea esi, [esi + 0x5fe394]
push 0
push eax
push dword [esi]
call fcn.005f67f0
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]
pop esi
leave
ret
Function at 0x414f34
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415009
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415024
push ebx
push 0x415034
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x414fb4
mov al, 0x69
call fcn.00414bac
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f08
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x414fbd
call fcn.00414f08
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415010
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x415124
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
jmp 0x4151e3
cmp dword [esi + 0x10], 0x1000
jne 0x4151cf
test byte [esi + 0x15], 1
jne 0x4151cf
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x415180
cmp ebp, 2
je 0x415180
cmp ebp, 0x10
je 0x415180
cmp ebp, 0x20
jne 0x41519c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41519c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4151ad
mov eax, dword [esi]
add eax, ebx
call fcn.0041511c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4151a0
cmp byte [esp + 4], 0
je 0x4151cf
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415155
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x710c6a
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x7109ec
sub edi, edx
call fcn.00710c9e
add edx, 0x9c99d0fb
xor dword [ebx], esi
inc edx
sub edx, 1
inc ebx
dec edi
add edx, 0x3aeb302b
cmp ebx, eax
jne fcn.00710c6a
or edx, edi
sub edi, 0xf73f5443
add edi, edx
ret
Function at 0x402b08
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004042b8
test esi, esi
jne 0x402b3e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004043a8
jmp 0x402b5c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a1c
mov edi, eax
test esi, esi
je 0x402b5c
cmp dword [ebx], 0
je 0x402b5c
dec esi
jmp 0x402b45
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c2020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403364
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403344
xor eax, eax
push ebp
push 0x40333d
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 0x403380
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 0x403344
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4c2020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c2020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c604c], 0
je 0x404119
cmp word [0x4c6220], 0xd7b2
jne 0x4040e1
cmp dword [0x4c6228], 0
jbe 0x4040e1
mov eax, 0x4c621c
call dword [0x4c6238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c206c
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 0x404140
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c2030], 0
jne 0x404135
push 0
push 0x4c2064
push 0x4c206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40426c
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.004027e0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4c604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404234
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc