joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63959e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x67a4c4
push 0x67a4bc
push str.FlsAlloc
push 0x1f
call fcn.006393c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6395d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x6557fc]
call esi
jmp 0x6395d8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x63961c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x67a4d4
push 0x67a4cc
push str.FlsGetValue
push 0x21
call fcn.006393c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x639653
push dword [ebp + 8]
mov ecx, esi
call dword [0x6557fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x63965b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x67a4dc
push 0x67a4d4
push str.FlsSetValue
push 0x22
call fcn.006393c9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x639695
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6557fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x63b410
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.0063b38c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x63b57f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x63b57f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x63b534
jg 0x63b46c
test eax, eax
je 0x63b52a
push 1
push 0x1000
call fcn.00636cef
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x63b48f
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x63b521
push 0x8000
push ebx
call fcn.006308be
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x63b4b8
jg 0x63b4b3
cmp ecx, 0x1000
jb 0x63b4b8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00633cd8
add esp, 0x10
cmp eax, 0xffffffff
je 0x63b4fd
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 0x63b4b3
jl 0x63b4e4
test ecx, ecx
jne 0x63b4a5
push dword [ebp - 0xc]
push ebx
call fcn.006308be
push esi
call fcn.00636cb5
add esp, 0xc
xor ebx, ebx
jmp 0x63b58d
cmp byte [edi + 0x24], 0
je 0x63b514
cmp dword [edi + 0x20], 5
jne 0x63b514
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x63b51f
mov ebx, dword [edi + 0x18]
jmp 0x63b521
xor ebx, ebx
push esi
call fcn.00636cb5
pop ecx
jmp 0x63b58d
test ecx, ecx
jg 0x63b4f6
jl 0x63b534
test eax, eax
jae 0x63b4f6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0062f206
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x63b554
cmp byte [edi + 0x1c], 0
je 0x63b4f6
jmp 0x63b585
push ebx
call fcn.00638ddb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x63b4f6
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 0x63b58d
cmp byte [edi + 0x1c], 0
je 0x63b58a
mov ebx, dword [edi + 0x18]
jmp 0x63b58d
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0062f206
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x63cd14
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x63cd5f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0063ceaf
test al, al
jne 0x63cd59
sub edx, 2
cmp edx, edi
jne 0x63cd3f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x63cd81
lea eax, [edi + 2]
cmp edx, eax
je 0x63cd81
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0063cc60
add esp, 0x10
jmp 0x63ce7b
push esi
lea ecx, [ebp - 0x255]
call fcn.0063ceaf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x63cdc4
push dword [ebp - 0x25c]
jmp 0x63cd71
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x63ce01
cmp word [ebp - 0x226], 0
je 0x63ce22
cmp word [ebp - 0x226], ax
jne 0x63ce01
cmp word [ebp - 0x224], 0
je 0x63ce22
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0063cc60
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x63ce6e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x63cddb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x63ce56
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x63ce7b
push 0x63ca90
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0062c6b0
add esp, 0x10
jmp 0x63ce4b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006158c5
leave
ret

Function at 0x63d791
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x63d7a2
pop esi
ret
push ebx
push edi
push esi
call fcn.0063d75a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00636d4c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x63d7ca
push ebx
push esi
push edi
call fcn.00619c20
add esp, 0xc
push 0
call fcn.00636cb5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x63db9a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0063d7df
Function at 0x63fe19
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0063690e
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 0x63fe88
cmp esi, dword [ebp - 4]
je 0x63fe83
cmp dword [ebp + 0xc], 0
je 0x63fe83
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x63fe60
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0063f96b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x63fe8a
xor eax, eax
inc eax
jmp 0x63fe8a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x63feef
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6a56e8]
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.0063690e
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.0063690e
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 0x63ff66
cmp word [ecx], dx
je 0x63ff66
mov eax, dword [0x67aad4]
push edi
dec eax
push eax
push 0x67a9c0
call fcn.0063fe8e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x63ffd9
cmp word [eax], dx
je 0x63ffd9
mov eax, dword [edi]
test eax, eax
je 0x63ff8a
cmp word [eax], dx
je 0x63ff8a
lea eax, [ebp - 0x10]
push eax
call fcn.0063f871
jmp 0x63ff93
lea eax, [ebp - 0x10]
push eax
call fcn.0063f90c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x640003
mov eax, dword [0x67a9bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x67a6b0
call fcn.0063fe8e
add esp, 0xc
test al, al
je 0x640003
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x63ffce
cmp word [eax], di
je 0x63ffce
lea eax, [ebp - 0x10]
push eax
call fcn.0063f871
pop ecx
jmp 0x640005
lea eax, [ebp - 0x10]
push eax
call fcn.0063f90c
jmp 0x63ffcb
mov eax, dword [edi]
test eax, eax
je 0x63fff0
cmp word [eax], dx
je 0x63fff0
lea eax, [ebp - 0x10]
push eax
call fcn.0063f826
pop ecx
jmp 0x640003
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 0x6400ce
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0063fd13
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x6400ce
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x6400ce
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x6400ce
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x64005b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00639837
test ebx, ebx
je 0x6400c9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00639837
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6400ce
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 0x6400ce
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0062f9d0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x6400d0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006158c5
leave
ret
Function at 0x6432f8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6a56e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x64333b
call fcn.00622bbc
mov dword [eax], 0xf
call fcn.00622bcf
mov dword [eax], 0xd
call fcn.0061dc20
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006158c5
leave
ret
test eax, eax
jne 0x643342
inc eax
jmp 0x64332f
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x64332d
xor eax, eax
cmp ecx, 1
setne al
jmp 0x64332f

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10005a4a
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x10024050]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x10005aed
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.10018ea2
pop ecx
pop ecx
test eax, eax
je 0x10005ad6
test ebx, ebx
je 0x10005aca
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.10018ea2
pop ecx
pop ecx
test eax, eax
jle 0x10005ad6
push ebx
call fcn.10006dc1
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.10006da0
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x10005a97
xor edi, edi
cmp ebx, edi
jne 0x10005af1
xor eax, eax
jmp 0x10005b5d
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x10005b20
call fcn.10006dc1
pop ecx
cmp dword [ebp - 0x70], edi
je 0x10005aed
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x10005aed
call fcn.10006dc1
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005b10
cmp dword [ebp - 0x70], edi
je 0x10005b53
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.10006da0
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008c61
add ebp, 0x9c
leave
ret
Function at 0x10008c61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10024050]
jne 0x10008c6b
repz ret
jmp fcn.1000d082

Function at 0x10018ea2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10018eb1
pop dword [ebp - 0x34]
mov eax, 0xad032e32
add eax, 0x62fe607f
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xc08dc5c7
add dword [ebp - 0x44], 0x8dc47f84
mov dword [ebp - 0x40], 0xacea8c08
sub dword [ebp - 0x40], 0x7ab73fc3
mov dword [ebp - 0x3c], 0xa7d3f908
add dword [ebp - 0x3c], 0xa4784b26
mov dword [ebp - 0x38], 0xb999beb1
add dword [ebp - 0x38], 0x4666414f
lea eax, [ebp - 0x44]
push eax
mov eax, 0x34eb5afc
sub eax, 0x24e99aac
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x8a2c2997
add dword [ebp - 0x44], 0xea463fbf
mov dword [ebp - 0x40], 0x66716fbb
add dword [ebp - 0x40], 0xdafaf1ba
mov dword [ebp - 0x3c], 0xeede4c5e
add dword [ebp - 0x3c], 0x7491200e
mov dword [ebp - 0x38], 0x6059e52
add dword [ebp - 0x38], 0xf9fa61ae
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xac2a7225
sub eax, 0x9c28b1d9
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3e0c2
push 0
call eax
mov ecx, 0x51b2
xor edi, edi
add edi, eax
mov edx, 0x4a4cdb82
add edx, 0xc5b5ce7e
add edx, dword [ebp - 0x34]
mov esi, 0xddab50d4
sub esi, 0x4d40d447
mov dword [ebp - 0x1c], 0x2a24693
mov ebx, dword [edx]
sub dword [ebp - 4], edi
sub ebx, esi
xor dword [ebp - 0x14], 0xd55a7ee4
mov dword [edi], ebx
add dword [ebp - 0x24], eax
add edi, 0xb9fc91b7
sub edi, 0xb9fc91b3
add edx, 4
loop 0x10018fcf
add eax, 0x1399b
xor ebx, ebx
add ebx, eax
add eax, 0xd692e577
sub eax, 0xd692e572
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0xefb5c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xefb5ca
pushal
call 0xefb5d0
pop ebp
sub ebp, 0x10
sub ebp, 0xafb5c0
jmp 0xefb5e6
mov eax, 0xafb5c0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bd
mov edx, 0xfaf6bdab
xor byte [eax], dl
inc eax
dec ecx
jne 0xefb5fd
jmp 0xefb610
and byte [esi + 0x20], ah
and dl, byte [edi + 0x2aababab]
push 0x53
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test al, 0x66
adc ebp, dword [ebp + 0x11ababab]
sub dword [ebx + 0x495cabab], 0xffffffa8
arpl word [eax], sp
sub ah, byte [edi - 0x57545455]
outsb dx, byte [esi]
sti
sti
ret

Function at 0xc3d0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c3d200
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 0xc3d0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3d0c2
add dl, dl
jne 0xc3d0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3d134
xor eax, eax
add dl, dl
jne 0xc3d0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3d1d5
add dl, dl
jne 0xc3d0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3d108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3d113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3d11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc3d12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc3d0cd
mov eax, 1
add dl, dl
jne 0xc3d142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc3d14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc3d139
sub eax, ebx
mov ebx, 1
jne 0xc3d180
mov ecx, 1
add dl, dl
jne 0xc3d166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc3d171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc3d15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc3d0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc3d197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc3d1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc3d18e
cmp eax, 0x7d00
jae 0xc3d1c5
cmp eax, 0x500
jb 0xc3d1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc3d0cd
cmp eax, 0x7f
ja 0xc3d1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc3d0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc3d1f6
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 0xc3d0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40121c
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40124b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_TerminateProcess
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004012d4
jmp 0x401269
call sub.KERNEL32.DLL_ResumeThread
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004011a4
mov edi, eax
test ebx, ebx
je 0x401269
cmp dword [esi], 0
je 0x401269
dec ebx
jmp 0x401252
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031b4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov dword [esp], ecx
mov esi, edx
mov edi, eax
mov eax, dword [esp]
inc eax
cmp eax, 5
jge 0x4031d1
xor eax, eax
jmp 0x403259
mov cl, byte [esi]
and cl, 0xff
and ecx, 0xff
mov eax, ecx
mov ebx, 9
cdq
idiv ebx
mov dword [esp + 4], edx
mov eax, ecx
mov ecx, 9
cdq
idiv ecx
mov ecx, eax
mov eax, ecx
mov ebx, 5
cdq
idiv ebx
mov dword [esp + 8], edx
mov eax, ecx
mov ecx, 5
cdq
idiv ecx
mov dword [esp + 0xc], eax
xor ebx, ebx
xor eax, eax
mov ecx, eax
shl ecx, 3
lea edx, [eax + 1]
mov dl, byte [esi + edx]
and dl, 0xff
and edx, 0xff
shl edx, cl
add ebx, edx
inc eax
cmp eax, 4
jne 0x403216
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, edi
call fcn.00402ce0
test al, al
jne 0x403250
xor eax, eax
jmp 0x403259
mov edx, ebx
mov eax, edi
call fcn.00402c90
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x409c80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c70c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5a7464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea edi, [esi + 8]
mov dword [esi], vtable.CCurlDownloader.0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x409cdd
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
lea edi, [esi + 0x30]
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x409cfc
mov eax, dword [edi]
jmp 0x409cfe
mov eax, edi
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
je 0x409d1f
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d10
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00406770
lea ebx, [esi + 0x48]
mov byte [ebp - 4], 3
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 8
jb 0x409d47
mov eax, dword [ebx]
jmp 0x409d49
mov eax, ebx
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
je 0x409d70
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409d60
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00406770
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
jb 0x409d85
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x409d8d
mov ebx, dword [ebx]
push dword [ebp - 0x10]
push ecx
push edi
push ebx
lea ecx, [esi + 0x60]
call fcn.0041afc0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x10]
lea ecx, [esi + 0x60]
push 1
push eax
mov dword [ebx + 0xf0], 0
mov byte [ebx + 0xf4], 0
call fcn.0041b280
cmp dword [eax + 0x14], 8
jb 0x409dc9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x409de5
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00406ed0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc