joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40974d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41efbc
call fcn.00414b54
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401046
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, 0x42a448
xor ebx, ebx
push esi
push ebx
push 0x424d60
push dword [0x420574]
call edi
sub eax, ebx
je 0x40978b
dec eax
je 0x4097a1
dec eax
je 0x4097ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 1
cmp byte [ebp + 8], bl
je 0x4097d1
push esi
push ebx
push dword [0x4205a4]
push dword [0x4205b4]
call edi
cmp eax, 2
je 0x4097d6
mov ecx, dword [ebp - 0x18]
call fcn.0040a83b
test al, al
je 0x4097d6
push 1
pop eax
jmp 0x40978d
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push 0x424ac0
push 0x420a08
call fcn.004046e6
test eax, eax
jge 0x409814
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40980c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x409913
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0x424d50
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx]
cmp eax, ebx
jl 0x4098d2
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 3
call dword [ecx + 0x1c]
test eax, eax
jge 0x409851
push dword [ebp - 0x14]
jmp 0x4098cc
xor eax, eax
lea edi, [ebp - 0x2b]
mov byte [ebp - 0x2c], bl
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2c]
push 0x14
push eax
push 0x428770
push dword [0x4205a0]
push dword [0x420574]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x40988c
xor edi, edi
jmp 0x4098b8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00414d30
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x18]
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.0040fa67
pop ecx
cmp eax, 1
pop ecx
push dword [ebp - 0x14]
jne 0x4098ec
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4097fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4097fc
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x409903
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x409913
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x40978d
Function at 0x40a83b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push 0x424eb8
lea eax, [ebp - 0x80c]
push 0x424e80
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x80c]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40a8a7
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 8], ebx
sete byte [ebp - 1]
cmp edi, ebx
je 0x40a8b9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fc47
Capabilities:
Check for software breakpoints

Disassembly:
pop edi
mov ah, 0x76
aaa
cmp dl, byte [esi]
ror dword [esi - 0x34991b6e], cl
adc al, 0xd7
or bl, byte [esi + 0x5e5f28d9]
aam 0x38
adc byte [edx], dl
retf
outsd dx, dword [esi]
adc byte [esi + 0x4c], ch
insb byte es:[edi], dx
mov ch, 0xa6
mov bh, 0x30
jbe 0x40fbfb
xchg esi, eax
fisub dword [ebx + 0x2b4b501b]
mov dword [0x2b4b501b], eax
mov bh, 0
jbe 0x40fc55
mov byte [edx - 0x2f8dc054], ch
dec ebp
pop esp
popal
stc
cmpsd dword [esi], dword es:[edi]
add ah, byte [ebx + 0x1a50f9c1]
cld
pop ebp
sal esp, 0x50
jo 0x40fc73
hlt
sbb al, cl
mov ch, 0x10
cmp al, 0xcc
push eax
xchg ebp, eax
mov esi, 0x6d8c78ef
movsd dword es:[edi], dword [esi]
out 0xfb, al
jge 0x40fc4c
and edx, dword [ecx + 0x3d21acd5]
xchg dword [ecx + 0x3d00aceb], edx
popfd
shl edi, 1
fmul qword [ebx]
pop ecx
test dword [edx - 0x11], edi
arpl word [ebx], si
sub edx, ebp
pop esi
cmpsd dword [esi], dword es:[edi]
cmp byte [eax + 0x52], bh
xchg esi, eax
cmp eax, 0xac959192
daa
cmp eax, 0xecf99189
adc al, 0xd
add dword [ebp + 0x194823ed], 0xffffffbe
dec edx
sti
ja 0x40fd29
out dx, al
push 0xffffffffffffff86
outsd dx, dword [esi]
jns 0x40fc73
push 0xab91ac3d
lodsb al, byte [esi]
dec esp
jge 0x40fc54
loope 0x40fcb5
mov byte [esi], al
cmpsb byte [esi], byte es:[edi]
les edi, [edx]
lea edx, [ebx + 0x72]
cmp eax, 0xcf311a5
sbb byte [0x917bc3cd], al
mov al, byte [0x8e3d21ac]
shr eax, 1
pushfd
punpckhwd mm0, qword [esi + 0x3b9cee2e]
imul ebx, dword [ecx + 0x312ce06e], 0xf709981d
invalid
stc
cmc
aad 0x47
pop edi
invalid
Function at 0x410adf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.00410c1e
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x410b93
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x4253e0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x410b85
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push 0x4253d4
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x410b49
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push 0x4253c4
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x410b72
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x410b7f
cmp byte [ebp - 0x838], bl
je 0x410b85
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x410b93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00410753
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x410bb8
cmp dword [ebp + 0xc], 4
jne 0x410bd2
cmp dword [ebp - 0x14], ebx
jne 0x410bd2
cmp word [edi + 0x14], 3
mov ecx, edi
jne 0x410bcd
call fcn.00410ddd
jmp 0x410bd2
call fcn.00411009
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14

Function at 0x410c1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x258]
push eax
mov edi, SysReAllocStringLen
push 0x425440
mov dword [ebp - 8], ecx
push edi
mov dword [ebp - 4], 0x104
call esi
test eax, eax
jne 0x410d1e
lea eax, [ebp - 0x258]
push 0x42542c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
push edi
call esi
test eax, eax
jne 0x410d1e
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 0x154]
push 0x42541c
push eax
call fcn.00415640
pop ecx
test eax, eax
pop ecx
je 0x410d1e
lea ecx, [ebp - 0x154]
sub eax, ecx
add eax, 0xd
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x50]
call fcn.00410d25
lea eax, [ebp - 0x35c]
lea ecx, [ebp - 0x50]
push eax
call fcn.0041234e
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
mov edx, ecx
mov dword [ebp - 0x50], 0x420a4c
shr edx, 0x10
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x50]
mov word [eax + 0x14], dx
call fcn.00410d82
xor eax, eax
jmp 0x410d21
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x411b76
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x411bae
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x411bba
mov eax, dword [esi + 0x5c]
jmp 0x411c03
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x411c01
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x411bdf
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x411bc3
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x41234e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x4123a0
push eax
call fcn.004146d7
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4123a0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x424c80
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4123a4
xor al, al
jmp 0x412405
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x425130
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x412403
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.004146d7
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x412403
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x4123f1
mov al, 1
pop ebx
leave
ret 4
Function at 0x4146e5
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x762f907f
enter 0xffffffffffffc333, 1
imul ebx, dword [esi + ebp], 0x1cbed131
sbb ch, byte [ebx]
retf 0xa120
add ebx, dword [esi]
cwde
jnp 0x414671
insd dword es:[edi], dx
dec ebx
push esi
jp 0x414717
cmp ebp, dword [ebx + 0x51489b8f]
inc ebx
stosd dword es:[edi], eax
pop ds
invalid
ror byte [ecx - 0x6ce7b4a7], 1
mov al, 0x5e
and ah, byte [eax + 0x68752b6f]
jne 0x414735
out 0x50, eax
cmp al, 0xd7
cmc
invalid
sbb eax, esp
mov dl, 0xd2
mov dh, 0x18
xor al, 0xaa
jl 0x414709
or eax, 0xbed93a87
fist word [ebx + 0x67]
add eax, dword [ecx + eax*4 + 0x1ebf59a]
sub byte [ebx - 0xaddf27f], 0x45
cmp al, 0xde
xchg esi, eax
invalid

Function at 0x415b58
Capabilities:
Check for software breakpoints

Disassembly:
cmp byte [eax + ebx + 0x7c993478], 0xcc
fldenv [esi - 0x80]
insd dword es:[edi], dx
mov byte [0x8ae6cd69], al
add al, 0x19
mov byte [0x9d9b9bae], al
xor byte [edi], bl
sbb byte [ebp + 0x4a], ch
scasb al, byte es:[edi]
mov dword [0x927da2e4], eax
or dword [edx + 0x6e], ebp
insd dword es:[edi], dx
jno 0x415b31
rcr byte [ebp - 0xd], cl
or byte [eax + esi*2 - 0x6b], al
cmp al, 0x10
mov ebx, 0x7b972142
int 0x3d
adc byte [edi - 0x84d8c1e], ch
mov esi, 0xea50d50
Function at 0x1001529
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10015a0
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001588
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1001590
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10017cd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
cmp dword [ebp - 8], 0xd2af9
sete bl
jmp 0x100157f

Function at 0x1001630
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 1
je 0x1001667
push 0x10017c0
push dword [ebp + 8]
call fcn.010015ca
test eax, eax
pop ecx
pop ecx
jne 0x10017dc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x1001730
push 0x80000001
call esi
test eax, eax
jne 0x10016d1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100178c
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10016c0
cmp dword [ebp - 0x10], 4
jne 0x10016c0
cmp dword [ebp - 0x14], 1
je 0x10017e3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
mov dword [ebp - 8], ebx
je 0x1001723
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x100175c
push 0x80000002
call esi
test eax, eax
jne 0x1001723
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10017a8
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100171a
cmp dword [ebp - 0x10], esi
jne 0x100171a
cmp dword [ebp - 0x14], 1
jne 0x100171a
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
xor al, al
jmp 0x1001728
mov byte [ebp - 1], bl
jmp 0x10016c0

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401d39
Capabilities:
Encode data using xor

Disassembly:
fstp qword gs:[bp + 0x3364]
pop ecx
xor edi, dword ds:[ebp - 0x54]
sahf
xor ebx, dword fs:[ecx + 0x3e]
xor edi, dword [ebp - 0x54]
xchg edi, eax
or esp, dword [esp + eax*2 - 0x5bbe7a84]
mov al, 0x5d
mov esi, ecx
inc ebp
xchg ebp, eax
dec esi
cwde
movsb byte es:[edi], byte [esi]
in eax, 9
mov word [ebx + 0x5295292c], fs
pop edx
jb 0x401d3c
inc dword [ecx - 0x38b89624]
fimul word [edx]
invalid
Function at 0x41cc8d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c92f

Function at 0x41cc98
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cabe

Function at 0x41d092
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a1b0
mov eax, dword [0x468f00]
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.0041a989
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d0d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d230
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426c50
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 + 0x46ae38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041e262
mov ecx, dword [esi*4 + 0x46ae38]
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 0x41d229
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d229
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 0x41d229
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e262
add esp, 0x14
test edx, edx
jl 0x41d229
jg 0x41d19f
test eax, eax
jb 0x41d229
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d229
jl 0x41d1b9
cmp dword [ebp - 0x1008], eax
ja 0x41d229
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d1d7
test ebx, ebx
je 0x41d210
cmp ecx, edi
jae 0x41d210
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d1f1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d1fd
cmp byte [ecx + 1], 0xa
jne 0x41d1fd
inc ecx
jmp 0x41d1fd
movzx eax, al
movsx eax, byte [eax + 0x4691d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d1d7
cmp edx, ebx
jne 0x41d1d7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d22e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409453
leave
ret
Function at 0x41d700
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 + 0x46ae38]
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 0x41d740
cmp byte [ebx], 0xa
jne 0x41d740
or byte [eax + edi + 0x28], 4
jmp 0x41d745
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d843
mov al, byte [edx]
cmp al, 0x1a
je 0x41d825
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d774
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d799
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d7a3
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 0x41d756
jmp 0x41d843
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 0x41d820
cmp dword [ebp - 0xc], 0
je 0x41d820
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46ae38]
test byte [eax + edi + 0x28], 0x48
je 0x41d7fa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d7e5
mov byte [esi], dl
jmp 0x41d7f6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46ae38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d843
cmp byte [ebp - 1], 0xa
jne 0x41d809
cmp esi, ebx
jne 0x41d809
mov byte [esi], 0xa
jmp 0x41d842
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e280
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d843
mov byte [esi], 0xd
jmp 0x41d842
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46ae38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d83f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d843
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret