joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6399b7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x719dd4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x6f8490
push esi
call fcn.00652201
pop ecx
pop ecx
test eax, eax
jne 0x6399e5
xor al, al
jmp 0x639a62
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.006396bb
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x639a1f
push dword [ebp - 0x210]
call fcn.0063606e
xor al, al
jmp 0x639a60
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x639a25
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x639a45
push edx
call fcn.006398ed
pop ecx
test al, al
je 0x639a10
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x639a53
mov bl, 1
push dword [ebp - 0x210]
call fcn.0063606e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0063024e
leave
ret
Function at 0x6462db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00630a80
mov eax, dword [0x719dd4]
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.0064b48e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x64631d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x646479
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00630b70
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 + 0x721910]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0064b283
mov ecx, dword [esi*4 + 0x721910]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x646472
cmp eax, dword [edi + ecx + 0x24]
jne 0x646472
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x646472
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0064b283
add esp, 0x14
test edx, edx
jl 0x646472
jg 0x6463e8
test eax, eax
jb 0x646472
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x646472
jl 0x646402
cmp dword [ebp - 0x1008], eax
ja 0x646472
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x646420
test ebx, ebx
je 0x646459
cmp ecx, edi
jae 0x646459
mov al, byte [ecx]
cmp al, 0xd
jne 0x64643a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x646446
cmp byte [ecx + 1], 0xa
jne 0x646446
inc ecx
jmp 0x646446
movzx eax, al
movsx eax, byte [eax + 0x719fb0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x646420
cmp edx, ebx
jne 0x646420
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x646477
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0063024e
leave
ret
Function at 0x64ea6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x721910]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x64eaaf
cmp byte [ebx], 0xa
jne 0x64eaaf
or byte [eax + edi + 0x28], 4
jmp 0x64eab4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x64ebb2
mov al, byte [edx]
cmp al, 0x1a
je 0x64eb94
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x64eae3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x64eb08
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x64eb12
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x64eac5
jmp 0x64ebb2
push 0
lea eax, [ebp - 0xc]
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 0x64eb8f
cmp dword [ebp - 0xc], 0
je 0x64eb8f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x721910]
test byte [eax + edi + 0x28], 0x48
je 0x64eb69
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x64eb54
mov byte [esi], dl
jmp 0x64eb65
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x721910]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x64ebb2
cmp byte [ebp - 1], 0xa
jne 0x64eb78
cmp esi, ebx
jne 0x64eb78
mov byte [esi], 0xa
jmp 0x64ebb1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0064b2a1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x64ebb2
mov byte [esi], 0xd
jmp 0x64ebb1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x721910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x64ebae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x64ebb2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x64ebbb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x721910]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x64ebfe
cmp word [esi], dx
jne 0x64ebfe
or byte [edi + eax + 0x28], 4
jmp 0x64ec03
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x64ed56
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x64ed36
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x64ec45
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x64ec7b
cmp eax, edx
jae 0x64ec87
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x64ec1d
jmp 0x64ed56
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x64ed32
cmp dword [ebp - 0x14], 0
je 0x64ed32
mov eax, dword [ebx*4 + 0x721910]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x64ed0a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x64ecd3
mov word [esi], cx
jmp 0x64ed06
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x721910]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x721910]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x721910]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x64ed56
pop ebx
cmp word [ebp - 4], bx
jne 0x64ed1b
cmp esi, dword [ebp + 0xc]
jne 0x64ed1b
mov word [esi], bx
jmp 0x64ed53
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0064b2a1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x64ed56
push 0xd
jmp 0x64ed4f
mov ecx, dword [ebx*4 + 0x721910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x64ed4d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x64ed56
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x651d5c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00651bcd

Function at 0x65273f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6fea54
push 0x6fea4c
push str.FlsAlloc
push 0x1e
call fcn.0065256c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x652773
push dword [ebp + 8]
mov ecx, esi
call dword [0x667894]
call esi
jmp 0x652779
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x6527bd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6fea64
push 0x6fea5c
push str.FlsGetValue
push 0x20
call fcn.0065256c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6527f4
push dword [ebp + 8]
mov ecx, esi
call dword [0x667894]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x65bfaa
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x719dd4]
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 0x65bff5
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0065c149
test al, al
jne 0x65bfef
sub edx, 2
cmp edx, edi
jne 0x65bfd5
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x65c017
lea eax, [edi + 2]
cmp edx, eax
je 0x65c017
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0065bef6
add esp, 0x10
jmp 0x65c111
push esi
lea ecx, [ebp - 0x255]
call fcn.0065c149
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 0x65c05a
push dword [ebp - 0x25c]
jmp 0x65c007
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 0x65c097
cmp word [ebp - 0x226], 0
je 0x65c0b8
cmp word [ebp - 0x226], ax
jne 0x65c097
cmp word [ebp - 0x224], 0
je 0x65c0b8
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0065bef6
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x65c104
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x65c071
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x65c0ec
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x65c111
push 0x65bd26
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00647a50
add esp, 0x10
jmp 0x65c0e1
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.0063024e
leave
ret
Function at 0x65c24f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x65c2ec
push ebx
push esi
call fcn.0065c218
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00658b72
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x65c299
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x65c2eb
push edi
push eax
call fcn.006521b3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x65c2b9
call fcn.00650ec4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x65c2ea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00658b72
add esp, 0x20
test eax, eax
jne 0x65c2d8
push edi
call fcn.00650ec4
jmp 0x65c2e0
push ebx
call fcn.00650ec4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x65c2ef
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x65c300
pop esi
ret
push ebx
push edi
push esi
call fcn.0065c218
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.006521b3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x65c328
push ebx
push esi
push edi
call fcn.00632120
add esp, 0xc
push 0
call fcn.00650ec4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x65ca74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065c59b
Function at 0x65d302
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0065d27e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x65d47a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x65d47a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x65d429
jg 0x65d35b
test eax, eax
je 0x65d41f
push 1
push 0x1000
call fcn.0065337c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x65d381
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x65d416
push 0x8000
push ebx
call fcn.0064b630
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x65d3ad
jg 0x65d3a8
cmp ecx, 0x1000
jb 0x65d3ad
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0064fcd5
add esp, 0x10
cmp eax, 0xffffffff
je 0x65d3f2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x65d3a8
jl 0x65d3d9
test ecx, ecx
jne 0x65d39a
push dword [ebp - 0xc]
push ebx
call fcn.0064b630
push esi
call fcn.00650ec4
add esp, 0xc
xor edi, edi
jmp 0x65d48b
cmp byte [edi + 0x24], 0
je 0x65d409
cmp dword [edi + 0x20], 5
jne 0x65d409
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x65d414
mov edi, dword [edi + 0x18]
jmp 0x65d416
xor edi, edi
push esi
call fcn.00650ec4
pop ecx
jmp 0x65d48b
test ecx, ecx
jg 0x65d3eb
jl 0x65d429
test eax, eax
jae 0x65d3eb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0064b2a1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x65d44c
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x65d3eb
jmp 0x65d483
push ebx
call fcn.00652f03
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x65d3eb
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x65d48b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x65d488
mov edi, dword [edi + 0x18]
jmp 0x65d48b
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0064b2a1
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411539
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x42c668
call fcn.00411d81
push 1
call fcn.00411884
pop ecx
test al, al
jne 0x411558
push 7
call fcn.00411b88
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041184f
mov byte [ebp - 0x24], al
mov eax, dword [0x42ed34]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x411551
test eax, eax
jne 0x4115c2
mov dword [0x42ed34], ecx
push 0x4252c0
push 0x4252a4
call fcn.0041a3ca
pop ecx
pop ecx
test eax, eax
je 0x4115a5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4116a9
push 0x4252a0
push 0x425298
call fcn.0041a36e
pop ecx
pop ecx
mov dword [0x42ed34], 2
jmp 0x4115c7
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004119e1
pop ecx
call fcn.00411b7c
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4115f7
push esi
call fcn.00411954
pop ecx
test al, al
je 0x4115f7
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00411d7b
call esi
call fcn.00411b82
mov esi, eax
cmp dword [esi], edi
je 0x411615
push esi
call fcn.00411954
pop ecx
test al, al
je 0x411615
push dword [esi]
call fcn.0041a68c
pop ecx
push edi
call fcn.00414a0f
pop ecx
call fcn.00411c9d
movzx eax, ax
push eax
call fcn.0041a31b
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call fcn.00414aab
pop ecx
call fcn.0041a59b
test al, al
jne 0x41164e
push esi
call fcn.0041a6c4
test bl, bl
jne 0x411657
call fcn.0041a667
push edi
push 1
call fcn.004119fe
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4116a9
call fcn.00411dc7
ret
call fcn.00563000
jmp 0x411539
Function at 0x410794
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004034f8
xor eax, eax
push ebp
push 0x4108f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x20
call fcn.004027ec
mov eax, dword [ebp - 4]
call fcn.00403508
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4108d8
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x2000
mov eax, dword [ebp - 0x14]
call fcn.0040248c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4108bf
cmp eax, 0xea
jne 0x41085d
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004024cc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
jne 0x4108d8
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
dec esi
or esi, esi
jl 0x4107f6
inc esi
mov eax, dword [ebx]
call fcn.00403bb4
inc eax
push eax
mov eax, ebx
mov ecx, 1
mov edx, dword [0x407e4c]
call fcn.00403d70
add esp, 4
mov eax, dword [ebx]
call fcn.00403bbc
mov edx, dword [ebx]
lea eax, [edx + eax*4]
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [edi + 0x14]
add edx, 2
call fcn.004032c0
mov ecx, dword [ebp - 0x3c]
mov edx, 0x410910
pop eax
call fcn.00403354
add edi, 0x20
dec esi
jne 0x41086d
jmp 0x4107f6
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x4108d8
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
call fcn.004024ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4108fd
lea eax, [ebp - 0x3c]
call fcn.00403174
lea eax, [ebp - 4]
call fcn.00403174
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cc40
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cc68
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x8da6d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8da6da
ret