joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40358b
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x401130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x410], eax
sub edi, edi
sub eax, eax
mov dword [ebp + eax*4 - 0x404], eax
inc eax
cmp eax, 0x100
jl 0x4035ba
sub ecx, ecx
sub edx, edx
push ecx
pop eax
div dword [ebp - 0x410]
lea esi, [ebp + ecx*4 - 0x404]
movzx eax, byte [edx + ebx]
add eax, dword [esi]
add edi, eax
and edi, 0x800000ff
jns 0x4035f4
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esi]
mov byte [ebp - 0x405], al
lea eax, [ebp + edi*4 - 0x404]
mov edx, dword [eax]
mov dword [esi], edx
movzx edx, byte [ebp - 0x405]
inc ecx
mov dword [eax], edx
cmp ecx, 0x100
jl 0x4035cb
sub ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x403690
add ecx, 0x19
and ecx, 0x800000ff
jns 0x403633
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [ebp + ecx*4 - 0x404]
mov edx, dword [eax]
add edi, edx
and edi, 0x800000ff
jns 0x40364e
dec edi
or edi, 0xffffff00
inc edi
lea esi, [ebp + edi*4 - 0x404]
mov byte [ebp - 0x405], dl
mov edx, dword [esi]
mov dword [eax], edx
movzx edx, byte [ebp - 0x405]
mov dword [esi], edx
mov eax, dword [eax]
mov esi, dword [ebp - 0x40c]
add eax, edx
and eax, 0x800000ff
jns 0x403680
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax*4 - 0x404]
xor byte [esi + ebx], al
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x403620
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404f9a
leave
ret
Function at 0x404f9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401130]
jne 0x404fa4
repz ret
jmp 0x405213
nop
nop
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x409640], eax
mov dword [0x40963c], ecx
mov dword [0x409638], edx
mov dword [0x409634], ebx
mov dword [0x409630], esi
mov dword [0x40962c], edi
mov word [0x409658], ss
mov word [0x40964c], cs
mov word [0x409628], ds
mov word [0x409624], es
mov word [0x409620], fs
mov word [0x40961c], gs
pushfd
pop dword [0x409650]
mov eax, dword [ebp]
mov dword [0x409644], eax
mov eax, dword [ebp + 4]
mov dword [0x409648], eax
lea eax, [ebp + 8]
mov dword [0x409654], eax
mov eax, dword [ebp - 0x320]
mov dword [0x409590], 0x10001
mov eax, dword [0x409648]
mov dword [0x409544], eax
mov dword [0x409538], 0xc0000409
mov dword [0x40953c], 1
mov eax, dword [0x401130]
mov dword [ebp - 0x328], eax
mov eax, dword [0x401134]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x409588], eax
push 1
call fcn.0040678a
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x401c58
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x409588], 0
jne 0x405305
push 1
call fcn.0040678a
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x40513f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x58
push 0x409310
call fcn.00406500
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
sub esi, esi
cmp dword [0x40a2c0], esi
jne 0x404ffd
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x405010
mov dword [ebp - 0x1c], esi
jmp 0x405046
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40500b
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40500b
cmp dword [eax + 0x400074], 0xe
jbe 0x40500b
sub ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.004064d8
or eax, eax
jne 0x405057
push 0x1c
call 0x404fa9
pop ecx
call 0x40635d
or eax, eax
jne 0x405068
push 0x10
call 0x404fa9
pop ecx
call 0x406018
mov dword [ebp - 4], esi
call 0x405dd3
or eax, eax
jns 0x405081
push 0x1b
call fcn.00405636
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40a2bc], eax
call 0x405d3c
mov dword [0x40952c], eax
call 0x405c81
or eax, eax
jns 0x4050a7
push 8
call fcn.00405636
pop ecx
call fcn.00405a0b
or eax, eax
jns 0x4050b8
push 9
call fcn.00405636
pop ecx
push 1
call 0x405415
pop ecx
cmp eax, esi
je 0x4050cb
push eax
call fcn.00405636
pop ecx
call 0x4059ac
test byte [ebp - 0x3c], 1
je 0x4050dc
movzx ecx, word [ebp - 0x38]
jmp 0x4050df
push 0xa
pop ecx
push ecx
push eax
push esi
push 0x400000
call main
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x4050fa
push eax
call 0x4055ec
call fcn.00405618
jmp 0x40512f
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406545
ret
call 0x4066ef
jmp 0x404fd2
Function at 0x405213
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401130]
jne 0x404fa4
repz ret
jmp 0x405213
nop
nop
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x409640], eax
mov dword [0x40963c], ecx
mov dword [0x409638], edx
mov dword [0x409634], ebx
mov dword [0x409630], esi
mov dword [0x40962c], edi
mov word [0x409658], ss
mov word [0x40964c], cs
mov word [0x409628], ds
mov word [0x409624], es
mov word [0x409620], fs
mov word [0x40961c], gs
pushfd
pop dword [0x409650]
mov eax, dword [ebp]
mov dword [0x409644], eax
mov eax, dword [ebp + 4]
mov dword [0x409648], eax
lea eax, [ebp + 8]
mov dword [0x409654], eax
mov eax, dword [ebp - 0x320]
mov dword [0x409590], 0x10001
mov eax, dword [0x409648]
mov dword [0x409544], eax
mov dword [0x409538], 0xc0000409
mov dword [0x40953c], 1
mov eax, dword [0x401130]
mov dword [ebp - 0x328], eax
mov eax, dword [0x401134]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x409588], eax
push 1
call fcn.0040678a
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x401c58
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x409588], 0
jne 0x405305
push 1
call fcn.0040678a
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0xb7e8e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x521000]
push edi
jmp 0xb7e8fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb7e901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e8f0
mov eax, 1
add ebx, ebx
jne 0xb7e913
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb7e924
jne 0xb7e943
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e943
dec eax
add ebx, ebx
jne 0xb7e930
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb7e908
add ebx, ebx
jne 0xb7e93f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb7e995
xor ecx, ecx
sub eax, 3
jb 0xb7e95b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb7e9ca
sar eax, 1
mov ebp, eax
jmp 0xb7e966
add ebx, ebx
jne 0xb7e966
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e934
inc ecx
add ebx, ebx
jne 0xb7e974
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb7e934
add ebx, ebx
jne 0xb7e981
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb7e976
jne 0xb7e992
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb7e976
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb7e9b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb7e9a6
jmp 0xb7e8f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb7e9b4
add edi, ecx
jmp 0xb7e8f6
pop esi
mov edi, esi
mov ecx, 0x1aae6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb7e9d2
cmp byte [edi], 0xa7
jne 0xb7e9d2
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 0xb7e9d7
lea edi, [esi + 0x760000]
mov eax, dword [edi]
or eax, eax
je 0xb7ea4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x788764]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7887a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb7ea04
mov ecx, edi
jns 0xb7ea33
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 + 0x7887a4]
or eax, eax
je 0xb7ea49
mov dword [ebx], eax
add ebx, 4
jmp 0xb7ea21
call dword [esi + 0x7887b4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xb7ea80
cmp al, 0xef
ja 0xb7ea73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xb7ea55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xb7ea62
mov ebp, dword [esi + 0x7887a8]
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 0xb7eab4
sub esp, 0xffffff80
jmp 0x67e187
Function at 0x66206a20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
xor eax, eax
cmp byte [ecx + 2], al
setne al
ret

Function at 0x66207420
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x6620746a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x6620746a
push 0
mov ecx, esi
call fcn.66203cc0
push 0
push 0
push 0xffffffffffffffff
push 0x7ffe0030
push 1
mov ecx, esi
call fcn.662033b0
push str.System32
push esi
call fcn.6620ae10
push dword [ebp + 8]
push esi
call fcn.6620ae10
add esp, 0x10
xor eax, eax
pop esi
pop ebp
ret
mov eax, 0xc000000d
pop esi
pop ebp
ret
Function at 0x40299c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029d9
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029f9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404bf0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bc0
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.00404980
test esi, esi
jne 0x402bf6
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.00404a70
jmp 0x402c14
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a74
mov edi, eax
test esi, esi
je 0x402c14
cmp dword [ebx], 0
je 0x402c14
dec esi
jmp 0x402bfd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a14
Capabilities:
Query or enumerate registry value

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

Function at 0x404780
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b204c], 0
je 0x4047e1
cmp word [0x4b2220], 0xd7b2
jne 0x4047a9
cmp dword [0x4b2228], 0
jbe 0x4047a9
mov eax, 0x4b221c
call dword [0x4b2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ab090
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 0x404808
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ab030], 0
jne 0x4047fd
push 0
push 0x4ab088
push 0x4ab090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404934
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.004027b4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048fc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405fc8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4061f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40604b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4061f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40604b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406214
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4060d4
xor eax, eax
push ebp
push 0x4060cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405e10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4060b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406234
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4060b2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4061ee
cmp byte [ebp - 0xd], 0
jne 0x40611b
cmp byte [ebp - 0x12], 0
je 0x4061ee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406134
dec ebx
cmp byte [ebx], 0x2e
je 0x406143
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406133
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4061ee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406180
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4061ee
cmp byte [ebp - 0xd], 0
je 0x4061ee
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4061ee
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4068dc
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 0x406942
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.00404bf0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004035a8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40692c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406949
lea eax, [ebp - 0x10]
call fcn.00404980
ret

Function at 0x409458
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e40
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409471
test al, 0x10
jne 0x409475
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c030
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c069
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a70
jmp 0x40c072
mov eax, ebx
mov edx, esi
call fcn.004049d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c07c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c09d
mov al, byte [esp]
jmp 0x40c09f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c724
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c59c
mov eax, dword [0x4b1770]
cmp byte [eax], 0
je 0x40c7a0
mov eax, dword [0x4b13c4]
call fcn.00403034
call fcn.0040291c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409788
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c7e8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c7d6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b1328]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b2668]
call fcn.00405dd4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d090
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d166
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404a18
lea eax, [ebp - 8]
call fcn.00404e90
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e40
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d150
mov eax, ebx
call fcn.004027b4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d149
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e40
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d133
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d178
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d133
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d150
mov eax, dword [ebp - 0x10]
call fcn.004027d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d16d
lea eax, [ebp - 8]
call fcn.00404980
ret

Function at 0x40d71c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d780
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404bf0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004090b8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d787
lea eax, [ebp - 0xc]
call fcn.00404980
ret

Function at 0x41f538
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f364
dec esi
jne 0x41f55a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42069c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b288c
cmp dword [edi], 0
jne 0x420718
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b2888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ab43c
mov ecx, 2
call fcn.00402a34
mov edx, 0x420674
lea eax, [esi + 5]
call fcn.00420694
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420694
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4206ed
mov dword [0x4b2888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421d5c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x421d62
ret

Function at 0x424464
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4244b5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42449c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42448c
jmp 0x4244b5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42449d
pop ebx
mov esp, ebp
pop ebp
ret