joyce8/EMBER2024-capa huggingface dataset:
Function at 0x566c10
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5968d0
push 0x566724
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x71270c], eax
mov eax, dword [0x71270c]
shr eax, 8
and eax, 0xff
mov dword [0x712718], eax
mov ecx, dword [0x71270c]
and ecx, 0xff
mov dword [0x712714], ecx
mov edx, dword [0x712714]
shl edx, 8
add edx, dword [0x712718]
mov dword [0x712710], edx
mov eax, dword [0x71270c]
shr eax, 0x10
and eax, 0xffff
mov dword [0x71270c], eax
call fcn.00570210
test eax, eax
jne 0x566c9f
push 0x1c
call fcn.00566e80
add esp, 4
call fcn.0056f060
test eax, eax
jne 0x566cb2
push 0x10
call fcn.00566e80
add esp, 4
mov dword [ebp - 4], 0
call fcn.0056fe40
call fcn.0056c2a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x713d6c], eax
call fcn.0056fc20
mov dword [0x7126e4], eax
cmp dword [0x7126e4], 0
je 0x566cea
cmp dword [0x713d6c], 0
jne 0x566cf4
push 0xffffffffffffffff
call fcn.005697a0
add esp, 4
call fcn.00401000
call fcn.0056f860
call fcn.00569760
mov ecx, dword [0x713d6c]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x22
jne 0x566d6e
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x22
je 0x566d57
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x566d57
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
push ecx
call fcn.0056f770
add esp, 4
test eax, eax
je 0x566d55
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x566d18
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x22
jne 0x566d6c
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x566d85
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x20
jle 0x566d85
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x566d6e
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
je 0x566da7
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x20
jg 0x566da7
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
jmp 0x566d85
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x30]
and eax, 1
test eax, eax
je 0x566dd0
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
mov dword [ebp - 0x6c], ecx
jmp 0x566dd7
mov dword [ebp - 0x6c], 0xa
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.005697a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x566e38
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x569cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x569d1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00569b00
add esp, 4
or eax, 0xffffffff
jmp 0x569d4c
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x569d4a
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x569d4a
call fcn.00569ba0
mov dword [eax], 0xd
call fcn.00569bb0
mov dword [eax], 5
or eax, 0xffffffff
jmp 0x569d4c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x570300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov dword [ebp - 8], 0
jmp 0x57031e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12
jae 0x570337
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx*8 + 0x5d08e8]
jne 0x570335
jmp 0x570337
jmp 0x570315
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax*8 + 0x5d08e8]
jne 0x5704ea
cmp dword [ebp + 8], 0xfc
je 0x570374
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x5d08ec]
push eax
push 0
push 0
push 0
push 1
call fcn.0056d4e0
add esp, 0x14
cmp eax, 1
jne 0x570374
int3
cmp dword [0x7126ec], 1
je 0x57038f
cmp dword [0x7126ec], 0
jne 0x5703fa
cmp dword [0x5d0244], 1
jne 0x5703fa
cmp dword [0x712c40], 0
je 0x5703b5
mov ecx, dword [0x712c40]
cmp dword [ecx + 0x48], 0xffffffff
je 0x5703b5
mov edx, dword [0x712c40]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x1b4], eax
jmp 0x5703c3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x1b4], eax
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x5d08ec]
push eax
call fcn.00573a80
add esp, 4
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x5d08ec]
push edx
mov eax, dword [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x5704ea
cmp dword [ebp + 8], 0xfc
je 0x5704ea
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x570433
push str._program_name_unknown_
lea edx, [ebp - 0x110]
push edx
call fcn.00576bc0
add esp, 8
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00573a80
add esp, 4
add eax, 1
cmp eax, 0x3c
jbe 0x57047c
lea edx, [ebp - 0x110]
push edx
call fcn.00573a80
add esp, 4
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax - 0x3b]
mov dword [ebp - 0xc], edx
push 3
push 0x596d14
mov eax, dword [ebp - 0xc]
push eax
call fcn.00567210
add esp, 0xc
push str.Runtime_Error__n_nProgram:
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00576bc0
add esp, 8
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x1b0]
push eax
call fcn.00576bd0
add esp, 8
push 0x596c8c
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00576bd0
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x5d08ec]
push eax
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00576bd0
add esp, 8
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
lea edx, [ebp - 0x1b0]
push edx
call fcn.00579ec0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x583f60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x712c04], 0
jne 0x583fb2
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x583f8d
mov dword [0x712c04], 1
jmp 0x583fb2
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x583fab
mov dword [0x712c04], 2
jmp 0x583fb2
xor eax, eax
jmp 0x5840cd
cmp dword [0x712c04], 1
jne 0x583fd6
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x5840cd
cmp dword [0x712c04], 2
jne 0x5840cd
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
jne 0x583ff9
mov ecx, dword [0x712a48]
mov dword [ebp + 0x18], ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58401b
xor eax, eax
jmp 0x5840cd
push 0x64
push str.aw_loc.c
push 2
mov ecx, dword [ebp - 4]
push ecx
call fcn.0050f5f0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x584040
xor eax, eax
jmp 0x5840cd
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x58405c
jmp 0x5840bd
cmp dword [ebp + 0x14], 0
jne 0x584085
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x584083
jmp 0x5840bd
jmp 0x5840aa
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5840aa
jmp 0x5840bd
push 2
mov eax, dword [ebp - 8]
push eax
call fcn.0050f630
add esp, 8
mov eax, dword [ebp - 0xc]
jmp 0x5840cd
push 2
mov ecx, dword [ebp - 8]
push ecx
call fcn.0050f630
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5840e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x712c08], 0
jne 0x584132
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x58410d
mov dword [0x712c08], 1
jmp 0x584132
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x58412b
mov dword [0x712c08], 2
jmp 0x584132
xor eax, eax
jmp 0x584260
cmp dword [0x712c08], 2
jne 0x584156
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x584260
cmp dword [0x712c08], 1
jne 0x584260
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
jne 0x584179
mov ecx, dword [0x712a48]
mov dword [ebp + 0x18], ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58419b
xor eax, eax
jmp 0x584260
push 0xd2
push str.aw_loc.c
push 2
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
call fcn.0050f5f0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5841c5
xor eax, eax
jmp 0x584260
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x5841e1
jmp 0x584250
cmp dword [ebp + 0x14], 0
jne 0x584211
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0x220
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x58420f
jmp 0x584250
jmp 0x58423d
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 0x220
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x58423d
jmp 0x584250
push 2
mov eax, dword [ebp - 8]
push eax
call fcn.0050f630
add esp, 8
mov eax, dword [ebp - 0xc]
jmp 0x584260
push 2
mov ecx, dword [ebp - 8]
push ecx
call fcn.0050f630
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x585a40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x585a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x585a66
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x585a7d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00569b00
add esp, 4
or eax, 0xffffffff
jmp 0x585a7f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x585ae0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x585afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x585b04
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x585b1b
mov ecx, dword [ebp - 4]
push ecx
call fcn.00569b00
add esp, 4
or eax, 0xffffffff
jmp 0x585b1d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401210
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
push edi
push 0x20
push 0x421fe0
push 3
push 0x400
call ebp
movsx eax, byte [0x421fe0]
push eax
call fcn.0040b3c3
movsx ecx, byte [0x421fe1]
push ecx
mov byte [0x421fe0], al
call fcn.0040b3c3
add esp, 8
mov edi, 0x4191b8
mov esi, 0x421fe0
mov ecx, 3
xor edx, edx
mov byte [0x421fe1], al
mov byte [0x421fe2], 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x401275
mov byte [0x421fe1], 0x61
jmp 0x401291
mov edi, 0x4191b4
mov esi, 0x421fe0
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401291
mov byte [0x421fe0], 0x7a
push 0x1d
push 0x421fe3
push 7
push 0x400
mov byte [0x421fe2], 0x5f
call ebp
movsx ecx, byte [0x421fe3]
push ecx
call fcn.0040b2ec
movsx edx, byte [0x421fe4]
push edx
mov byte [0x421fe3], al
call fcn.0040b2ec
add esp, 8
mov byte [0x421fe4], al
xor eax, eax
mov edi, 0x4191b0
mov esi, 0x421fe3
mov ecx, 3
mov byte [0x421fe5], 0
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
pop ebp
mov eax, 0x421fe0
jne 0x4012fa
mov byte [0x421fe4], 0x4e
ret
Function at 0x401b70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x74
push ebx
push edi
mov edx, dword [esp + 0x80]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x64]
mov word [esp + 0x68], ax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push 0x200
push 1
push 0
push 0
push edx
or ebx, 1
push 0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x60], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401bde
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
add esp, 0x74
ret
mov eax, dword [esp + 0x10]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x40
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x20]
push ecx
push 1
call ebp
test eax, eax
je 0x401c6b
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp eax, 1
jne 0x401c58
push eax
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x401c58
lea ecx, [ecx]
cmp dword [esp + 0x28], 0x12
je 0x401c58
lea eax, [esp + 0x24]
push eax
call edi
lea ecx, [esp + 0x24]
push ecx
call ebx
push 1
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
jne 0x401c30
push 0x40
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
push eax
push 1
call ebp
test eax, eax
jne 0x401c16
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401c98
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x74
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x74
ret
Function at 0x403800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, 0x4193b8
mov esi, 0x4238e0
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], 0
je 0x403846
lea ebx, [ebx]
mov cl, byte [eax + 0x4238e0]
mov byte [eax + 0x423ce0], cl
inc eax
test cl, cl
jne 0x403830
jmp 0x4038d3
mov edi, 0x4193b8
mov esi, 0x4234e0
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403873
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x4234e0]
mov byte [eax + 0x423ce0], cl
inc eax
test cl, cl
jne 0x403860
jmp 0x4038d3
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SOFTWAREORACLE
push 0x80000002
mov byte [0x423ce0], 0
call esi
test eax, eax
je 0x4038b2
lea ecx, [esp + 8]
push ecx
push 1
push 0
push str.SOFTWAREWOW6432NODEORACLE
push 0x80000002
call esi
test eax, eax
jne 0x4038d3
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x423ce0
lea eax, [esp + 0x18]
push eax
push 0
push str.inst_loc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, 0x4193b8
mov esi, 0x423ce0
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4038ff
mov eax, dword [esp + 0x18]
mov edx, 0x423ce0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4038f3
jmp 0x40391f
mov edi, 0x423ce0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403905
mov eax, dword [str.logs]
mov cx, word [0x419528]
mov dword [edi], eax
mov word [edi + 4], cx
push 0x423ce0
call fcn.00407570
add esp, 4
test eax, eax
je 0x4039cf
mov eax, dword [esp + 0x24]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403940
mov edi, 0x423ce0
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403950
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403970
mov edi, 0x423ce0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403981
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x423ce0
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4039a0
mov edx, dword [str..log]
mov al, byte [0x419520]
mov dword [edi], edx
push 0x419518
push 0x423ce0
mov byte [edi + 4], al
call fcn.0040b728
add esp, 8
mov dword [0x422914], eax
mov eax, dword [0x422914]
test eax, eax
pop edi
pop esi
jne 0x4039e1
mov byte [0x423ce0], 0
add esp, 0xc
ret
Function at 0x403cd0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 1
push 0
push str.HardwareDescriptionSystemCentralProcessor0
push 0x80000002
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d1b
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.MHz
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret
Function at 0x4062b0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
lea edx, [esp - 0x400]
sub esp, 0x800
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4062c3
mov edx, dword [esp + 0x804]
push esi
mov esi, dword [esp + 0x810]
lea eax, [esp + 0x404]
push eax
push 0x400
lea ecx, [esp + 0xc]
push ecx
push esi
push edx
push str.Oracle
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 4]
test al, al
jne 0x40631a
lea edx, [esp + 4]
mov eax, esi
sub edx, esi
jmp 0x406310
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406310
mov eax, dword [esp + 0x818]
cmp eax, 1
pop esi
je 0x406355
cmp eax, 2
je 0x406355
cmp eax, 3
jne 0x406336
mov byte [esp + 1], 0
mov edx, dword [esp + 0x808]
lea eax, [esp]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406344
add esp, 0x800
ret
mov edx, dword [esp + 0x808]
lea eax, [esp]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406363
add esp, 0x800
ret
Function at 0x406490
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 4]
lea edx, [esp - 0x800]
sub esp, 0x944
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4064a3
mov eax, dword [esp + 0x94c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4064b7
sub eax, edx
mov dword [esp], eax
jne 0x4064db
mov eax, dword [esp + 0x950]
mov cl, byte [0x4193b8]
mov byte [eax], cl
add esp, 0x944
ret
push edi
lea edi, [esp + 0x148]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4064e4
mov cx, word [0x41924c]
mov word [edi], cx
lea edi, [esp + 0x148]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406500
mov edx, dword [0x4193c8]
mov dword [edi], edx
lea edi, [esp + 0x148]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406518
mov word [edi], cx
lea edi, [esp + 0x148]
dec edi
jmp 0x406530
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406530
mov eax, dword [str.jlib]
mov dl, byte [0x4193c4]
mov dword [edi], eax
mov byte [edi + 4], dl
lea edi, [esp + 0x148]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406550
mov word [edi], cx
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x148]
mov byte [esp + eax + 0x548], cl
inc eax
test cl, cl
jne 0x406560
lea edi, [esp + 0x148]
dec edi
jmp 0x406580
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406580
mov eax, dword [0x4192f4]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x154]
push edx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [esp + 0x95c]
mov ebx, eax
cmp ebx, 0xffffffff
mov al, byte [0x4193b8]
mov byte [ebp], al
je 0x406676
push esi
nop
test byte [esp + 0x14], 0x10
jne 0x406646
mov edi, ebp
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4065d0
mov cx, word [0x419d40]
lea eax, [esp + 0x554]
mov word [edi], cx
mov edx, eax
jmp 0x4065f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4065f0
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406600
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x40]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406620
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406630
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4065c0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
dec ebp
mov edi, ebp
pop esi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406665
mov ax, word [0x419d40]
mov word [edi], ax
pop ebp
pop ebx
pop edi
add esp, 0x944
ret
Function at 0x406850
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x800
push esi
mov esi, dword [esp + 0x814]
mov edx, esi
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406867
push 0x4192c8
push esi
call fcn.00406090
mov esi, dword [esp + 0x818]
mov eax, dword [esp + 0x840]
push str.win32
push 0x41924c
push 0x4193bc
push 0x41924c
push esi
push str._s_s_s_s_s
push eax
call fcn.0040b90d
mov ecx, dword [esp + 0x84c]
push str.jlib
push 0x41924c
push esi
push str._s_s_s
push ecx
call fcn.0040b90d
mov edx, dword [esp + 0x844]
mov edi, dword [esp + 0x85c]
push str.jlib
push 0x41924c
push edx
push str._s_s_s
push edi
call fcn.0040b90d
mov eax, dword [esp + 0x860]
mov ecx, dword [esp + 0x878]
add esp, 0x4c
push str.jlib
push 0x41924c
push eax
push str._s_s_s
push ecx
call fcn.0040b90d
mov esi, dword [esp + 0x834]
mov edx, dword [esp + 0x844]
push 1
push esi
push edi
push edx
push str.HLP_LOCATION
call fcn.004062b0
mov eax, dword [esp + 0x85c]
push 1
push esi
push edi
push eax
push str.EWT_LOCATION
call fcn.004062b0
mov ecx, dword [esp + 0x878]
push 2
push esi
push 0x4193b8
push ecx
push str.SOURCE
call fcn.004062b0
add esp, 0x50
lea ecx, [esp + 0x408]
pop edi
mov eax, esi
sub ecx, esi
pop esi
nop
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x406970
lea edx, [esp + 0x400]
push edx
push 0x400
lea eax, [esp + 8]
push eax
push str.TRUE
push str.NLS_ENABLED
push str.Oracle
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp]
test al, al
jne 0x4069be
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + str.TRUE]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x4069b0
mov edx, dword [esp + 0x838]
lea eax, [esp]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4069d0
add esp, 0x800
ret