joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10020cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.1001bb8f
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x54], 0
call dword [sym.imp.GDI32.dll_CreateDCA]
push eax
lea ecx, [esp + 0x20]
call fcn.1001be49
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], vtable.CFont.0
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov byte [esp + 0x48], 1
call fcn.10001d30
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.1001c0d2
push 0x10022518
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.100030e0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
mov byte [esp + 0x54], 2
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x24]
push 0x1002bca8
push 0x7f
push 0x20
push ecx
call dword [sym.imp.GDI32.dll_GetCharWidthA]
push edi
lea ecx, [esp + 0x20]
call fcn.1001c0d2
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [0x1002be28], eax
mov dword [0x1002be2c], edx
mov ecx, dword [esi + 0x60]
lea eax, [eax + eax*2]
add eax, ecx
mov dword [esi + 0x5c], eax
mov ecx, dword [0x1002be28]
lea edx, [ecx + ecx*2]
shl edx, 1
mov dword [esi + 0x74], edx
mov ecx, dword [0x1002be28]
lea ecx, [ecx + ecx*4]
shl ecx, 1
mov dword [esi + 0x78], ecx
mov ecx, dword [0x1002be28]
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x74]
lea eax, [eax + ecx + 4]
mov ecx, dword [esi + 0x78]
shl edx, 1
cmp ecx, eax
mov dword [esi + 0x70], edx
jge 0x1000328c
mov dword [esi + 0x78], eax
push 0
lea edx, [esp + 0x30]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edi, dword [esi + 0x78]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [0x1002a0ec], eax
mov eax, dword [esp + 0x38]
mov ecx, esi
mov dword [0x1002a0f0], eax
call fcn.10001800
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x100032ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
mov dword [esp + 4], vtable.CGdiObject.0
call fcn.1001c04d
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1001beb1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x10004e00
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10004e28
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, 2
sete cl
xor edx, edx
cmp eax, 1
sete dl
cmp eax, 1
push edi
mov edi, dword [esp + 0xc]
mov dword [esi + 0xcc], ecx
mov dword [esi + 0xc4], edx
jne 0x10004e68
cmp edi, 4
ja 0x10004e61
jne 0x10004e68
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x10004e68
mov eax, 1
jmp 0x10004e6a
xor eax, eax
test ecx, ecx
mov dword [esi + 0xc8], eax
jne 0x10004e83
test edx, edx
jne 0x10004ea7
pop edi
xor eax, eax
pop esi
add esp, 0x94
ret
cmp edi, 4
jb 0x10004e78
cmp edi, 5
jne 0x10004ea5
pop edi
mov dword [esi + 0xc0], 1
mov eax, 1
pop esi
add esp, 0x94
ret
ja 0x10004e78
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret

Function at 0x10006a40
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
call fcn.100218e0
mov esi, ecx
test edx, edx
jne 0x10006a9d
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
test al, al
js 0x10006a9d
push 2
call edi
test al, al
js 0x10006a9d
push 4
call edi
test al, al
js 0x10006a9d
test esi, esi
js 0x10006a82
shr esi, 0x1e
not esi
and esi, 1
pop edi
mov dword [0x1002c04c], esi
xor eax, eax
pop esi
ret
mov eax, dword [0x1002c04c]
test eax, eax
je 0x10006aa7
pop edi
mov dword [0x1002c04c], 0
mov eax, 1
pop esi
ret
mov dword [0x1002c04c], 0
pop edi
xor eax, eax
pop esi
ret

Function at 0x10006d20
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10006d4b
xor eax, eax
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push edi
push edx
call ebx
test eax, eax
jne 0x10006ddd
cmp dword [esp + 0x14], 1
jne 0x10006ddd
mov eax, dword [esp + 0x10]
push eax
call fcn.100160dd
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
push esi
je 0x10006dbf
call fcn.100160d8
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x2c]
call fcn.100030a0
push esi
call fcn.100160d8
add esp, 4
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x10006e00
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x10]
push eax
mov dword [esi + 4], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10006e62
test edi, edi
jne 0x10006e2b
mov ecx, dword [esi]
push edi
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 8
mov eax, dword [0x1002c044]
test eax, eax
jne 0x10006e57
mov eax, dword [0x1002c014]
mov cl, byte [eax + 0x1f]
test cl, cl
je 0x10006e57
mov cl, byte [eax + 4]
test cl, cl
je 0x10006e57
mov edx, dword [esi]
push 4
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 8
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 8

Function at 0x10006e70
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x10006ebb
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10006ebb
mov eax, dword [0x1002c044]
test eax, eax
jne 0x10006eb0
mov eax, dword [0x1002c014]
mov cl, byte [eax + 0x1f]
test cl, cl
je 0x10006eb0
mov cl, byte [eax + 4]
test cl, cl
je 0x10006eb0
mov ecx, dword [esi]
push 4
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
mov edx, dword [esi]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x10006fd0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10007041
lea ecx, [esi + 8]
test ecx, ecx
je 0x10006ff3
mov eax, dword [ecx + 4]
test eax, eax
je 0x10006ff3
call fcn.1001c04d
mov eax, dword [esi + 4]
test eax, eax
je 0x10007036
mov eax, dword [0x1002c014]
mov cl, byte [eax + 0x1f]
test cl, cl
je 0x10007036
mov cl, byte [eax + 4]
test cl, cl
je 0x10007036
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10007029
mov edx, dword [esi]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
ret
mov eax, dword [esi]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x10007f10
Capabilities:
Create process on windows

Disassembly:
cmp eax, 0x800a
ja 0x10007fbd
je 0x10007fb3
cmp eax, 0x8006
ja 0x10007f88
je 0x10007f7e
cmp eax, 0x8004
ja 0x10007f63
je 0x10007f59
cmp eax, 0x7918
je 0x10007f4f
cmp eax, 0x8003
jne case.0x10007fc7.32780
mov ecx, 0x1002c088
jmp 0x10008390
mov ecx, 0x1002c088
jmp 0x10001b50
mov ecx, 0x1002bf70
jmp 0x10008c20
cmp eax, 0x8005
jne case.0x10007fc7.32780
mov ecx, 0x1002c088
jmp 0x10008400
mov ecx, 0x1002bf70
jmp 0x10004dc0
mov ecx, 0x1002c088
jmp 0x100083c0
sub eax, 0x8007
je 0x10007fa9
dec eax
je 0x10007f9f
dec eax
jne case.0x10007fc7.32780
mov ecx, 0x1002c088
jmp 0x10008440
mov ecx, 0x1002c088
jmp 0x10001a60
mov ecx, 0x1002c088
jmp 0x10001a50
mov ecx, 0x1002c088
jmp 0x10001b40
add eax, 0xffff7ff5
cmp eax, 8
ja case.0x10007fc7.32780
jmp dword [eax*4 + 0x10008010]
mov ecx, 0x1002bf70
jmp 0x10008c50
push 0
mov ecx, 0x1002bf70
call fcn.10008c80
ret
push 1
mov ecx, 0x1002bf70
call fcn.10008c80
ret
mov ecx, 0x1002c088
jmp 0x10008490
mov ecx, 0x1002c088
jmp 0x100084b0
mov ecx, 0x1002c088
jmp 0x10001ba0
mov eax, dword [0x1002a354]
test eax, eax
push esi
mov esi, ecx
jle 0x100083fd
xor edx, edx
inc edx
inc edx
mov dword [esi + 0x20], edx
nop
mov eax, dword [0x1002c014]
mov cl, byte [eax + 0x2d]
test cl, cl
sete cl
mov byte [eax + 0x2d], cl
nop
nop
push 0xffffffffffffffff
mov ecx, esi
call fcn.10008270
mov eax, dword [esi + 0x20]
push eax
mov ecx, 0x1002bf70
call fcn.10004c90
pop esi
ret
mov eax, dword [0x1002a354]
test eax, eax
push esi
mov esi, ecx
jle 0x10008431
dec dword [esi + 0x20]
jns 0x1000841a
mov eax, dword [0x1002a354]
dec eax
mov dword [esi + 0x20], eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.10008270
mov ecx, dword [esi + 0x20]
push ecx
mov ecx, 0x1002bf70
call fcn.10004c90
pop esi
ret

Function at 0x10008560
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
mov dword [esi + 0x28], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1000858d
test edi, edi
je 0x100085a9
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.100084f0
test eax, eax
je 0x100085a9
test edi, edi
je 0x1000859d
mov ecx, esi
call fcn.10007d00
pop edi
pop esi
ret 8
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 8
Function at 0x10008710
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
mov esi, ecx
cmp eax, dword [esi + 4]
je 0x10008728
xor eax, eax
pop esi
add esp, 8
ret 0xc
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x18]
cmp eax, 0x201
jne 0x10008771
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push edx
push eax
push 0
mov ecx, esi
call fcn.100082b0
mov eax, 1
pop esi
add esp, 8
ret 0xc
cmp eax, 0x204
jne 0x10008796
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push edx
push eax
push 0
mov ecx, esi
call fcn.10008300
mov eax, 1
pop esi
add esp, 8
ret 0xc

Function at 0x10008ba0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [0x1002c0dc]
call fcn.10008b50
test eax, eax
jne 0x10008be5
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push eax
push str.PYJJ220INTAUAPP
call esi
test eax, eax
jne 0x10008be0
push eax
mov eax, dword [str.PYINTAV.EXE]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.PYJJ220INTAUAPP
call esi
mov dword [0x1002c0dc], eax
pop esi
ret
Function at 0x1000b431
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000b51e
mov eax, 0x94
call fcn.1000b360
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000b593
mov ecx, dword [esi + 0x10]
mov dword [0x1002dfd4], ecx
mov eax, dword [esi + 4]
mov dword [0x1002dfe0], eax
mov edx, dword [esi + 8]
mov dword [0x1002dfe4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1002dfd8], esi
je 0x1000b49c
or esi, 0x8000
mov dword [0x1002dfd8], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1002dfdc], eax
call fcn.1000e452
test eax, eax
pop ecx
je 0x1000b593
call fcn.1000d8e6
test eax, eax
jne 0x1000b4c9
call fcn.1000e4a3
jmp 0x1000b593
call fcn.1000fd74
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1002f830], eax
call fcn.1000fc52
mov dword [0x1002dfc0], eax
call fcn.1000f733
test eax, eax
jl 0x1000b517
call fcn.1000fbb0
test eax, eax
jl 0x1000b512
call fcn.1000f97d
test eax, eax
jl 0x1000b512
call fcn.1000bf0e
test eax, eax
jne 0x1000b512
inc dword [0x1002dfbc]
jmp 0x1000b5a4
call fcn.1000f931
call fcn.1000d6d9
jmp 0x1000b4bf
test eax, eax
jne 0x1000b54e
cmp dword [0x1002dfbc], eax
jle 0x1000b593
dec dword [0x1002dfbc]
cmp dword [0x1002e010], eax
jne 0x1000b53d
call fcn.1000c057
call fcn.1000f931
call fcn.1000d6d9
call fcn.1000e4a3
jmp 0x1000b5a4
cmp eax, 2
jne 0x1000b597
push 0x88
push 1
call fcn.1000f678
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000b593
push esi
push dword [0x1002b038]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x1000b58d
call fcn.1000d6f7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000b5a4
call fcn.1000b0e1
pop ecx
xor eax, eax
jmp 0x1000b5a7
cmp eax, 3
jne 0x1000b5a4
push 0
call fcn.1000d77b
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1000bf73
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.1000e654
xor esi, esi
inc esi
cmp dword [0x1002e014], esi
pop ecx
jne 0x1000bf9b
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 [0x1002e010], esi
mov byte [0x1002e00c], al
jne 0x1000c001
mov ecx, dword [0x1002f828]
test ecx, ecx
je 0x1000bfe2
mov eax, dword [0x1002f824]
sub eax, 4
cmp eax, ecx
jmp 0x1000bfdb
mov eax, dword [eax]
test eax, eax
je 0x1000bfcd
call eax
mov eax, dword [0x1002f824]
sub eax, 4
cmp eax, dword [0x1002f828]
mov dword [0x1002f824], eax
jae 0x1000bfc5
mov eax, 0x1002a088
mov esi, 0x1002a090
cmp eax, esi
mov edi, eax
jae 0x1000c001
mov eax, dword [edi]
test eax, eax
je 0x1000bffa
call eax
add edi, 4
cmp edi, esi
jb 0x1000bff2
mov eax, 0x1002a094
mov esi, 0x1002a09c
cmp eax, esi
mov edi, eax
jae 0x1000c020
mov eax, dword [edi]
test eax, eax
je 0x1000c019
call eax
add edi, 4
cmp edi, esi
jb 0x1000c011
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x1000c031
push 8
call fcn.1000e5c0
jmp 0x1000c043
push dword [ebp + 8]
mov dword [0x1002e014], 1
call fcn.1000becc
pop ecx
pop ebp
ret
Function at 0x1000fdfc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1002ad84]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1002b1a8]
je 0x1000fe29
inc eax
cmp eax, 0x12
jb 0x1000fe1a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1002b1a8]
jne 0x1000ff5d
mov eax, dword [0x1002dfc8]
cmp eax, 1
je 0x1000ff38
cmp eax, edx
jne 0x1000fe59
cmp dword [0x1002dfcc], 1
je 0x1000ff38
cmp ecx, 0xfc
je 0x1000ff5d
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000fe92
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.1000e340
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.1000bad0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000fed4
lea eax, [ebp - 0x10c]
push eax
call fcn.1000bad0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10025548
push edi
call fcn.10012d00
add esp, 0x10
push edi
call fcn.1000bad0
push dword [esi + 0x1002b1ac]
mov ebx, eax
call fcn.1000bad0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000b360
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000e340
push edi
push ebx
call fcn.1000e350
push 0x10025528
push ebx
call fcn.1000e350
push dword [esi + 0x1002b1ac]
push ebx
call fcn.1000e350
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10012bfe
add esp, 0x2c
jmp 0x1000ff5d
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x1002b1ac]
push dword [esi]
call fcn.1000bad0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.1000b6b0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100121ef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1002ad84]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x10012218
xor eax, eax
jmp 0x10012386
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1002f4c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1001224b
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.10013e9a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1001231d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x10012358
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x100122a6
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10012297
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x1001227a
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100122e6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x100122ef
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1001226b
jmp 0x100122f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x10012381
cmp dword [ebp - 8], edi
je 0x10012358
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x1001234a
call fcn.1000cd87
mov dword [eax], 9
call fcn.1000cd90
mov dword [eax], esi
jmp 0x10012353
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001233f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x100122f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100122f1
push dword [ebp - 8]
call fcn.1000cd99
pop ecx
or eax, 0xffffffff
jmp 0x10012384
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1001236d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x1001236d
xor eax, eax
jmp 0x10012384
call fcn.1000cd87
mov dword [eax], 0x1c
call fcn.1000cd90
mov dword [eax], edi
jmp 0x10012353
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.1000b6b0
leave
ret
Function at 0x100129e8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000b360
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10012a7d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1002dfd4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10012a7d
cmp eax, 1
je 0x10012a95
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10012a7d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10012a52
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10012a79
xor eax, eax
inc eax
jmp 0x10012ab1
cmp esi, ebx
jae 0x10012a81
xor eax, eax
jmp 0x10012ab1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1002dfd4]
jmp 0x10012a97
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10012bfe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1002e3b8], ebx
push esi
push edi
jne 0x10012c7e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10012cb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10025e24
push edi
call esi
test eax, eax
mov dword [0x1002e3b8], eax
je 0x10012cb9
push 0x10025e14
push edi
call esi
push 0x10025e00
push edi
mov dword [0x1002e3bc], eax
call esi
cmp dword [0x1002dfd4], 2
mov dword [0x1002e3c0], eax
jne 0x10012c7e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1002e3c8], eax
je 0x10012c7e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1002e3c4], eax
mov eax, dword [0x1002e3c4]
test eax, eax
je 0x10012cc3
call eax
test eax, eax
je 0x10012caa
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1002e3c8]
test eax, eax
je 0x10012caa
test byte [ebp - 8], 1
jne 0x10012cc3
cmp dword [0x1002dfe0], 4
jb 0x10012cbd
or byte [ebp + 0x12], 0x20
jmp 0x10012ce2
xor eax, eax
jmp 0x10012cf2
or byte [ebp + 0x12], 4
jmp 0x10012ce2
mov eax, dword [0x1002e3bc]
test eax, eax
je 0x10012ce2
call eax
mov ebx, eax
test ebx, ebx
je 0x10012ce2
mov eax, dword [0x1002e3c0]
test eax, eax
je 0x10012ce2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1002e3b8]
pop edi
pop esi
pop ebx
leave
ret