joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4629f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x462a29
dec al
je 0x462a65
dec al
je 0x462aa9
dec al
je 0x462b14
jmp 0x462b9e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x462b9e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x462a39
jmp 0x462b9e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x462b9e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x462a75
jmp 0x462b9e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x462b9e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x462ad7
xor ebp, ebp
jmp 0x462ae8
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x462af1
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x462ab9
jmp 0x462b9e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x462b9e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x462b6c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004604b0
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x462b28
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x466cf8
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
push esp
push 0
push 0
push esi
push 0
call sub.SHFolder.dll_SHGetFolderPathA
call fcn.004148c4
test al, al
je 0x466d2a
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404354
jmp 0x466d31
mov eax, ebx
call fcn.004040e4
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x47fb44
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x57cbb0
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x5c5904], 1
jge 0x57cc1f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x57cbf5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x57cbf5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x57cbd2
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x57cc0b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x57cc12
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x57cd0f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x57cce0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x57ccd5
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x57ccc9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x57ccd0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x57cd0f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x57cd0a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x57ccf3
mov eax, dword [ebx + 8]
jmp 0x57cd0f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x57cd01
xor eax, eax
jmp 0x57cd0f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x57cc3f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x482f8d
Capabilities:
Query environment variable

Disassembly:
jmp 0x564951
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x564965
xor edi, edi
jmp 0x5649a9
push ebx
push esi
call fcn.00564848
sub eax, esi
sar eax, 1
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
lea ebx, [eax + eax]
push ebx
call fcn.00480c9c
mov edi, eax
add esp, 0x14
test edi, edi
je 0x564996
push ebx
push esi
push edi
call fcn.0047f8dd
add esp, 0xc
push 2
push 0
call fcn.0047eece
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x5522b0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.0047e7d5
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5522ee
cmp dword [ebp + 8], 0
je 0x5522dc
lea eax, [ebp + 8]
push eax
call fcn.00482d58
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x5522ee
mov eax, 4
jmp 0x55241e
call fcn.004801bb
movzx edx, al
test edx, edx
jne 0x55231c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x55230d
mov dword [ebp - 0xc], 4
jmp 0x552314
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x55241e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x5523c5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x552770
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.00481b15
lea ecx, [ebp - 8]
call fcn.0047ec58
movzx edx, al
test edx, edx
jne 0x552387
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.0048031e
mov eax, dword [ebp - 0x10]
jmp 0x55241e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.004827c2
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x5523b2
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.0048031e
mov eax, dword [ebp - 0x14]
jmp 0x55241e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.0048031e
mov eax, dword [ebp - 0x18]
jmp 0x55241e
call fcn.0047e74e
movzx ecx, al
test ecx, ecx
jne 0x5523fe
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00480229
add esp, 0x10
jmp 0x55241e
call fcn.00483005
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00483217
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x552480
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.0047e7d5
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5524be
cmp dword [ebp + 8], 0
je 0x5524ac
lea eax, [ebp + 8]
push eax
call fcn.0048148a
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x5524be
mov eax, 4
jmp 0x5525ee
call fcn.004801bb
movzx edx, al
test edx, edx
jne 0x5524ec
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5524dd
mov dword [ebp - 0xc], 4
jmp 0x5524e4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x5525ee
movzx eax, byte [ebp - 1]
test eax, eax
je 0x552595
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x5527d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.00481b15
lea ecx, [ebp - 8]
call fcn.0047ec58
movzx edx, al
test edx, edx
jne 0x552557
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.0048031e
mov eax, dword [ebp - 0x10]
jmp 0x5525ee
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.004827c2
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x552582
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.0048031e
mov eax, dword [ebp - 0x14]
jmp 0x5525ee
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.0048031e
mov eax, dword [ebp - 0x18]
jmp 0x5525ee
call fcn.0047e74e
movzx ecx, al
test ecx, ecx
jne 0x5525ce
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.0048052b
add esp, 0x10
jmp 0x5525ee
call fcn.00483005
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004809d1
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1000f940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x1000fa22
movzx eax, byte [ecx]
imul edx, eax, 0x13cee4d1
movzx eax, byte [ecx + 1]
imul eax, eax, 0x13cee4d1
push ebx
push esi
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 2]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 3]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 4]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 5]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 6]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 7]
mov ecx, dword [ebp + 0x10]
mov esi, ecx
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
mov eax, 0x13cee4d1
cmove edx, eax
shr esi, 2
mov eax, edx
mov ebx, edx
shr eax, 0x10
mov dword [ebp + 8], eax
mov eax, edx
shr eax, 0x18
shr ebx, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test esi, esi
jle 0x1000fa11
mov ecx, dword [ebp + 8]
xor byte [eax], dl
dec esi
xor byte [eax + 1], bl
xor byte [eax + 2], cl
mov ecx, dword [ebp - 4]
xor byte [eax + 3], cl
add eax, 4
mov ecx, dword [ebp + 8]
test esi, esi
jg 0x1000f9f5
mov ecx, dword [ebp + 0x10]
pop esi
pop ebx
and ecx, 3
jle 0x1000fa22
xor byte [eax], dl
lea eax, [eax + 1]
dec ecx
test ecx, ecx
jg 0x1000fa18
mov esp, ebp
pop ebp
ret
Function at 0x402eec
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f45
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d88
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d88
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f2f
inc ebx
jmp 0x402f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f4c
lea eax, [ebp - 8]
call fcn.00404c8c
ret

Function at 0x402f54
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c8c
test esi, esi
jne 0x402f8b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404d7c
jmp 0x402fac
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d88
mov dword [esp], eax
test esi, esi
je 0x402fac
cmp dword [ebx], 0
je 0x402fac
dec esi
jmp 0x402f93
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4038a0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4038d3
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4038da
cmp edx, dword [ebx + 8]
je 0x4038e4
mov eax, 0x65
jmp 0x4038df
mov eax, 5
jmp 0x4038df
call sub.kernel32.dll_GetLastError
call fcn.00402c9c
mov eax, ebx
pop ebx
ret

Function at 0x403c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x598020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403d18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403cf8
xor eax, eax
push ebp
push 0x403cf1
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 0x403d34
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 0x403cf8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x598020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x598020], ax
mov esp, ebp
pop ebp
ret
Function at 0x404a64
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59f04c], 0
je 0x404ac5
cmp word [0x59f220], 0xd7b2
jne 0x404a8d
cmp dword [0x59f228], 0
jbe 0x404a8d
mov eax, 0x59f21c
call dword [0x59f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x598090
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 0x404aec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x598030], 0
jne 0x404ae1
push 0
push 0x598088
push 0x598090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c40
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.00402af0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c08
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406df0
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 0x406e56
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.00404efc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004037cc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406e40
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e5d
lea eax, [ebp - 0x10]
call fcn.00404c8c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040514c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409db9
test al, 0x10
jne 0x409dbd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cbf8
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 0x40cc31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d7c
jmp 0x40cc3a
mov eax, ebx
mov edx, esi
call fcn.00404ce0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cc44
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 0x40cc65
mov al, byte [esp]
jmp 0x40cc67
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d2fc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d164
mov eax, dword [0x59ebf4]
cmp byte [eax], 0
je 0x40d378
mov eax, dword [0x59e94c]
call fcn.0040337c
call fcn.00402c7c
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.0040a158
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 0x40d3c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d3ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x59e8e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x59f668]
call fcn.0040621c
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 0x40dc64
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 0x40dd3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d24
lea eax, [ebp - 8]
call fcn.0040519c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040514c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dd24
mov eax, ebx
call fcn.00402af0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dd1d
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.0040514c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dd07
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dd4c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dd07
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 0x40dd24
mov eax, dword [ebp - 0x10]
call fcn.00402b20
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd41
lea eax, [ebp - 8]
call fcn.00404c8c
ret

Function at 0x40e358
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 0x40e3bc
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.00404efc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004098d8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3c3
lea eax, [ebp - 0xc]
call fcn.00404c8c
ret

Function at 0x423adc
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.00423934
dec esi
jne 0x423afe
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x424c58
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x59f88c
cmp dword [esi], 0
jne 0x424cfe
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x59f888]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x598548
mov ecx, 2
call fcn.00402d48
mov edx, 0x424c30
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00424c50
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.00424c50
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x424cc5
mov eax, dword [ebp - 8]
mov dword [0x59f888], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426364
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 0x42636a
ret

Function at 0x428b18
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 0x428b69
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x428b50
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x428b40
jmp 0x428b69
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 0x428b51
pop ebx
mov esp, ebp
pop ebp
ret