joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d046
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001d189
mov dword [ebp - 4], 0x2a43
mov dword [ebp - 8], 0x46e3
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x34], 0xfffffff7
mov dword [ebp - 0x38], 0xdfcc86f8
mov dword [ebp - 0xc], 0
jmp 0x1001d08b
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jge 0x1001d09e
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x28], 0
jmp 0x1001d084
cmp dword [ebp - 4], 0
je 0x1001d0c6
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 4]
cmp dword [ebp - 4], eax
jne 0x1001d0b8
mov dword [ebp - 0x2c], 1
jmp 0x1001d0bc
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add eax, 0x859b
cmp eax, dword [ebp - 4]
jne 0x1001d0dc
mov dword [ebp - 0x18], 1
jmp 0x1001d0e0
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
sub eax, dword [ebp - 8]
cmp eax, 0x3526c715
jne 0x1001d0f9
mov dword [ebp - 0x1c], 1
jmp 0x1001d0fd
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x1c], eax
jne 0x1001d10e
mov dword [ebp - 0x30], 1
jmp 0x1001d112
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
je 0x1001d12f
mov dword [ebp - 0x20], 1
jmp 0x1001d133
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
je 0x1001d148
mov dword [ebp - 0x14], 1
jmp 0x1001d14c
and dword [ebp - 0x14], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp + eax - 0x28], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jg 0x1001d16d
cmp dword [ebp - 8], 0
jne 0x1001d16d
and dword [ebp - 0x24], 0
jmp 0x1001d174
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp + eax - 0x28], ecx
jmp 0x1001d193
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret
Function at 0x1002906b
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10029086
push 0x1649
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x100290ce
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100290b4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100290ce
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10016537
and dword [eax], 0
jmp 0x100290a9
mov esp, ebp
pop ebp
ret

Function at 0x10029d03
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10029d22
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
jmp 0x10029e3d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.10016537
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x10029d9d
push 1
mov ecx, dword [ebp - 4]
call fcn.10016537
mov eax, dword [eax]
sub eax, 5
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jg 0x10029d9d
mov dword [ebp - 0x34], 1
jmp 0x10029da1
and dword [ebp - 0x34], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10016537
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [eax], 0xffffffff
push 0xfffffffffffffff6
pop eax
cmp eax, 0xffffffff
jle 0x10029dcd
mov dword [ebp - 0x14], 1
jmp 0x10029dd1
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jge 0x10029de9
mov eax, 0x46b43d27
test eax, eax
je 0x10029de9
mov dword [ebp - 0x18], 1
jmp 0x10029ded
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.10016537
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jg 0x10029e24
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x10029e24
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.10016537
cmp dword [eax], 0
je 0x10029e24
mov dword [ebp - 0x1c], 1
jmp 0x10029e28
and dword [ebp - 0x1c], 0
push 1
mov ecx, dword [ebp - 4]
call fcn.10016537
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002aa48
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002aa6a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and dword [eax], 0
jmp 0x1002aa8a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1002aa8a
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret
Function at 0x1002bc21
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x6601
push 1
lea eax, [ebp + 8]
push eax
push 0x19d
call fcn.1002b7e4
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002bc5b
xor eax, eax
jmp 0x1002bdb7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002bc79
xor eax, eax
jmp 0x1002bdb7
push 0x7988
push 0x530b
lea eax, [ebp - 0xc]
push eax
push 0x59da
lea eax, [ebp - 8]
push eax
push 1
push 0x2a17
call fcn.1002b841
add esp, 0x1c
cmp dword [ebp - 0xc], 0
jne 0x1002bcac
xor eax, eax
jmp 0x1002bdb7
push 0x61d2
push dword [ebp - 0x10]
push 0x213b
push 0x618b
push 0x3cd3
push 0x654d
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0x459a
lea eax, [ebp - 0x24]
push eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.1002b55a
add esp, 0x30
push 0x58f
push dword [ebp - 8]
push 0
push 0x25fe
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.1002aca1
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 0x775b
lea eax, [ebp - 0xc]
push eax
call fcn.1002bb61
add esp, 0x14
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1002bbc2
add esp, 0xc
push dword [ebp - 4]
call fcn.1002aacb
pop ecx
test eax, eax
jne 0x1002bd41
xor eax, eax
jmp 0x1002bdb7
push 0
push 0x3951
push dword [ebp - 4]
push 0x7c5f
push 0x70f8
call fcn.1002bdbb
add esp, 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002bd9f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x1002bd7c
xor eax, eax
jmp 0x1002bdb7
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002bd95
xor eax, eax
jmp 0x1002bdb7
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002bdb0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x1002bdb4
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10047e91
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x14], 0
jmp 0x10047eae
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffffb
jl 0x1004800c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
jmp 0x10047ecf
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffe7
jl 0x10048007
mov dword [ebp - 8], 0x588e1b61
mov dword [ebp - 0x1c], 0
jmp 0x10047ef0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jge 0x10047f03
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x2c], 0
jmp 0x10047ee9
mov dword [ebp - 8], 1
jmp 0x10047f13
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x10047fa4
mov dword [ebp - 0x20], 2
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10047f44
push 0
push 0x25c1
push 0x114a
push 0
call dword [sym.imp.GDI32.dll_GetPaletteEntries]
mov dword [ebp - 0x20], 1
jmp 0x10047f54
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x10047f9f
mov dword [ebp - 0xc], 0xa10aa43b
mov dword [ebp - 0xc], 1
jmp 0x10047f71
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x10047f9d
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x10047f8d
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x2c]
mov dword [ebp + ecx*4 - 0x2c], eax
jmp 0x10047f6a
jmp 0x10047f4d
jmp 0x10047f0c
mov dword [ebp - 8], 0xfffffff6
jmp 0x10047fb4
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffec
jne 0x10048002
mov dword [ebp - 0x10], 0x23ccde6b
mov dword [ebp - 0x10], 0
jmp 0x10047fd1
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jg 0x10048000
mov dword [ebp - 0x24], 0x421e0bec
mov dword [ebp - 0x24], 0
jmp 0x10047fee
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jg 0x10047ffe
cmp dword [ebp - 0x10], 0
je 0x10047ffc
jmp 0x10047ffe
jmp 0x10047fe7
jmp 0x10047fca
jmp 0x10047fad
jmp 0x10047ec8
jmp 0x10047ea7
push 0x1ebc
push 0
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov esp, ebp
pop ebp
ret
Function at 0x10053970
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x10672c4f]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x10672d80
call fcn.10051f70
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x10056620
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10086330]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x10056644
jmp 0x100566b3
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x10056658
jmp 0x100566b3
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x10056684
jmp 0x100566b3
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x100566a5
jmp 0x100566b3
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10066e09
mov esp, ebp
pop ebp
ret
Function at 0x1007b242
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10086330]
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.1006ae7a
mov dword [ebp - 0x14], eax
cmp dword [0x10673ed4], esi
jne 0x1007b335
push 0x800
push esi
push 0x10007bbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007b2c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007b415
push esi
push esi
push 0x10007bbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007b415
push 0x10007bd4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007b415
push eax
call ebx
push 0x10007be0
push edi
mov dword [0x10673ed4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007bf0
push edi
mov dword [0x10673ed8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007c04
push edi
mov dword [0x10673edc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10673ee4], eax
test eax, eax
je 0x1007b332
push 0x10007c20
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10673ee0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007b35a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007b34d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007b36f
push 4
pop eax
jmp 0x1007b417
cmp dword [ebp - 0x14], esi
je 0x1007b36f
push dword [0x10673ed4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007b354
mov eax, dword [0x10673ee0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007b3cd
cmp dword [0x10673ee4], edi
je 0x1007b3cd
push eax
call ebx
push dword [0x10673ee4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007b3cd
test eax, eax
je 0x1007b3cd
call ecx
test eax, eax
je 0x1007b3c2
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 0x1007b3c2
test byte [ebp - 8], 1
jne 0x1007b3cd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007b3fd
mov eax, dword [0x10673ed8]
cmp eax, edi
je 0x1007b3fa
push eax
call ebx
test eax, eax
je 0x1007b3fa
call eax
mov esi, eax
test esi, esi
je 0x1007b3fa
mov eax, dword [0x10673edc]
cmp eax, edi
je 0x1007b3fa
push eax
call ebx
test eax, eax
je 0x1007b3fa
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10673ed4]
call ebx
test eax, eax
je 0x1007b415
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007b417
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10066e09
mov esp, ebp
pop ebp
ret
Function at 0x4020f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402107
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402138
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402134
cmp esi, eax
jae 0x402138
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402124
cmp esi, eax
jb 0x40213e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403750
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x469098
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x473534]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004027b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4037a4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00402af0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004027b0
cmp dword [esp + 0x24], 8
jb 0x4037ea
mov eax, dword [esp + 0x10]
push eax
call fcn.0040473a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40447d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x473534]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004043bc
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.004087b0
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 0x4044cc
cmp dword [ebp - 0x1c], 5
jb 0x4044e4
jmp 0x4044e0
cmp dword [ebp - 0x10], 1
jne 0x4044e4
cmp dword [ebp - 0x1c], 4
ja 0x4044e0
jne 0x4044e4
cmp dword [ebp - 0x18], 0
jbe 0x4044e4
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46a2ec
call fcn.0040426f
test eax, eax
jge 0x404505
mov byte [0x4777b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040473f
add ebp, 0x78
leave
ret

Function at 0x40473f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x473534]
jne 0x404749
repz ret
jmp fcn.00408c41
Function at 0x40a9df
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 + 0x473560]
je 0x40a9fa
inc edi
cmp edi, 0x17
jb 0x40a9eb
cmp edi, 0x17
jae 0x40ab7a
push ebp
push 3
call fcn.00410a74
cmp eax, 1
pop ecx
je 0x40ab46
push 3
call fcn.00410a74
test eax, eax
pop ecx
jne 0x40aa2e
cmp dword [0x473388], 1
je 0x40ab46
cmp ebx, 0xfc
je 0x40ab79
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x474de8
push ebp
call fcn.0040abee
add esp, 0xc
test eax, eax
je 0x40aa64
push esi
push esi
push esi
push esi
push esi
call fcn.004047c6
add esp, 0x14
push 0x104
mov esi, 0x474e01
push esi
push 0
mov byte [0x474f05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aaa8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040abee
add esp, 0xc
test eax, eax
je 0x40aaa8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004047c6
add esp, 0x14
push esi
call fcn.00406830
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40aaed
push esi
call fcn.00406830
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4750fc
push 0x46b2ac
sub ecx, eax
push ecx
push eax
call fcn.0040fbc7
add esp, 0x14
test eax, eax
je 0x40aaed
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004047c6
add esp, 0x14
jmp 0x40aaef
xor esi, esi
push 0x46b2a8
push ebx
push ebp
call fcn.0040fb56
add esp, 0xc
test eax, eax
je 0x40ab0f
push esi
push esi
push esi
push esi
push esi
call fcn.004047c6
add esp, 0x14
push dword [edi*8 + 0x473564]
push ebx
push ebp
call fcn.0040fb56
add esp, 0xc
test eax, eax
je 0x40ab31
push esi
push esi
push esi
push esi
push esi
call fcn.004047c6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004108b7
add esp, 0xc
jmp 0x40ab79
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40ab79
cmp ebp, 0xffffffff
je 0x40ab79
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x473564]
push dword [esi]
call fcn.00406830
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 0x4108b7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040a4fd
xor ebx, ebx
cmp dword [0x475424], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41098d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410a6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x410a6d
push eax
call fcn.0040a48f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x475424], eax
call esi
push eax
call fcn.0040a48f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x475428], eax
call esi
push eax
call fcn.0040a48f
mov dword [0x47542c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405baa
test eax, eax
pop ecx
pop ecx
je 0x41095b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047c6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41098d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040a48f
cmp eax, ebx
pop ecx
mov dword [0x475434], eax
je 0x41098d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a48f
pop ecx
mov dword [0x475430], eax
mov eax, dword [0x475430]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x410a12
cmp dword [0x475434], ecx
je 0x410a12
push eax
call fcn.0040a506
push dword [0x475434]
mov esi, eax
call fcn.0040a506
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x410a12
cmp edi, ebx
je 0x410a12
call esi
cmp eax, ebx
je 0x4109df
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4109df
test byte [ebp - 0x18], 1
jne 0x410a12
lea eax, [ebp - 0x10]
push eax
call fcn.00405be1
test eax, eax
pop ecx
je 0x4109fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004047c6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x410a09
or dword [ebp + 0x10], 0x200000
jmp 0x410a4d
or dword [ebp + 0x10], 0x40000
jmp 0x410a4d
mov eax, dword [0x475428]
cmp eax, dword [ebp - 8]
je 0x410a4d
push eax
call fcn.0040a506
cmp eax, ebx
pop ecx
je 0x410a4d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x410a4d
mov eax, dword [0x47542c]
cmp eax, dword [ebp - 8]
je 0x410a4d
push eax
call fcn.0040a506
cmp eax, ebx
pop ecx
je 0x410a4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x475424]
call fcn.0040a506
cmp eax, ebx
pop ecx
je 0x410a6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410a6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret