joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56cb25
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0056caa1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x56cc94
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x56cc94
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x56cc49
jg 0x56cb81
test eax, eax
je 0x56cc3f
push 1
push 0x1000
call fcn.0055e1f0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x56cba4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x56cc36
push 0x8000
push ebx
call fcn.00557421
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x56cbcd
jg 0x56cbc8
cmp ecx, 0x1000
jb 0x56cbcd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0056171c
add esp, 0x10
cmp eax, 0xffffffff
je 0x56cc12
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x56cbc8
jl 0x56cbf9
test ecx, ecx
jne 0x56cbba
push dword [ebp - 0xc]
push ebx
call fcn.00557421
push esi
call fcn.0055df72
add esp, 0xc
xor ebx, ebx
jmp 0x56cca2
cmp byte [edi + 0x24], 0
je 0x56cc29
cmp dword [edi + 0x20], 5
jne 0x56cc29
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x56cc34
mov ebx, dword [edi + 0x18]
jmp 0x56cc36
xor ebx, ebx
push esi
call fcn.0055df72
pop ecx
jmp 0x56cca2
test ecx, ecx
jg 0x56cc0b
jl 0x56cc49
test eax, eax
jae 0x56cc0b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00561b3e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x56cc69
cmp byte [edi + 0x1c], 0
je 0x56cc0b
jmp 0x56cc9a
push ebx
call fcn.00564529
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x56cc0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x56cca2
cmp byte [edi + 0x1c], 0
je 0x56cc9f
mov ebx, dword [edi + 0x18]
jmp 0x56cca2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00561b3e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x56e320
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4041df
pop dword [ebp - 0x24]
mov eax, 0xbda491e1
add eax, 0x429baffe
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x2c755aeb
sub dword [ebp - 0x34], 0xde2315a0
mov dword [ebp - 0x30], 0xe174325d
add dword [ebp - 0x30], 0x50bf19e8
mov dword [ebp - 0x2c], 0xa1a18a00
sub dword [ebp - 0x2c], 0x555545d2
mov dword [ebp - 0x28], 0xc307d525
sub dword [ebp - 0x28], 0xc307d525
lea eax, [ebp - 0x34]
push eax
mov eax, 0xcec4b919
add eax, 0x317bd703
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xdc016071
add dword [ebp - 0x34], 0x987108e5
mov dword [ebp - 0x30], 0xe77f4b6e
add dword [ebp - 0x30], 0x59ed1607
mov dword [ebp - 0x2c], 0x3244aff7
sub dword [ebp - 0x2c], 0xced5438b
mov dword [ebp - 0x28], 0x960fc303
add dword [ebp - 0x28], 0x69f03cfd
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3d2bd
push 0
call eax
mov ecx, 0x4ff4
mov edx, eax
mov ebx, 0x67d3b194
sub ebx, 0x6792d994
add ebx, dword [ebp - 0x24]
mov edi, 0x98aae4b4
sub edi, 0xa7d2d5d5
xor dword [ebp - 0x1c], 0xe7b8cedb
mov esi, dword [ebx]
sub dword [ebp - 0x10], edx
sub esi, edi
add dword [ebp - 0x1c], esi
mov dword [edx], esi
sub dword [ebp - 0x14], eax
add edx, 0xae873f57
add edx, 0x5178c0ad
add ebx, 0x9c88fc5c
add ebx, 0x637703a8
loop 0x4042f6
add eax, 0x132a3
xor ebx, ebx
add ebx, eax
add eax, 0x38586c42
sub eax, 0x38586c3d
mov ecx, 0xccad5323
add ecx, 0x3392acdd
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x40656e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b018]
jne 0x406578
repz ret
jmp fcn.004069b9
Function at 0x4069af
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4098a0
call fcn.00406ad4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40b580
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x40674f
cmp eax, esi
jne 0x406742
xor esi, esi
inc esi
mov ebx, esi
jmp 0x406752
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x406729
xor esi, esi
inc esi
mov eax, dword [0x40b57c]
cmp eax, esi
jne 0x406765
push 0x1f
call sub.MSVCR90.dll__amsg_exit
pop ecx
jmp 0x406794
mov eax, dword [0x40b57c]
test eax, eax
jne 0x40678e
mov dword [0x40b57c], esi
push 0x4091c8
push 0x4091bc
call sub.MSVCR90.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x406794
jmp 0x4068bc
mov dword [0x40b224], esi
mov eax, dword [0x40b57c]
cmp eax, esi
jne 0x4067b8
push 0x4091b8
push 0x4091a8
call sub.MSVCR90.dll__initterm
pop ecx
pop ecx
mov dword [0x40b57c], 2
test ebx, ebx
jne 0x4067c4
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40b584], 0
je 0x4067e8
push 0x40b584
call main
pop ecx
test eax, eax
je 0x4067e8
push 0
push 2
push 0
call dword [0x40b584]
mov eax, dword [sym.imp.MSVCR90.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406844
test al, al
je 0x406802
cmp dword [ebp - 0x1c], 0
jne 0x406844
mov al, byte [esi]
test al, al
je 0x406812
cmp al, 0x20
ja 0x406812
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406802
test byte [ebp - 0x3c], 1
je 0x40681e
movzx eax, word [ebp - 0x38]
jmp 0x406821
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40b220], eax
cmp dword [0x40b214], 0
jne 0x406898
push eax
call dword [sym.imp.MSVCR90.dll_exit]
cmp al, 0x22
jne 0x406853
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR90.dll__ismbblead]
pop ecx
test eax, eax
je 0x406866
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4067ef
cmp dword [0x40b224], 0
jne 0x4068a7
call dword [sym.imp.MSVCR90.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40b220]
jmp 0x4068c8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406b19
ret
call main
jmp 0x4066ef
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40805a]
shl eax, 2
mov dword [0x40805e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x409314
mov ecx, 0x4095dc
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 [0x40806e], edx
mov eax, dword [edx - 8]
mov dword [0x408066], eax
mov eax, dword [edx - 4]
mov dword [0x40806a], eax
sub edx, 4
mov dword [0x409328], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.004035ce
pop ecx
push 0x40802c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x408062], eax
push 0
jmp fcn.00407788

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x405bb0
call fcn.00405ab8
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x405bcb
test bl, 1
je 0x405bcb
mov dword [0x409148], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x405cdc
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 0x405cfb
mov eax, dword [0x4088d4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x405d08
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x405d35
je 0x405d47
sub ecx, 0x100
je 0x405d55
sub ecx, 0x100
je 0x405d5c
sub ecx, 0x100
je 0x405d4e
jmp 0x405d63
sub ecx, 0x600
je 0x405d5c
sub ecx, 0x100
je 0x405d47
jmp 0x405d63
mov edi, 1
jmp 0x405d68
mov edi, 2
jmp 0x405d68
mov edi, 4
jmp 0x405d68
mov edi, 5
jmp 0x405d68
mov edi, 3
test byte [ebp + 0xd], 1
je 0x405d8f
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x408e50]
test al, 0x80
je 0x405d88
mov ebx, 0x80
jmp 0x405da1
mov ebx, 1
jmp 0x405da1
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x405da1
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x405db3
je 0x405dbc
dec eax
je 0x405dc5
jmp 0x405dce
mov dword [ebp - 4], 0x80000000
jmp 0x405ddd
mov dword [ebp - 4], 0x40000000
jmp 0x405ddd
mov dword [ebp - 4], 0xc0000000
jmp 0x405ddd
push 1
call fcn.00405a54
pop ecx
mov ebx, eax
jmp 0x405ec9
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x405df9
sub eax, 0x10
je 0x405e00
sub eax, 0x10
je 0x405e09
sub eax, 0x10
je 0x405e12
jmp 0x405e12
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x405e19
mov dword [ebp - 8], 1
jmp 0x405e19
mov dword [ebp - 8], 2
jmp 0x405e19
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 0x405e82
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x405e77
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x405e77
add ebx, 0xffffffb2
push ebx
call fcn.00405a54
pop ecx
mov ebx, eax
jmp 0x405ec9
mov edi, esi
push edi
call fcn.00405c4c
pop ecx
test eax, eax
je 0x405e96
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x405ea2
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004057b0
add esp, 8
mov ebx, eax
inc eax
jne 0x405ec9
push 4
call fcn.00405a54
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 0x406a68
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 0x406e44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40914c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x406efc
cmp byte [0x408059], 0
je 0x406eb6
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.00401544
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406e9f
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00401544
add esp, 8
mov ebx, eax
test eax, eax
jne 0x406e9f
lea ebx, [ebp - 0x54]
jmp 0x406ea0
inc ebx
call fcn.00406dfc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x406f1d
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x409150
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004014e4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x409153
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x406f1d
cmp dword [0x40914c], 0xffffffff
je 0x406f1d
mov eax, dword [0x40914c]
test eax, eax
je 0x406f1d
cmp byte [eax], 0
je 0x406f1d
push esi
push eax
call fcn.00406fac
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031dc
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 0x403218
movzx eax, 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 0x403238
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405904
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4034e0
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.00405694
test esi, esi
jne 0x403516
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.00405784
jmp 0x403534
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033e4
mov edi, eax
test esi, esi
je 0x403534
cmp dword [ebx], 0
je 0x403534
dec esi
jmp 0x40351d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x54e008], 0x8088405
inc edx
mov dword [ebx + 0x54e008], edx
fld qword [ebx + 0x54e760]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x40454c
Capabilities:
Query or enumerate registry value

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

Disassembly:
push ecx
cmp byte [0x55604c], 0
je 0x4054a1
cmp word [0x556220], 0xd7b2
jne 0x405469
cmp dword [0x556228], 0
jbe 0x405469
mov eax, 0x55621c
call dword [0x556238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4054c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54e030], 0
jne 0x4054bd
push 0
push 0x54e770
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405618
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x54e038], 0
je 0x40563e
mov edx, esi
mov eax, ebx
call dword [0x54e038]
jmp 0x40564d
mov eax, 8
call fcn.00402fd4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4055e0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4070e8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407318
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40716b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407318
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40716b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407334
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4071f4
xor eax, eax
push ebp
push 0x4071ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406f24
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4071d2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x407354
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4071d2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071f4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40730e
cmp byte [ebp - 0xd], 0
jne 0x40723b
cmp byte [ebp - 0x12], 0
je 0x40730e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x407254
dec ebx
cmp byte [ebx], 0x2e
je 0x407263
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x407253
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40730e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4072a0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40730e
cmp byte [ebp - 0xd], 0
je 0x40730e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40730e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409e88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409eda
test eax, edx
je 0x409edd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409e9d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409ec3
add ecx, 4
js 0x409eb3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409ec0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409ee9
test edx, edx
jne 0x409e90
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405b24
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ad7a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40ad9b
cmp ebx, 3
je 0x40ad9b
cmp ebx, 0x7b
je 0x40ad9b
mov eax, esi
call fcn.0040ad1c
test al, al
jne 0x40ad9f
xor eax, eax
jmp 0x40ada1
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405b24
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40adbd
test al, 0x10
jne 0x40adc1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40ed04
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 0x40ed3d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405784
jmp 0x40ed46
mov eax, ebx
mov edx, esi
call fcn.004056e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ed50
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 0x40ed72
movzx eax, byte [esp]
jmp 0x40ed74
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f404
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40f27c
mov eax, dword [0x5558fc]
cmp byte [eax], 0
je 0x40f480
mov eax, dword [0x555428]
call fcn.00403a20
call fcn.00403130
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.0040b5f4
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 0x40f4c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f4b6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x555368]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5587f8]
call fcn.00406ecc
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