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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x557cc4], 0x8f6
mov dword [0x557cc0], 0xfffff6fa
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
add edx, edi
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x231
mov ecx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x50a9cd
lea eax, [0x5454a4]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x557cc4], 0xb99
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.0050adb0
mov eax, dword [0x557cc4]
add eax, 0xfffff64c
mov dword [0x557cc0], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.0050a550
mov ecx, eax
mov dword [0x557ce0], eax
mov eax, esp
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov ecx, dword [0x557cc4]
add ecx, 0xffffef93
mov dword [0x557cc0], ecx
mov dword [ebp - 0x48], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
jmp 0x50aaac
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0x6c
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x48]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
call fcn.0050aba0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x54]
add edx, 1
cmp edx, 0x231
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
jne 0x50aaac
mov eax, dword [ebp - 0x48]
add eax, 0x30f4d
mov dword [0x557cc0], 0x23de
mov ecx, dword [ebp - 0x48]
add ecx, 0x207b5
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
mov dword [esp + 4], edx
mov esi, dword [ebp - 0x3c]
mov dword [esp + 8], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
call fcn.0050b0e0
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov dword [0x557cc0], 0x26a1
mov dword [ecx + 4], 0x14ec00
mov edx, dword [ebp - 0x64]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x1f60
mov dword [0x557cc4], 0x1a84
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x50ac30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x557cc4], 0x12cc
mov dword [0x557cc8], 0
mov dword [0x557ccc], 0
mov dword [0x557cd8], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x50ada8
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x557cc4], 0x79c
mov edx, dword [0x557cc8]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x557cc8], edx
mov dword [0x557cc0], 0x11e9
mov esi, dword [0x557ccc]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x557ccc], edx
mov dword [0x557cc0], 0x18c
mov ecx, dword [0x557cc8]
mov bl, byte [edi + ecx]
mov byte [0x557cd0], bl
mov dword [0x557cc0], 0x82
mov ecx, dword [0x557ccc]
mov bl, byte [edi + ecx]
mov ecx, dword [0x557cc8]
mov byte [edi + ecx], bl
mov bl, byte [0x557cd0]
mov ecx, dword [0x557ccc]
mov byte [edi + ecx], bl
mov ecx, dword [0x557cc4]
add ecx, 0xffffede2
mov dword [0x557cc0], ecx
mov ecx, dword [0x557cc8]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x557ccc]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x557cd8], edx
mov dword [0x557cc4], 0x9b0
mov dword [0x557cc0], 0xeba
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.00401000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov dword [0x557cc0], 0x15cf
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x20], edx
jne 0x50ac89
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x50af30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.0050af30]
mov dword [0x557cc0], 0x2505
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x50af72
mov eax, dword [ebp - 8]
add eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x50af72
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x557cc4], 0x1296
mov dword [ebp - 4], eax
jmp 0x50af49
Function at 0x50b4c0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x30
mov dword [ebp - 8], 0
mov dword [0x557cc0], 0x2ca5
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [0x557cc0], 0x261f
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
jmp 0x50b53a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x50b611
jmp 0x50b63e
mov dword [0x557cc0], 0x6eb
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
jge 0x50b564
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x50b564
jmp 0x50b519
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [0x557cc0], ecx
add esp, 0x30
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov dword [0x557cc4], 0x6af
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
jne 0x50b63e
mov dword [0x557cc0], 0x1f57
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x2a], dx
mov ax, word [ebp - 0x2a]
cmp ax, 0x6f
jne 0x50b63e
mov eax, dword [0x557cc4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, 0xffffec0d
mov dword [0x557cc0], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x50b63e
mov dword [0x557cc4], 0x681
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x32], dx
mov ax, word [ebp - 0x32]
cmp ax, 0x64
jne 0x50b63e
mov dword [0x557cc0], 0x17cf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x50b501
jmp 0x50b63e
mov eax, 0x5b7
mov ecx, 1
mov dword [0x557cc0], 0x23a3
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
je 0x50b552
mov eax, 0x1567
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
jmp 0x50b552
Function at 0x4026f1
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.0040d378
cmp eax, 0x3f6
jae 0x402933
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.0040d2f0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40273e
lea edx, [ebx + 1]
jmp 0x402740
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x402797
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x40276a
jmp 0x402763
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402763
mov byte [ebx + eax], 0x20
jmp 0x40276a
inc eax
cmp byte [ebx + eax], 0
jne 0x402753
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x40277f
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x402796
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x40278d
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x40279d
inc eax
cmp byte [ebx + eax], 0
jne 0x402747
cmp byte [0x412cca], 0
je 0x4027ad
mov dword [ebp - 0x2c], 0x412cca
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.004063b8
mov esi, eax
test esi, esi
je 0x4027d9
mov edx, str..inf
mov eax, esi
call fcn.0040d474
test eax, eax
jne 0x4027d9
mov dword [ebp - 0x34], 0x41223b
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.004070d0
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x402803
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.0040719c
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x402842
cmp byte [ebp - 2], 0
jne 0x402842
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.0040d3f4
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.0040d4bc
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.004070d0
test al, al
je 0x402933
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402872
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402933
xor ebx, ebx
cmp byte [0x4128c0], 0
jne 0x40288b
cmp byte [ebp - 1], 0
je 0x4028d4
cmp dword [0x41314c], 0
je 0x4028a3
push dword [0x41314c]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x4028a7
xor eax, eax
jmp 0x4028ac
mov eax, 1
test eax, eax
je 0x4028bf
push 0
push dword [0x41314c]
call sub.USER32.DLL_ShowWindow
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [ebp - 8]
call fcn.00402939
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4028f0
mov edx, str..exe
mov eax, esi
call fcn.0040d474
test eax, eax
je 0x402922
cmp byte [0x4128c0], 0
je 0x40290b
cmp byte [ebp - 1], 0
jne 0x40290b
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402922
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x40291c
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x402933
push 1
push dword [0x41314c]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52f6f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd2000]
push edi
jmp 0x52f70a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52f711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52f700
mov eax, 1
add ebx, ebx
jne 0x52f723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52f734
jne 0x52f753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52f753
dec eax
add ebx, ebx
jne 0x52f740
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52f718
add ebx, ebx
jne 0x52f74f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52f7a5
xor ecx, ecx
sub eax, 3
jb 0x52f76b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52f7da
sar eax, 1
mov ebp, eax
jmp 0x52f776
add ebx, ebx
jne 0x52f776
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52f744
inc ecx
add ebx, ebx
jne 0x52f784
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52f744
add ebx, ebx
jne 0x52f791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52f786
jne 0x52f7a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52f786
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52f7c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52f7b6
jmp 0x52f706
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52f7c4
add edi, ecx
jmp 0x52f706
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52f7e2
cmp byte [edi], 0x11
jne 0x52f7e2
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 0x52f7e7
lea edi, [esi + 0x128000]
mov eax, dword [edi]
or eax, eax
je 0x52f85f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x179a28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x179ba4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52f814
mov ecx, edi
jns 0x52f843
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 + 0x179ba8]
or eax, eax
je 0x52f859
mov dword [ebx], eax
add ebx, 4
jmp 0x52f831
call dword [esi + 0x179bb8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52f890
cmp al, 0xef
ja 0x52f883
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52f865
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52f872
mov ebp, dword [esi + 0x179bac]
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 0x52f8c4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x402b98
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x455008], 0x8088405
inc edx
mov dword [ebx + 0x455008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402ff0
Capabilities:
Query or enumerate registry value

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

Function at 0x403d4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x457048], 0
je 0x403dad
cmp word [0x45721c], 0xd7b2
jne 0x403d75
cmp dword [0x457224], 0
jbe 0x403d75
mov eax, 0x457218
call dword [0x457234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x455070
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 0x403dd4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x455034], 0
jne 0x403dc9
push 0
push 0x455068
push 0x455070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a7c
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 0x405ae2
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.00404138
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bb4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405acc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ae9
lea eax, [ebp - 0x10]
call fcn.00403ec8
ret

Function at 0x40ab5c
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 0x40ab95
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fb8
jmp 0x40ab9e
mov eax, ebx
mov edx, esi
call fcn.00403f1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b250
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b0c8
mov eax, dword [0x4560c0]
cmp byte [eax], 0
je 0x40b2cc
mov eax, dword [0x455ee0]
call fcn.00402a04
call fcn.00402834
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.00408394
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 0x40b314
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b302
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x455e90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x457664]
call fcn.00404f90
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 0x40bb68
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 0x40bc3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f60
lea eax, [ebp - 8]
call fcn.004043d8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404388
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bc28
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bc21
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.00404388
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bc0b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bc50
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bc0b
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 0x40bc28
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc45
lea eax, [ebp - 8]
call fcn.00403ec8
ret

Function at 0x40c150
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 0x40c1b4
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.00404138
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407edc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1bb
lea eax, [ebp - 0xc]
call fcn.00403ec8
ret

Function at 0x41a410
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x457884
cmp dword [edi], 0
jne 0x41a48c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x457880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4553f0
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a3e8
lea eax, [esi + 5]
call fcn.0041a408
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a408
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 0x41a461
mov dword [0x457880], 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 0x41ba00
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 0x41ba06
ret
Function at 0x41de9c
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 0x41deed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ded4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dec4
jmp 0x41deed
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 0x41ded5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4269d4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404378
xor eax, eax
push ebp
push 0x426b02
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x426ad5
xor eax, eax
push ebp
push 0x426ace
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404188
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x426aa3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x426a92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404188
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404388
mov edx, ebx
pop ecx
call fcn.004028c8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426a99
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x455e38]
mov dl, 1
mov eax, dword [0x406db4]
call fcn.0040b3d4
call fcn.00403904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426b09
lea eax, [ebp - 4]
call fcn.00403ec8
ret