joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100639c8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.1005f550
mov eax, dword [0x100de0c0]
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.100709d4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10063a0a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10063b81
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100835f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1010a590]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10070be3
mov ecx, dword [esi*4 + 0x1010a590]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10063b7a
cmp eax, dword [edi + ecx + 0x24]
jne 0x10063b7a
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x10063b7a
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10070be3
add esp, 0x14
cmp edx, esi
jl 0x10063b7a
jg 0x10063ad5
cmp eax, esi
jb 0x10063b7a
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x10063b7a
jl 0x10063af7
cmp dword [ebp - 0x1008], eax
ja 0x10063b7a
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x10063b1c
cmp ebx, esi
je 0x10063b61
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x10063b61
mov al, byte [ecx]
cmp al, 0xd
jne 0x10063b42
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10063b4e
cmp byte [ecx + 1], 0xa
jne 0x10063b4e
inc ecx
jmp 0x10063b4e
movzx eax, al
movsx eax, byte [eax + 0x100de340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10063b28
cmp edx, ebx
jne 0x10063b28
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x10063b7f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1005e256
leave
ret

Function at 0x1006d42a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1010a590]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10072909
cmp byte [ebx], 0xa
jne 0x10072909
or byte [edi + eax + 0x28], 4
jmp 0x1007290e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10072a11
mov cl, byte [eax]
cmp cl, 0x1a
je 0x100729ec
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x1007293d
mov eax, dword [ebp - 8]
jmp 0x1007295d
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x10072979
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x10072957
add eax, 2
mov cl, 0xa
jmp 0x1007295a
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x1007291f
jmp 0x10072a11
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 0x100729e7
cmp dword [ebp - 0x10], 0
je 0x100729e7
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x1010a590]
test byte [eax + edi + 0x28], 0x48
je 0x100729c6
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x100729b6
mov byte [esi], 0xa
jmp 0x10072a10
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x1010a590]
mov byte [eax + edi + 0x2a], cl
jmp 0x10072a10
cmp byte [ebp - 1], 0xa
jne 0x100729d0
cmp esi, ebx
je 0x100729b1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10070c01
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10072a11
mov byte [esi], 0xd
jmp 0x10072a10
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x1010a590]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x10072a0e
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x10072a11
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10072a1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x1010a590]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10072a5e
push 0xa
pop esi
cmp word [ebx], si
jne 0x10072a5e
or byte [eax + edi + 0x28], 4
jmp 0x10072a63
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x10072bce
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x10072ba6
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x10072ab0
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x10072ada
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x10072af9
push 0xa
pop ebx
cmp word [edx], bx
jne 0x10072ac7
push ebx
add eax, 4
pop edx
jmp 0x10072acf
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x10072a75
jmp 0x10072bce
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 0x10072ba1
cmp dword [ebp - 0x14], 0
je 0x10072ba1
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x1010a590]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x10072b7d
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x10072b45
mov word [esi], ax
jmp 0x10072bcb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x1010a590]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1010a590]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1010a590]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x10072bcb
cmp word [ebp - 4], ax
jne 0x10072b87
cmp esi, ebx
je 0x10072b3d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10070c01
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10072bce
push 0xd
pop eax
jmp 0x10072b3d
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x1010a590]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x10072bc8
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x10072bce
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100763c3
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x100763dd
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x100763f4
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1007644c
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.1007b613
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1007644c
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1007644c
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1007644c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x10076446
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x10076448
xor bl, bl
mov al, bl
jmp 0x1007644e
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x1007ac3d
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 0x1007acda
push ebx
push esi
call fcn.1007ac06
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.10079adb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007ac87
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007acd9
push edi
push eax
call fcn.10074d90
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007aca7
call fcn.100734a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007acd8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10079adb
add esp, 0x20
test eax, eax
jne 0x1007acc6
push edi
call fcn.100734a0
jmp 0x1007acce
push ebx
call fcn.100734a0
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 0x1007d5ed
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10071089
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 0x1007d65c
cmp esi, dword [ebp - 4]
je 0x1007d657
cmp dword [ebp + 0xc], 0
je 0x1007d657
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1007d634
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1007d142
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1007d65e
xor eax, eax
inc eax
jmp 0x1007d65e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1007d6c9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100de0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10071089
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10071089
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1007d740
cmp word [ecx], dx
je 0x1007d740
mov eax, dword [0x1008e204]
push edi
dec eax
push eax
push 0x1008e0f0
call fcn.1007d662
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1007d7b3
cmp word [eax], dx
je 0x1007d7b3
mov eax, dword [edi]
test eax, eax
je 0x1007d764
cmp word [eax], dx
je 0x1007d764
lea eax, [ebp - 0x10]
push eax
call fcn.1007d048
jmp 0x1007d76d
lea eax, [ebp - 0x10]
push eax
call fcn.1007d0e3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1007d7dd
mov eax, dword [0x1008e0ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1008dde0
call fcn.1007d662
add esp, 0xc
test al, al
je 0x1007d7dd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1007d7a8
cmp word [eax], di
je 0x1007d7a8
lea eax, [ebp - 0x10]
push eax
call fcn.1007d048
pop ecx
jmp 0x1007d7df
lea eax, [ebp - 0x10]
push eax
call fcn.1007d0e3
jmp 0x1007d7a5
mov eax, dword [edi]
test eax, eax
je 0x1007d7ca
cmp word [eax], dx
je 0x1007d7ca
lea eax, [ebp - 0x10]
push eax
call fcn.1007cffd
pop ecx
jmp 0x1007d7dd
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1007d8a8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1007d4e7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1007d8a8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1007d8a8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1007d8a8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1007d835
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10073aed
test ebx, ebx
je 0x1007d8a3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10073aed
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1007d8a8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1007d8a8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10078949
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1007d8aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e256
leave
ret
Function at 0x10081853
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100817cf
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100819c2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100819c2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10081977
jg 0x100818af
test eax, eax
je 0x1008196d
push 1
push 0x1000
call fcn.10073440
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100818d2
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10081964
push 0x8000
push ebx
call fcn.100816fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100818fb
jg 0x100818f6
cmp ecx, 0x1000
jb 0x100818fb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10074805
add esp, 0x10
cmp eax, 0xffffffff
je 0x10081940
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 0x100818f6
jl 0x10081927
test ecx, ecx
jne 0x100818e8
push dword [ebp - 0xc]
push ebx
call fcn.100816fe
push esi
call fcn.100734a0
add esp, 0xc
xor ebx, ebx
jmp 0x100819d0
cmp byte [edi + 0x24], 0
je 0x10081957
cmp dword [edi + 0x20], 5
jne 0x10081957
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10081962
mov ebx, dword [edi + 0x18]
jmp 0x10081964
xor ebx, ebx
push esi
call fcn.100734a0
pop ecx
jmp 0x100819d0
test ecx, ecx
jg 0x10081939
jl 0x10081977
test eax, eax
jae 0x10081939
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10070c01
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10081997
cmp byte [edi + 0x1c], 0
je 0x10081939
jmp 0x100819c8
push ebx
call fcn.1007b613
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10081939
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100819d0
cmp byte [edi + 0x1c], 0
je 0x100819cd
mov ebx, dword [edi + 0x18]
jmp 0x100819d0
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10070c01
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10083510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008353d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008353d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x54950c04
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x432853e3
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0xc828c4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0xcb403c], 0x8088405
inc edx
mov dword [0xcb403c], edx
mul edx
mov eax, edx
ret

Function at 0xc8bbc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffefc
mov ebp, edx
mov dword [esp], eax
xor ebx, ebx
mov esi, dword [esp]
lea edi, [esp + 4]
mov byte [esi], bl
mov eax, ebx
cdq
idiv ecx
add edx, ebp
mov al, byte [edx]
mov byte [edi], al
inc ebx
inc edi
inc esi
cmp ebx, 0x100
jne 0xc8bbd8
xor esi, esi
mov ebx, pe_nt_image_headers32
mov eax, dword [esp]
lea edi, [esp + 4]
mov dl, byte [eax]
xor ecx, ecx
mov cl, dl
add esi, ecx
xor ecx, ecx
mov cl, byte [edi]
add esi, ecx
and esi, 0xff
mov ecx, dword [esp]
mov cl, byte [ecx + esi]
mov byte [eax], cl
mov ecx, dword [esp]
mov byte [ecx + esi], dl
inc edi
inc eax
dec ebx
jne 0xc8bbfe
mov edx, dword [esp]
mov eax, dword [esp]
add eax, 0x100
mov ecx, pe_nt_image_headers32
call fcn.00c85fb0
add esp, 0x104
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0xc8bc58
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ecx, ecx
xor edx, edx
mov ebx, dword [ebp + 8]
dec ebx
test ebx, ebx
jl 0xc8bce9
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
inc ecx
and cl, 0xff
xor ebx, ebx
mov bl, cl
add dl, byte [eax + ebx]
and dl, 0xff
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov byte [ebp - 9], bl
mov esi, edx
and esi, 0xff
xor ebx, ebx
mov bl, cl
lea edi, [eax + ebx]
mov bl, byte [eax + esi]
mov byte [edi], bl
mov bl, byte [ebp - 9]
mov byte [eax + esi], bl
xor ebx, ebx
mov bl, cl
mov bl, byte [eax + ebx]
mov esi, edx
and esi, 0xff
add bl, byte [eax + esi]
and bl, 0xff
mov byte [ebp - 9], bl
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov bl, byte [ebx + esi]
movzx esi, byte [ebp - 9]
xor bl, byte [eax + esi]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov byte [esi + edi], bl
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0xc8bc7e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0xc93528
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x58], eax
xor edi, edi
mov dword [ebp - 0x10], 0x67452301
mov dword [ebp - 0xc], 0xefcdab89
mov dword [ebp - 8], 0x98badcfe
mov dword [ebp - 4], 0x10325476
mov eax, ebx
shl eax, 3
mov edx, eax
add edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x54]
jae 0xc93571
inc dword [ebp - 0x58]
add dword [ebp - 0x54], eax
mov eax, ebx
shr eax, 0x1d
add dword [ebp - 0x58], eax
mov esi, dword [ebp + 0xc]
cmp ebx, 0x40
jb 0xc93599
mov edx, esi
lea eax, [ebp - 0x10]
call fcn.00c93638
add esi, 0x40
sub ebx, 0x40
cmp ebx, 0x40
jae 0xc93584
test ebx, ebx
jbe 0xc935ae
mov edi, ebx
lea eax, [ebp - 0xa8]
mov ecx, edi
mov edx, esi
call fcn.00c85fb0
push edi
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
lea edx, [ebp - 0xa8]
lea eax, [ebp - 0x50]
mov ecx, edi
call fcn.00c85fb0
mov byte [ebp + edi - 0x50], 0x80
lea eax, [edi + 1]
cmp eax, 0x38
jbe 0xc935f7
mov edx, 0x40
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.00c85fc4
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.00c93638
xor eax, eax
mov edx, 0x38
sub edx, eax
lea eax, [ebp + eax - 0x50]
call fcn.00c85fc4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x68]
call fcn.00c93638
mov eax, dword [ebp + 8]
mov edi, eax
lea esi, [ebp - 0x68]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0xca3894
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ecx
push edx
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov ecx, dword [eax]
cmp ecx, eax
je 0xca38c2
mov edx, ecx
mov ecx, dword [ecx]
cmp dword [edx + 8], 0
je 0xca38c2
push dword [edx + 0x18]
call fcn.00ca3718
jmp 0xca38aa
pop edi
pop esi
pop edx
pop ecx
ret

Function at 0xcb0590
Capabilities:
Encode data using xor

Disassembly:
lea eax, [edi + 0x45]
jmp 0xcb0596
and eax, 0
bnd jmp 0xcb059d
push dword fs:[eax]
bnd jmp 0xcb05a4
mov dword fs:[eax], esp
mov dword [eax], 0x33c3b1ef
cmp dl, ah
xor ch, 0x4f
and bh, al
add bh, ch
mov cl, 0xc3
xor edi, dword [edx]
aam 0x80
cmc
dec edi
loopne 0xcb05a6
jmp 0xcb05b7
pop dword fs:[0]
add esp, 4
sub eax, 0x2bc7b8d4
pop eax
mov eax, dword [0xcb380c]
mov eax, dword [eax]
add eax, 0x28
mov edx, 0xf0
call fcn.00c93dc4
mov eax, dword [0xcb37b8]
mov byte [eax], 0xcc
test bl, bl
je 0xcb05f1
mov eax, dword [0xcb362c]
call fcn.00cac828
call fcn.00cacdcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xcb0616
lea eax, [ebp - 0x108]
call fcn.00c836f8
ret