joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4467bd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x45d8c0], ebx
push esi
push edi
jne 0x44683d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x446878
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4501ec
push edi
call esi
test eax, eax
mov dword [0x45d8c0], eax
je 0x446878
push 0x4501dc
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x45d8c4], eax
call esi
cmp dword [0x45d574], 2
mov dword [0x45d8c8], eax
jne 0x44683d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x45d8d0], eax
je 0x44683d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x45d8cc], eax
mov eax, dword [0x45d8cc]
test eax, eax
je 0x446882
call eax
test eax, eax
je 0x446869
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x45d8d0]
test eax, eax
je 0x446869
test byte [ebp - 8], 1
jne 0x446882
cmp dword [0x45d580], 4
jb 0x44687c
or byte [ebp + 0x12], 0x20
jmp 0x4468a1
xor eax, eax
jmp 0x4468b1
or byte [ebp + 0x12], 4
jmp 0x4468a1
mov eax, dword [0x45d8c4]
test eax, eax
je 0x4468a1
call eax
mov ebx, eax
test ebx, ebx
je 0x4468a1
mov eax, dword [0x45d8c8]
test eax, eax
je 0x4468a1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x45d8c0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4479ed
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x450270
call fcn.00439138
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x45d8d8], edi
jne 0x447a31
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x447a1c
mov dword [0x45d8d8], ebx
jmp 0x447a31
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x447a31
mov dword [0x45d8d8], 2
mov eax, dword [0x45d8d8]
cmp eax, ebx
jne 0x447a51
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x447b14
cmp eax, 2
je 0x447a5a
cmp eax, edi
jne 0x447a82
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x447a6d
mov eax, dword [0x45d820]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x447a89
xor eax, eax
jmp 0x447b14
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004421c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x447abc
cmp esi, edi
jne 0x447ad2
push dword [ebp - 0x20]
call fcn.004380df
pop ecx
mov esi, eax
cmp esi, edi
je 0x447a82
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x447b05
cmp dword [ebp + 0x14], edi
jne 0x447aef
push edi
push edi
jmp 0x447af5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x447b11
push esi
call fcn.004351ad
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00439173
ret
Function at 0x447b1d
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x450280
call fcn.00439138
xor esi, esi
cmp dword [0x45d8dc], esi
jne 0x447b61
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x447b4c
mov dword [0x45d8dc], edi
jmp 0x447b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x447b61
mov dword [0x45d8dc], 2
mov eax, dword [0x45d8dc]
cmp eax, 2
je 0x447c42
cmp eax, esi
je 0x447c42
cmp eax, 1
jne 0x447ba6
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x447b8f
mov eax, dword [0x45d820]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x447bad
xor eax, eax
jmp 0x447c54
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004421c0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x447be3
cmp edi, esi
jne 0x447bfe
lea eax, [ebx + ebx]
push eax
call fcn.004380df
pop ecx
mov edi, eax
cmp edi, esi
je 0x447ba6
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x447c31
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x447c1b
push esi
push esi
jmp 0x447c21
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x447c3d
push edi
call fcn.004351ad
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x447c54
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00439173
ret
Function at 0x4481a1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4481ba
or eax, 0xffffffff
jmp 0x44821b
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x448217
push 0x3d
push esi
call fcn.0044628f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x448217
cmp esi, eax
je 0x448217
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x45d594]
sete cl
cmp eax, dword [0x45d598]
mov dword [ebp - 4], ecx
jne 0x4481fd
mov edi, eax
call fcn.00448140
mov dword [0x45d594], eax
cmp eax, ebx
jne 0x448256
cmp dword [ebp + 0xc], ebx
je 0x44821f
cmp dword [0x45d59c], ebx
je 0x44821f
call fcn.0044672d
test eax, eax
je 0x448256
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x448228
xor eax, eax
jmp 0x44821a
push 4
call fcn.004380df
cmp eax, ebx
pop ecx
mov dword [0x45d594], eax
je 0x448217
mov dword [eax], ebx
cmp dword [0x45d59c], ebx
jne 0x448256
push 4
call fcn.004380df
cmp eax, ebx
pop ecx
mov dword [0x45d59c], eax
je 0x448217
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x45d594]
sub edi, esi
push esi
call fcn.004480f3
mov edi, eax
test edi, edi
pop ecx
jl 0x4482bd
cmp dword [ebx], 0
je 0x4482bd
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004351ad
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x44829d
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4482fe
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x448294
mov eax, edi
shl eax, 2
push eax
push dword [0x45d594]
call fcn.00435ca2
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4482fe
jmp 0x4482f9
cmp dword [ebp - 4], 0
jne 0x448365
test edi, edi
jge 0x4482cd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x45d594]
call fcn.00435ca2
test eax, eax
pop ecx
pop ecx
je 0x448217
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x45d594], eax
cmp dword [ebp + 0xc], 0
je 0x448350
push esi
call fcn.00439700
inc eax
inc eax
push eax
call fcn.004380df
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x448350
push esi
push edi
call fcn.0043b4b0
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x448349
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004351ad
pop ecx
cmp dword [ebp - 4], 0
je 0x44835d
push esi
call fcn.004351ad
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x44821a
push esi
call fcn.004351ad
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x448224
Function at 0x448377
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004421c0
mov eax, dword [0x45b990]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00442a57
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4484ac
push 2
push esi
push dword [ebp + 8]
call fcn.00442a57
add esp, 0xc
cmp eax, ebx
je 0x4484ac
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x44844c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0043a940
push 0x8000
push dword [ebp + 8]
call fcn.00448cec
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x448402
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004427f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x448422
sub edi, eax
test edi, edi
jg 0x4483fa
jmp 0x44843a
call fcn.0043607b
cmp dword [eax], 5
jne 0x448437
call fcn.00436072
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00448cec
pop ecx
pop ecx
jmp 0x448494
jge 0x448494
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00442a57
push dword [ebp + 8]
call fcn.0043668c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x448494
call fcn.00436072
mov dword [eax], 0xd
call fcn.0043607b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00442a57
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4484ae
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004395fe
leave
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1377302
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x25c0552c
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4023d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041ad50
mov eax, dword [0x427008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov edx, dword [esi + 0x104]
cmp edx, 0xfe
jae 0x402522
cmp edx, dword [esi + 0x108]
jle 0x402415
mov al, byte [esi + edx + 3]
mov byte [esi + edx + 4], al
dec edx
cmp edx, dword [esi + 0x108]
jg 0x402404
mov ecx, dword [esi + 0x108]
mov al, byte [ebp + 8]
push edi
mov byte [esi + ecx + 4], al
mov ecx, dword [esi + 0x108]
mov eax, dword [esi + 0x104]
sub eax, ecx
inc eax
push eax
lea eax, [esi + 4]
add eax, ecx
mov ecx, esi
push eax
call fcn.00402f50
inc dword [esi + 0x104]
mov edi, dword [esi + 0x104]
inc dword [esi + 0x108]
cmp edi, dword [esi + 0x108]
jle 0x402515
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push 0x423f80
push 0
push 0xfde9
call ebx
cmp eax, 0x800
ja 0x402507
push eax
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
push 0x423f80
push 0
push 0xfde9
call ebx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x800
ja 0x402507
push 0
push 0
push eax
lea eax, [ebp - 0x1004]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x1004]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024e6
push 0
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [esi + 0x2028]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec edi
cmp edi, dword [esi + 0x108]
jg 0x402465
pop ebx
mov eax, dword [esi + 0x2010]
mov dword [esi + 0x2014], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040614e
mov esp, ebp
pop ebp
ret 4
Function at 0x402540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041ad50
mov eax, dword [0x427008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
mov ecx, dword [esi + 0x2010]
mov edi, dword [esi + 0x2014]
lea edx, [ecx + 1]
cmp edx, dword [esi + 0x2018]
cmovle eax, edx
cmp edi, eax
je 0x4026fa
cmp edi, ecx
jne 0x4025ab
mov eax, dword [esi + 0x104]
test eax, eax
jle 0x40259f
push eax
lea eax, [esi + 4]
push eax
lea eax, [esi + 0x10c]
push eax
call fcn.00409450
add esp, 0xc
mov eax, dword [esi + 0x104]
mov dword [esi + 0x20c], eax
add dword [esi + 0x2014], 0xffffffff
jns 0x4025c1
mov eax, dword [esi + 0x2018]
dec eax
mov dword [esi + 0x2014], eax
cmp dword [esi + 0x104], 0
je 0x40268f
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [eax + eax]
dec dword [esi + 0x104]
push 0
push 0
push 0xffffffffffffffff
push 0x423f7c
push 0
push 0xfde9
call edi
cmp eax, 0x800
ja 0x402681
push eax
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
push 0x423f7c
push 0
push 0xfde9
call edi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
push 0
push 1
call ebx
cmp eax, 0x800
ja 0x402681
push 0
push 0
push eax
lea eax, [ebp - 0x1004]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
push 0
push 1
call ebx
lea eax, [ebp - 0x1004]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402660
push 0
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [esi + 0x2028]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 0x104], 0
jne 0x4025e0
pop ebx
mov eax, dword [esi + 0x2014]
mov ecx, esi
dec dword [esi + 0x104]
shl eax, 8
add eax, 0x210
push 0
add eax, esi
push eax
call fcn.00402f50
mov eax, dword [esi + 0x2014]
shl eax, 8
add eax, 0x210
add eax, esi
push pe_nt_image_headers32
push eax
lea eax, [esi + 4]
push eax
call fcn.00409450
mov eax, dword [esi + 0x2014]
lea ecx, [esi + 0x210]
shl eax, 8
add esp, 0xc
add ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4026e5
sub ecx, edx
mov dword [esi + 0x104], ecx
mov dword [esi + 0x108], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040614e
mov esp, ebp
pop ebp
ret
Function at 0x402710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041ad50
mov eax, dword [0x427008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0x2014]
cmp eax, dword [edi + 0x2010]
je 0x4028d3
inc eax
xor ecx, ecx
cmp eax, dword [edi + 0x2018]
push esi
cmovg eax, ecx
mov dword [edi + 0x2014], eax
cmp dword [edi + 0x104], ecx
je 0x40281f
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [eax + eax]
dec dword [edi + 0x104]
push 0
push 0
push 0xffffffffffffffff
push 0x423f7c
push 0
push 0xfde9
call esi
cmp eax, 0x800
ja 0x402811
push eax
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
push 0x423f7c
push 0
push 0xfde9
call esi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
push 0
push 1
call ebx
cmp eax, 0x800
ja 0x402811
push 0
push 0
push eax
lea eax, [ebp - 0x1004]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
push 0
push 1
call ebx
lea eax, [ebp - 0x1004]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4027f0
push 0
push 0
sub eax, edx
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [edi + 0x2028]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 0x104], 0
jne 0x402770
pop ebx
dec dword [edi + 0x104]
mov eax, dword [edi + 0x2014]
cmp eax, dword [edi + 0x2010]
jne 0x40286d
mov eax, dword [edi + 0x20c]
test eax, eax
jle 0x40285f
push eax
lea eax, [edi + 0x10c]
push eax
lea esi, [edi + 4]
push esi
call fcn.00409450
add esp, 0xc
mov ecx, edi
push dword [edi + 0x20c]
push esi
call fcn.00402f50
mov eax, dword [edi + 0x20c]
mov dword [edi + 0x104], eax
jmp 0x4028c6
shl eax, 8
mov ecx, edi
add eax, 0x210
push 0
add eax, edi
push eax
call fcn.00402f50
mov eax, dword [edi + 0x2014]
shl eax, 8
add eax, 0x210
add eax, edi
push pe_nt_image_headers32
push eax
lea eax, [edi + 4]
push eax
call fcn.00409450
mov eax, dword [edi + 0x2014]
lea ecx, [edi + 0x210]
shl eax, 8
add esp, 0xc
add ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028b7
sub ecx, edx
mov dword [edi + 0x104], ecx
mov eax, dword [edi + 0x104]
mov dword [edi + 0x108], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040614e
mov esp, ebp
pop ebp
ret
Function at 0x402b80
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x427008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x404]
push str._d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040614e
mov esp, ebp
pop ebp
ret

Function at 0x4144c7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414187
Function at 0x401029
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x423f20]
and dword [ebp - 8], 0
mov dword [ebp - 0x24], eax
mov eax, dword [0x423f24]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
call fcn.00401022
mov eax, dword [0x423f28]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x18], eax
mov eax, dword [0x423f2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, dword [0x2443ef4]
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp - 0x18]
cmp eax, 0xfa9
jne 0x40109c
mov dword [0x2443ef0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010aa
and dword [0x244397c], 0
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, esi
xor eax, edx
xor eax, ecx
sub edi, eax
cmp dword [0x2443ef4], 0xc
mov dword [0x2443eec], 0xf4ea3dee
mov dword [ebp - 4], eax
jne 0x4010f1
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, edi
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 0x61c88647
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x24]
add ecx, edi
xor eax, ecx
xor eax, dword [ebp - 4]
sub esi, eax
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jne 0x401073
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
leave
ret

Function at 0x40112f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2443ef4]
mov ecx, dword [0x2443980]
sub esp, 0xc00
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4011ea
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x2443ef4], 0x959
jne 0x4011d9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Mokigehate_xolega_viricuh_mazu_fiboy
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push str.zewaxuwawazuwuyuvivi
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push str.ozofowegad_dinomebaxedidox
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push str.pajebipew
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00401029
add ebx, 8
dec edi
jne 0x401157
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4014b6
Capabilities:
Clear file content
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
xor esi, esi
cmp dword [0x2443ef4], 0x400
push edi
jne 0x401514
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
push esi
call fcn.00401e46
push esi
push esi
call fcn.004017e8
push esi
call fcn.00401de1
push esi
push esi
call fcn.00401c2c
push esi
call fcn.00401f24
push esi
push esi
call fcn.004016ec
add esp, 0x28
xor edi, edi
cmp edi, 0x16d2a
jge 0x40152c
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsI]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e82fe
jg 0x401551
inc edi
cmp edi, 0x3011b
jl 0x401516
mov eax, dword [0x426864]
mov dword [0x2443ef4], eax
call fcn.004011ed
mov edi, 0x2ec37
cmp dword [0x2443ef4], 0x51f
jne 0x40157f
push esi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401565
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40709a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423cfc]
jne 0x4070a4
repz ret
jmp fcn.00409116