joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4589a2
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov dword [ebp - 4], 1
push 0x4e3340
call fcn.004676c0
add esp, 4
mov ecx, 0x104
sub ecx, eax
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4e3344
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004677d0
add esp, 8
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x458a13
mov eax, 1
jmp 0x458b1d
push 0x4e3348
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00468e90
add esp, 8
test eax, eax
je 0x458a43
push 0x4e334c
lea edx, [ebp - 0x11c]
push edx
call fcn.00468e90
add esp, 8
test eax, eax
jne 0x458a48
jmp 0x458ae2
lea eax, [ebp - 0x11c]
push eax
call fcn.004676c0
add esp, 4
mov ecx, 0x104
sub ecx, eax
sub ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4e3350
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004677d0
add esp, 8
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x24c]
push eax
call fcn.004677d0
add esp, 8
mov ecx, dword [ebp - 0x148]
and ecx, 0x10
test ecx, ecx
je 0x458aca
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004589a2
add esp, 8
test eax, eax
jne 0x458ac8
mov dword [ebp - 4], 0
jmp 0x458ae2
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x458ae2
mov dword [ebp - 4], 0
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x458a13
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x458b1a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x458b30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0xffffffff
mov dword [0x4e6e60], 1
call sub.WINDCS32.dll_Ordinal_52
push eax
push 0
push 0xffffffffffffffff
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._sTEXTE._1.1iMENUAPPL.INI
push 0x4e6e64
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x14], 0
jmp 0x458b7c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x16
jge 0x458bc1
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x4e3370
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4e6e64
push 0xffffffffffffffff
push 0x4e337c
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x14]
mov dword [edx*4 + 0x4e6eb4], eax
jmp 0x458b73
mov eax, dword [ebp - 0x14]
mov dword [0x4e6f0c], eax
mov esp, ebp
pop ebp
ret
Function at 0x458bcd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push 0x4e3380
mov eax, dword [ebp + 0x10]
push eax
call fcn.004734b0
add esp, 8
test eax, eax
jne 0x458c00
cmp dword [0x4e6e60], 0
jne 0x458bfe
push 0x4e3384
call fcn.00458b30
add esp, 4
jmp 0x458c16
cmp dword [0x4e6e60], 0
jne 0x458c16
push 0x4e3388
call fcn.00458b30
add esp, 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
jmp 0x458c45
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [0x4e6f0c]
jge 0x458d56
mov ecx, dword [ebp - 0x58]
cmp dword [ecx*4 + 0x4e6eb4], 0xffffffff
jne 0x458c63
jmp 0x458c3c
mov edx, dword [ebp - 0x58]
add edx, 1
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x4e338c
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4e6e64
push 0x1e
lea edx, [ebp - 0x30]
push edx
push 0x4e6f10
push 0x4e3398
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4e6e64
push 0x1e
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x4e33a0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4e6e64
push 0xffffffffffffffff
push 0x4e33a8
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
push edx
call sub.WINDCS32.dll_Ordinal_53
push eax
call sub.PROD32.DLL_Ordinal_1
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004734b0
add esp, 8
test eax, eax
je 0x458d02
cmp dword [ebp - 0x54], 0
jne 0x458d26
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax*4 + 0x4e6eb4]
push ecx
push 0x401
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InsertMenuA]
jmp 0x458d48
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx*4 + 0x4e6eb4]
push eax
push 0x400
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_InsertMenuA]
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
jmp 0x458c3c
mov esp, ebp
pop ebp
ret
Function at 0x458d5a
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push edi
mov al, byte [0x4e6f14]
mov byte [ebp - 0x90], al
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x98], 1
mov dword [ebp - 0x94], 0
jmp 0x458da3
mov ecx, dword [ebp - 0x94]
add ecx, 1
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
cmp edx, dword [0x4e6f0c]
jge 0x458e3c
mov eax, dword [ebp + 0xc]
and eax, 0xffff
mov ecx, dword [ebp - 0x94]
xor edx, edx
mov dx, word [ecx*4 + 0x4e6eb4]
cmp eax, edx
jne 0x458e37
mov eax, dword [ebp - 0x94]
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x4e33b0
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4e6e64
push 0x81
lea eax, [ebp - 0x90]
push eax
push 0x4e6f18
push 0x4e33bc
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 1
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push 0
push 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x458e3c
jmp 0x458d94
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x467695
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046a6f9
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4676b8
test byte [esp + 8], 2
je 0x4676b8
call fcn.0046a76c
mov dword [eax], 0xd
call fcn.0046a775
mov dword [eax], 5
jmp 0x467691
xor eax, eax
ret
Function at 0x470dfa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4e5cb8
cmp edx, dword [eax]
je 0x470e1c
add eax, 8
inc ecx
cmp eax, 0x4e5d48
jl 0x470e0d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4e5cb8]
jne 0x470f4a
mov eax, dword [0x4e8fcc]
cmp eax, 1
je 0x470f24
test eax, eax
jne 0x470e4d
cmp dword [0x4e51e4], 1
je 0x470f24
cmp edx, 0xfc
je 0x470f4a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x470e84
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004677c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004676c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x470ec7
lea eax, [ebp - 0x1a4]
push eax
call fcn.004676c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cb84c
push edi
call fcn.00467310
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004677c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004677d0
lea eax, [ebp - 0xa0]
push 0x4be3d8
push eax
call fcn.004677d0
push dword [esi + 0x4e5cbc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004677d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00476c44
add esp, 0x2c
pop edi
jmp 0x470f4a
lea eax, [ebp + 8]
lea esi, [esi + 0x4e5cbc]
push 0
push eax
push dword [esi]
call fcn.004676c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x47f62d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x47f64f
cmp dword [edi + 0x3c], 0
jne 0x47f64f
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0049acde
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0047f68e
pop edi
pop esi
pop ebx
ret 8

Function at 0x47f6f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0049acde
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47f723
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0047f748
pop edi
pop esi
pop ebx
ret 8
Function at 0x480dbf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x480df7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00484761
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00484739
jmp 0x480e03
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x482bc1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x482c03
call fcn.0049acde
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x482c03
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x482bfa
xor eax, eax
jmp 0x482c0b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00482c11
pop edi
pop esi
pop ebx
ret 4

Function at 0x49b98c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0049acde
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x49b9c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49b9c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x49b9cd
xor eax, eax
jmp 0x49ba4b
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00484aae
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x49ba05
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x49b9ef
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0049bb50
push ebx
mov edi, eax
call fcn.00484ad7
test edi, edi
pop ecx
je 0x49ba47
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0049b8a2
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0049ba50
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4a95d0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4a95f8
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4a9609
push 2
call edi
test ax, ax
jge 0x4a9609
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004803c8
cmp dword [esi + 0x30], ebx
jne 0x4a96e3
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004803c8
cmp eax, dword [esp + 0x34]
jne 0x4a96e3
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4a967f
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4a96c4
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4a96e3
cmp eax, 0x205
je 0x4a96e3
cmp eax, 0x201
je 0x4a96e3
cmp eax, 0x204
je 0x4a96e3
cmp eax, ebx
jne 0x4a96aa
cmp dword [esp + 0x1c], 0x1b
je 0x4a96e3
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x4e8fa0]
jbe 0x4a96d9
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4a963c
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40307c
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 0x4030b8
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 0x4030d8
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405528
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403310
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.004052b8
test esi, esi
jne 0x403346
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.004053a8
jmp 0x403364
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403214
mov edi, eax
test esi, esi
je 0x403364
cmp dword [ebx], 0
je 0x403364
dec esi
jmp 0x40334d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4042cc
Capabilities:
Query or enumerate registry value

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

Function at 0x405064
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49104c], 0
je 0x4050c5
cmp word [0x491220], 0xd7b2
jne 0x40508d
cmp dword [0x491228], 0
jbe 0x40508d
mov eax, 0x49121c
call dword [0x491238]
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 0x4050ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x461030], 0
jne 0x4050e1
push 0
push 0x461788
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40523c
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 [0x461038], 0
je 0x405262
mov edx, esi
mov eax, ebx
call dword [0x461038]
jmp 0x405271
mov eax, 8
call fcn.00402ea0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405204
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 0x406bfc
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 0x406e2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c7f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c7f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406d08
xor eax, eax
push ebp
push 0x406d01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406a38
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 0x406ce6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406e68
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406ce6
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 0x406d08
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 0x406e22
cmp byte [ebp - 0xd], 0
jne 0x406d4f
cmp byte [ebp - 0x12], 0
je 0x406e22
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406d68
dec ebx
cmp byte [ebx], 0x2e
je 0x406d77
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406d67
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406e22
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406db4
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 0x406e22
cmp byte [ebp - 0xd], 0
je 0x406e22
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 0x406e22
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 0x409158
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4091aa
test eax, edx
je 0x4091ad
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40916d
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 0x409193
add ecx, 4
js 0x409183
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409190
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 0x4091b9
test edx, edx
jne 0x409160
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405764
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409aad
test al, 0x10
je 0x409ab1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c6d0
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 0x40c709
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004053a8
jmp 0x40c712
mov eax, ebx
mov edx, esi
call fcn.0040530c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cdd0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc48
mov eax, dword [0x490b8c]
cmp byte [eax], 0
je 0x40ce4c
mov eax, dword [0x4909d4]
call fcn.00403750
call fcn.00402ffc
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.00409dac
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 0x40ce94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ce82
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x490990]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4937f8]
call fcn.004069e0
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