joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x49e01d38
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x43f54050
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
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 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x58916936
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x1c752d89
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x100587a5
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 8]
jb 0x10055d2e
jmp 0x10054dc9
cmc
pushal
jmp 0x1007981d
enter 0x15ee, 8
popal
cld
or byte [ebp - 9], 0x4a
xchg esi, eax
js 0x10055925
pop es
fcomp st(4)
ja 0x100558fa
push ss
pop edx
jmp 0xa0d4d2a5
call fcn.100547e6
mov dh, byte [esi]
js 0x100558ed
pop edi
mov edx, 0x2a9b45f2
jle 0x100558b7
adc byte [ecx], bh
test byte [ebx + 0x64], cl
ret
fidiv dword [edi - 0x73]
sti
xchg dword [ecx], ebp
sbb dh, byte [0x27345c6]
cli
outsb dx, byte [esi]
popfd
inc ecx
adc ax, 0xce9b
and byte [edx + 0x361248ef], bl
or al, 0x22
add eax, 0xbcf5453c
cmp al, 0xb8
std
push esi
outsb dx, byte [esi]
lodsd eax, dword [esi]
salc
cmp al, 0xe5
rcr dword [eax + 0x1407024c], 0xbf
cwde
dec esp
add al, byte [edi]
adc al, 0xbf
pop ecx
adc bh, ah
sbb eax, dword [ecx + 0x5e37d488]
cmp al, 0x22
popal
jmp [esi - 0x27]
jmp 0x100547cb
cmp eax, dword [ebp - 0x10]
lea esp, [esp + 0x20]
jb 0x100558dc
pushal
mov byte [esp + 4], ch
lea esp, [esp + 0x20]
jae 0x10055d2e
not bl
rcl ch, 7
rol eax, cl
aad 7
or cl, bl
ror ecx, 0x19
mov ebx, eax
call fcn.1007742a
and dl, byte [edi + 0x5d]
enter 0xffffffffffffba5d, 0x75
jns 0x100798ac
xor byte [ecx + 0xbd5fe3a], cl
adc dword [edi + 0x4f52455c], ecx
mov cl, 0x97
call 0x927263a3
fdiv qword [ebp + 0x75]
call 0x1aea6664
pop es
or al, byte [edi]
push dword [edx]
imul eax, ebp, 0xfdb2b7f7
and bh, byte [ecx - 0x4a14b74a]
cwde
push esp
das
dec eax
jb 0x1007983a
sar dword [edi + 0x5f], 1
adc dl, byte [esi + esi*8 + 0x52]
rol ebx, 0x55
mov esi, 0x8789c9c0
cwde
xchg edi, eax
jg 0x100798e7
mov ebp, 0x239e560b
loopne 0x1007986e
test byte [ecx + 0x7a], cl
and eax, edi
dec edi
mov dword [ecx], edx
insd dword es:[edi], dx
dec ebp
push ds
sub dword [edi], esp
invalid
call 0x40fe7eb2
mov al, 0xa4
lodsd eax, dword [esi]
sbb ebp, eax
mov edx, 0xd5de64a6
sbb bl, byte [ebx - 1]
call 0xabc4ede9
aam 0x59
out dx, al
mov esp, 0x751d94e8
jmp 0xb879c8fc

Function at 0x100797d6
Capabilities:
Encode data using xor

Disassembly:
pushal
pushal
pushfd
mov dword [esp + 0x44], 0x1007709d
call fcn.1007407c

Function at 0x409ce1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ce1
lcall 0x5de5, 0x8b10c483
jmp loc.0095f1ac
Function at 0x42412b
Capabilities:
Delete file

Disassembly:
push 0x64
mov eax, 0x529410
call fcn.004e27d2
mov esi, ecx
push 7
pop ecx
xor ebx, ebx
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.004232fb
xor edi, edi
lea eax, [ebp - 0x70]
inc edi
mov ecx, esi
push edi
push eax
call fcn.0042363c
push eax
lea ecx, [ebp - 0x58]
call fcn.004021ad
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.00402226
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00426998
push 0x55b25c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0042777e
add esp, 0xc
lea ecx, [ebp - 0x40]
push eax
call fcn.004021ad
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.00402226
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
push ebx
push edi
lea ecx, [ebp - 0x40]
call fcn.00402226
push ebx
push edi
lea ecx, [ebp - 0x58]
call fcn.00402226
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00402226
call fcn.004e277c
ret
Function at 0x7f8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x7f81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7f807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7f806a
add dl, dl
jne 0x7f8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7f80dc
xor eax, eax
add dl, dl
jne 0x7f8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7f817d
add dl, dl
jne 0x7f80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7f80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7f80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7f80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7f80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7f8075
mov eax, 1
add dl, dl
jne 0x7f80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7f80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7f80e1
sub eax, ebx
mov ebx, 1
jne 0x7f8128
mov ecx, 1
add dl, dl
jne 0x7f810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7f8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7f8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7f8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7f813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7f814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7f8136
cmp eax, 0x7d00
jae 0x7f816d
cmp eax, 0x500
jb 0x7f8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7f8075
cmp eax, 0x7f
ja 0x7f8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7f8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7f819e
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 0x7f8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403206
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x403226
cmp dword [edi + 0x54], 0
jne 0x403226
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040511d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004031cd
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40a1f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40a23a
call fcn.0040511d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a23a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a255
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00409dae
test ebx, ebx
mov esi, eax
je 0x40a253
test edi, edi
je 0x40a253
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x412c89
Capabilities:
Encode data using xor

Disassembly:
out dx, eax
mov esi, 0xa03b33ba
jmp 0x37612c0b
pop ds
aaa
cmp al, 0x31
push esi
call 0xf77b6b12
pop ds
aaa
mov dh, 0x4a
push ebx
mov ebp, 0xfe3a3a3a
mov esi, 0xea03af9
push ebx
js 0x412cb8
cmp bh, byte [edx]
mov esi, 0xba015e3
mov dh, 0x4a
imul edi, edx, 0x53
aam 0x3a
cmp bh, byte [edx]
mov esi, 0x3b371fa7
mov edx, 0x7ec6d94e
jle 0x412c4a
ror byte [eax + 0x39331f97], 0x3a
mov byte [edi + 0x3a39331f], dl
cmp bh, byte [edi + edx*2 + 0x3b3b3da3]
pushfd
and eax, dword [esi - 3]
cmp ebp, esi
jo 0x412c53
mov al, 0x2f
cmp al, 0x3b
cmp esi, dword [esi + 0x3b3d3bb0]
cmp ecx, esi
mov dh, 0x98
aas
cmp eax, 0xeec13b3b
and edx, eax
mov dh, 0x78
aaa
cmp eax, 0x603a3b3b
xor edi, dword [0xc8883b3b]
xchg dword [eax + esi*8 + 0x4fb8b44b], esi
mov ah, 0xa0
outsd dx, dword [esi]
mov ah, 0xa0
push ebx
mov ah, 0xa0
jnp 0x412c88
mov al, byte [0x7fa0b45b]
mov ah, 0xa0
imul esi, dword [eax + 0x4b125367], 0x3a
cmp ah, ah
mov al, byte [0x53e8a04b]
sti
dec ecx
cmp bh, byte [edx]
rol ecx, 0xc1
sal dword [edx + 0x3b], 1
cmp edi, dword [ebx]
cmp eax, ecx
push ebx
adc al, 0x35
cmp edi, dword [ebx]
mov esi, 0xb8bb0f7f
xchg ebx, eax
cmp ebp, dword [edi - 0x600f49ce]
mov esi, 0xbe38abdb
jae 0x412d4b
push esp
dec ebx
xor edi, dword [ebx]
cmp esi, dword [esi - 0x4deb410]
aaa
sti
or dh, byte [eax + 0x3b3b3b9f]
retf
mov bh, ch
mov al, 0xfb
add al, 0xfe
cmp edx, dword [ebx - 0x74]
push cs
cmp edi, dword [ebx]
mov esi, 0x7bd61a5b
adc edi, dword [esi]
xor esp, eax
invalid
Function at 0x4145eb
Capabilities:
Encode data using xor

Disassembly:
sal byte [esi + 0x33f0b657], 0x3a
out dx, eax
jo 0x414648
pop ecx
std
cmp edi, dword [edx]
add bl, dl
int3
push ebx
minps xmm7, xmmword [edx]
cmp al, ah
mov dh, 0x23
out 0x26, al
mov al, byte [0x6f40530a]
cmp bh, byte [edx]
jb 0x414696
aaa
cmp edi, dword [ebx]
cmp ebp, esi
jnp 0x4146b8
int3
fcomp dword [edi + 0x56]
mov ah, 0xf9
cmp bh, byte [esi - 0x2b]
Function at 0x10002c20
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100883a5
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
test esi, esi
jle 0x10002d64
call fcn.10002b60
test eax, eax
je 0x10002d64
push 0x10121170
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x8003
push dword [0x1012116c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10002de8
push 0
push dword [ebp + 0x14]
push str.jixian123
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10002cc3
push str.CryptHashData_error
jmp 0x10002ded
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x64]
push 0x6801
push dword [0x1012116c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10002ceb
push str.CryptDeriveKey_error
jmp 0x10002ded
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x10002d02
push str.CryptDestroyHash_error
jmp 0x10002ded
mov eax, dword [ebp - 0x68]
xor edi, edi
mov dword [ebp - 0x64], 0
mov edx, 0x3e8
sub esi, edi
cmp esi, edx
jbe 0x10002d1f
add edi, edx
mov ecx, edx
jmp 0x10002d24
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x70], ecx
cmp edx, esi
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
sbb eax, eax
inc eax
push eax
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10002d81
cmp esi, 0x3e8
jbe 0x10002d59
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x70]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
jmp 0x10002d0e
push 0x10121170
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063277
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
lea ecx, [ebp - 0x48]
push str.Error_Code:
mov edi, eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.10003020
mov esi, eax
push 0xa
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.1006e857
push eax
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.10003110
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10002e10
push eax
lea ecx, [ebp - 0x88]
call fcn.10002990
push 0x100a514c
lea eax, [ebp - 0x88]
jmp 0x10002dfd
push str.CryptCreateHash_error
lea ecx, [ebp - 0x7c]
call fcn.10002990
push 0x100a514c
lea eax, [ebp - 0x7c]
push eax
call fcn.100651ce
int3
Function at 0x10003af0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10003b50
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b10
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x10003b50
lea eax, [ebx + ebx]
call fcn.10064320
mov edi, esp
test edi, edi
je 0x10003b50
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 0x3a8
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x10003b52
xor eax, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003b82
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063277
mov esp, ebp
pop ebp
ret
mov eax, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063277
mov esp, ebp
pop ebp
ret
Function at 0x10004ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100885a5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x30], vtable.CMitFile.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push closesocket
push 3
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push eax
call fcn.10003d00
lea ecx, [ebp - 0x30]
call fcn.100038d0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x1000507d
xor esi, esi
mov dword [ebp - 0x30], vtable.CMitFile.0
jmp 0x1000516e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea ecx, [ebp - 0x50]
push ecx
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x50], xmm0
call esi
mov eax, dword [ebp - 0x50]
inc eax
push eax
call fcn.100635e2
add esp, 4
mov dword [ebp - 0x54], 0
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x50], xmm0
push eax
push dword [ebp - 0x2c]
call esi
push 0
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x50]
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x2c]
movlpd qword [ebp - 0x50], xmm0
call esi
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
mov edx, edi
mov byte [eax + edi], 0
call fcn.100036a0
push edi
mov byte [ebp - 4], 1
call fcn.10063285
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x48]
add esp, 4
push eax
call fcn.10004c90
mov ecx, dword [ebp - 0x34]
mov esi, 1
cmp ecx, 0xf
jbe 0x10005140
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005136
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100051bd
push ecx
push edx
call fcn.100635d4
add esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x30], vtable.CMitFile.0
test eax, eax
je 0x1000516e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1000519e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005194
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100051bd
push ecx
push edx
call fcn.100635d4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063277
mov esp, ebp
pop ebp
ret 4
call fcn.1006dc9f
int3
Function at 0x10005bf0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov byte [ebp - 1], 1
push eax
mov ebx, ecx
mov dword [ebp - 0x1c], 4
push 8
push ebx
mov esi, edx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
jne 0x10005c32
xor al, al
mov byte [ebp - 1], al
jmp 0x10005d74
mov ecx, dword [ebp - 8]
shr ecx, 3
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push edi
mov edi, ecx
test ecx, ecx
jne 0x10005c68
mov ecx, 1
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], ecx
mov edi, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov ebx, dword [esi + 0x10]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0x24], ebx
div ecx
xor edx, edx
mov ecx, eax
mov eax, ebx
div dword [ebp - 0x10]
test edx, edx
je 0x10005c84
inc ecx
test edx, edx
cmove edi, dword [ebp - 0x14]
test edx, edx
mov eax, dword [ebp - 0x18]
cmove eax, dword [ebp - 0x1c]
cmp dword [esi + 0x14], 0xf
jbe 0x10005ca4
mov eax, dword [esi]
imul edi, ecx
mov ecx, eax
sub edi, ebx
add eax, ebx
jmp 0x10005cb0
mov edi, eax
lea eax, [ebx + esi]
imul edi, ecx
mov ecx, esi
sub edi, ebx
push 0
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.10006360
mov ecx, 0x3e8
xor edx, edx
mov eax, ecx
xor ebx, ebx
div dword [ebp - 8]
sub ecx, edx
xor edi, edi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x24]
sub eax, edi
cmp eax, ecx
jg 0x10005ce3
mov dword [ebp - 0xc], eax
mov ebx, 1
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x10005ced
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
add eax, edi
push ecx
push eax
push 0
push ebx
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10005d11
mov ecx, dword [ebp - 0xc]
add edi, ecx
test ebx, ebx
je 0x10005cd2
jmp 0x10005d16
xor al, al
mov byte [ebp - 1], al
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x10005d2e
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0xf
jbe 0x10005d28
mov esi, dword [esi]
mov byte [esi + edi], 0
jmp 0x10005d6d
mov edx, dword [esi + 0x14]
mov ebx, edi
mov eax, edx
sub ebx, ecx
sub eax, ecx
cmp ebx, eax
ja 0x10005d5b
mov dword [esi + 0x10], edi
cmp edx, 0xf
jbe 0x10005d47
mov esi, dword [esi]
push ebx
add esi, ecx
push 0
push esi
call fcn.10065890
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x10005d6d
push 0
push ebx
mov byte [ebp - 0x24], 0
mov ecx, esi
push dword [ebp - 0x24]
push ebx
call fcn.10006980
mov ebx, dword [ebp - 0x20]
mov al, byte [ebp - 1]
pop edi
test ebx, ebx
je 0x10005d82
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret