joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422243
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x4223a5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4223ad
mov dword [ecx*4 + 0x4335e0], eax
inc ecx
cmp ecx, 0x100
jb 0x4223a8
pop esi
ret

Function at 0x422721
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x422869
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x422759
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42275e
inc esi
cmp esi, dword [ebp - 8]
jb 0x422750
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42284a
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x4227dd
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42278a
cmp cl, 0xff
jne 0x42280c
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, 5
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x42281d
movzx edi, byte [edx + 0x4289a8]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x4227cd
cmp bl, 0xff
jne 0x42281a
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x4227a5
dec ecx
shl edx, cl
and edx, 7
je 0x422777
movzx ecx, byte [edx + 0x4289a8]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4289a0], 0
mov cl, byte [ebx + 4]
je 0x422809
test cl, cl
je 0x422809
cmp cl, 0xff
jne 0x422777
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42274b
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x42274b
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret
Function at 0x40ac80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41bb30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x421140]
push esi
mov esi, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x34]
push eax
lea ecx, [esp + 0x3c]
call fcn.00411a80
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
push edx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x84], 0
call fcn.0040a040
mov esi, eax
mov ecx, dword [esi]
push 0xffffffffffffffff
push 0
lea edx, [esi + 4]
mov dword [esp + 0x40], ecx
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 1
call fcn.00402080
mov eax, dword [esi + 0x20]
mov dword [esp + 0x58], eax
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x5c], ecx
mov edx, dword [esi + 0x28]
mov dword [esp + 0x60], edx
mov al, byte [esi + 0x2c]
mov byte [esp + 0x64], al
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 4]
mov byte [esp + 0x78], 0
call fcn.00411ab0
lea ecx, [esp + 0x38]
call fcn.004119e0
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x78], 0xffffffff
call fcn.00411ab0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop esi
call fcn.00412dca
add esp, 0x78
ret 8
Function at 0x40d067
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41bd69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea edi, [esi + 0x10]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00401e50
mov dword [edi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x6c], 0xf
mov dword [esi + 0x68], ebx
mov byte [esi + 0x58], bl
mov ecx, esi
mov byte [esp + 0x18], 3
mov dword [esi + 0x70], 0xffffffff
mov dword [esi + 0x78], 4
mov dword [esi + 0x30], ebx
mov dword [esi + 0x7c], 0x4000
mov byte [esi + 0x80], bl
mov byte [esi + 0x81], bl
mov byte [esi + 0x82], bl
call fcn.0040ceb0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40de20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x1d
push edi
jle 0x40de36
cmp eax, 0x27
jge 0x40de36
mov edi, 3
jmp 0x40de6b
cmp eax, 2
jle 0x40de47
cmp eax, 6
jge 0x40de47
mov edi, 1
jmp 0x40de6b
test eax, eax
jle 0x40de54
cmp eax, 1
jge 0x40de54
xor edi, edi
jmp 0x40de6b
cmp eax, 7
jle 0x40df0f
cmp eax, 0x1c
jge 0x40df0f
mov edi, 2
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, dword [esi + 0x28]
or ecx, 0xffffffff
cmp ebx, ecx
jne 0x40de83
mov edx, dword [esi + 0x14]
mov ebx, dword [edx + 0x70]
jmp 0x40de86
mov dword [esi + 0x28], ecx
mov edx, dword [esi + 0x14]
cmp dword [edx + 0x70], ecx
mov ecx, esi
push eax
jne 0x40deb8
call fcn.0040dd40
mov ecx, dword [edi*4 + 0x4210d8]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push str._s__d_:__s_n
push 0x421b00
call fcn.004135c2
add esp, 0x14
jmp 0x40dede
call fcn.0040dd40
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi*4 + 0x4210d8]
push ebx
push edx
push eax
push str._s__d__on_line__d:__s_n
push 0x421b00
call fcn.004135c2
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
push 0x421b00
call fcn.0041380c
mov ecx, dword [esi + edi*4 + 0x18]
add esp, 8
inc ecx
cmp edi, 3
mov dword [esi + edi*4 + 0x18], ecx
jne 0x40df05
push 0
call fcn.004137cc
cmp edi, dword [esi + 0x10]
jle 0x40df0d
mov dword [esi + 0x10], edi
pop esi
pop ebx
pop edi
ret
Function at 0x40f9b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41bf28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x421140]
push esi
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push 0
mov esi, ecx
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00402080
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0xc]
mov dword [esp + 0x30], 0
call fcn.0040f8d0
lea edx, [esp + 0x38]
push edx
mov ecx, eax
call fcn.0040ea60
cmp dword [esp + 0x1c], 0x10
pop esi
jb 0x40fa31
mov eax, dword [esp + 4]
push eax
call fcn.00412c8d
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c]
call fcn.00412dca
add esp, 0x2c
ret 8
Function at 0x410140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41bf9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push 0x50
call fcn.00412748
add esp, 4
xor ebx, ebx
cmp eax, ebx
je 0x41018e
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov ecx, 0xf
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x28], ebx
mov byte [eax + 0x18], bl
mov dword [eax + 0x48], ecx
mov dword [eax + 0x44], ebx
mov byte [eax + 0x34], bl
mov esi, eax
jmp 0x410190
xor esi, esi
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.00402080
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esi + 0x14]
call fcn.00402080
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x411900
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0x421f00
push eax
push ecx
call fcn.004117a0
mov eax, dword [0x4210fc]
add esp, 0xc
cmp eax, 1
jae 0x411944
push str.Small_AMX_Assembler_1.02_n
call fcn.0041338b
push str._C_2004_David_BAILOPAN_Anderson_n
call fcn.0041338b
add esp, 8
call fcn.00411740
push 0
call fcn.004137cc
push 0x4210e8
mov ecx, 0x421f00
call fcn.00402ce0
mov ecx, 0x421f00
call fcn.0040ae30
test al, al
je 0x411991
mov eax, dword [0x421118]
test eax, eax
mov eax, 0x421104
jne 0x411974
mov eax, 0x4210e8
push eax
mov ecx, 0x421f00
call fcn.004063e0
test al, al
je 0x41198a
push str.Done._n
jmp 0x411996
push str.Compile_build_failed._n
jmp 0x411996
push str.Compile_failed._n
call fcn.0041338b
add esp, 4
push 0
call fcn.004137cc
int3
Function at 0x41370b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x421ff4], esi
push edi
jne 0x41372b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x421ff0], esi
mov byte [0x421fec], al
jne 0x413791
mov ecx, dword [0x4235f0]
test ecx, ecx
je 0x413772
mov eax, dword [0x4235ec]
sub eax, 4
cmp eax, ecx
jmp 0x41376b
mov eax, dword [eax]
test eax, eax
je 0x41375d
call eax
mov eax, dword [0x4235ec]
sub eax, 4
cmp eax, dword [0x4235f0]
mov dword [0x4235ec], eax
jae 0x413755
mov eax, 0x421030
mov esi, 0x421038
cmp eax, esi
mov edi, eax
jae 0x413791
mov eax, dword [edi]
test eax, eax
je 0x41378a
call eax
add edi, 4
cmp edi, esi
jb 0x413782
mov eax, 0x42103c
mov esi, 0x421044
cmp eax, esi
mov edi, eax
jae 0x4137b0
mov eax, dword [edi]
test eax, eax
je 0x4137a9
call eax
add edi, 4
cmp edi, esi
jb 0x4137a1
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4137ca
push dword [ebp + 8]
mov dword [0x421ff4], 1
call fcn.00413671
pop ebp
ret
Function at 0x413b6f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x18
push 0x41ddd8
call fcn.004147cc
mov edi, 0x94
mov eax, edi
call fcn.00417f10
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 [0x421fb4], ecx
mov eax, dword [esi + 4]
mov dword [0x421fc0], eax
mov edx, dword [esi + 8]
mov dword [0x421fc4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x421fb8], esi
cmp ecx, 2
je 0x413bcf
or esi, 0x8000
mov dword [0x421fb8], esi
shl eax, 8
add eax, edx
mov dword [0x421fbc], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x413c08
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413c08
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x413c20
cmp eax, 0x20b
je 0x413c0d
mov dword [ebp - 0x1c], edi
jmp 0x413c34
cmp dword [ecx + 0x84], 0xe
jbe 0x413c08
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x413c2e
cmp dword [ecx + 0x74], 0xe
jbe 0x413c08
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00416ace
pop ecx
test eax, eax
jne 0x413c60
cmp dword [0x422000], 2
je 0x413c4d
call fcn.004177b9
push 0x1c
call fcn.00417642
push 0xff
call fcn.00413671
pop ecx
pop ecx
call fcn.004168df
mov dword [ebp - 4], edi
call fcn.00417d5a
test eax, eax
jge 0x413c79
push 0x1b
call fcn.00413b4a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4235e4], eax
call fcn.00417c38
mov dword [0x421ff8], eax
call fcn.00417b96
test eax, eax
jge 0x413c9f
push 8
call fcn.00413b4a
pop ecx
call fcn.00417963
test eax, eax
jge 0x413cb0
push 9
call fcn.00413b4a
pop ecx
push 1
call fcn.004136a1
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x413cc6
push eax
call fcn.00413b4a
pop ecx
mov eax, dword [0x421fd4]
mov dword [0x421fd8], eax
push eax
push dword [0x421fcc]
push dword [0x421fc8]
call fcn.00411900
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x413cf5
push esi
call fcn.004137cc
call fcn.004137ee
jmp 0x413d27
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00414807
ret
Function at 0x41431d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x422480]
mov eax, dword [0x421140]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4144e3
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4224a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4144e3
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x414387
xor eax, eax
jmp 0x4144f7
test al, 0x20
je 0x414398
push 2
push edi
push edi
push ecx
call fcn.00418017
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41446d
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4144b4
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4143fa
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4143eb
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4143cd
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41443a
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x414446
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4143c1
jmp 0x414448
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4144de
cmp dword [ebp + 0x3a4], edi
je 0x4144b4
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4144a6
mov dword [0x421fac], eax
jmp 0x4144ea
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414498
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x414448
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x414448
push dword [ebp + 0x3a4]
call fcn.00417fb8
pop ecx
jmp 0x4144f4
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4144cc
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x414380
mov dword [0x421fa8], 0x1c
mov dword [0x421fac], edi
jmp 0x4144f4
sub eax, dword [ebp - 0x7c]
jmp 0x4144f7
and dword [0x421fac], 0
mov dword [0x421fa8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00412dca
add ebp, 0x39c
leave
ret
Function at 0x417642
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x421140]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x421460]
je 0x417677
inc eax
cmp eax, 0x13
jb 0x417668
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421460]
jne 0x41779d
mov eax, dword [0x422000]
cmp eax, 1
je 0x417775
cmp eax, edx
jne 0x4176a7
cmp dword [0x421188], 1
je 0x417775
cmp ecx, 0xfc
je 0x41779d
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4176dd
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004152b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00413de0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417711
mov eax, edi
push eax
call fcn.00413de0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41de1c
push edi
call fcn.00418210
add esp, 0x10
push edi
call fcn.00413de0
push dword [esi + 0x421464]
mov ebx, eax
call fcn.00413de0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00417f10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004152b0
push edi
push ebx
call fcn.004152c0
push 0x41de18
push ebx
call fcn.004152c0
push dword [esi + 0x421464]
push ebx
call fcn.004152c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041810d
add esp, 0x2c
jmp 0x41779d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x421464]
push dword [esi]
call fcn.00413de0
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]
mov ecx, dword [ebp + 0x88]
call fcn.00412dca
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41810d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x422174], ebx
push esi
push edi
jne 0x41818d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4181c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x422174], eax
je 0x4181c8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x422178], eax
call esi
cmp dword [0x421fb4], 2
mov dword [0x42217c], eax
jne 0x41818d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x422184], eax
je 0x41818d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x422180], eax
mov eax, dword [0x422180]
test eax, eax
je 0x4181d2
call eax
test eax, eax
je 0x4181b9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x422184]
test eax, eax
je 0x4181b9
test byte [ebp - 8], 1
jne 0x4181d2
cmp dword [0x421fc0], 4
jb 0x4181cc
or byte [ebp + 0x12], 0x20
jmp 0x4181f1
xor eax, eax
jmp 0x418201
or byte [ebp + 0x12], 4
jmp 0x4181f1
mov eax, dword [0x422178]
test eax, eax
je 0x4181f1
call eax
mov ebx, eax
test ebx, ebx
je 0x4181f1
mov eax, dword [0x42217c]
test eax, eax
je 0x4181f1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x422174]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418334
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 0x418362
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 0x418369
cmp ebx, dword [eax + 4]
jae 0x418369
xor eax, eax
jmp 0x418559
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41837a
xor eax, eax
inc eax
jmp 0x418558
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x418390
cmp ecx, edx
jae 0x4184d5
cmp dword [eax + 4], 0
je 0x418399
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x418381
cmp dword [ebp + 8], 0
je 0x4183bb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4184d5
cmp eax, esi
jae 0x4184d5
mov eax, dword [0x422188]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4183e0
cmp dword [esi*4 + 0x422190], edi
je 0x4184d9
inc esi
cmp esi, eax
jl 0x4183ce
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x418555
cmp dword [ebp - 8], 0x1000000
jne 0x418555
test byte [ebp - 0xc], 0xcc
je 0x41845e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x418555
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x418555
cmp word [eax + 0x18], 0x10b
jne 0x418555
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x418555
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41845e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41845e
test byte [ecx + 0x27], 0x80
jne 0x4184d5
push 1
push 0x4221d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x418372
mov ecx, dword [0x422188]
test ecx, ecx
mov edx, ecx
jle 0x418492
lea eax, [ecx*4 + 0x42218c]
cmp dword [eax], edi
je 0x418492
dec edx
sub eax, 4
test edx, edx
jg 0x418486
test edx, edx
jne 0x4184c3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41849f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4184b7
lea eax, [edx*4 + 0x422190]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4184a5
cmp ecx, 0x10
jge 0x4184c3
inc ecx
mov dword [0x422188], ecx
push 0
push 0x4221d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x418372
xor eax, eax
jmp 0x418558
test esi, esi
jle 0x418372
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4221d0
call ebx
test eax, eax
jne 0x418372
cmp dword [esi*4 + 0x422190], edi
je 0x41852f
mov eax, dword [0x422188]
lea esi, [eax - 1]
test esi, esi
jl 0x41851d
cmp dword [esi*4 + 0x422190], edi
je 0x418519
dec esi
jns 0x41850d
test esi, esi
jge 0x41852d
cmp eax, 0x10
jge 0x418528
inc eax
mov dword [0x422188], eax
lea esi, [eax - 1]
jmp 0x41852f
je 0x418547
xor ecx, ecx
test esi, esi
jl 0x418547
lea eax, [ecx*4 + 0x422190]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x418535
push 0
push 0x4221d0
call ebx
jmp 0x418372
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret