joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f7c4
Capabilities:
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0x104
push edi
push 4
pop edi
test bl, 0x10
je 0x40f7eb
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x40f810
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp + 0x10]
and ebx, 0xf
mov ecx, dword [ebp + ebx*4 - 0x48]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x40f925
push esi
sub ebx, 0
je 0x40f88a
sub ebx, 1
je 0x40f87a
sub ebx, 1
je 0x40f855
sub ebx, 1
je 0x40f840
sub ebx, 0xd
je 0x40f83b
sub ebx, 1
je 0x40f836
xor eax, eax
jmp 0x40f924
mov eax, dword [ebp - 0x14]
jmp 0x40f84b
mov eax, dword [ebp - 0x10]
jmp 0x40f84b
mov eax, dword [0x450a18]
mov eax, dword [eax + 0x37c]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40f91d
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp + 8]
push eax
push esi
call fcn.00408dde
push dword [ebp + 8]
call fcn.00423290
add esp, 0xc
jmp 0x40f8f8
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x40f863
mov esi, dword [ebp + 0x10]
push str.Windows
push esi
call fcn.00421850
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
mov ecx, 0x43db80
mov eax, 0x43db84
test ebx, ebx
cmovs ecx, eax
push ecx
push esi
call fcn.00421860
mov eax, ebx
shr eax, 8
movzx eax, al
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0xc8]
push str._ver_d._d
push eax
call fcn.00401b4a
lea eax, [ebp - 0xc8]
push eax
push esi
call fcn.00421860
lea eax, [ebp + 8]
push eax
push esi
call fcn.00408dde
push dword [ebp + 8]
call fcn.00423290
add esp, 0x2c
mov edi, eax
cmp esi, dword [ebp + 8]
je 0x40f910
push edi
push dword [ebp + 8]
push esi
call fcn.0041e5f0
add esp, 0xc
mov byte [edi + esi], 0
lea eax, [ebp + 8]
push eax
call fcn.00408deb
pop ecx
push 2
pop edi
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [ecx], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x412786
Capabilities:
Log keystrokes

Disassembly:
mov eax, 0x43c7e1
call fcn.0041d4c8
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x450acc]
test byte [eax + 0x30c], 2
je 0x4127fb
cmp dword [esi + 4], 0x200
jne 0x41284a
cmp dword [0x450ae0], 0
movzx ecx, word [esi + 0xc]
movzx eax, word [esi + 0xe]
jne 0x4127f0
cmp dword [0x450ae4], ecx
jne 0x412879
cmp dword [0x450ae8], eax
jne 0x412879
jmp 0x4127fb
mov dword [0x450ae4], ecx
mov dword [0x450ae8], eax
cmp dword [esi + 4], 0x100
jne 0x41283b
cmp dword [esi + 8], 9
jne 0x41280f
call fcn.00412236
push 2
call fcn.0040568e
pop ecx
test eax, eax
je 0x41283b
push dword [esi + 0xc]
and dword [ebp - 4], 0
push dword [esi + 8]
push 2
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.00405857
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
cmp dword [esi + 4], 0x100
jne 0x41283b
cmp dword [0x450ae0], 0
jne 0x4127fb
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x44c354
jmp 0x412885
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0x44c354
push eax
call fcn.0041ed4c
int3
Function at 0x412cfe
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xec], 9
je 0x412e3d
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x412d4b
cmp dword [ebp - 0x18], 0x12
je 0x412ec7
lea eax, [ebp - 0x1c]
push eax
call fcn.00412786
pop ecx
jmp 0x412e30
mov eax, dword [esi + 0xec]
sub eax, 1
je 0x412dc5
sub eax, 1
je 0x412de5
sub eax, 1
je 0x412d8c
push 3
pop ecx
sub eax, ecx
je 0x412ebe
sub eax, 1
je 0x412eb5
sub eax, 1
jne 0x412e43
mov dword [esi + 0xec], ecx
jmp 0x412e30
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [ebp - 0x18], 0x12
je 0x412ec7
lea eax, [ebp - 0x1c]
push eax
call fcn.00412786
cmp dword [esi + 0xec], 3
pop ecx
je 0x412d8c
push 0x4ff
push 0x3e8
jmp 0x412e68
cmp dword [0x44f0b8], 0xffffffff
jne 0x412dd6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x412dd8
call ebx
push eax
call fcn.00404374
pop ecx
mov dword [esi + 0xec], eax
cmp dword [0x44f0b8], 0xffffffff
jne 0x412e48
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
call fcn.00404321
pop ecx
test eax, eax
je 0x412e11
mov ecx, dword [esi + 0xf8]
push 0x4ff
sub ecx, edi
push ecx
jmp 0x412e66
mov eax, dword [0x450acc]
test byte [eax + 0x30c], 2
je 0x412e2e
mov eax, dword [0x450ae0]
test eax, eax
je 0x412e2e
dec eax
mov dword [0x450ae0], eax
xor edi, edi
cmp dword [esi + 0xec], 9
jne 0x412d1f
mov dword [esi + 0xec], edi
pop edi
pop esi
pop ebx
leave
ret
call ebx
lea edi, [eax + 5]
push edi
call fcn.00404321
pop ecx
test eax, eax
je 0x412e7b
mov eax, dword [esi + 0xf8]
push 0x4ff
sub eax, edi
push eax
xor edi, edi
push edi
push edi
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x412e30
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
cmp eax, dword [esi + 0xf8]
jl 0x412e73
mov dword [esi + 0xfc], eax
xor edi, edi
mov eax, dword [0x450acc]
mov dword [esi + 0xec], edi
test byte [eax + 0x30c], 2
je 0x412e30
mov eax, dword [0x450ae0]
test eax, eax
je 0x412e30
dec eax
mov dword [0x450ae0], eax
jmp 0x412e30
mov dword [ebp + 8], 0x2d
jmp 0x412eca
mov dword [ebp + 8], 0xa
jmp 0x412eca
mov dword [ebp + 8], edi
push 0x44c354
lea eax, [ebp + 8]
push eax
call fcn.0041ed4c
int3
Function at 0x4147b6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x18], ecx
push dword [edi + 8]
call esi
cmp dword [edi + 0xc], 0
mov ebx, dword [ebp + 0xc]
jl 0x414847
mov ecx, dword [ebp - 0x18]
push dword [edi + 0xc]
mov ecx, dword [ecx + 0x130]
call fcn.0041641d
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
sub ecx, 1
je 0x414819
sub ecx, 1
je 0x41480f
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 0x16]
jmp 0x414821
movzx ecx, word [edi + 0x18]
movzx edx, word [edi + 0x1a]
jmp 0x414821
movzx ecx, word [edi + 0x1c]
movzx edx, word [edi + 0x1e]
push 0xcc0020
movsx eax, dx
push eax
movsx eax, cx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, 0x200
test word [edi + 2], ax
je 0x414874
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x118]
push eax
push 0xff
push 0xd
push dword [edi + 8]
call esi
push 0
push 0
push 0x31
push dword [edi + 8]
call esi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
push 1
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00408dde
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
lea eax, [ebp - 4]
push eax
call fcn.00408deb
pop ecx
push esi
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x415d4e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push 0x43d420
mov esi, ecx
push eax
push dword [ebp + 8]
mov ebx, dword [esi + 0x40]
call fcn.00408dde
pop ecx
pop ecx
push eax
call fcn.0042159a
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00408deb
add esp, 0xc
test edi, edi
jne 0x415d90
or eax, 0xffffffff
jmp 0x415de2
mov ecx, dword [esi + 0x3c]
mov eax, 0x4d42
mov word [ebp - 0x14], ax
lea eax, [ebx + 0xe]
add eax, ecx
mov dword [ebp - 0x12], eax
lea eax, [ecx + 0xe]
mov dword [ebp - 0xa], eax
xor eax, eax
push edi
push 0xe
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004217e9
push edi
push dword [esi + 0x3c]
push 1
push dword [esi + 0x18]
call fcn.004217e9
push edi
push ebx
push 1
push dword [esi + 0x14]
call fcn.004217e9
push edi
call fcn.00421459
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4169b7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, ecx
call fcn.004162c9
mov eax, dword [edi + 0x324]
and dword [ebp + 8], 0
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x416a09
mov eax, dword [esi + 0x34]
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00415602
push 0x1bc
push esi
call fcn.0041d269
mov eax, dword [edi + 0x324]
pop ecx
pop ecx
push 0
push dword [ebp + 8]
and dword [eax + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1bc
call fcn.0041d239
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x416a45
xor eax, eax
mov dword [esi + 0x1b8], 0xf
mov dword [esi + 0x1a4], eax
mov dword [esi + 0x1b4], eax
mov byte [esi + 0x1a4], al
mov dword [esi], eax
mov dword [esi + 0xc4], eax
jmp 0x416a47
xor esi, esi
mov eax, dword [edi + 0x324]
xor ecx, ecx
inc ecx
mov dword [eax + ebx*4], esi
mov eax, dword [ebp + 0x14]
and eax, ecx
mov dword [esi + 0x44], ecx
push eax
push dword [ebp + 0x10]
mov dword [esi + 0x48], ebx
mov ecx, esi
push dword [ebp + 0xc]
mov dword [esi + 0x130], edi
push dword [ebp + 8]
push dword [edi + 0x320]
call fcn.0041672d
and dword [esi + 0x50], 0
and dword [esi + 0x54], 0
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41b54d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x41b57b
cmp eax, edi
jge 0x41b56f
push esi
call fcn.0041a6d7
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x41b59e
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x41b584
mov dword [esi + 8], edx
jmp 0x41b5b3
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x41b5a9
xor dl, dl
jmp 0x41b5ae
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x41b59e
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x41b5ec
mov dword [0x450b18], str.zlib_corrupt
xor eax, eax
jmp 0x41b631
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x41b601
mov dword [0x450b18], str.read_past_buffer
jmp 0x41b5e8
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x41b61b
push edi
push ecx
push esi
call fcn.0041c8ff
add esp, 0xc
test eax, eax
je 0x41b5e8
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0041e5f0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x41cd68
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429b5f
Function at 0x41cd7f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ecx, esi
and ecx, 1
mov eax, esi
shl ecx, 4
mov ebx, ecx
or ebx, 6
and al, 2
push edi
lea eax, [ebp - 0x140]
cmove ebx, ecx
push eax
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x41cdc3
xor eax, eax
jmp 0x41ce65
and esi, 4
xor eax, eax
mov ecx, ebx
and ecx, dword [ebp - 0x140]
cmp eax, ecx
sbb eax, eax
neg eax
test esi, esi
jne 0x41cde1
xor eax, eax
cmp eax, ecx
sbb eax, eax
inc eax
test eax, eax
je 0x41ce33
mov al, byte [ebp - 0x114]
xor ecx, ecx
test al, al
setne cl
cmp al, 0x2e
jne 0x41ce0f
mov al, byte [ebp - 0x113]
xor edx, edx
test al, al
cmove ecx, edx
cmp al, 0x2e
jne 0x41ce0f
cmp byte [ebp - 0x112], dl
je 0x41ce33
test ecx, ecx
je 0x41ce33
lea eax, [ebp - 0x114]
inc edi
push eax
push dword [ebp + 0xc]
call fcn.0040a6a2
push 0x43d9e8
push dword [ebp + 0xc]
call fcn.0040a6a2
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41cdc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41cdc6
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43265e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004324dd
Function at 0x410aa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..data
lea edi, [esi - 0xd000]
push edi
jmp 0x410aba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410ab0
mov eax, 1
add ebx, ebx
jne 0x410ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410ac8
jne 0x410ae4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410ac8
xor ecx, ecx
sub eax, 3
jb 0x410af8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x410b6a
mov ebp, eax
add ebx, ebx
jne 0x410b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410b10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x410b34
inc ecx
add ebx, ebx
jne 0x410b20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x410b15
jne 0x410b31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410b15
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x410b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x410b45
jmp 0x410ab6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x410b54
add edi, ecx
jmp 0x410ab6
pop esi
mov edi, esi
mov ecx, 0x14a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x410b72
cmp byte [edi], 0
jne 0x410b72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x410b77
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x410be6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11214]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11264]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x410ba4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11268]
or eax, eax
je 0x410be0
mov dword [ebx], eax
add ebx, 4
jmp 0x410bc1
call dword [esi + 0x11278]
mov ebp, dword [esi + 0x1126c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x410c1a
sub esp, 0xffffff80
jmp 0x4050ac

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x6c0a19da
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x264f6e56
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x7a8a0d39
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x703a6eb8
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40915c
nop
mov ecx, 0x12974b63
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..reloc_1
nop
mov ebx, 0x42f3f8
mov ecx, 0x75f05f4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219