joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58d100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
lea eax, [ebx + 0x210]
push edi
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x304]
dec edi
js 0x58d158
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 0x300]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x58d14f
mov eax, dword [esi + 0x78]
test eax, eax
je 0x58d14f
mov eax, dword [eax + 0x3c]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x58d154
dec edi
jns 0x58d129
jmp 0x58d158
mov dword [esp + 0x10], esi
mov edx, dword [ebx + 0x208]
lea ecx, [ebx + 0x208]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x58d180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bfbc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esi + 0x210]
mov byte [esp + 0x30], 1
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x2f0]
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc], eax
jle 0x58d2ad
push ebx
push ebp
push edi
mov ecx, dword [esi + 0x2ec]
xor ebp, ebp
mov ebx, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
jle 0x58d297
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx + ebp*4]
lea edi, [eax + 0x404]
mov eax, dword [eax + 0x404]
cmp dword [eax - 8], 6
jne 0x58d283
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x58d283
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jle 0x58d278
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x28]
call fcn.0041ac50
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
mov byte [esp + 0x3c], 1
test eax, eax
lea ecx, [esp + 0x14]
je 0x58d2f1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x58d237
push edi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov eax, dword [ebx + 0x20]
inc ebp
cmp ebp, eax
jl 0x58d1f8
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x2f0]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x58d1e2
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x208]
lea ecx, [esi + 0x208]
call dword [edx + 0x1c]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 4]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.00592bb2
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
call sub.MFC42.DLL_CString::CString
jmp 0x58d283
Function at 0x58d740
Capabilities:
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bfca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esp
push 1
push eax
call fcn.004ec960
add esp, 8
push str.AutoUpdate.exe.new
lea ecx, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 4], 0
call sub.MFC42.DLL_operator_3
mov bl, 2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [ebp - 0x14]
push 0
push edx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x58d7b8
mov byte [ebp - 4], bl
jmp 0x58d8dc
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004ec960
add esp, 8
push str.Backup
lea ecx, [ebp - 0x20]
push eax
push ecx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x2c]
push 1
push edx
call fcn.004ec960
add esp, 8
push str.AutoUpdate.exe
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
push 1
push ecx
call fcn.004ec960
add esp, 8
push str.BackupAutoUpdate.exe
lea edx, [ebp - 0x18]
push eax
push edx
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
push eax
call sub.MFC42.DLL_CFile::Remove
push 0
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xc
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::GetBuffer
push 0
lea ecx, [ebp - 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::GetBuffer
push esi
push eax
call sub.MFC42.DLL_CFile::Rename
jmp 0x58d8b1
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00592c8a
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x591240
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [0x635400]
push edi
or ecx, 0xffffffff
mov edx, dword [eax + 0x44]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 2
jbe 0x591282
mov cx, word [edx]
lea edx, [esp]
mov word [esp + 1], ax
push edx
mov word [esp + 4], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x591282
cmp eax, 5
je 0x591282
mov al, 1
pop ecx
ret
xor al, al
pop ecx
ret

Function at 0x591c10
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x591c7c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 8], eax
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x591d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xc8
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
pop ecx
ret
mov al, 1
pop esi
pop ecx
ret

Function at 0x591c90
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebp
je 0x591cba
push 0x442
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 4]
push eax
call edi
mov dword [esi + 4], ebp
mov ecx, dword [esi + 8]
push ecx
call edi
mov edx, dword [esi + 0xc]
mov dword [esi + 8], ebp
push edx
call edi
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], ebp
push eax
call edi
mov dword [esi + 0x10], ebp
mov eax, dword [esi + 0x40]
xor ebx, ebx
cmp eax, ebp
jle 0x591d00
mov ecx, dword [esi + 0x3c]
mov edi, dword [ecx + ebx*4]
cmp edi, ebp
je 0x591cf8
mov ecx, edi
call fcn.00592380
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esi + 0x40]
inc ebx
cmp ebx, eax
jl 0x591cde
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x593a60
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x40
push ebp
mov ebp, ecx
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0x50]
cmp ecx, 1
mov dword [ebp + 0xc], edx
mov byte [ebp + 0x1058], al
jae 0x593a9c
xor al, al
pop ebp
add esp, 0x40
ret 0x10
cmp ecx, 0x38
jbe 0x593aaa
mov ecx, 0x38
mov dword [esp + 0x4c], ecx
push ebx
push esi
mov esi, dword [esp + 0x50]
mov edx, ecx
push edi
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x10]
and ecx, 3
mov dword [esp + 0x54], 0x12
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x12
mov esi, 0x5ce424
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x58]
mov ecx, 0x400
mov esi, 0x5ce46c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
xor esi, esi
mov edi, edx
mov bl, byte [ebp + 0x1058]
xor eax, eax
mov byte [esp + 0x5c], bl
mov dword [esp + 0x60], 4
mov bl, byte [esp + 0x5c]
test bl, bl
je 0x593b1b
xor ebx, ebx
mov bl, byte [ecx]
shl eax, 8
or eax, ebx
inc ecx
jmp 0x593b25
xor ebx, ebx
mov bl, byte [ecx]
or eax, ebx
inc ecx
shl eax, 8
mov ebx, dword [esp + 0x58]
inc esi
cmp esi, ebx
jne 0x593b34
xor esi, esi
lea ecx, [esp + 0x18]
mov ebx, dword [esp + 0x60]
dec ebx
mov dword [esp + 0x60], ebx
jne 0x593b07
mov ebx, dword [edi]
add edi, 4
xor ebx, eax
mov eax, dword [esp + 0x54]
mov dword [edi - 4], ebx
dec eax
mov dword [esp + 0x54], eax
jne 0x593af3
xor edi, edi
mov esi, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00593be0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x12
jb 0x593b60
lea ebx, [ebp + 0x58]
mov dword [esp + 0x5c], 4
xor edi, edi
mov esi, ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00593be0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x100
jl 0x593b94
mov eax, dword [esp + 0x5c]
add ebx, 0x400
dec eax
mov dword [esp + 0x5c], eax
jne 0x593b90
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x40
ret 0x10

Function at 0x594a00
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jle 0x594a2b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x594a1b
pop esi
pop ebx
pop edi
ret
Function at 0x40273c
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.004037f4
test esi, esi
jne 0x402772
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.004038e4
jmp 0x402790
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402650
mov edi, eax
test esi, esi
je 0x402790
cmp dword [ebx], 0
je 0x402790
dec esi
jmp 0x402779
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x402d00
Capabilities:
Query or enumerate registry value

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

Function at 0x403678
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40d044], 0
je 0x4036d9
cmp word [0x40d218], 0xd7b2
jne 0x4036a1
cmp dword [0x40d220], 0
jbe 0x4036a1
mov eax, 0x40d214
call dword [0x40d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40c054
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 0x403700
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40c020], 0
jne 0x4036f5
push 0
push 0x40c074
push 0x40c054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404358
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 0x404588
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4043db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404588
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4043db
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4045a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404464
xor eax, eax
push ebp
push 0x40445d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004041a0
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 0x404442
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4045c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404442
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 0x404464
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 0x40457e
cmp byte [ebp - 0xd], 0
jne 0x4044ab
cmp byte [ebp - 0x12], 0
je 0x40457e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4044c4
dec ebx
cmp byte [ebx], 0x2e
je 0x4044d3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4044c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40457e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404510
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 0x40457e
cmp byte [ebp - 0xd], 0
je 0x40457e
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 0x40457e
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 0x4064f4
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 0x40652d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004038e4
jmp 0x406536
mov eax, ebx
mov edx, esi
call fcn.00403848
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x406be8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406a60
mov eax, dword [0x40c56c]
cmp byte [eax], 0
je 0x406c50
mov eax, dword [0x40c480]
call fcn.00402860
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040594c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x406c98
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406c86
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40c464]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40d710]
call fcn.00404164
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 0x407618
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 0x40767c
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.00403a38
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405820
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407683
lea eax, [ebp - 0xc]
call fcn.004037f4
ret
Function at 0x409860
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403c4c
mov eax, dword [ebp - 8]
call fcn.00403c4c
xor eax, eax
push ebp
push 0x4099e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x4099f4
mov edx, dword [ebp - 4]
call fcn.00403ab0
mov eax, dword [ebp - 0x158]
call fcn.00403c5c
push eax
call sub.kernel32.dll_FindFirstFileA_1
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x4098e2
cmp dword [ebp - 0x10], 0xffffffff
je 0x4099ad
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00403a38
mov ebx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x14]
mov edx, 0x409a00
call fcn.00403ba8
je 0x409986
mov eax, dword [ebp - 0x14]
mov edx, 0x409a0c
call fcn.00403ba8
je 0x409986
test bl, 0x10
je 0x40994f
push dword [ebp - 4]
push dword [ebp - 0x14]
push 0x409a18
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403b24
mov eax, dword [ebp - 0x15c]
mov edx, dword [ebp - 8]
call fcn.00409860
jmp 0x409986
push 1
call sub.kernel32.dll_Sleep
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 0x14]
call fcn.004097ac
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 8]
call fcn.00403ba8
jne 0x409986
mov eax, 0x40ea7c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00403ab0
jmp 0x4099a4
lea eax, [ebp - 0x154]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4098e8
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099e7
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.00403818
lea eax, [ebp - 0x14]
call fcn.004037f4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403818
ret
Function at 0x409f0c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403c4c
xor eax, eax
push ebp
push 0x409ffd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403c5c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x409fd4
xor eax, eax
push ebp
push 0x409fcd
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00408710
mov ebx, eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
sub esi, ebx
sub esi, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00403d3c
push 0
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
call fcn.00403cac
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fd4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00403848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a004
lea eax, [ebp - 0x10]
call fcn.004037f4
lea eax, [ebp - 4]
call fcn.004037f4
ret

Function at 0x40a7b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403c4c
xor eax, eax
push ebp
push 0x40a82d
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 4]
call fcn.00403c5c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x40a817
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a834
lea eax, [ebp - 4]
call fcn.004037f4
ret