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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00415660
mov eax, dword [0x447014]
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.00424cff
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42787a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4279d6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004334e0
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 + 0x448ca8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00428a0e
mov ecx, dword [esi*4 + 0x448ca8]
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 0x4279cf
cmp eax, dword [ecx + edi + 0x24]
jne 0x4279cf
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 0x4279cf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00428a0e
add esp, 0x14
test edx, edx
jl 0x4279cf
jg 0x427945
test eax, eax
jb 0x4279cf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4279cf
jl 0x42795f
cmp dword [ebp - 0x1008], eax
ja 0x4279cf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42797d
test ebx, ebx
je 0x4279b6
cmp ecx, edi
jae 0x4279b6
mov al, byte [ecx]
cmp al, 0xd
jne 0x427997
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4279a3
cmp byte [ecx + 1], 0xa
jne 0x4279a3
inc ecx
jmp 0x4279a3
movzx eax, al
movsx eax, byte [eax + 0x4472a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42797d
cmp edx, ebx
jne 0x42797d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4279d4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00414669
leave
ret
Function at 0x427ea6
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 + 0x448ca8]
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 0x427ee6
cmp byte [ebx], 0xa
jne 0x427ee6
or byte [edi + eax + 0x28], 4
jmp 0x427eeb
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 0x427fea
mov dl, byte [eax]
cmp dl, 0x1a
je 0x427fcd
inc eax
cmp dl, 0xd
je 0x427f17
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x427f3d
cmp eax, ecx
jae 0x427f4b
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 0x427eff
jmp 0x427fea
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 0x427fc8
cmp dword [ebp - 0x10], 0
je 0x427fc8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x448ca8]
test byte [eax + edi + 0x28], 0x48
je 0x427fa2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x427f8d
mov byte [esi], dl
jmp 0x427f9e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x448ca8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x427fea
cmp byte [ebp - 1], 0xa
jne 0x427fb1
cmp esi, ebx
jne 0x427fb1
mov byte [esi], 0xa
jmp 0x427fe9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00428a2c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x427fea
mov byte [esi], 0xd
jmp 0x427fe9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x448ca8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x427fe7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x427fea
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x427ff3
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 + 0x448ca8]
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 0x428039
cmp word [ebx], dx
jne 0x428039
or byte [eax + edi + 0x28], 4
jmp 0x42803e
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 0x4281a1
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 0x428181
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42807f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4280b5
cmp eax, edx
jae 0x4280c3
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 0x42805a
jmp 0x4281a1
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 0x42817c
cmp dword [ebp - 0x18], 0
je 0x42817c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x448ca8]
test byte [eax + edi + 0x28], 0x48
je 0x428152
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 0x428116
mov word [esi], cx
jmp 0x42814d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x448ca8]
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 + 0x448ca8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x448ca8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4281a1
pop eax
cmp word [ebp - 4], ax
jne 0x428162
cmp esi, ebx
jne 0x428162
mov word [esi], ax
jmp 0x42819e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00428a2c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4281a1
push 0xd
pop eax
jmp 0x42815d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x448ca8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42819b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4281a1
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 0x42c35a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42c3f7
push ebx
push esi
call fcn.0042c323
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042b111
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42c3a4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42c3f6
push edi
push eax
call fcn.00423d8e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42c3c4
call fcn.00423d54
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42c3f5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042b111
add esp, 0x20
test eax, eax
jne 0x42c3e3
push edi
call fcn.00423d54
jmp 0x42c3eb
push ebx
call fcn.00423d54
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42ebd4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004239cd
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 0x42ec43
cmp esi, dword [ebp - 4]
je 0x42ec3e
cmp dword [ebp + 0xc], 0
je 0x42ec3e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42ec1b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042e726
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42ec45
xor eax, eax
inc eax
jmp 0x42ec45
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42ecaa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x447014]
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.004239cd
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.004239cd
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 0x42ed21
cmp word [ecx], dx
je 0x42ed21
mov eax, dword [0x43bb74]
push edi
dec eax
push eax
push 0x43ba60
call fcn.0042ec49
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42ed94
cmp word [eax], dx
je 0x42ed94
mov eax, dword [edi]
test eax, eax
je 0x42ed45
cmp word [eax], dx
je 0x42ed45
lea eax, [ebp - 0x10]
push eax
call fcn.0042e62c
jmp 0x42ed4e
lea eax, [ebp - 0x10]
push eax
call fcn.0042e6c7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42edbe
mov eax, dword [0x43ba5c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x43b750
call fcn.0042ec49
add esp, 0xc
test al, al
je 0x42edbe
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42ed89
cmp word [eax], di
je 0x42ed89
lea eax, [ebp - 0x10]
push eax
call fcn.0042e62c
pop ecx
jmp 0x42edc0
lea eax, [ebp - 0x10]
push eax
call fcn.0042e6c7
jmp 0x42ed86
mov eax, dword [edi]
test eax, eax
je 0x42edab
cmp word [eax], dx
je 0x42edab
lea eax, [ebp - 0x10]
push eax
call fcn.0042e5e1
pop ecx
jmp 0x42edbe
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 0x42ee89
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042eace
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42ee89
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42ee89
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42ee89
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42ee16
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042568b
test ebx, ebx
je 0x42ee84
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042568b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42ee89
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 0x42ee89
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00432327
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42ee8b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414669
leave
ret
Function at 0x433420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43344d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43344d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x431072
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
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
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x35744f04
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x32a34dab
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401ac0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b0b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b04
test esi, esi
je 0x401b04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ae0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401cf0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e14
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401d7e
cmp eax, 4
jne 0x401da0
test esi, esi
je 0x401d92
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401d84
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401ddf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401dd1
cmp ecx, 0x40
je 0x401d92
cmp ecx, 4
je 0x401d92
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cf0
lea esi, [esi]

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x419610
Capabilities:
Get disk information

Disassembly:
sub esp, 8
mov eax, dword [0x4d2030]
mov edx, dword [0x4d2034]
mov dword [esp + 4], 0
push 0x4d2064
lea ecx, [eax + eax]
or ecx, edx
mov dword [esp + 4], ecx
fild qword [esp + 4]
fadd qword [0x4d2058]
fstp qword [0x4d2058]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [0x4d5acc], eax
add esp, 8
ret

Function at 0x4c7ebd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d2380
cmp edx, dword [eax]
je 0x4c7edf
add eax, 8
inc ecx
cmp eax, 0x4d2410
jl 0x4c7ed0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d2380]
jne 0x4c800d
mov eax, dword [0x4d7db0]
cmp eax, 1
je 0x4c7fe7
test eax, eax
jne 0x4c7f10
cmp dword [0x4d22a8], 1
je 0x4c7fe7
cmp edx, 0xfc
je 0x4c800d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c7f47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c88a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8d30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c7f8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8d30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cde1c
push edi
call fcn.004cac00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c88a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c88b0
lea eax, [ebp - 0xa0]
push 0x4cddfc
push eax
call fcn.004c88b0
push dword [esi + 0x4d2384]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c88b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004cab74
add esp, 0x2c
pop edi
jmp 0x4c800d
lea eax, [ebp + 8]
lea esi, [esi + 0x4d2384]
push 0
push eax
push dword [esi]
call fcn.004c8d30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40b0c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041cc40
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40b0df
xor al, al
jmp 0x40b261
push esi
push edi
call fcn.0040b273
push edi
call fcn.00421ea5
pop ecx
push edi
mov esi, eax
call fcn.0040b29f
test al, al
je 0x40b17f
push edi
call fcn.0040b273
test al, al
je 0x40b12e
lea eax, [esi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40b178
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00423391
lea eax, [esi + 8]
push edi
push eax
call fcn.00421e83
add esp, 0x14
jmp 0x40b171
push 0x5c
pop eax
cmp word [edi], ax
jne 0x40b178
add edi, 2
cmp word [edi], ax
jne 0x40b178
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x40b178
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00423391
lea eax, [esi + 8]
push 0x4305dc
push eax
call fcn.00421e83
lea eax, [esi + 0xe]
push edi
push eax
call fcn.00421e83
add esp, 0x1c
mov al, 1
jmp 0x40b260
xor al, al
jmp 0x40b260
push ebx
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b25d
cmp eax, ebx
ja 0x40b25d
movzx eax, word [edi]
push eax
call fcn.0040b37a
test al, al
je 0x40b1ed
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x40b25d
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00423391
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00423391
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00421e83
add esp, 0x20
jmp 0x40b259
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040ac4b
lea eax, [ebp - 0x1000]
push eax
call fcn.00421ea5
add eax, 4
add eax, esi
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40b25d
mov esi, dword [ebp + 0xc]
push 4
push str.__
push esi
call fcn.00423391
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00421e83
add esp, 0x14
cmp word [edi], 0x2e
jne 0x40b24f
movzx eax, word [edi + 2]
push eax
call fcn.0040b37a
test al, al
je 0x40b24f
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.0040eee8
mov al, 1
jmp 0x40b25f
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40be44
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc eax
mov cl, bl
cmp esi, eax
jbe 0x40be61
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x40be59
cmp cl, byte [edx]
jne 0x40be9c
push esi
push edx
push 0xffffffffffffffff
call fcn.00405d3d
not eax
mov ecx, ebx
cmp dword [ecx + 0x43a02c], eax
jne 0x40be82
cmp dword [ecx + 0x43a028], esi
je 0x40be8d
add ecx, 0xc
inc ebx
cmp ecx, 0x48
jb 0x40be72
jmp 0x40be9c
imul eax, ebx, 0xc
mov ecx, dword [eax + 0x43a030]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
pop esi
pop ebx
ret 0xc
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423008]
jne 0x401010
repz ret
jmp fcn.004015e2

Function at 0x4053f5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402a3d
and dword [ebp - 4], 0
cmp dword [0x4260cc], 0
mov ebx, eax
jne 0x4054a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405557
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405557
push eax
call fcn.004029cb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4260cc], eax
call esi
push eax
call fcn.004029cb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4260d0], eax
call esi
push eax
call fcn.004029cb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4260d4], eax
call esi
push eax
call fcn.004029cb
pop ecx
mov dword [0x4260dc], eax
test eax, eax
je 0x4054a6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004029cb
pop ecx
mov dword [0x4260d8], eax
mov eax, dword [0x4260d8]
cmp eax, ebx
je 0x4054fe
cmp dword [0x4260dc], ebx
je 0x4054fe
push eax
call fcn.00402a46
push dword [0x4260dc]
mov esi, eax
call fcn.00402a46
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4054fe
test edi, edi
je 0x4054fe
call esi
test eax, eax
je 0x4054f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4054f5
test byte [ebp - 0xc], 1
jne 0x4054fe
or dword [ebp + 0x10], 0x200000
jmp 0x405537
mov eax, dword [0x4260d0]
cmp eax, ebx
je 0x405537
push eax
call fcn.00402a46
pop ecx
test eax, eax
je 0x405537
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405537
mov eax, dword [0x4260d4]
cmp eax, ebx
je 0x405537
push eax
call fcn.00402a46
pop ecx
test eax, eax
je 0x405537
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4260cc]
call fcn.00402a46
pop ecx
test eax, eax
je 0x405557
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405559
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c0d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x404
mov eax, dword [0x423008]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x7f8e2c], 0x114e
mov eax, dword [esp + 0x408]
mov dword [0x7f8c70], eax
jne 0x41c111
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401006
add esp, 0x404
ret