joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x43b83c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 8], eax
je 0x40e2d6
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e2d1
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x40e2fe
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x40e2e7
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00417630
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00415144
mov esp, ebp
pop ebp
ret

Function at 0x40e320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43b83c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp byte [esi], 0
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
je 0x40e365
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e360
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x40e392
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x40e376
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.00417630
lea eax, [ebx + edi]
mov ebx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x40e3b0
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415144
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40e39d
cmp byte [esi + 8], 0
je 0x40e39d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00415144
mov esp, ebp
pop ebp
ret
Function at 0x40e470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43b83c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x40e4b9
cmp byte [edi + 1], 0
je 0x40e4a7
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40e4bf
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415144
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
je 0x40e4de
cmp byte [edi + 1], 0
je 0x40e4da
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x40e4e1
xor eax, eax
jmp 0x40e4e1
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, 0xffff
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ebx
call fcn.00415ece
mov esi, eax
add esp, 4
test esi, esi
jne 0x40e51a
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415144
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ebx, eax
jbe 0x40e617
mov edi, edi
mov ecx, dword [ebp - 0x10]
add eax, 0x400
cmp eax, ebx
mov edx, eax
cmova edx, ebx
mov ebx, dword [ebp - 0x10]
sub ecx, edx
sub ebx, ecx
cmp ebx, 0x404
mov eax, 0x404
cmova ebx, eax
cmp byte [edi], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
je 0x40e57e
cmp byte [edi + 1], 0
je 0x40e617
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40e581
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x14], ebx
je 0x40e5a9
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e5a4
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x40e5d2
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x40e5bc
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.00417630
mov eax, dword [ebp - 0x14]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x40e617
lea eax, [ebx - 3]
test eax, eax
js 0x40e602
dec eax
cmp byte [eax + esi], 0x50
jne 0x40e5fe
cmp byte [eax + esi + 1], 0x4b
jne 0x40e5fe
cmp byte [eax + esi + 2], 5
jne 0x40e5fe
cmp byte [eax + esi + 3], 6
je 0x40e634
test eax, eax
jns 0x40e5e2
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40e617
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
cmp eax, ebx
jb 0x40e530
push esi
call fcn.00415904
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add esp, 4
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.00415144
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40e605
Function at 0x40f430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x40f4cb
cmp dword [esi + 4], 0xffffffff
jne 0x40f4cb
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f462
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x40f48d
cmp al, 0x2f
je 0x40f48d
push 0x436be8
push 0x104
push edi
call fcn.00416342
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e1f0
add esp, 8
test eax, eax
jne 0x40f4ac
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.0040e640
xor ecx, ecx
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov dword [esi], eax
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fbc0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43b83c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x40fbf2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fbf2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x40fc9e
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x40fc09
cmp al, 0x5c
jne 0x40fc0b
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40fc01
cmp esi, ebx
je 0x40fc47
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00417630
add esp, 0xc
cmp esi, 0x104
jae 0x40fcae
lea edx, [ebp - 0x20c]
mov ecx, edi
mov byte [ebp + esi - 0x20c], 0
call fcn.0040fbc0
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x40fc68
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415f60
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00416342
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fc9e
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00415144
mov esp, ebp
pop ebp
ret
call fcn.00416268
int3
Function at 0x410390
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ccf9
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43b83c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x40], 0
mov byte [esi + 0x30], 0
mov byte [ebp - 4], 3
push 0x2f
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.004041c0
mov byte [ebp - 4], 4
push 0xe
push str.localhost:8080
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.004041c0
mov byte [ebp - 4], 5
push 0
push 0x434cdc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004041c0
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x54], 0
jb 0x410499
push dword [ebp - 0x28]
call fcn.004152b7
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4104bc
push dword [ebp - 0x40]
call fcn.004152b7
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jb 0x4104df
push dword [ebp - 0x58]
call fcn.004152b7
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415144
mov esp, ebp
pop ebp
ret
Function at 0x411520
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x43c9f0]
test ecx, ecx
je 0x411591
mov eax, dword [0x43c9f4]
push esi
push 1
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0xc]
push 3
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [0x43c9f0]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x43ca00], 0
mov esi, eax
jne 0x41158c
mov eax, dword [0x43c9f4]
cmp dword [eax + 0x10], 1
jle 0x41158a
push 0x43c9ec
push 0
push 0x43c9e4
push 0x411370
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43c9e8], eax
mov eax, esi
pop esi
pop ebp
ret 8
xor eax, eax
pop ebp
ret 8

Function at 0x412f00
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ce12
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43b83c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x436d98
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [eax + 4]
push esi
add ecx, edi
call fcn.00414170
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00414230
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x43dde4]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
sub esp, 8
mov ecx, esi
push dword [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00413b10
test eax, eax
jne 0x413064
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x413052
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x413064
push 0
call fcn.00410f80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42cf18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x43b83c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x43b83c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x413e74
cmp byte [ebx + 0x45], 0
je 0x413e74
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x413d80
xor al, al
jmp 0x413e76
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x413dc0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x413e01
dec eax
je 0x413e05
sub eax, 2
je 0x413e5b
xor bl, bl
jmp 0x413e5d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x413e3c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.004168c8
add esp, 0x10
cmp esi, eax
jne 0x413dfd
cmp byte [ebx + 0x45], 0
je 0x413e5b
test esi, esi
jne 0x413dc0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004085d0
jmp 0x413dc0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x413e70
push dword [esp + 0x18]
call fcn.004152b7
add esp, 4
mov al, bl
jmp 0x413e76
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret
Function at 0x424988
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b83c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041b6fb
mov dword [ebp - 0x14], eax
cmp dword [0x43dc70], edi
jne 0x424a79
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x424a06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x424b59
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x424b59
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424b59
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x43dc70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x43dc74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x43dc78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43dc80], eax
test eax, eax
je 0x424a76
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43dc7c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x424a9e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x424a91
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x424ab3
push 4
pop eax
jmp 0x424b5b
cmp dword [ebp - 0x14], edi
je 0x424ab3
push dword [0x43dc70]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x424a98
mov eax, dword [0x43dc7c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x424b11
cmp dword [0x43dc80], esi
je 0x424b11
push eax
call ebx
push dword [0x43dc80]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x424b11
test eax, eax
je 0x424b11
call ecx
test eax, eax
je 0x424b06
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x424b06
test byte [ebp - 8], 1
jne 0x424b11
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x424b41
mov eax, dword [0x43dc74]
cmp eax, esi
je 0x424b3e
push eax
call ebx
test eax, eax
je 0x424b3e
call eax
mov edi, eax
test edi, edi
je 0x424b3e
mov eax, dword [0x43dc78]
cmp eax, esi
je 0x424b3e
push eax
call ebx
test eax, eax
je 0x424b3e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x43dc70]
call ebx
test eax, eax
je 0x424b59
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x424b5b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415144
leave
ret
Function at 0x426dfc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041ea8a
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x426e34
xor eax, eax
jmp 0x426e60
cmp esi, dword [ebp - 4]
je 0x426e5d
cmp dword [ebp + 0xc], 0
je 0x426e5d
push dword [edi + 0x9c]
call fcn.00426a0a
push dword [edi + 0x9c]
mov esi, eax
call fcn.0041bc69
pop ecx
pop ecx
cmp esi, eax
je 0x426e30
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401040
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call 0x40106e
add byte [esp], 5
retf

Function at 0x4010c0
Capabilities:
Allocate or change rwx memory
Execute command

Disassembly:
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x114
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov ecx, 0x45
mov esi, 0x403018
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push str.____shellcode__n
call fcn.00401010
push ebx
call fcn.00401040
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
test eax, eax
je 0x401090
cmp dword [ebp + 8], edi
je 0x401090
test ebx, ebx
je 0x401090
push esi
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401086
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
push ebx
push ecx
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40105f
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x40105f
mov edi, 1
mov dword [ebp + 8], 0
test esi, esi
je 0x401086
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x401086
test byte [ebp + 8], 2
jne 0x401086
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x4010a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
xor ebx, ebx
push edi
test eax, eax
je 0x40118a
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x40118a
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x401163
lea edi, [ebx + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401160
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
je 0x401160
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
push esi
push edx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401160
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x40115e
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov edi, dword [ebp - 8]
mov dword [ebp - 8], 0
test edi, edi
je 0x40118a
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x40118a
test byte [ebp - 8], 2
jne 0x40118a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
je 0x4011ab
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov eax, esi
jne 0x4011ad
mov dword [edi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4