joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013c5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4159d0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x415b7a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
sub byte [esi + ebx], 0x6c
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xc6
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0x89
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x24
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x1a
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
add esp, 0x44
push eax
call fcn.0040616d
add byte [esi + ebx], 0xce
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xc6
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x14
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x29
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x79
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x58
add esp, 0x40
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x72
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0x18
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x14
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 6
add esp, 0x30
inc esi
cmp esi, edi
jb 0x4159f0
pop ebx
pop edi
pop esi
ret

Function at 0x4035f3
Capabilities:
Terminate process

Disassembly:
jmp 0x453df9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453e0a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405948
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40371f
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c842
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c853
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c729
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c87b
push ebx
push esi
push edi
call fcn.0040572c
add esp, 0xc
push 0
call fcn.004062b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4088d0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44ae48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45dbcc]
mov eax, 0x61b9fbc5
imul ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
push esi
mov esi, dword [0x45dbd4]
push edi
mov edi, eax
mov eax, 0x830d168d
imul esi
add edx, esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbe8]
mov ebx, eax
imul edx, edx, 0x3409f8e
mov eax, ecx
imul eax, eax, 0x35f16dd
sub ebx, edi
add ebx, edx
add ebx, eax
mov eax, 0x56f92285
imul esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, 0x56f92285
imul ecx
mov eax, dword [0x573f4c]
sar edx, 0x19
mov ecx, edx
add ebx, edx
mov edx, dword [0x45dbdc]
imul edx, edx, 0x3e67c56
shr ecx, 0x1f
add ecx, ebx
add ecx, edx
mov dword [str._r_____r____], ecx
mov ecx, 0x573f4c
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [0x45dbd8]
mov eax, 0x6386b3b9
imul ecx
imul ecx, ecx, 0x5e30a0c
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbd0]
mov esi, eax
mov eax, 0x31b1a317
imul edx
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbe8]
imul edx, edx, 0x3409f8e
sub esi, eax
add esi, edx
add esi, ecx
mov ecx, dword [0x45dbdc]
mov eax, 0x56f92285
imul ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], 0
sub esi, eax
mov ecx, dword [0x45dbc8]
mov eax, dword [0x45dbe4]
imul ecx, ecx, 0x3e67c56
add esi, ecx
sub esi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
sub esi, 0x2927ae2
push eax
lea ecx, [esp + 0x14]
mov dword [0x45dbd0], esi
call fcn.00408640
mov ecx, dword [0x45dbcc]
mov edx, dword [0x45dbd0]
mov eax, dword [0x45dbdc]
mov esi, dword [0x45dbe4]
imul eax, eax, 0x2927ae2
lea edi, [edx + ecx]
imul edi, edi, 0x53d3666
add edi, eax
mov eax, 0x830d168d
imul esi
add edx, esi
sar edx, 0x19
mov ebx, edx
add edi, edx
mov eax, 0x56f92285
imul esi
sar edx, 0x19
mov esi, edx
shr ebx, 0x1f
add ebx, edi
add ebx, edx
mov edx, dword [0x45dbe0]
imul edx, edx, 0x539869b
shr esi, 0x1f
add esi, ebx
add esi, edx
mov eax, 0x8345522b
imul ecx
add edx, ecx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov dword [0x45dbdc], esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x408acb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b710
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45f540]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41b812
lea ecx, [esp + 0xc]
call fcn.0041b5f0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41b816
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41b7ee
jmp 0x41b7b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041b710
mov edi, eax
test edi, edi
jne 0x41b83d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41b7b0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b805
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b821
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004301cd
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b84c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41b823
Function at 0x41bd30
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41bd42
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4272ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x42730d
call fcn.00448303
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x42730d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x427303
xor eax, eax
jmp 0x427426
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x42733d
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x42733d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x427423
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42736a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00427a4d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x427423
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4273b3
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4273b3
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4273ad
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00427a4d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x427413
and dword [ebp + 0xc], 0
jmp 0x427413
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x427413
push 0xc
call fcn.00441f09
mov esi, eax
test esi, esi
pop ecx
je 0x4273f5
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4273f7
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42740e
push dword [ebp - 8]
call fcn.0043d954
jmp 0x427413
call fcn.0043d92b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x427378
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43073d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43075d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004329ac
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x430780
test byte [esp + 8], 2
je 0x430780
call fcn.0043299a
mov dword [eax], 0xd
call fcn.004329a3
mov dword [eax], 5
jmp 0x430759
xor eax, eax
ret
Function at 0x430847
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4516d8
call fcn.0043281c
push 8
call fcn.00434a36
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x573a3c], esi
jne 0x43087b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x573a38], esi
mov al, byte [ebp + 0x10]
mov byte [0x573a34], al
cmp dword [ebp + 0xc], edi
jne 0x4308c5
cmp dword [0x57532c], edi
je 0x4308b5
mov eax, dword [0x575328]
sub eax, 4
mov dword [0x575328], eax
cmp eax, dword [0x57532c]
jb 0x4308b5
mov eax, dword [eax]
cmp eax, edi
je 0x430896
call eax
jmp 0x430896
push 0x45a0cc
mov eax, 0x45a0c4
call fcn.004307c5
pop ecx
push 0x45a0d8
mov eax, 0x45a0d0
call fcn.004307c5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4308f6
cmp dword [ebp + 0x10], edi
jne 0x430904
mov dword [0x573a3c], esi
push dword [ebp + 8]
call fcn.00430783
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x430903
push 8
call fcn.00434981
pop ecx
ret
call fcn.00432857
ret

Function at 0x430b77
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00430a10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430c12
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x5739fc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x430c12
cmp eax, 1
je 0x430c33
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430c12
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x430bdf
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x430c0e
xor eax, eax
inc eax
jmp 0x430c52
cmp edi, eax
jae 0x430c16
xor eax, eax
jmp 0x430c52
cmp eax, esi
jae 0x430c1d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5739fc]
jmp 0x430c36
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4315c2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x451790
call fcn.0043281c
mov edi, 0x94
mov eax, edi
call fcn.00430a10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x5739fc], ecx
mov eax, dword [esi + 4]
mov dword [0x573a08], eax
mov edx, dword [esi + 8]
mov dword [0x573a0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x573a00], esi
cmp ecx, 2
je 0x431622
or esi, 0x8000
mov dword [0x573a00], esi
shl eax, 8
add eax, edx
mov dword [0x573a04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43165d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43165d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x431675
cmp eax, 0x20b
je 0x431662
mov dword [ebp - 0x1c], esi
jmp 0x431689
cmp dword [ecx + 0x84], 0xe
jbe 0x43165d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x431683
cmp dword [ecx + 0x74], 0xe
jbe 0x43165d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00434b72
pop ecx
test eax, eax
jne 0x43169d
push 0x1c
call fcn.0043159e
pop ecx
call fcn.004339e9
test eax, eax
jne 0x4316ae
push 0x10
call fcn.0043159e
pop ecx
call fcn.00434a67
mov dword [ebp - 4], esi
call fcn.00437710
test eax, eax
jge 0x4316c7
push 0x1b
call fcn.00431579
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x575320], eax
call fcn.004375ee
mov dword [0x573a48], eax
call fcn.0043754c
test eax, eax
jge 0x4316ed
push 8
call fcn.00431579
pop ecx
call fcn.00437319
test eax, eax
jge 0x4316fe
push 9
call fcn.00431579
pop ecx
push 1
call fcn.004307dd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x431714
push eax
call fcn.00431579
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004372bc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x431735
movzx eax, word [ebp - 0x40]
jmp 0x431738
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043cff4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x431756
push edi
call fcn.0043090a
call fcn.0043092c
jmp 0x431788
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00432857
ret
Function at 0x435701
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43572f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x435736
cmp ebx, dword [eax + 4]
jae 0x435736
xor eax, eax
jmp 0x435926
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x435747
xor eax, eax
inc eax
jmp 0x435925
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43575d
cmp ecx, edx
jae 0x4358a2
cmp dword [eax + 4], 0
je 0x435766
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43574e
cmp dword [ebp + 8], 0
je 0x435788
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4358a2
cmp eax, esi
jae 0x4358a2
mov eax, dword [0x573bd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4357ad
cmp dword [esi*4 + 0x573be0], edi
je 0x4358a6
inc esi
cmp esi, eax
jl 0x43579b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x435922
cmp dword [ebp - 8], 0x1000000
jne 0x435922
test byte [ebp - 0xc], 0xcc
je 0x43582b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x435922
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x435922
cmp word [eax + 0x18], 0x10b
jne 0x435922
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x435922
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43582b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43582b
test byte [ecx + 0x27], 0x80
jne 0x4358a2
push 1
push 0x573c20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43573f
mov ecx, dword [0x573bd8]
test ecx, ecx
mov edx, ecx
jle 0x43585f
lea eax, [ecx*4 + 0x573bdc]
cmp dword [eax], edi
je 0x43585f
dec edx
sub eax, 4
test edx, edx
jg 0x435853
test edx, edx
jne 0x435890
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43586c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x435884
lea eax, [edx*4 + 0x573be0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x435872
cmp ecx, 0x10
jge 0x435890
inc ecx
mov dword [0x573bd8], ecx
push 0
push 0x573c20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43573f
xor eax, eax
jmp 0x435925
test esi, esi
jle 0x43573f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x573c20
call ebx
test eax, eax
jne 0x43573f
cmp dword [esi*4 + 0x573be0], edi
je 0x4358fc
mov eax, dword [0x573bd8]
lea esi, [eax - 1]
test esi, esi
jl 0x4358ea
cmp dword [esi*4 + 0x573be0], edi
je 0x4358e6
dec esi
jns 0x4358da
test esi, esi
jge 0x4358fa
cmp eax, 0x10
jge 0x4358f5
inc eax
mov dword [0x573bd8], eax
lea esi, [eax - 1]
jmp 0x4358fc
je 0x435914
xor ecx, ecx
test esi, esi
jl 0x435914
lea eax, [ecx*4 + 0x573be0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x435902
push 0
push 0x573c20
call ebx
jmp 0x43573f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436fa7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x45f540]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x45fe20]
je 0x436fde
inc eax
cmp eax, 0x13
jb 0x436fcf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45fe20]
jne 0x437101
mov eax, dword [0x573a50]
cmp eax, 1
je 0x4370dc
cmp eax, edx
jne 0x43700e
cmp dword [0x45f584], 1
je 0x4370dc
cmp ecx, 0xfc
je 0x437101
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x437044
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00438750
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00431b30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x437078
mov eax, edi
push eax
call fcn.00431b30
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4518d8
push edi
call fcn.00431410
add esp, 0x10
push edi
call fcn.00431b30
push dword [esi + 0x45fe24]
mov ebx, eax
call fcn.00431b30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00430a10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00438750
push edi
push ebx
call fcn.00438760
push 0x44e280
push ebx
call fcn.00438760
push dword [esi + 0x45fe24]
push ebx
call fcn.00438760
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043925a
add esp, 0x2c
jmp 0x437101
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x45fe24]
push dword [esi]
call fcn.00431b30
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]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004301cd
add ebp, 0x90
leave
ret
Function at 0x43925a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x573e70], ebx
push esi
push edi
jne 0x4392da
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x439315
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4526f4
push edi
call esi
test eax, eax
mov dword [0x573e70], eax
je 0x439315
push 0x4526e4
push edi
call esi
push 0x4526d0
push edi
mov dword [0x573e74], eax
call esi
cmp dword [0x5739fc], 2
mov dword [0x573e78], eax
jne 0x4392da
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x573e80], eax
je 0x4392da
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x573e7c], eax
mov eax, dword [0x573e7c]
test eax, eax
je 0x43931f
call eax
test eax, eax
je 0x439306
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x573e80]
test eax, eax
je 0x439306
test byte [ebp - 8], 1
jne 0x43931f
cmp dword [0x573a08], 4
jb 0x439319
or byte [ebp + 0x12], 0x20
jmp 0x43933e
xor eax, eax
jmp 0x43934e
or byte [ebp + 0x12], 4
jmp 0x43933e
mov eax, dword [0x573e74]
test eax, eax
je 0x43933e
call eax
mov ebx, eax
test ebx, ebx
je 0x43933e
mov eax, dword [0x573e78]
test eax, eax
je 0x43933e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x573e70]
pop edi
pop esi
pop ebx
leave
ret