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

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x410ed5
push edi
call fcn.00410a80
mov dword [edi + 0x14], 1
and dword [edi + 0xc], 0
cmp dword [edi + 0xc], esi
jl 0x410f2a
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, eax
add ebx, dword [edi + 4]
mov eax, esi
cmp eax, 1
je 0x410ef8
cmp eax, 2
je 0x410f01
cmp eax, 4
je 0x410f0c
jmp 0x410f15
mov eax, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [eax], dl
jmp 0x410f22
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x410f22
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x410f22
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x410fa9
mov ebx, dword [edi + 0xc]
push ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
sub esi, ebx
cmp esi, dword [edi + 8]
jl 0x410f69
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
and dword [edi + 0xc], 0
jmp 0x410fa9
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp esi, dword [edi + 0xc]
jle 0x410f90
mov esi, dword [edi + 0xc]
push esi
push dword [edi + 4]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov eax, ebx
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 1
jne 0x410fe3
and dword [edi + 0x14], 0
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], esi
jle 0x411044
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, esi
cmp eax, 1
je 0x411007
cmp eax, 2
je 0x411013
cmp eax, 4
je 0x411021
jmp 0x41102d
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x41103c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dx, word [edx]
mov word [eax], dx
jmp 0x41103c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov dword [eax], edx
jmp 0x41103c
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x41107e
push edi
call fcn.00410a80
cmp esi, dword [edi + 8]
jl 0x411062
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
jmp 0x41107e
push esi
push dword [ebp + 0xc]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10013177
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100131d2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100131b3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100131d0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10016cc2
mov dword [eax], 1
jmp 0x100131a8
jmp 0x100131e1
push 0x2345
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esp, ebp
pop ebp
ret
Function at 0x1001dcb6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001dcef
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 2
mov ecx, dword [ebp - 0xc]
call fcn.10016cc2
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x1001dd16
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1001dd16
push 0x1f06
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esp, ebp
pop ebp
ret
Function at 0x1002e847
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002e86b
xor eax, eax
jmp 0x1002e9e2
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x1772
push 0x63e7
call fcn.1002e392
add esp, 0x18
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002e89d
xor eax, eax
jmp 0x1002e9e2
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.1002e02a
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002e8bb
xor eax, eax
jmp 0x1002e9e2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x509d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.1002e407
add esp, 0x1c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x53c4
push 0x1b34
lea eax, [ebp - 8]
push eax
push 1
call fcn.1002e495
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push 0x17fe
lea eax, [ebp - 8]
push eax
push 0x6083
call fcn.1002e531
add esp, 0x18
cmp dword [ebp - 0x14], 0
je 0x1002e93b
push 1
lea eax, [ebp - 0x14]
push eax
push 0x6af7
lea eax, [ebp - 4]
push eax
call fcn.1002e5c6
add esp, 0x10
push dword [ebp - 4]
call fcn.1002def1
pop ecx
test eax, eax
jne 0x1002e94f
xor eax, eax
jmp 0x1002e9e2
push 0
push 0x3f9f
push 0x2e0d
push 0x17e0
push dword [ebp - 4]
call fcn.10029677
add esp, 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002e9ca
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002e98a
xor eax, eax
jmp 0x1002e9e2
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002e9a3
xor eax, eax
jmp 0x1002e9e2
push 1
push 0x1cb6
lea eax, [ebp - 4]
push eax
push 0x4009
push 0x41f0
push 0x7fad
push 0x6c54
call fcn.1002e61d
add esp, 0x1c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002e9db
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002e9df
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10045a85
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10045afe
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x10045ad0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax]
jge 0x10045afc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
and dword [ecx + eax], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10045ac9
jmp 0x10045b0f
push 0x1f06
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esp, ebp
pop ebp
ret
Function at 0x1007b180
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10086330]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006a924
mov dword [ebp - 0x14], eax
cmp dword [0x10672e3c], esi
jne 0x1007b273
push 0x800
push esi
push 0x10007c6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007b200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007b353
push esi
push esi
push 0x10007c6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007b353
push 0x10007c84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007b353
push eax
call ebx
push 0x10007c90
push edi
mov dword [0x10672e3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ca0
push edi
mov dword [0x10672e40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007cb4
push edi
mov dword [0x10672e44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10672e4c], eax
test eax, eax
je 0x1007b270
push 0x10007cd0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10672e48], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007b298
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007b28b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007b2ad
push 4
pop eax
jmp 0x1007b355
cmp dword [ebp - 0x14], esi
je 0x1007b2ad
push dword [0x10672e3c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007b292
mov eax, dword [0x10672e48]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007b30b
cmp dword [0x10672e4c], edi
je 0x1007b30b
push eax
call ebx
push dword [0x10672e4c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007b30b
test eax, eax
je 0x1007b30b
call ecx
test eax, eax
je 0x1007b300
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 0x1007b300
test byte [ebp - 8], 1
jne 0x1007b30b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007b33b
mov eax, dword [0x10672e40]
cmp eax, edi
je 0x1007b338
push eax
call ebx
test eax, eax
je 0x1007b338
call eax
mov esi, eax
test esi, esi
je 0x1007b338
mov eax, dword [0x10672e44]
cmp eax, edi
je 0x1007b338
push eax
call ebx
test eax, eax
je 0x1007b338
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10672e3c]
call ebx
test eax, eax
je 0x1007b353
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007b355
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10066a6d
mov esp, ebp
pop ebp
ret
Function at 0x1a4e5e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcb7000]
push edi
or ebp, 0xffffffff
jmp 0x1a4e602
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1a4e609
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a4e5f8
mov eax, 1
add ebx, ebx
jne 0x1a4e61b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1a4e62c
jne 0x1a4e64b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a4e64b
dec eax
add ebx, ebx
jne 0x1a4e638
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1a4e610
add ebx, ebx
jne 0x1a4e647
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1a4e69d
xor ecx, ecx
sub eax, 3
jb 0x1a4e663
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1a4e6d2
sar eax, 1
mov ebp, eax
jmp 0x1a4e66e
add ebx, ebx
jne 0x1a4e66e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a4e63c
inc ecx
add ebx, ebx
jne 0x1a4e67c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a4e63c
add ebx, ebx
jne 0x1a4e689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1a4e67e
jne 0x1a4e69a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1a4e67e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1a4e6bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1a4e6ae
jmp 0x1a4e5fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1a4e6bc
add edi, ecx
jmp 0x1a4e5fe
pop esi
mov edi, esi
mov ecx, 0x8bc9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1a4e6da
cmp byte [edi], 0xd7
jne 0x1a4e6da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1a4e6df
lea edi, [esi + 0x103a000]
mov eax, dword [edi]
or eax, eax
je 0x1a4e74e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1220db4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1220f1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1a4e70c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1220f24]
or eax, eax
je 0x1a4e748
mov dword [ebx], eax
add ebx, 4
jmp 0x1a4e729
call dword [esi + 0x1220f20]
mov ebp, dword [esi + 0x1220f28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1a4e782
sub esp, 0xffffff80
jmp 0xb5ea48
Function at 0x406802
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x406811
pop dword [ebp - 0x44]
mov eax, 0x1677fec4
sub eax, 0x163796b3
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x952f4ad7
sub dword [ebp - 0x54], 0x46dd058c
mov dword [ebp - 0x50], 0x20ee46bf
add dword [ebp - 0x50], 0x11450586
mov dword [ebp - 0x4c], 0x12a1d5a
add dword [ebp - 0x4c], 0x4b2226d4
mov dword [ebp - 0x48], 0x41ae131c
add dword [ebp - 0x48], 0xbe51ece4
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x4b978128
sub dword [ebp - 0x54], 0xd72517d2
mov dword [ebp - 0x50], 0xdf9ed0f1
sub dword [ebp - 0x50], 0x9e326f7c
mov dword [ebp - 0x4c], 0x78866ecf
sub dword [ebp - 0x4c], 0x15170263
mov dword [ebp - 0x48], 0xeca4fc75
add dword [ebp - 0x48], 0x135b038b
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x354f2
push 0
call eax
mov ecx, 0x153b9cb6
sub ecx, 0x153b5e49
xor esi, esi
add esi, eax
mov edi, 0x2c498998
add edi, 0xd3f86668
add edi, dword [ebp - 0x44]
mov edx, 0x6c9653c9
sub edx, 0xfa268f92
sub dword [ebp - 0x40], edx
mov ebx, dword [edi]
sub dword [ebp - 4], 0x5db0944e
xor ebx, edx
xor dword [ebp - 0x40], 0xb4e1447d
mov dword [esi], ebx
xor dword [ebp - 0x40], 0x8b534ce4
add esi, 0x81efe856
sub esi, 0x81efe852
add edi, 0x6a628fa
sub edi, 0x6a628f6
loop 0x40692b
add eax, 0xec87
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x27ed3810
add ecx, 0xd852c7f0
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x406b16
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xffffffffffffffff
push 0x40d6f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x41a174]
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x110]
lea eax, [ebp]
mov edi, dword [ebp + 0x114]
mov ebx, 0x104
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x406bb4
cmp eax, ebx
jae 0x406bb4
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004060ea
pop ecx
pop ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
jmp 0x406ba7
push esi
lea ecx, [edi + 0x18]
call fcn.00403db8
add esi, 0x18
cmp esi, dword [ebp - 0x14]
jne 0x406b9b
lea ecx, [ebp - 0x18]
call fcn.0040422a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040baa8
add ebp, 0x108
leave
ret
Function at 0x406b13
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x407a88
call fcn.00407108
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40855c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406b58
cmp eax, esi
jne 0x406b4b
xor esi, esi
inc esi
mov edi, esi
jmp 0x406b5b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406b2f
xor esi, esi
inc esi
cmp dword [0x408560], esi
jne 0x406b6d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406ba7
cmp dword [0x408560], ebx
jne 0x406ba1
mov dword [0x408560], esi
push 0x40118c
push 0x401180
call fcn.00406c8c
pop ecx
pop ecx
test eax, eax
je 0x406ba7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406c7c
mov dword [0x408204], esi
cmp dword [0x408560], esi
jne 0x406bca
push 0x40117c
push 0x401174
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x408560], 2
test edi, edi
jne 0x406bd7
xor eax, eax
mov ecx, 0x40855c
xchg dword [ecx], eax
cmp dword [0x408564], 0
je 0x406c03
push 0x408564
call fcn.00406f60
pop ecx
test eax, eax
je 0x406c03
push ebx
push 2
push ebx
mov esi, dword [0x408564]
mov ecx, esi
call dword [0x409178]
call esi
push dword [0x408210]
push dword [0x40820c]
push dword [0x408208]
call fcn.004030cc
add esp, 0xc
mov dword [0x408200], eax
cmp dword [0x408218], 0
jne 0x406c61
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x408204], 0
jne 0x406c75
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x408200]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0052f000
jmp 0x406b13

Function at 0x406e44
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x407aa8
call fcn.00407108
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406ea4
cmp eax, 0xffffffff
je 0x406ea4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x406e9d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x406e9d
cmp edx, 0x10000000
jae 0x406e9d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x406e9a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x406f10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x406f4e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406f46
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x406f50
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406f36
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x409888
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 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
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.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
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 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
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 ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x3e1f291a
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x7f6555c4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219