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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb6000]
push edi
or ebp, 0xffffffff
jmp 0x543342
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x543349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x543338
mov eax, 1
add ebx, ebx
jne 0x54335b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x54336c
jne 0x54338b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54338b
dec eax
add ebx, ebx
jne 0x543378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x543350
add ebx, ebx
jne 0x543387
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5433dd
xor ecx, ecx
sub eax, 3
jb 0x5433a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x543412
sar eax, 1
mov ebp, eax
jmp 0x5433ae
add ebx, ebx
jne 0x5433ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54337c
inc ecx
add ebx, ebx
jne 0x5433bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54337c
add ebx, ebx
jne 0x5433c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5433be
jne 0x5433da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5433be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5433fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5433ee
jmp 0x54333e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5433fc
add edi, ecx
jmp 0x54333e
pop esi
mov edi, esi
mov ecx, 0x45f7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x54341a
cmp byte [edi], 0x19
jne 0x54341a
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 0x54341f
lea edi, [esi + 0x140000]
mov eax, dword [edi]
or eax, eax
je 0x543497
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x144988]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x144a84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x54344c
mov ecx, edi
jns 0x54347b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x144a8c]
or eax, eax
je 0x543491
mov dword [ebx], eax
add ebx, 4
jmp 0x543469
call dword [esi + 0x144a88]
mov ebp, dword [esi + 0x144a90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x5434cb
sub esp, 0xffffff80
jmp 0x401380
Function at 0x44b2f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044b175

Function at 0x4506f4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045038e
Function at 0x40de73
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040931a
mov dword [ebp - 0x14], eax
cmp dword [0x431b00], esi
jne 0x40df66
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40def3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e046
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e046
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e046
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x431b00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x431b04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x431b08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431b10], eax
test eax, eax
je 0x40df63
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431b0c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40df8b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40df7e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40dfa0
push 4
pop eax
jmp 0x40e048
cmp dword [ebp - 0x14], esi
je 0x40dfa0
push dword [0x431b00]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40df85
mov eax, dword [0x431b0c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40dffe
cmp dword [0x431b10], edi
je 0x40dffe
push eax
call ebx
push dword [0x431b10]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40dffe
test eax, eax
je 0x40dffe
call ecx
test eax, eax
je 0x40dff3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40dff3
test byte [ebp - 8], 1
jne 0x40dffe
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e02e
mov eax, dword [0x431b04]
cmp eax, edi
je 0x40e02b
push eax
call ebx
test eax, eax
je 0x40e02b
call eax
mov esi, eax
test esi, esi
je 0x40e02b
mov eax, dword [0x431b08]
cmp eax, edi
je 0x40e02b
push eax
call ebx
test eax, eax
je 0x40e02b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x431b00]
call ebx
test eax, eax
je 0x40e046
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e048
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404429
mov esp, ebp
pop ebp
ret
Function at 0x4019d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 5], 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401a37
mov eax, dword [ebp + 0x14]
push eax
call fcn.00418820
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401a2d
mov byte [ebp - 5], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x406700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x43b198]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x43c6b8]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.004069c0
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
push 1
push 0
lea edx, [ebp - 0x118]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406791
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406781
mov byte [ebp - 1], 1
jmp 0x406787
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041848f
mov esp, ebp
pop ebp
ret

Function at 0x4067b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43b198]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x43c6b8]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.004069c0
add esp, 0x10
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x118]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406841
mov eax, dword [ebp + 0x10]
push eax
call fcn.00418820
add esp, 4
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x406837
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 5]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041848f
mov esp, ebp
pop ebp
ret
Function at 0x406860
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x43b198]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x43c6b8]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.004069f0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.SOFTWAREElectronic_Arts_s_s
lea eax, [ebp - 0x228]
push eax
call fcn.004069f0
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
push str.SOFTWAREElectronic_Arts_s
lea edx, [ebp - 0x1a8]
push edx
call fcn.004069f0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x2a8]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4069a7
lea edx, [ebp - 0x2a8]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4069a7
lea eax, [ebp - 0x228]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4069a7
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x118]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x1a8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4069a7
mov dword [ebp - 0x124], 0x104
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x4069a7
lea edx, [ebp - 0x1a8]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041848f
mov esp, ebp
pop ebp
ret
Function at 0x4086b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
shr eax, 4
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 0x10
div ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], 0
mov dx, word [ebp + 0x18]
push edx
movzx eax, word [ebp - 0x18]
push eax
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40871d
push 0x809
movzx edx, word [ebp - 0x18]
push edx
push 6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40873c
push 0x1009
movzx ecx, word [ebp - 0x18]
push ecx
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4087f4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4087f4
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], 0
jmp 0x408779
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
jge 0x4087f4
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
test edx, edx
je 0x4087e6
mov eax, dword [ebp - 0x10]
mov cx, word [eax]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jne 0x4087d7
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.00419120
add esp, 0xc
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
movsx edx, word [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x4087f4
movsx ecx, word [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x10], eax
jmp 0x4087ef
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x408770
xor ax, ax
mov esp, ebp
pop ebp
ret
Function at 0x409500
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f1fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x43b198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
xor eax, eax
cmp dword [ebp + 0x24], 0
sete al
movzx ecx, al
test ecx, ecx
je 0x409577
mov byte [ebp - 0x215], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.00403d60
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.00403cb0
mov al, byte [ebp - 0x215]
jmp 0x409689
cmp dword [ebp + 0x28], 8
jb 0x409588
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c8], edx
jmp 0x409591
lea eax, [ebp + 0x14]
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x2c8]
push ecx
push 0xff
lea edx, [ebp - 0x214]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x409602
mov edx, dword [0x43092c]
push edx
push 0
lea eax, [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x2c]
call fcn.004040b0
mov byte [ebp - 0x216], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.00403d60
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.00403cb0
mov al, byte [ebp - 0x216]
jmp 0x409689
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x234]
push edx
call fcn.00409ec0
add esp, 8
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 2
mov ecx, dword [0x43092c]
push ecx
push 0
mov edx, dword [ebp - 0x288]
push edx
mov ecx, dword [ebp + 0x2c]
call fcn.004040b0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.00403cb0
mov byte [ebp - 0x235], 1
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.00403d60
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.00403cb0
mov al, byte [ebp - 0x235]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041848f
mov esp, ebp
pop ebp
ret

Function at 0x40a100
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x40a132
push edi
mov edi, dword [esp + 0xc]
movzx edx, byte [ecx + edi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43cac0]
add ecx, 1
cmp ecx, esi
jl 0x40a114
pop edi
pop esi
ret

Function at 0x4157a0
Capabilities:
Encode data using xor

Disassembly:
jg 0x4157eb
fbld tbyte [ecx]
and al, 0x45
jnp 0x41581f
invalid
jmp 0x4157d9

Function at 0x41848f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b198]
jne 0x418499
repz ret
jmp fcn.0041fdac
Function at 0x420368
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43b4d0]
je 0x420383
inc edi
cmp edi, 0x17
jb 0x420374
cmp edi, 0x17
jae 0x420503
push ebp
push 3
call fcn.00428a7c
cmp eax, 1
pop ecx
je 0x4204cf
push 3
call fcn.00428a7c
test eax, eax
pop ecx
jne 0x4203b7
cmp dword [0x43b1d4], 1
je 0x4204cf
cmp ebx, 0xfc
je 0x420502
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43f198
push ebp
call fcn.0041b975
add esp, 0xc
test eax, eax
je 0x4203ed
push esi
push esi
push esi
push esi
push esi
call fcn.0041feba
add esp, 0x14
push 0x104
mov esi, 0x43f1b1
push esi
push 0
mov byte [0x43f2b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420431
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041b975
add esp, 0xc
test eax, eax
je 0x420431
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041feba
add esp, 0x14
push esi
call fcn.00418820
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x420476
push esi
call fcn.00418820
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43f4ac
push 0x4334cc
sub ecx, eax
push ecx
push eax
call fcn.0041bbfe
add esp, 0x14
test eax, eax
je 0x420476
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041feba
add esp, 0x14
jmp 0x420478
xor esi, esi
push 0x4334c8
push ebx
push ebp
call fcn.0041b9da
add esp, 0xc
test eax, eax
je 0x420498
push esi
push esi
push esi
push esi
push esi
call fcn.0041feba
add esp, 0x14
push dword [edi*8 + 0x43b4d4]
push ebx
push ebp
call fcn.0041b9da
add esp, 0xc
test eax, eax
je 0x4204ba
push esi
push esi
push esi
push esi
push esi
call fcn.0041feba
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004288bf
add esp, 0xc
jmp 0x420502
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x420502
cmp ebp, 0xffffffff
je 0x420502
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43b4d4]
push dword [esi]
call fcn.00418820
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4288bf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041f7e9
xor ebx, ebx
cmp dword [0x43f73c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x428995
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x428a75
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x434f30
push edi
call esi
cmp eax, ebx
je 0x428a75
push eax
call fcn.0041f77b
mov dword [esp], 0x434f20
push edi
mov dword [0x43f73c], eax
call esi
push eax
call fcn.0041f77b
mov dword [esp], 0x434f0c
push edi
mov dword [0x43f740], eax
call esi
push eax
call fcn.0041f77b
mov dword [0x43f744], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041d436
test eax, eax
pop ecx
pop ecx
je 0x428963
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041feba
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x428995
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041f77b
cmp eax, ebx
pop ecx
mov dword [0x43f74c], eax
je 0x428995
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041f77b
pop ecx
mov dword [0x43f748], eax
mov eax, dword [0x43f748]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x428a1a
cmp dword [0x43f74c], ecx
je 0x428a1a
push eax
call fcn.0041f7f2
push dword [0x43f74c]
mov esi, eax
call fcn.0041f7f2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x428a1a
cmp edi, ebx
je 0x428a1a
call esi
cmp eax, ebx
je 0x4289e7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4289e7
test byte [ebp - 0x18], 1
jne 0x428a1a
lea eax, [ebp - 0x10]
push eax
call fcn.0041d46d
test eax, eax
pop ecx
je 0x428a02
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041feba
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x428a11
or dword [ebp + 0x10], 0x200000
jmp 0x428a55
or dword [ebp + 0x10], 0x40000
jmp 0x428a55
mov eax, dword [0x43f740]
cmp eax, dword [ebp - 8]
je 0x428a55
push eax
call fcn.0041f7f2
cmp eax, ebx
pop ecx
je 0x428a55
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x428a55
mov eax, dword [0x43f744]
cmp eax, dword [ebp - 8]
je 0x428a55
push eax
call fcn.0041f7f2
cmp eax, ebx
pop ecx
je 0x428a55
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f73c]
call fcn.0041f7f2
cmp eax, ebx
pop ecx
je 0x428a75
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x428a77
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e77e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43b198]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042e713
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00419120
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42e7cd
cmp dword [ebp - 0x1c], 5
jb 0x42e7e5
jmp 0x42e7e1
cmp dword [ebp - 0x10], 1
jne 0x42e7e5
cmp dword [ebp - 0x1c], 4
ja 0x42e7e1
jne 0x42e7e5
cmp dword [ebp - 0x18], 0
jbe 0x42e7e5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x434fcc
call fcn.0042e5e7
test eax, eax
jge 0x42e806
mov byte [0x43c600], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041848f
add ebp, 0x78
leave
ret
Function at 0x1000f721
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1000f730
pop dword [ebp - 0x24]
mov eax, 0x1000f730
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xee404b08
sub dword [ebp - 0x34], 0x9fee05bd
mov dword [ebp - 0x30], 0x8b776af6
add dword [ebp - 0x30], 0xa6bbe14f
mov dword [ebp - 0x2c], 0x5a43c51e
sub dword [ebp - 0x2c], 0xdf780f0
mov dword [ebp - 0x28], 0x3d6855d9
add dword [ebp - 0x28], 0xc297aa27
lea eax, [ebp - 0x34]
push eax
mov eax, 0x71c7adc9
add eax, 0x9e399227
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xfdfe0fe1
add dword [ebp - 0x34], 0x76745975
mov dword [ebp - 0x30], 0x4d73097c
add dword [ebp - 0x30], 0xf3f957f9
mov dword [ebp - 0x2c], 0x354afbbd
add dword [ebp - 0x2c], 0x2e2470af
mov dword [ebp - 0x28], 0x20a97fe9
add dword [ebp - 0x28], 0xdf568017
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x79e79cc8
add eax, 0x9619a330
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x348ce
push 0
call eax
mov ecx, 0xf85d7d15
add ecx, 0x7a2c2dc
xor esi, esi
add esi, eax
mov edi, 0xbf930490
add edi, 0x506e9570
add edi, dword [ebp - 0x24]
mov edx, 0x34ab8055
xor dword [ebp - 0x14], 0xe40f1653
mov ebx, dword [edi]
sub dword [ebp - 0x18], 0x1928090a
add ebx, edx
xor dword [ebp - 0x1c], ecx
mov dword [esi], ebx
add dword [ebp - 0x20], 0xb92bae42
add esi, 0x2274e12
sub esi, 0x2274e0e
add edi, 0xf5ef4734
add edi, 0xa10b8d0
loop 0x1000f849
add eax, 0xf297
mov ebx, eax
add eax, 0x8a86f784
sub eax, 0x8a86f77f
mov ecx, 0x3a60298d
add ecx, 0xd59fd673
add ecx, dword [ebp - 0x24]
call ebx
leave
ret