joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x401e06
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401e45
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401e45
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e45
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401e45
cmp dword [ecx + 0x74], 0xe
jbe 0x401e45
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1994d00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13d6000]
push edi
or ebp, 0xffffffff
jmp 0x1994d22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1994d29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1994d18
mov eax, 1
add ebx, ebx
jne 0x1994d3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1994d4c
jne 0x1994d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1994d6b
dec eax
add ebx, ebx
jne 0x1994d58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1994d30
add ebx, ebx
jne 0x1994d67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1994dbd
xor ecx, ecx
sub eax, 3
jb 0x1994d83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1994df2
sar eax, 1
mov ebp, eax
jmp 0x1994d8e
add ebx, ebx
jne 0x1994d8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1994d5c
inc ecx
add ebx, ebx
jne 0x1994d9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1994d5c
add ebx, ebx
jne 0x1994da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1994d9e
jne 0x1994dba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1994d9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1994ddc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1994dce
jmp 0x1994d1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1994ddc
add edi, ecx
jmp 0x1994d1e
pop esi
mov edi, esi
mov ecx, 0x20752
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1994dfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x1994dff
lea edi, [esi + 0x1590000]
mov eax, dword [edi]
or eax, eax
je 0x1994e67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x243d8e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x243da28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1994e25
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x243da30]
or eax, eax
je 0x1994e61
mov dword [ebx], eax
add ebx, 4
jmp 0x1994e42
call dword [esi + 0x243da2c]
mov ebp, dword [esi + 0x243da34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1994e9b
sub esp, 0xffffff80
jmp 0x9b1c38
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x5cee1e46
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x5df758d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40b05a]
shl eax, 2
mov dword [0x40b05e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40ce6c
mov ecx, 0x40d3e0
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x40b06e], edx
mov eax, dword [edx - 8]
mov dword [0x40b066], eax
mov eax, dword [edx - 4]
mov dword [0x40b06a], eax
sub edx, 4
mov dword [0x40d020], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.00403df6
pop ecx
push 0x40b02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40b062], eax
push 0
jmp fcn.00409b18
Function at 0x405684
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4056a3
mov eax, dword [0x40bdf4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4056b0
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4056dd
je 0x4056ef
sub ecx, 0x100
je 0x4056fd
sub ecx, 0x100
je 0x405704
sub ecx, 0x100
je 0x4056f6
jmp 0x40570b
sub ecx, 0x600
je 0x405704
sub ecx, 0x100
je 0x4056ef
jmp 0x40570b
mov edi, 1
jmp 0x405710
mov edi, 2
jmp 0x405710
mov edi, 4
jmp 0x405710
mov edi, 5
jmp 0x405710
mov edi, 3
test byte [ebp + 0xd], 1
je 0x405737
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40c2e4]
test al, 0x80
je 0x405730
mov ebx, 0x80
jmp 0x405749
mov ebx, 1
jmp 0x405749
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x405749
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x40575b
je 0x405764
dec eax
je 0x40576d
jmp 0x405776
mov dword [ebp - 4], 0x80000000
jmp 0x405785
mov dword [ebp - 4], 0x40000000
jmp 0x405785
mov dword [ebp - 4], 0xc0000000
jmp 0x405785
push 1
call fcn.00405438
pop ecx
mov ebx, eax
jmp 0x405871
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4057a1
sub eax, 0x10
je 0x4057a8
sub eax, 0x10
je 0x4057b1
sub eax, 0x10
je 0x4057ba
jmp 0x4057ba
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4057c1
mov dword [ebp - 8], 1
jmp 0x4057c1
mov dword [ebp - 8], 2
jmp 0x4057c1
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x40582a
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x40581f
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x40581f
add ebx, 0xffffffb2
push ebx
call fcn.00405438
pop ecx
mov ebx, eax
jmp 0x405871
mov edi, esi
push edi
call fcn.004055f4
pop ecx
test eax, eax
je 0x40583e
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x40584a
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00405194
add esp, 8
mov ebx, eax
inc eax
jne 0x405871
push 4
call fcn.00405438
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408fdc
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4094e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40cae4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4095a0
cmp byte [0x40b059], 0
je 0x40955a
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.004019f8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409543
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.004019f8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409543
lea ebx, [ebp - 0x54]
jmp 0x409544
inc ebx
call fcn.004094a0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4095c1
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40cae8
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00401998
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40caeb
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x4095c1
cmp dword [0x40cae4], 0xffffffff
je 0x4095c1
mov eax, dword [0x40cae4]
test eax, eax
je 0x4095c1
cmp byte [eax], 0
je 0x4095c1
push esi
push eax
call fcn.00409650
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ea70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401c86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
mov dword [ebp - 8], esp
push esi
push esi
push 1
push esi
push ebx
push 0x228
push esi
mov dword [ebp - 4], 0x4016f0
xor edi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.MSVBVM50.DLL___vbaRedim]
add esp, 0x1c
push esi
push 0x5b
push 0xc
call fcn.0042ae90
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push eax
push ecx
push 0x5b
mov dword [ebp - 0x2c], esi
call fcn.00426f50
mov edx, 0x408690
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM50.DLL___vbaStrCopy]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push edx
push eax
push 0x5b
mov dword [ebp - 0x2c], 1
call fcn.00426f50
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM50.DLL___vbaFreeStr]
push esi
push 0x5b
push 9
call fcn.0042ae90
cmp ax, si
jne 0x42ebf9
lea ecx, [ebp - 0x2c]
mov eax, 0x5b
push ecx
push eax
mov dword [ebp - 0x2c], esi
call fcn.00427ed0
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM50.DLL___vbaStrMove]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVBVM50.DLL___vbaStrCmp]
mov esi, eax
lea ecx, [ebp - 0x28]
neg esi
sbb esi, esi
neg esi
neg esi
call dword [sym.imp.MSVBVM50.DLL___vbaFreeStr]
test si, si
jne 0x42ebf9
add di, 1
push 0
jo 0x42ec28
movsx esi, di
push esi
push 1
push 0
push ebx
push 0x228
push 0
call dword [sym.imp.MSVBVM50.DLL___vbaRedimPreserve]
mov ecx, dword [ebx]
add esp, 0x1c
lea edx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.MSVBVM50.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x42ebc4
cmp word [ecx], 1
jne 0x42ebc4
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x42ebb4
call dword [sym.imp.MSVBVM50.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
lea eax, [esi + esi*2]
shl eax, 3
sub eax, esi
lea eax, [eax + eax*2]
shl eax, 3
jmp 0x42ebcd
call dword [sym.imp.MSVBVM50.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0xc]
add ecx, eax
push ecx
call fcn.0042fd60
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM50.DLL___vbaAryUnlock]
xor eax, eax
push eax
mov eax, 0x5b
push eax
push 6
call fcn.0042ae90
xor esi, esi
jmp 0x42eb11
push 0x42ec15
jmp 0x42ec14
ret
call dword [sym.imp.MSVBVM50.DLL___vbaErrorOverflow]
nop
nop
Function at 0x402aec
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.004047a0
test esi, esi
jne 0x402b22
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.00404890
jmp 0x402b40
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029a0
mov edi, eax
test esi, esi
je 0x402b40
cmp dword [ebx], 0
je 0x402b40
dec esi
jmp 0x402b29
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403354
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403372
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x40337c
jmp fcn.004028c4
mov eax, 0x67
jmp fcn.004028b4
ret

Function at 0x4038c0
Capabilities:
Query or enumerate registry value

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

Function at 0x404624
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48404c], 0
je 0x404685
cmp word [0x484220], 0xd7b2
jne 0x40464d
cmp dword [0x484228], 0
jbe 0x40464d
mov eax, 0x48421c
call dword [0x484238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48209c
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 0x4046ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x482034], 0
jne 0x4046a1
push 0
push 0x482094
push 0x48209c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406654
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 0x4066ba
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.00404a10
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403380
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066a4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066c1
lea eax, [ebp - 0x10]
call fcn.004047a0
ret

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

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

Function at 0x4093cc
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c60
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4093e0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404c60
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409402
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c160
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 0x40c199
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404890
jmp 0x40c1a2
mov eax, ebx
mov edx, esi
call fcn.004047f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c1ac
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 0x40c1cd
mov al, byte [esp]
jmp 0x40c1cf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c854
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c6cc
mov eax, dword [0x483b70]
cmp byte [eax], 0
je 0x40c8d0
mov eax, dword [0x483918]
call fcn.00402f18
call fcn.00402894
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.004097d4
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 0x40c918
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c906
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4838b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x484668]
call fcn.00405b68
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 0x40d1b4
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 0x40d28a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404838
lea eax, [ebp - 8]
call fcn.00404cb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d274
mov eax, ebx
call fcn.0040272c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d26d
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.00404c60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d257
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d29c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d257
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 0x40d274
mov eax, dword [ebp - 0x10]
call fcn.0040274c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d291
lea eax, [ebp - 8]
call fcn.004047a0
ret

Function at 0x40d88c
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 0x40d8f0
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.00404a10
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408f20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8f7
lea eax, [ebp - 0xc]
call fcn.004047a0
ret
Function at 0x41edb4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x484888
cmp dword [edi], 0
jne 0x41ee30
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x484884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4824ac
mov ecx, 2
call fcn.00402960
mov edx, 0x41ed8c
lea eax, [esi + 5]
call fcn.0041edac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041edac
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 0x41ee05
mov dword [0x484884], 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 0x420404
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 0x42040a
ret

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