joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f29
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f56
mov ecx, dword [0x423f38]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41708c], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403054
cmp eax, edi
jl 0x40304d
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40901c]
call ebx
test eax, eax
je 0x40304a
cmp dword [ebp - 4], esi
jne 0x40304a
push dword [ebp + 8]
add dword [0x41708c], esi
call fcn.00403054
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40304d
cmp dword [ebp + 0x10], edi
jne 0x403019
cmp dword [ebp + 8], edi
jle 0x403045
mov esi, 0x413088
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fc9
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40901c]
call ebx
test eax, eax
je 0x40304a
cmp edi, dword [ebp - 4]
jne 0x40304a
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403015
cmp dword [ebp + 0x14], edi
jne 0x403015
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41708c], eax
cmp dword [ebp + 8], 0
jg 0x402fbc
jmp 0x403045
push 0xfffffffffffffffe
jmp 0x40304c
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403024
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call ebx
test eax, eax
je 0x40304a
mov eax, dword [ebp - 4]
add dword [0x41708c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40304d
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403054
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41708c]
sub esi, dword [0x40aff8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423eec], eax
jle 0x4031be
push dword [0x41f09c]
call fcn.00403202
push ebx
push ebx
push dword [0x40aff8]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f098], esi
mov dword [0x417088], ebx
mov ebp, 0x40b088
mov eax, dword [0x417090]
mov edi, 0x4000
sub eax, dword [0x41f09c]
cmp eax, edi
jg 0x4030c9
mov edi, eax
mov esi, 0x413088
push edi
push esi
call fcn.004031d0
test eax, eax
je 0x4031b0
add dword [0x41f09c], edi
mov dword [0x40b018], esi
mov dword [0x40b01c], edi
cmp dword [0x423ef0], ebx
je 0x403120
cmp dword [0x423f80], ebx
jne 0x403120
mov eax, dword [0x41f098]
push ebx
sub eax, dword [0x41708c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40aff8]
mov dword [0x417088], eax
call fcn.00402be4
pop ecx
mov ecx, 0x40b000
mov dword [0x40b020], ebp
mov dword [0x40b024], 0x8000
call fcn.00406118
test eax, eax
jl 0x4031b9
mov esi, dword [0x40b020]
sub esi, ebp
je 0x40317a
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031b5
cmp esi, dword [esp + 0x10]
jne 0x4031b5
add dword [0x40aff8], esi
cmp dword [0x40b01c], ebx
jne 0x4030ef
jmp 0x403186
cmp dword [0x40b01c], ebx
jne 0x4031b9
cmp edi, ebx
je 0x4031b9
mov eax, dword [0x41708c]
mov ecx, eax
sub ecx, dword [0x40aff8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030b3
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031be
or eax, 0xffffffff
jmp 0x4031c8
push 0xfffffffffffffffe
jmp 0x4031bb
push 0xfffffffffffffffd
pop eax
jmp 0x4031c8
push 1
call fcn.00402be4
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4054bd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x421ce8], 0x44
push eax
xor eax, eax
push 0x421ce8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054f8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405582
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405976
mov edi, eax
cmp edi, 0xffffffff
je 0x4055c3
test byte [esp + 0x10], 1
push esi
je 0x4055a5
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4055ab
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4055b4
xor eax, eax
inc eax
jmp 0x4055c5
test byte [esp + 0x10], 4
jne 0x4055c3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055ca
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405888
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405609
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f68], eax
jmp 0x405793
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405623
test eax, eax
je 0x405741
test bl, 2
je 0x405741
mov esi, 0x4214e8
push edi
push esi
call fcn.00405ced
cmp dword [ebp + 8], 0
je 0x405642
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405648
push edi
call fcn.004057e1
cmp byte [edi], 0
jne 0x405656
cmp byte [0x4214e8], 0x5c
jne 0x405661
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405737
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057c5
cmp byte [eax], 0
je 0x4056a7
cmp byte [ebp - 0x1c], 0
je 0x4056a7
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056bd
mov al, byte [esi + 1]
test al, al
je 0x405716
cmp al, 0x2e
jne 0x4056bd
cmp byte [esi + 2], 0
je 0x405716
push esi
push ebx
call fcn.00405ced
test byte [ebp - 0x14c], 0x10
je 0x4056e2
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405716
push dword [ebp + 0xc]
push edi
call fcn.004055ca
jmp 0x405716
push dword [ebp - 4]
push edi
call fcn.00405582
test eax, eax
jne 0x40570e
cmp dword [ebp - 4], eax
je 0x405706
push edi
push 0xfffffffffffffff1
call fcn.00404ffa
push 0
push edi
call fcn.00405ba1
jmp 0x405716
inc dword [0x423f68]
jmp 0x405716
push edi
push 0xfffffffffffffff2
call fcn.00404ffa
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405685
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405741
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405793
cmp dword [ebp - 0xc], esi
jne 0x405755
inc dword [0x423f68]
jmp 0x405793
push edi
call fcn.00405ff1
test eax, eax
je 0x405793
push edi
call fcn.0040579a
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405582
test eax, eax
jne 0x40578b
cmp dword [ebp - 4], esi
je 0x40574d
push edi
push 0xfffffffffffffff1
call fcn.00404ffa
push esi
push edi
call fcn.00405ba1
jmp 0x405793
push edi
push 0xffffffffffffffe5
call fcn.00404ffa
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405888
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4218e8
push esi
call fcn.00405ced
push esi
call fcn.00405833
mov edi, eax
test edi, edi
jne 0x4058a9
xor eax, eax
jmp 0x4058fb
push edi
call fcn.00405f58
test byte [0x423ef8], 0x80
je 0x4058c2
mov al, byte [edi]
test al, al
je 0x4058a5
cmp al, 0x5c
je 0x4058a5
sub edi, esi
jmp 0x4058da
call fcn.00405ff1
test eax, eax
je 0x4058d4
test byte [eax], 0x10
je 0x4058a5
push esi
call fcn.004057e1
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4058c6
call fcn.0040579a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405976
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405995
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x40599b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4059ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409380]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a0f
test edi, edi
jne 0x4059d5
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a09
Function at 0x405a13
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x422270
push 0x40939c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405a62
push 1
push 0
push esi
call fcn.0040599b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405b9b
cmp eax, ebx
jg 0x405b9b
mov esi, 0x422670
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405b9b
cmp eax, ebx
jg 0x405b9b
push esi
push edi
push str._s_s_r_n
push 0x421e70
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423ef0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d0f
push 4
push 0xc0000000
push esi
call fcn.0040599b
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405b9b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405b94
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405b94
cmp edi, dword [esp + 0x10]
jne 0x405b94
push str._Rename__r_n
push esi
call fcn.00405900
test eax, eax
jne 0x405b2a
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405b5f
add eax, 0xa
push 0x409384
push eax
call fcn.00405900
mov ebp, eax
test ebp, ebp
je 0x405b5b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b4c
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b46
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405b61
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x421e70
push eax
call fcn.00405956
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405bd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c45
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c34
cmp dword [ebp + 0x14], 1
je 0x405c36
cmp dword [ebp + 0x14], 2
je 0x405c36
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40608a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a74], 0
push esi
jne 0x4060c1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40609b
mov dword [ecx*4 + 0x422a70], eax
inc ecx
cmp ecx, 0x100
jl 0x406096
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4060f2
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a70]
xor eax, esi
inc ecx
dec edx
jne 0x4060d4
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5df249aa
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x1510194f
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x49f45050
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x16a21d9b
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10024089
Capabilities:
Encode data using xor

Disassembly:
inc eax
cmp al, 0x8d
inc esi
xchg ebx, eax
pop esp
cmp byte [ebx - 0x1b75c6c7], 0x1c
mov dword [esi - 0x11], ecx
push ss
lodsd eax, dword [esi]
add dword [edx + 0x41], esp
xor al, 0x25
sahf
jbe 0x100240a0
cmp dh, byte [eax]
in eax, 0x1f
xchg ebx, eax
mov edx, 0x88c1f5dd
sbb ebp, edi
dec ebx
sar dword [eax], 0x6e
and cl, al
sub dword [ebx + edx*4 - 0x3e89668a], ebx
insb byte es:[edi], dx
fnstsw word [ebp + 0x4f]
and eax, 0xdc22eefc
insd dword es:[edi], dx
sbb eax, 0xf7655a94
invalid

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x76cb65a6
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6670238b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402c38
Capabilities:
Get common file path
Set current directory

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

Function at 0x402e74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044b8
test esi, esi
jne 0x402eab
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.004045a8
jmp 0x402ecc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d10
mov dword [esp], eax
test esi, esi
je 0x402ecc
cmp dword [ebx], 0
je 0x402ecc
dec esi
jmp 0x402eb3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403530
Capabilities:
Query or enumerate registry value

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

Function at 0x404334
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450044], 0
je 0x404395
cmp word [0x450218], 0xd7b2
jne 0x40435d
cmp dword [0x450220], 0
jbe 0x40435d
mov eax, 0x450214
call dword [0x450230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44e06c
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 0x4043bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44e030], 0
jne 0x4043b1
push 0
push 0x44e064
push 0x44e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060dc
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 0x406142
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.00404728
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030f4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40612c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406149
lea eax, [ebp - 0x10]
call fcn.004044b8
ret

Function at 0x40b118
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 0x40b151
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045a8
jmp 0x40b15a
mov eax, ebx
mov edx, esi
call fcn.0040450c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b81c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b684
mov eax, dword [0x44ef98]
cmp byte [eax], 0
je 0x40b898
mov eax, dword [0x44edd8]
call fcn.00402f60
call fcn.00402bc4
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.00408908
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 0x40b8e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b8ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44ed8c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x450660]
call fcn.00405548
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