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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00417a70
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00428097
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42aeed
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42b049
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004339f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x450688]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042aac3
mov ecx, dword [esi*4 + 0x450688]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x42b042
cmp eax, dword [ecx + edi + 0x24]
jne 0x42b042
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b042
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042aac3
add esp, 0x14
test edx, edx
jl 0x42b042
jg 0x42afb8
test eax, eax
jb 0x42b042
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42b042
jl 0x42afd2
cmp dword [ebp - 0x1008], eax
ja 0x42b042
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42aff0
test ebx, ebx
je 0x42b029
cmp ecx, edi
jae 0x42b029
mov al, byte [ecx]
cmp al, 0xd
jne 0x42b00a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42b016
cmp byte [ecx + 1], 0xa
jne 0x42b016
inc ecx
jmp 0x42b016
movzx eax, al
movsx eax, byte [eax + 0x44e948]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42aff0
cmp edx, ebx
jne 0x42aff0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42b047
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00416855
leave
ret
Function at 0x42b0b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x450688]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b0f2
cmp byte [ebx], 0xa
jne 0x42b0f2
or byte [edi + eax + 0x28], 4
jmp 0x42b0f7
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42b1f6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42b1d9
inc eax
cmp dl, 0xd
je 0x42b123
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42b149
cmp eax, ecx
jae 0x42b157
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42b10b
jmp 0x42b1f6
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b1d4
cmp dword [ebp - 0x10], 0
je 0x42b1d4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x450688]
test byte [eax + edi + 0x28], 0x48
je 0x42b1ae
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42b199
mov byte [esi], dl
jmp 0x42b1aa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x450688]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42b1f6
cmp byte [ebp - 1], 0xa
jne 0x42b1bd
cmp esi, ebx
jne 0x42b1bd
mov byte [esi], 0xa
jmp 0x42b1f5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042aae1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42b1f6
mov byte [esi], 0xd
jmp 0x42b1f5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x450688]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b1f3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b1f6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b1ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x450688]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b245
cmp word [ebx], dx
jne 0x42b245
or byte [eax + edi + 0x28], 4
jmp 0x42b24a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42b3ad
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42b38d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42b28b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42b2c1
cmp eax, edx
jae 0x42b2cf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42b266
jmp 0x42b3ad
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b388
cmp dword [ebp - 0x18], 0
je 0x42b388
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x450688]
test byte [eax + edi + 0x28], 0x48
je 0x42b35e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42b322
mov word [esi], cx
jmp 0x42b359
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x450688]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x450688]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x450688]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42b3ad
pop eax
cmp word [ebp - 4], ax
jne 0x42b36e
cmp esi, ebx
jne 0x42b36e
mov word [esi], ax
jmp 0x42b3aa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042aae1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42b3ad
push 0xd
pop eax
jmp 0x42b369
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x450688]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42b3a7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42b3ad
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42e2c4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44e018]
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 0x42e30f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042e45f
test al, al
jne 0x42e309
sub edx, 2
cmp edx, edi
jne 0x42e2ef
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42e331
lea eax, [edi + 2]
cmp edx, eax
je 0x42e331
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042e210
add esp, 0x10
jmp 0x42e42b
push esi
lea ecx, [ebp - 0x255]
call fcn.0042e45f
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 0x42e374
push dword [ebp - 0x25c]
jmp 0x42e321
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 0x42e3b1
cmp word [ebp - 0x226], 0
je 0x42e3d2
cmp word [ebp - 0x226], ax
jne 0x42e3b1
cmp word [ebp - 0x224], 0
je 0x42e3d2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042e210
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42e41e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42e38b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42e406
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42e42b
push 0x42e040
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00421c80
add esp, 0x10
jmp 0x42e3fb
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.00416855
leave
ret
Function at 0x43183b
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.004317b7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4319aa
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4319aa
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43195f
jg 0x431897
test eax, eax
je 0x431955
push 1
push 0x1000
call fcn.00424c2f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4318ba
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43194c
push 0x8000
push ebx
call fcn.00423cc6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4318e3
jg 0x4318de
cmp ecx, 0x1000
jb 0x4318e3
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004306ac
add esp, 0x10
cmp eax, 0xffffffff
je 0x431928
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 0x4318de
jl 0x43190f
test ecx, ecx
jne 0x4318d0
push dword [ebp - 0xc]
push ebx
call fcn.00423cc6
push esi
call fcn.00424c8c
add esp, 0xc
xor ebx, ebx
jmp 0x4319b8
cmp byte [edi + 0x24], 0
je 0x43193f
cmp dword [edi + 0x20], 5
jne 0x43193f
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43194a
mov ebx, dword [edi + 0x18]
jmp 0x43194c
xor ebx, ebx
push esi
call fcn.00424c8c
pop ecx
jmp 0x4319b8
test ecx, ecx
jg 0x431921
jl 0x43195f
test eax, eax
jae 0x431921
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042aae1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43197f
cmp byte [edi + 0x1c], 0
je 0x431921
jmp 0x4319b0
push ebx
call fcn.0042ea31
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x431921
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 0x4319b8
cmp byte [edi + 0x1c], 0
je 0x4319b5
mov ebx, dword [edi + 0x18]
jmp 0x4319b8
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042aae1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4328e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00432af0
add esp, 0xc
test eax, eax
js 0x432ae7
push ebx
push esi
push edi
mov edi, dword [ebp + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x432960
lea esi, [ebp + 8]
lea esi, [esi + edi*4]
lea eax, [ebp + 8]
nop dword [eax]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x432920
mov edi, 1
cmp dword [ebp + 0xf0], edi
jle 0x432ae2
lea esi, [ebp + 4]
movzx eax, byte [esi + 0xd]
lea esi, [esi + 0x10]
mov edx, dword [esi - 4]
inc edi
movzx ecx, byte [eax*4 + 0x440590]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x441990]
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441190]
movzx eax, byte [esi - 2]
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441590]
movzx eax, dl
mov edx, dword [esi]
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441d90]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
movzx ecx, byte [eax*4 + 0x440590]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x441590]
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441990]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441190]
movzx eax, dl
mov edx, dword [esi + 4]
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441d90]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
movzx ecx, byte [eax*4 + 0x440590]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x441590]
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441990]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441190]
movzx eax, dl
mov edx, dword [esi + 8]
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441d90]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
movzx ecx, byte [eax*4 + 0x440590]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x441590]
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441990]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441190]
movzx eax, dl
movzx eax, byte [eax*4 + 0x440590]
xor ecx, dword [eax*4 + 0x441d90]
mov dword [esi + 8], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x432974
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4339b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4339dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4339dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40196c
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e600
mov eax, 0x4170fb
mov dword [0x41808c], eax
mov dword [esp], 0
jmp 0x40198d
mov eax, 3
cmp eax, dword [esp]
jl 0x4019fb
mov eax, dword [0x41808c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41808c]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405d60
lea eax, [esp + 0xc]
push eax
call fcn.0040e500
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e660
lea eax, [esp + 0x10]
push eax
call fcn.0040e500
inc dword [esp]
jno 0x40198d
push 0x400
call fcn.0040a1c0
mov dword [esp + 0x10], eax
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
call fcn.0040ad76
lea eax, [esp + 0x18]
push eax
call fcn.0040e500
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [esp + 0x20]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a1e0
lea eax, [0x4180d0]
push eax
call fcn.0040e500
push dword [0x4180d0]
call fcn.0040ae07
push dword [0x4180d0]
call fcn.0040ace5
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x4180d0]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a1e0
lea eax, [0x418084]
push eax
call fcn.0040e500
push dword [0x418084]
call fcn.0040ae07
push dword [0x418084]
call fcn.0040ace5
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x418084]
call sub.KERNEL32.DLL_GetTempFileNameW
push dword [0x418084]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a1e0
lea eax, [0x418098]
push eax
call fcn.0040e500
push dword [0x418098]
call fcn.0040ae07
push dword [esp + 0xc]
push dword [0x418098]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
push 0
mov eax, 0x417020
push eax
push dword [0x418084]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a1e0
lea eax, [0x4180c8]
push eax
call fcn.0040e500
push dword [esp + 0x10]
call fcn.0040a1a0
jmp 0x401b80
push dword [esp + 0x14]
call fcn.0040e590
push dword [esp + 8]
call fcn.0040e590
push dword [esp + 0xc]
call fcn.0040e590
add esp, 0x18
pop ebx
ret
Function at 0x401fba
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040e600
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401fe5
push dword [0x418070]
call fcn.004053c1
and eax, eax
je 0x401fe5
push dword [0x418070]
call fcn.00405430
push dword [0x4180c8]
call fcn.0040ae07
push dword [0x4180b8]
call fcn.0040ae07
call fcn.0040347d
push dword [0x418098]
call fcn.0040ae07
push dword [0x418084]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [0x4180d0]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011b6

Function at 0x40249d
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4024a3
call fcn.0040e600
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4170c4
mov dword [0x41808c], eax
mov dword [esp], 0
jmp 0x4024d1
mov eax, 6
cmp eax, dword [esp]
jl 0x40253f
mov eax, dword [0x41808c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41808c]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405d60
lea eax, [esp + 0xc]
push eax
call fcn.0040e500
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e660
lea eax, [esp + 0x10]
push eax
call fcn.0040e500
inc dword [esp]
jno 0x4024d1
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
call sub.KERNEL32.DLL_GetCommandLineW
push eax
call fcn.0040a1e0
lea eax, [esp + 0x14]
push eax
call fcn.0040e500
mov edx, dword [esp + 0x10]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
lea eax, [esp + 0x18]
push eax
call fcn.0040e500
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405d80
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x4025fd
push edx
call fcn.0040e4c0
pop edx
push eax
mov edx, 0x417026
push edx
call fcn.0040e660
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e4c0
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.004060b0
call fcn.00405182
add dword [esp], edx
call fcn.00406000
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040e500
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.00409945
mov edx, dword [esp + 0x20]
push edx
call fcn.0040e4c0
pop edx
push eax
push edx
call fcn.0040e660
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x402632
push dword [esp + 0x14]
call fcn.0040e590
push dword [esp + 8]
call fcn.0040e590
push dword [esp + 0x10]
call fcn.0040e590
push dword [esp + 0xc]
call fcn.0040e590
push dword [esp + 0x20]
call fcn.0040e590
add esp, 0x24
pop ebx
ret
Function at 0x402664
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040e600
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x418078], eax
push dword [0x418078]
call fcn.0040a1c0
mov dword [esp + 4], eax
push dword [0x418078]
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040a2a0
push dword [esp]
call sub.KERNEL32.DLL_FreeResource
mov eax, dword [esp + 4]
jmp 0x4026c1
add esp, 8
ret 8

Function at 0x402b6d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402b73
call fcn.0040e600
lea eax, [esp]
push eax
call sub.KERNEL32.DLL_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x402b9f
mov eax, 1
jmp 0x402ba1
xor eax, eax
add esp, 0x24
pop ebp
ret