joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4158ab
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040b697
xor ebx, ebx
cmp dword [0x423fd4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x415981
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415a61
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x415a61
push eax
call fcn.0040b629
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423fd4], eax
call esi
push eax
call fcn.0040b629
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423fd8], eax
call esi
push eax
call fcn.0040b629
mov dword [0x423fdc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040b34a
test eax, eax
pop ecx
pop ecx
je 0x41594f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406efc
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x415981
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040b629
cmp eax, ebx
pop ecx
mov dword [0x423fe4], eax
je 0x415981
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b629
pop ecx
mov dword [0x423fe0], eax
mov eax, dword [0x423fe0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x415a06
cmp dword [0x423fe4], ecx
je 0x415a06
push eax
call fcn.0040b6a0
push dword [0x423fe4]
mov esi, eax
call fcn.0040b6a0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x415a06
cmp edi, ebx
je 0x415a06
call esi
cmp eax, ebx
je 0x4159d3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4159d3
test byte [ebp - 0x18], 1
jne 0x415a06
lea eax, [ebp - 0x10]
push eax
call fcn.0040b381
test eax, eax
pop ecx
je 0x4159ee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406efc
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4159fd
or dword [ebp + 0x10], 0x200000
jmp 0x415a41
or dword [ebp + 0x10], 0x40000
jmp 0x415a41
mov eax, dword [0x423fd8]
cmp eax, dword [ebp - 8]
je 0x415a41
push eax
call fcn.0040b6a0
cmp eax, ebx
pop ecx
je 0x415a41
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x415a41
mov eax, dword [0x423fdc]
cmp eax, dword [ebp - 8]
je 0x415a41
push eax
call fcn.0040b6a0
cmp eax, ebx
pop ecx
je 0x415a41
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423fd4]
call fcn.0040b6a0
cmp eax, ebx
pop ecx
je 0x415a61
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415a63
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404db0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x848
mov eax, dword [esp + 0x84c]
mov ecx, dword [0x810668]
mov edx, dword [0x81066c]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
xor ebp, ebp
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call fcn.00404d90
mov ebx, dword [esp + 0x24]
add ebx, 0x23f
cmp dword [0x293320c], 0x14
mov dword [esp + 0x24], ebx
jne 0x404e34
push ebp
lea ecx, [esp + 0x5c]
push ecx
push 0x40492c
lea edx, [esp + 0x50]
xor eax, eax
push edx
push ebp
push ebp
mov word [esp + 0x5c], ax
mov dword [esp + 0x5e], eax
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
mov word [esp + 0x6a], ax
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov eax, dword [0x810670]
mov ecx, dword [0x810674]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x18], 2
add dword [esp + 0x18], 3
mov ecx, dword [0x293320c]
mov eax, edi
shl eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0xc
jne 0x404e9f
xor edx, edx
xor eax, eax
mov word [esp + 0x2e], ax
lea ecx, [esp + 0x54]
push ecx
mov word [esp + 0x30], dx
mov edx, dword [esp + 0x30]
push edx
push ebp
lea eax, [esp + 0x64]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x293320c]
add eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
cmp ecx, 0xfa9
jne 0x404ebb
mov dword [0x2933208], 0xedeb2e40
jmp 0x404ec9
cmp ecx, 0x3eb
jne 0x404ec9
mov dword [0x2933178], ebp
lea ecx, [ebx + edi]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov dword [0x2933204], 0xf4ea3dee
mov dword [esp + 0x28], edx
call fcn.00404da0
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x293320c], 0x9e6
jne 0x404f14
push 0x404940
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [esp + 0x10]
xor dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], 0x64
sub dword [esp + 0x14], eax
sub dword [esp + 0x14], 0x64
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.00404d80
mov ecx, dword [esp + 0x34]
add dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
shr esi, cl
add esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x293320c], 0x121
jne 0x404f8b
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
mov eax, dword [esp + 0x10]
xor eax, esi
add ebx, 0x61c88647
sub edi, eax
sub dword [esp + 0x30], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
jne 0x404e4f
mov eax, dword [esp + 0x85c]
mov edx, dword [esp + 0x14]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov dword [eax + 4], edx
pop ebx
add esp, 0x848
ret 4
Function at 0x40690b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80f668]
jne 0x406915
repz ret
jmp fcn.0040c90c

Function at 0x40fe0e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c265
and dword [ebp - 4], 0
cmp dword [0x811660], 0
mov ebx, eax
jne 0x40febf
push 0x403e44
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ff70
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e38
push edi
call esi
test eax, eax
je 0x40ff70
push eax
call fcn.0040c1f3
mov dword [esp], 0x403e28
push edi
mov dword [0x811660], eax
call esi
push eax
call fcn.0040c1f3
mov dword [esp], 0x403e14
push edi
mov dword [0x811664], eax
call esi
push eax
call fcn.0040c1f3
mov dword [esp], 0x403df8
push edi
mov dword [0x811668], eax
call esi
push eax
call fcn.0040c1f3
pop ecx
mov dword [0x811670], eax
test eax, eax
je 0x40febf
push 0x403de0
push edi
call esi
push eax
call fcn.0040c1f3
pop ecx
mov dword [0x81166c], eax
mov eax, dword [0x81166c]
cmp eax, ebx
je 0x40ff17
cmp dword [0x811670], ebx
je 0x40ff17
push eax
call fcn.0040c26e
push dword [0x811670]
mov esi, eax
call fcn.0040c26e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ff17
test edi, edi
je 0x40ff17
call esi
test eax, eax
je 0x40ff0e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ff0e
test byte [ebp - 0xc], 1
jne 0x40ff17
or dword [ebp + 0x10], 0x200000
jmp 0x40ff50
mov eax, dword [0x811664]
cmp eax, ebx
je 0x40ff50
push eax
call fcn.0040c26e
pop ecx
test eax, eax
je 0x40ff50
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ff50
mov eax, dword [0x811668]
cmp eax, ebx
je 0x40ff50
push eax
call fcn.0040c26e
pop ecx
test eax, eax
je 0x40ff50
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x811660]
call fcn.0040c26e
pop ecx
test eax, eax
je 0x40ff70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ff72
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402531
Capabilities:
Terminate process

Disassembly:
jmp 0x43e6d1
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x43e6e2
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004038d2
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4025bd
Capabilities:
Query environment variable

Disassembly:
jmp 0x441b7e
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x441b8f
pop esi
ret
push ebx
push edi
push esi
call fcn.00441a65
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402ab8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x441bb7
push ebx
push esi
push edi
call fcn.0040379c
add esp, 0xc
push 0
call fcn.00403daa
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40380a
Capabilities:
Parse pe header

Disassembly:
jmp 0x407ca1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407ce0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407ce0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407ce0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407ce0
cmp dword [ecx + 0x74], 0xe
jbe 0x407ce0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4173d9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417418
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417418
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417418
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x417418
cmp dword [ecx + 0x74], 0xe
jbe 0x417418
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43faa8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x473040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43faf3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044005f
test al, al
jne 0x43faed
sub edx, 2
cmp edx, edi
jne 0x43fad3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43fb15
lea eax, [edi + 2]
cmp edx, eax
je 0x43fb15
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043f6a1
add esp, 0x10
jmp 0x43fc0f
push esi
lea ecx, [ebp - 0x255]
call fcn.0044005f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43fb58
push dword [ebp - 0x25c]
jmp 0x43fb05
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43fb95
cmp word [ebp - 0x226], 0
je 0x43fbb6
cmp word [ebp - 0x226], ax
jne 0x43fb95
cmp word [ebp - 0x224], 0
je 0x43fbb6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043f6a1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43fc02
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43fb6f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43fbea
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43fc0f
push 0x43ef87
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004036ac
add esp, 0x10
jmp 0x43fbdf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402225
leave
ret

Function at 0x447829
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00402ca2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x447898
cmp esi, dword [ebp - 4]
je 0x447893
cmp dword [ebp + 0xc], 0
je 0x447893
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x447870
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00447251
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44789a
xor eax, eax
inc eax
jmp 0x44789a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45800b
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 + 0x4751b0]
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 0x45804b
cmp byte [ebx], 0xa
jne 0x45804b
or byte [edi + eax + 0x28], 4
jmp 0x458050
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 0x45814f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x458132
inc eax
cmp dl, 0xd
je 0x45807c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4580a2
cmp eax, ecx
jae 0x4580b0
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 0x458064
jmp 0x45814f
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 0x45812d
cmp dword [ebp - 0x10], 0
je 0x45812d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4751b0]
test byte [eax + edi + 0x28], 0x48
je 0x458107
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4580f2
mov byte [esi], dl
jmp 0x458103
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4751b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45814f
cmp byte [ebp - 1], 0xa
jne 0x458116
cmp esi, ebx
jne 0x458116
mov byte [esi], 0xa
jmp 0x45814e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040150a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45814f
mov byte [esi], 0xd
jmp 0x45814e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4751b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45814c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45814f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4581ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4751b0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4581f1
cmp word [ebx], dx
jne 0x4581f1
or byte [eax + edi + 0x28], 4
jmp 0x4581f6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x458359
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x458339
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x458237
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45826d
cmp eax, edx
jae 0x45827b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x458212
jmp 0x458359
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458334
cmp dword [ebp - 0x18], 0
je 0x458334
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4751b0]
test byte [eax + edi + 0x28], 0x48
je 0x45830a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4582ce
mov word [esi], cx
jmp 0x458305
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4751b0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4751b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4751b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x458359
pop eax
cmp word [ebp - 4], ax
jne 0x45831a
cmp esi, ebx
jne 0x45831a
mov word [esi], ax
jmp 0x458356
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040150a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x458359
push 0xd
pop eax
jmp 0x458315
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4751b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x458353
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x458359
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x7a66c6c
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x21cd244b
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40b610
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b3d4]
jne 0x40b61a
repz ret
jmp fcn.004127fc

Function at 0x4184ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b3d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040fe30
and dword [ebp - 0x14], 0
cmp dword [0x51df34], 0
mov dword [ebp - 0x18], eax
jne 0x41855f
push 0x403854
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418607
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403848
push ebx
call edi
test eax, eax
je 0x418607
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403838
push ebx
mov dword [0x51df34], eax
call edi
push eax
call esi
push 0x403824
push ebx
mov dword [0x51df38], eax
call edi
push eax
call esi
push 0x403808
push ebx
mov dword [0x51df3c], eax
call edi
push eax
call esi
mov dword [0x51df44], eax
test eax, eax
je 0x41855f
push 0x4037f0
push ebx
call edi
push eax
call esi
mov dword [0x51df40], eax
mov eax, dword [0x51df40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4185b8
cmp dword [0x51df44], ecx
je 0x4185b8
push eax
call esi
push dword [0x51df44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4185b8
test ebx, ebx
je 0x4185b8
call edi
test eax, eax
je 0x4185af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4185af
test byte [ebp - 8], 1
jne 0x4185b8
or dword [ebp + 0x10], 0x200000
jmp 0x4185eb
mov eax, dword [0x51df38]
cmp eax, dword [ebp - 0x18]
je 0x4185eb
push eax
call esi
test eax, eax
je 0x4185eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4185eb
mov eax, dword [0x51df3c]
cmp eax, dword [ebp - 0x18]
je 0x4185eb
push eax
call esi
test eax, eax
je 0x4185eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x51df34]
call esi
test eax, eax
je 0x418607
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418609
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b610
leave
ret
Function at 0x422b50
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1404
call fcn.00421ea0
cmp dword [0x8becb8], 0x37
jne 0x422c01
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4044d0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4044f0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x404]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push 0
lea eax, [esp + 0xc08]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ecx, dword [0x8becbc]
mov eax, dword [0x8bb128]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1404
ret