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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
mov esi, dword [edi + 0xc]
mov dword [esp + 0x18], esi
test esi, esi
je 0xe831c4
test edx, edx
je 0xe831c4
movzx eax, byte [edx]
lea ecx, [eax + 1]
add eax, 0xffffffed
xor ecx, 1
dec ecx
mov dword [esp + 0x20], ecx
cmp eax, 0x7f
ja 0xe830df
movzx eax, byte [eax + 0x8ee9ec]
jmp dword [eax*4 + 0x8ee9cc]
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00e82530
mov dword [esp + 0x24], eax
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x10], eax
jg 0xe8310d
mov ecx, esi
call fcn.00e70ce0
test eax, eax
jne 0xe83146
mov eax, dword [esp + 0x18]
inc dword [esi + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
mov word [eax + ecx*4], 0x1b
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
setne al
mov dword [ecx + 0xc], eax
mov byte [ecx + 3], 0
mov dword [ecx + 0x10], 0
mov byte [esi + 0x6e], 0
cmp dword [esp + 0x1c], 0
je 0xe83184
mov al, byte [edi + 0x15]
mov byte [esp + 0x17], al
cmp al, 8
jae 0xe83184
xor ecx, ecx
lea eax, [edi + 0x60]
nop dword [eax]
mov edx, dword [esp + 0x1c]
cmp dword [eax + 0x10], edx
je 0xe83180
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0xe83160
movzx eax, byte [esp + 0x17]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x15]
jmp 0xe83184
mov byte [eax + 9], 1
mov edx, dword [esp + 0x2c]
test edx, edx
je 0xe831c4
mov al, byte [edi + 0x15]
mov byte [esp + 0x17], al
cmp al, 8
jae 0xe831c4
xor ecx, ecx
lea eax, [edi + 0x60]
nop dword [eax]
cmp dword [eax + 0x10], edx
je 0xe831c0
inc ecx
add eax, 0x18
cmp ecx, 0xa
jl 0xe831a0
movzx eax, byte [esp + 0x17]
mov dword [edi + eax*4 + 0x18], edx
inc byte [edi + 0x15]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [eax + 9], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xe83270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0xe833f5
test edi, edi
je 0xe833f5
movzx ecx, word [esi + 2]
push ebx
test ecx, 0x1000
jne 0xe833ec
movzx eax, word [edi + 2]
test eax, 0x1000
jne 0xe833ec
xor al, cl
test al, 0x10
jne 0xe833ec
mov al, byte [esi]
cmp al, byte [edi]
jne 0xe833ec
mov edx, dword [edi + 8]
mov ecx, dword [esi + 8]
call fcn.00e83270
test eax, eax
je 0xe833ec
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 0xc]
call fcn.00e83270
test eax, eax
je 0xe833ec
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 0x10]
test eax, eax
je 0xe8333f
test ecx, ecx
je 0xe833ec
mov edx, dword [eax]
cmp edx, dword [ecx]
jne 0xe833ec
xor ebx, ebx
test edx, edx
jle 0xe83347
xor edx, edx
mov dword [ebp - 4], edx
nop dword [eax + eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [edx + eax]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [edx + eax]
call fcn.00e83270
test eax, eax
je 0xe833ec
mov eax, dword [esi + 0x10]
inc ebx
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
cmp ebx, dword [eax]
jl 0xe83310
jmp 0xe83347
test ecx, ecx
jne 0xe833ec
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x18]
jne 0xe833ec
mov eax, dword [esi + 0x20]
cmp eax, dword [edi + 0x20]
jne 0xe833ec
mov eax, dword [esi + 0x24]
cmp eax, dword [edi + 0x24]
jne 0xe833ec
mov eax, 0x800
test word [esi + 2], ax
je 0xe83384
test word [edi + 2], ax
je 0xe833ec
mov eax, dword [esi + 4]
cmp eax, dword [edi + 4]
jmp 0xe833de
cmp byte [esi], 0x98
je 0xe833e0
mov esi, dword [esi + 4]
test esi, esi
je 0xe833e0
test word [edi + 2], ax
jne 0xe833ec
mov edx, dword [edi + 4]
test edx, edx
je 0xe833ec
mov bl, byte [esi]
test bl, bl
je 0xe833c8
mov al, bl
sub esi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x95e778]
cmp al, byte [ecx + 0x95e778]
jne 0xe833c8
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0xe833a7
movzx eax, bl
movzx ecx, byte [eax + 0x95e778]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x95e778]
sub ecx, eax
jne 0xe833ec
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xe857e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
mov edx, ecx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
push edi
mov edi, eax
test eax, eax
je 0xe8580d
cmp byte [eax], cl
je 0xe85805
inc edi
cmp byte [edi], cl
jne 0xe85800
sub edi, eax
and edi, 0x3fffffff
mov eax, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
cmp dword [edx + 4], eax
jle 0xe858d5
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
xor esi, 1
cmp eax, 2
cmovge esi, eax
test ebx, ebx
je 0xe85893
mov eax, dword [edx + 8]
mov ecx, esi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov ecx, dword [ebp + 8]
mov bl, byte [ecx]
test bl, bl
je 0xe85875
sub ecx, edx
mov al, bl
mov dword [ebp - 0x14], ecx
mov edi, ecx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x95e778]
cmp al, byte [ecx + 0x95e778]
jne 0xe85872
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0xe85851
mov edi, dword [ebp - 4]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x95e778]
movzx eax, bl
mov ebx, dword [ebp + 8]
movzx eax, byte [eax + 0x95e778]
sub eax, ecx
jne 0xe858b6
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
add esi, esi
mov edx, dword [ebp - 0x18]
push edi
mov ecx, dword [eax + esi*8 + 0xc]
add ecx, 4
call fcn.00e63450
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0xe858cc
jmp 0xe858b9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 4]
jl 0xe85826
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0xe858e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
push esi
mov esi, eax
push edi
test eax, eax
je 0xe8590d
cmp byte [eax], dl
je 0xe85905
nop dword [eax]
inc esi
cmp byte [esi], dl
jne 0xe85900
sub esi, eax
and esi, 0x3fffffff
mov eax, dword [ecx + 4]
mov edi, 1
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jle 0xe859d5
push ebx
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x18], ebx
nop word [eax + eax]
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
add eax, eax
mov ecx, dword [ebx + eax*8 + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0xe8599c
mov edx, dword [ebx + eax*8]
mov bl, byte [ecx]
test bl, bl
je 0xe85984
mov edi, ecx
mov al, bl
sub edi, edx
nop word [eax + eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x95e778]
cmp al, byte [ecx + 0x95e778]
jne 0xe85981
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0xe85960
mov edi, dword [ebp - 8]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x95e778]
movzx eax, bl
movzx eax, byte [eax + 0x95e778]
sub eax, ecx
jne 0xe859b9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x14
push esi
call fcn.00e63450
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0xe859cc
jmp 0xe859bc
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0x14]
jl 0xe85930
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xed6c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xed6c6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xed6c6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000f197
pop dword [ebp - 0x14]
mov eax, 0x803ba5ce
sub eax, 0x703ab437
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3a2a5
push 0
mov eax, 0xc1c79b3e
sub eax, 0xb1c65ada
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xb6bc5d25
add ecx, 0x4943ef32
mov esi, eax
mov edx, 0x49425f65
sub edx, 0x3940d965
add edx, dword [ebp - 0x14]
mov edi, 0xbe304fb
xor dword [ebp - 8], 0xaed107c2
mov ebx, dword [edx]
add dword [ebp - 4], 0x74dbf91e
sub ebx, edi
sub dword [ebp - 0x10], edi
mov dword [esi], ebx
add dword [ebp - 0xc], edx
add esi, 0x8e5852a9
sub esi, 0x8e5852a5
add edx, 0x1a572d6
add edx, 0xfe5a8d2e
loop 0x1000f1f0
add eax, 0x1242f
xor ebx, ebx
add ebx, eax
add eax, 0xf77b6010
add eax, 0x8849ff5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

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

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.100220f6
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8
Function at 0x402a58
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.004041f4
test esi, esi
jne 0x402a8e
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.004042e4
jmp 0x402aac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040296c
mov edi, eax
test esi, esi
je 0x402aac
cmp dword [ebx], 0
je 0x402aac
dec esi
jmp 0x402a95
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d68
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403250
Capabilities:
Query or enumerate registry value

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

Function at 0x403ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e2048], 0
je 0x404055
cmp word [0x4e221c], 0xd7b2
jne 0x40401d
cmp dword [0x4e2224], 0
jbe 0x40401d
mov eax, 0x4e2218
call dword [0x4e2234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d8070
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 0x40407c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d8034], 0
jne 0x404071
push 0
push 0x4d8068
push 0x4d8070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041a8
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.00402730
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e2049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404170
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406218
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 0x40627e
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.00404464
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402df0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406268
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406285
lea eax, [ebp - 0x10]
call fcn.004041f4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046b4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409015
test al, 0x10
jne 0x409019
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bf1c
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 0x40bf55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042e4
jmp 0x40bf5e
mov eax, ebx
mov edx, esi
call fcn.00404248
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c610
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c488
mov eax, dword [0x4e1284]
cmp byte [eax], 0
je 0x40c68c
mov eax, dword [0x4e1020]
call fcn.00402bd4
call fcn.00402898
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.004094d8
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 0x40c6d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c6c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4e0fc0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e2664]
call fcn.004056f8
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 0x40cf28
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 0x40cffe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040428c
lea eax, [ebp - 8]
call fcn.00404704
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046b4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cfe8
mov eax, ebx
call fcn.00402730
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cfe1
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.004046b4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cfcb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d010
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cfcb
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 0x40cfe8
mov eax, dword [ebp - 0x10]
call fcn.00402750
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d005
lea eax, [ebp - 8]
call fcn.004041f4
ret

Function at 0x40d5c0
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 0x40d624
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.00404464
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b44
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d62b
lea eax, [ebp - 0xc]
call fcn.004041f4
ret

Function at 0x4220d4
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.00421f00
dec esi
jne 0x4220f6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x423238
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4e2888
cmp dword [edi], 0
jne 0x4232b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4e2884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d84b4
mov ecx, 2
call fcn.0040292c
mov edx, 0x423210
lea eax, [esi + 5]
call fcn.00423230
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00423230
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 0x423289
mov dword [0x4e2884], 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 0x4248c0
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 0x4248c6
ret

Function at 0x426eac
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 0x426efd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x426ee4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x426ed4
jmp 0x426efd
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 0x426ee5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431974
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.004046a4
xor eax, eax
push ebp
push 0x431aa2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x431a75
xor eax, eax
push ebp
push 0x431a6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004044b4
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x431a43
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 0x431a32
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004044b4
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004046b4
mov edx, ebx
pop ecx
call fcn.0040292c
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 0x431a39
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4e0f54]
mov dl, 1
mov eax, dword [0x407800]
call fcn.0040c794
call fcn.00403bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431aa9
lea eax, [ebp - 4]
call fcn.004041f4
ret