joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049181
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.100490fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100492f0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100492f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100492a5
jg 0x100491dd
test eax, eax
je 0x1004929b
push 1
push 0x1000
call fcn.1003f6e9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10049200
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10049292
push 0x8000
push ebx
call fcn.1004902e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10049229
jg 0x10049224
cmp ecx, 0x1000
jb 0x10049229
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100473de
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004926e
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 0x10049224
jl 0x10049255
test ecx, ecx
jne 0x10049216
push dword [ebp - 0xc]
push ebx
call fcn.1004902e
push esi
call fcn.1003ddc4
add esp, 0xc
xor ebx, ebx
jmp 0x100492fe
cmp byte [edi + 0x24], 0
je 0x10049285
cmp dword [edi + 0x20], 5
jne 0x10049285
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10049290
mov ebx, dword [edi + 0x18]
jmp 0x10049292
xor ebx, ebx
push esi
call fcn.1003ddc4
pop ecx
jmp 0x100492fe
test ecx, ecx
jg 0x10049267
jl 0x100492a5
test eax, eax
jae 0x10049267
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003caff
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100492c5
cmp byte [edi + 0x1c], 0
je 0x10049267
jmp 0x100492f6
push ebx
call fcn.100437fc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10049267
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 0x100492fe
cmp byte [edi + 0x1c], 0
je 0x100492fb
mov ebx, dword [edi + 0x18]
jmp 0x100492fe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003caff
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004b3b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004b3dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004b3dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
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 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x44da56
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x44daa2
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x44da87
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x44da97
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x44dab2
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x44daf1
test ebx, ebx
je 0x44dac6
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x44dabb
cmp ecx, 0xfff1
jb 0x44dad4
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x44dbdc
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x44db16
Function at 0x498176
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x4981c2
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x4981a7
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x4981b7
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4981d2
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x498211
test ebx, ebx
je 0x4981e6
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x4981db
cmp ecx, 0xfff1
jb 0x4981f4
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4982fc
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x498236
sub ebx, 0x15b0
mov eax, 0x15b
jmp 0x498246
movzx edx, byte [esi]
add ecx, edx
movzx edx, byte [esi + 1]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 2]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 3]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 4]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 5]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 6]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 7]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 8]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 9]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xa]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xb]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xc]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xd]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xe]
add edi, ecx
add ecx, edx
movzx edx, byte [esi + 0xf]
add edi, ecx
add ecx, edx
add edi, ecx
add esi, 0x10
dec eax
jne 0x498246
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
dec dword [ebp + 8]
jne 0x498236
test ebx, ebx
je 0x4983d5
cmp ebx, 0x10
jb 0x4983a2
mov eax, ebx
shr eax, 4
lea esp, [esp]
Function at 0x4b67c6
Capabilities:
Encode data using xor

Disassembly:
popfd
push ds
cmp cl, byte [eax]
imul dword [ebp + 0x11]
dec edi
xchg ebp, eax
jl 0x4b67d1
xchg ebx, eax
xor bl, byte [edi + eax*8 - 0xb77a258]
mov eax, dword [0xc3d2b76c]
aad 0x6b
and al, 0x1e
jb 0x4b67d2
cdq
push es
jp 0x4b6840
mov edi, 0x91f5393f
out dx, al
lodsd eax, dword [esi]
xchg edx, eax
je 0x4b6826
loope 0x4b681e
and dh, ch
push ebx
or eax, 0x1aa15c8c
int1
pop esi
adc dl, bh
in al, 0x8e
push 0xa0dc885d
ror dword es:[esi + 0x1e90dea3], 1
adc bh, byte [ecx - 0x53]
mov edx, 0x4f580264
push edx
into
xchg edx, eax
push ebp
clc
and byte [ebp + 0x5f3d3a66], bh
mov esp, 0x1103c0f4
cmp bh, byte [0xc0f4bc5f]
add edx, dword [ecx]
adc dword [edi - 0x4b], ecx
insb byte es:[edi], dx
dec edi
mov ch, 0x6c
and byte [edi + 0x33c04b75], dh
test cl, bl
and esi, edi
push esp
cdq
xor al, 0x2a
test dl, ah
rcl byte [edx - 0x312b31fe], 0x24
invalid
and al, 0x2e
invalid

Function at 0x4e29d6
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x4e2a22
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x4e2a07
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x4e2a17
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4e2a32
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x4e2a71
test ebx, ebx
je 0x4e2a46
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x4e2a3b
cmp ecx, 0xfff1
jb 0x4e2a54
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4e2b5c
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x4e2a96
Function at 0x545bb6
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x46ec5f93
inc eax
cmp eax, 0x8d502d62
imul ecx, dword [0xbce74ed1], 0x4ccd7830
invalid
loopne 0x545b3b
imul dword [edi + eax*4 - 0x190e1c3f]
mov esp, 0x4945955
push esi
in al, dx
int3
Function at 0x621d26
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
sub byte [edx], dh
pop edx
xor edx, eax
mov al, byte [0xf57ca470]
jl 0x621cc1
xchg ebp, eax
or ecx, edx
out dx, al
rol ch, 1
mov eax, dword [0x1f308085]
adc byte [eax - 0x499a346c], dl
test dword [ebx - 0x43d21e4c], edx
push ebp
aad 0xd5
pop ebx
fiadd dword [eax + 0x40286965]
xor bl, byte [eax + 0x65d2f10d]
sbb dword [ecx - 0x75eb6e21], eax
inc esp
mov eax, dword [0x90a446b9]
ja 0x621cd0
inc ebp
cmpsb byte [esi], byte es:[edi]
ja 0x621cd7
movsd dword es:[edi], dword [esi]
add byte [ecx], dl
push eax
invalid
xor al, 0x15
inc esp
inc esi
insd dword es:[edi], dx
jle 0x621cca
add edi, dword [esi + 0x1d34c394]
sbb byte [ebx], 0x50
popfd
sbb byte [eax + ebp*8 + 5], bh
xor eax, 0xb0fb3094
salc
daa
push 0xafbc7529
invalid
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
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
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x209c0a66
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x59f9793e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x100556c
Capabilities:
Terminate process

Disassembly:
push 0x2d
push 2
call fcn.0100bd21
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x10063c5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1011c78]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1001350
call dword [sym.imp.msvcrt.dll_getenv]
pop ecx
test eax, eax
je 0x100647a
push ebx
push esi
push eax
mov esi, 0x101
lea eax, [ebp - 0x108]
push esi
push eax
call sub.msvcrt.dll_strcpy_s
push 0x1001340
lea eax, [ebp - 0x108]
push esi
push eax
call sub.msvcrt.dll_strcat_s
lea eax, [ebp - 0x108]
push 0x100133c
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x1006478
push edi
mov edi, dword [sym.imp.msvcrt.dll_fgets]
jmp 0x100645d
lea eax, [ebp - 0x108]
push 0xa
push eax
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
test eax, eax
je 0x1006451
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.01005de3
push ebx
lea eax, [ebp - 0x108]
push esi
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x1006439
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100cc6f
leave
ret
Function at 0x10094ee
Capabilities:
Execute command

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1011c78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100950d
sub eax, ecx
mov esi, 0x100
cmp eax, esi
jb 0x100952c
push 0x2f
push 2
call fcn.0100bd21
pop ecx
pop ecx
jmp 0x1009570
lea eax, [ebp - 0x104]
push eax
push 0x10020f8
push edi
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x1009570
lea eax, [ebp - 0x104]
push eax
push 0x10020e4
lea eax, [ebp - 0x204]
push esi
push eax
call sub.msvcrt.dll_sprintf_s
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_system]
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100cc6f
leave
ret 4
Function at 0x100d985
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x100d99b
or dword [ebp + 0x18], 0xffffffff
push edi
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], edi
ja 0x100d9ab
xor eax, eax
jmp 0x100db0f
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx + 0x1fe]
lea eax, [esi - 0x54]
mov dword [ebp - 8], eax
cmp ebx, eax
jae 0x100da87
mov cl, byte [edi]
mov al, cl
inc edi
and al, 0xc0
mov byte [ebp + 0xb], cl
jne 0x100da1b
movzx eax, cl
push eax
mov dword [ebp - 0xc], eax
mov eax, esi
push 0x1002ea4
sub eax, ebx
push eax
push ebx
call fcn.0100e30b
add esp, 0x10
cmp byte [ebp + 0xb], 0
mov ebx, eax
je 0x100daf6
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + edi]
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 0x18]
jae 0x100da9d
push ecx
push edi
push ebx
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp - 0x10]
add esp, 0xc
add ebx, dword [ebp - 0xc]
jmp 0x100da7e
cmp al, 0xc0
jne 0x100dadc
cmp edi, dword [ebp + 0x18]
jae 0x100dab6
movzx ax, cl
movzx cx, byte [edi]
shl ax, 8
or ax, cx
movzx eax, ax
movzx eax, ax
push eax
mov dword [ebp + 8], eax
mov eax, esi
push 0x1002e9c
sub eax, ebx
push eax
push ebx
inc edi
call fcn.0100e30b
add esp, 0x10
cmp dword [ebp + 0x14], 0
mov ebx, eax
je 0x100dad6
cmp dword [ebp - 4], 0
jne 0x100da6a
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
xor eax, 0xc000
add eax, dword [ebp + 0x14]
lea ecx, [edi - 2]
cmp eax, ecx
jae 0x100dabe
mov edi, eax
cmp ebx, dword [ebp - 8]
jb 0x100d9c4
sub esi, dword [ebp - 8]
push 0x1002e68
push esi
push dword [ebp - 8]
call fcn.0100e30b
add esp, 0xc
jmp 0x100daf1
movzx eax, byte [ebp + 0xb]
push edi
push eax
push 0x1002e2c
sub esi, ebx
push esi
push ebx
call fcn.0100e30b
add esp, 0x14
jmp 0x100daf1
push edi
push 0x1002df8
jmp 0x100dae5
push eax
lea eax, [edi - 2]
push eax
push 0x1002dc4
sub esi, ebx
push esi
push ebx
call fcn.0100e30b
add esp, 0x14
jmp 0x100daf4
mov byte [ebx], 0
inc ebx
jmp 0x100daf6
movzx eax, cl
push eax
push 0x1002da8
sub esi, ebx
push esi
push ebx
call fcn.0100e30b
add esp, 0x10
mov edi, dword [ebp + 0x10]
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100daff
mov dword [eax], ebx
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x100db0a
mov edi, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp + 0x10]
pop edi
leave
ret 0x14
Function at 0x100e55d
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
xor edx, edx
cmp dword [ebp + 0xc], 2
jae 0x100e574
xor eax, eax
jmp 0x100e62b
mov eax, dword [ebp + 0x10]
push edi
cmp dword [ebp + 0xc], esi
je 0x100e62a
mov ecx, dword [ebp + 8]
push 0x3f
pop edi
push ebx
movzx ebx, byte [ecx]
dec dword [ebp + 0xc]
shl edx, 8
add edx, ebx
inc ecx
inc esi
cmp esi, 3
jne 0x100e5d9
mov esi, edx
shr esi, 0x12
and esi, edi
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
mov esi, edx
shr esi, 0xc
and esi, edi
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, edx
inc eax
mov byte [eax], bl
shr esi, 6
and esi, edi
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
and edx, edi
mov byte [eax], bl
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], dl
inc eax
xor edx, edx
xor esi, esi
cmp dword [ebp + 0xc], 0
jne 0x100e588
pop ebx
test esi, esi
je 0x100e62a
push 3
pop ecx
sub ecx, esi
shl ecx, 3
shl edx, cl
mov ecx, edx
shr ecx, 0x12
and ecx, edi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, edi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
cmp esi, 2
jne 0x100e622
shr edx, 6
and edx, edi
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
jmp 0x100e625
mov byte [eax], 0x3d
inc eax
mov byte [eax], 0x3d
inc eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100f0ea
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
push edi
mov esi, 0x400
push esi
push 0
push dword [eax + 0x18]
call ebx
mov edi, eax
test edi, edi
jne 0x100f123
mov eax, 0xc0000017
pop edi
pop esi
pop ebx
leave
ret 0x14
push esi
push 0
push edi
call sub.msvcrt.dll_memset
xor eax, eax
mov word [ebp - 0xc], ax
add esp, 0xc
mov eax, esi
mov word [ebp - 0xa], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call ebx
mov dword [ebp - 8], eax
test eax, eax
jne 0x100f171
mov esi, 0xc0000017
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x100f11c
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov word [ebp - 0x1a], ax
mov eax, ecx
lea edx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x100f17f
sub eax, edx
mov word [ebp - 0x1c], ax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
lea eax, [ebp - 4]
push eax
push esi
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x100f1d7
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [ebp + 0xc]
jmp 0x100f158
mov eax, dword [edi + 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
cmp eax, 4
je 0x100f293
cmp eax, 3
je 0x100f293
xor eax, eax
cmp dword [ebx], 2
mov word [ebp - 0x14], ax
jne 0x100f208
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x12], si
jmp 0x100f22d
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ax, word [ebp + 0x18]
mov word [ebp - 0x12], ax
mov ax, word [edi + 0xc]
mov word [ebp - 0x24], ax
mov ax, word [edi + 0xc]
mov word [ebp - 0x22], ax
mov eax, dword [edi + 8]
add eax, edi
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
cmp dword [ebx], 2
jne 0x100f1d2
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100f27f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x100f28b
cmp eax, dword [ebp + 0x18]
jb 0x100f28b
mov dword [ebp + 0xc], 0xc0000023
push dword [ebp - 0x10]
jmp 0x100f1be
cmp dword [ebp + 0x18], 4
jb 0x100f2a9
mov eax, dword [edi + 8]
mov eax, dword [edi + eax]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x100f1bb
mov dword [ebp + 0xc], 0xc0000023
jmp 0x100f1bb
Function at 0x100725f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001854
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10072b7
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001890
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10072aa
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10072b9
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219