joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462358
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x462503
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4624e4
mov dl, 1
mov eax, dword [0x417994]
call fcn.00403c6c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404b9c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4624d3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004538d0
test al, al
je 0x4624c6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x462514
lea eax, [ebp - 0x254]
call fcn.0040ac04
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4624c6
xor eax, eax
push ebp
push 0x4624bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46254c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4624a8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e0c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4624a8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4624c6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4623c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041c3fc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46250a
lea eax, [ebp - 0x260]
call fcn.00404b9c
ret

Function at 0x462e7c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4c5c9c]
cmp byte [eax + 0xad], 0
jne 0x462eed
cmp dword [0x4c5cb8], 0
jne 0x462eae
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462e38
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4c5cb8], eax
cmp dword [0x4c5cb4], 0
jne 0x462ec9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4c5cb4], eax
cmp dword [0x4c5cbc], 0
jne 0x462eed
push esp
push 0
push 0
push 0x462ddc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4c5cbc], eax
pop edx
ret
Function at 0x4630f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x463107
add esp, 0xfffffff0
call fcn.00403fc0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420cd0
mov eax, dword [0x4c010c]
cmp word [eax + 2], 0
jne 0x46312f
mov eax, dword [0x4c010c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464df8
mov eax, dword [0x4c0250]
cmp word [eax + 2], 0
jne 0x463149
mov eax, dword [0x4c0250]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00465004
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417328]
call fcn.00403c6c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417328]
call fcn.00403c6c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x417328]
call fcn.00403c6c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4257c8]
call fcn.0042db50
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x463300
mov eax, dword [0x4bff54]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042df24
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4656c8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4bff54]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ea04
test eax, eax
je 0x463250
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a20c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ea38
test eax, eax
je 0x463264
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404e0c
mov byte [ebx + 0xd4], 0
push ebx
push 0x46486c
call fcn.00421e4c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4bfce4]
cmp byte [eax], 0
jne 0x4632b5
mov eax, ebx
call fcn.00463444
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004658dc
mov eax, ebx
call fcn.00466440
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4632f5
call fcn.00404018
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4636c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x463763
cmp dword [ebx + 0x94], 0
jne 0x46375d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46364c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46375d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x463723
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46375d
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004199f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x463732
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46397c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4c5c9c]
cmp dword [eax + 0x30], 0
je 0x463ad9
test bl, bl
jne 0x463a2a
cmp dword [esi + 0x9c], 0
jne 0x463a1f
mov eax, esi
call fcn.004662bc
push eax
push 0x4638a8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4639f0
mov eax, dword [0x4c5c9c]
call fcn.0046699c
test al, al
je 0x4639f0
mov eax, dword [0x4c5cc0]
call fcn.00405e58
mov edi, eax
cmp edi, 0
jl 0x4639f0
push 0
mov eax, dword [0x4c5cc0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4639da
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x463a1f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004199f8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4639ff
inc dword [esi + 0x9c]
jmp 0x463ad9
cmp dword [esi + 0x9c], 0
jle 0x463ad9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x463ad9
cmp dword [esi + 0x44], 0
je 0x463a85
mov eax, dword [0x4c5c9c]
call fcn.0046699c
test al, al
je 0x463a85
mov eax, dword [0x4c5cc0]
call fcn.00405e58
mov edi, eax
cmp edi, 0
jl 0x463a85
push 5
mov eax, dword [0x4c5cc0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x463a6f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x463ab4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004199f8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x463a94
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4c5cc0
mov ecx, 1
mov edx, dword [0x463888]
call fcn.0040600c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4645c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46462a
mov eax, ebx
call fcn.0046699c
test al, al
jne 0x46462a
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404c8c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x464617
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x464637
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404bf0
jmp 0x464637
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404bf0
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x465ac0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465b2e
mov eax, esi
call fcn.0044e654
test al, al
je 0x465b2e
mov eax, dword [ebx + 0x84]
call fcn.0044e2b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465b2e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x465b22
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044e2b4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044610c
jmp 0x465b2e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004658fc
pop esi
pop ebx
ret

Function at 0x466cb4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x466d23
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00404b9c
lea eax, [ebp - 0x104]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x466d03
lea eax, [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404e0c
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404bf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466d2a
lea eax, [ebp - 4]
call fcn.00404b9c
ret

Function at 0x466d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040501c
xor eax, eax
push ebp
push 0x466dba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00404b9c
lea eax, [ebp - 0x108]
push eax
push 0
push 0x466dc8
mov eax, dword [ebp - 4]
call fcn.0040502c
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jbe 0x466d95
lea eax, [ebp - 8]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00404e0c
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404bf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466dc1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404bc0
ret
Function at 0x466dcc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x466f28
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x4c5cd0]
push dword [0x4c5cd4]
push 0x466f40
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004032d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040a088
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov edx, 0x466f4c
call fcn.00409fc0
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404f30
call fcn.0040bce8
call fcn.00403384
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00409ddc
test al, al
jne 0x466eaf
mov eax, dword [ebp - 4]
call fcn.0040502c
mov ebx, eax
push ebx
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.0040989c
mov eax, dword [ebp - 0x14]
call fcn.0040502c
push eax
push 0x466f54
push 0x466f5c
call sub.kernel32.dll_WritePrivateProfileStringA
push ebx
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.0040989c
mov eax, dword [ebp - 0x18]
call fcn.0040502c
push eax
push 0x466f60
push 0x466f5c
call sub.kernel32.dll_WritePrivateProfileStringA
push ebx
push 0x466f68
push 0x466f6c
push 0x466f70
call sub.kernel32.dll_WritePrivateProfileStringA
xor ebx, ebx
jmp 0x466f0d
mov eax, dword [ebp - 4]
call fcn.0040502c
mov edi, eax
push edi
push 0
push 0x466f6c
push 0x466f70
call sub.kernel32.dll_GetPrivateProfileIntA
test eax, eax
setne bl
test bl, bl
jne 0x466f0d
push edi
push 0
push 0x466f54
push 0x466f5c
call sub.kernel32.dll_GetPrivateProfileIntA
mov ecx, eax
mov eax, esi
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jle 0x466f0d
push edi
push 0x466f74
push 0x466f6c
push 0x466f70
call sub.kernel32.dll_WritePrivateProfileStringA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466f2f
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404bc0
ret

Function at 0x48c054
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48c0eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call fcn.004052bc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040502c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404e5c
test eax, eax
jns 0x48c09b
call fcn.00403b64
push eax
call sub.kernel32.dll_GetTempPathA
test eax, eax
jns 0x48c0aa
call fcn.00403b64
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004052bc
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [0x47050c]
call fcn.0046f628
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00404bf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c0f2
lea eax, [ebp - 0xc]
call fcn.00404b9c
ret
Function at 0x48fef4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48ff65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0048fed0
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0048d4c0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
call fcn.0048cf1c
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ff6c
lea eax, [ebp - 0x14]
call fcn.00404b9c
ret
Function at 0x499af4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x407cc4]
call fcn.0040562c
xor eax, eax
push ebp
push 0x499c95
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bfaf8], 0
jne 0x499b4f
mov ecx, dword [0x4bfd08]
mov dl, 1
mov eax, dword [0x4082f8]
call fcn.0040dbc0
call fcn.00404510
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004035bc
mov eax, ebx
call fcn.004054dc
mov dword [ebp - 0x24], eax
mov esi, 0x499ca4
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004066fc
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004054ec
test eax, eax
jle 0x499c38
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x499c24
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404e0c
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x499bca
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404e24
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x499be0
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404e24
mov eax, dword [ebp - 0x54]
call fcn.0040502c
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404e0c
mov eax, dword [ebp - 0x58]
call fcn.0040502c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x499c26
xor eax, eax
test al, al
je 0x499c31
mov ebx, 0x15
jmp 0x499c3d
mov ebx, 0x10
jmp 0x499c3d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4bfaf8]
call fcn.00499974
mov eax, dword [ebp - 4]
call fcn.00499974
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406714
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499c9c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404bc0
lea eax, [ebp - 0xc]
mov edx, dword [0x407cc4]
call fcn.004056fc
ret

Function at 0x4a18a4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4a18f5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4a18dc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4a18cc
jmp 0x4a18f5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4a18dd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x412c2c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407610
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411873
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412c6e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412dca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c000
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0xab9858]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00413c29
mov ecx, dword [esi*4 + 0xab9858]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x412dc3
cmp eax, dword [ecx + edi + 0x24]
jne 0x412dc3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412dc3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413c29
add esp, 0x14
test edx, edx
jl 0x412dc3
jg 0x412d39
test eax, eax
jb 0x412dc3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412dc3
jl 0x412d53
cmp dword [ebp - 0x1008], eax
ja 0x412dc3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412d71
test ebx, ebx
je 0x412daa
cmp ecx, edi
jae 0x412daa
mov al, byte [ecx]
cmp al, 0xd
jne 0x412d8b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412d97
cmp byte [ecx + 1], 0xa
jne 0x412d97
inc ecx
jmp 0x412d97
movzx eax, al
movsx eax, byte [eax + 0x4272f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412d71
cmp edx, ebx
jne 0x412d71
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412dc8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406931
leave
ret
Function at 0x4130c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xab9858]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413101
cmp byte [ebx], 0xa
jne 0x413101
or byte [edi + eax + 0x28], 4
jmp 0x413106
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x413205
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4131e8
inc eax
cmp dl, 0xd
je 0x413132
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413158
cmp eax, ecx
jae 0x413166
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41311a
jmp 0x413205
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4131e3
cmp dword [ebp - 0x10], 0
je 0x4131e3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xab9858]
test byte [eax + edi + 0x28], 0x48
je 0x4131bd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4131a8
mov byte [esi], dl
jmp 0x4131b9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xab9858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413205
cmp byte [ebp - 1], 0xa
jne 0x4131cc
cmp esi, ebx
jne 0x4131cc
mov byte [esi], 0xa
jmp 0x413204
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413c47
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413205
mov byte [esi], 0xd
jmp 0x413204
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xab9858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413202
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413205
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret