joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100258ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003e720]
jne 0x100258b6
repz ret
jmp fcn.10025b5d

Function at 0x10027330
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x18
mov eax, 4
mov dword [ebp - 0xc], eax
call fcn.10025440
mov eax, esp
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, ecx
call fcn.10025440
mov eax, esp
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, ecx
call fcn.10025440
mov eax, esp
mov dword [eax], 0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword fs:[0x30]
mov dword [ecx], eax
mov dword [ebp - 8], eax
mov dword [0x1003e6f8], 0x252d
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [0x1003e6fc]
add eax, 0x253
mov dword [0x1003e6f8], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1002741b
jmp 0x10027502
mov dword [0x1003e6fc], 0x1ac
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
movzx ecx, word [ecx + esi*2 - 0x1a]
cmp ecx, 0x6c
je 0x100273dc
jmp 0x1002750d
jmp 0x10027507
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
movzx ecx, word [ecx + esi*2 - 0x18]
cmp ecx, 0x6f
je 0x10027441
jmp 0x1002750b
jmp 0x100273b1
mov eax, dword [ebp - 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
movzx ecx, word [ecx + esi*2]
cmp ecx, 0
je 0x100273f8
jmp 0x10027428
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x104
jl 0x10027403
jmp 0x100273b1
mov dword [0x1003e6f8], 0xbea
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add ecx, 1
mov dword [eax], ecx
jmp 0x1002741b
mov dword [0x1003e6fc], 0x198f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
movzx ecx, word [ecx + esi*2 - 0x16]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, 0x61
jne 0x10027509
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
movzx ecx, word [ecx + esi*2 - 0x14]
cmp ecx, 0x64
jne 0x10027507
mov eax, dword [0x1003e6f8]
sub eax, 0x1325
mov dword [0x1003e6f8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
movzx ecx, word [ecx + esi*2 - 0x12]
cmp ecx, 0x64
jne 0x100273d7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
movzx ecx, word [ecx + esi*2 - 0x10]
cmp ecx, 0x6c
jne 0x10027502
mov dword [0x1003e6f8], 0x23b8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
movzx ecx, word [ecx + esi*2 - 0xe]
cmp ecx, 0x6c
jne 0x100273ac
mov dword [0x1003e6fc], 0xc8
mov dword [ebp - 8], 1
jmp 0x100273fa
jmp 0x100273d7
jmp 0x10027509
jmp 0x1002750b
jmp 0x1002750d
mov dword [ebp - 8], 0
jmp 0x100273fa
Function at 0x10027710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.10027710]
mov dword [ebp - 8], eax
jmp 0x1002774e
mov al, 1
test al, 1
jne 0x1002774e
jmp 0x10027745
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
je 0x1002775d
jmp 0x10027765
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret
mov dword [ebp - 4], 0
jmp 0x1002773d
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10027729
jmp 0x10027767
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1002773d
jmp 0x10027767
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov eax, dword [0x1003e6f8]
sub eax, 0x362
mov dword [0x1003e6f8], eax
jmp 0x10027721
Function at 0x10008180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
push edi
call fcn.10005560
push eax
call fcn.10007870
add esp, 4
xor ecx, ecx
nop dword [eax]
mov eax, ecx
test cl, 1
je 0x100081aa
xor eax, 2
shr eax, 1
test al, 1
je 0x100081b3
xor eax, 2
shr eax, 1
test al, 1
je 0x100081bc
xor eax, 2
shr eax, 1
test al, 1
je 0x100081c5
xor eax, 2
shr eax, 1
test al, 1
je 0x100081ce
xor eax, 2
shr eax, 1
test al, 1
je 0x100081d7
xor eax, 2
shr eax, 1
test al, 1
je 0x100081e0
xor eax, 2
shr eax, 1
test al, 1
je 0x100081e9
xor eax, 2
shr eax, 1
mov dword [ecx*4 + 0x1006a3a8], eax
inc ecx
cmp ecx, 0x100
jb 0x100081a0
mov esi, 0x10c
or ebx, 0xffffffff
cmp edi, esi
jbe 0x10008238
mov eax, dword [ebp - 4]
movsx eax, byte [esi + eax]
push eax
call fcn.10005560
push eax
call fcn.10007870
mov eax, dword [ebp - 4]
add esp, 4
movzx ecx, bl
shr ebx, 8
movzx eax, byte [esi + eax]
inc esi
xor ecx, eax
xor ebx, dword [ecx*4 + 0x1006a3a8]
cmp esi, edi
jb 0x10008207
pop edi
not ebx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1006914c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10071570]
cmp eax, dword [ecx + 4]
jle 0x10009b08
push 0x10071570
call fcn.1002a411
add esp, 4
cmp dword [0x10071570], 0xffffffff
jne 0x10009b08
push 0x40
push 0x1000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x10071570
mov dword [0x1007156c], eax
call fcn.1002a3d2
add esp, 4
mov edx, dword [0x1007156c]
push esi
lea esi, [edx + 0x1000]
cmp edx, esi
je 0x10009b33
nop dword [eax]
lea ecx, [edx + 0x1c]
call fcn.10009aa0
test eax, eax
je 0x10009b37
add edx, 0x20
cmp edx, esi
jne 0x10009b20
xor eax, eax
pop esi
ret
mov eax, edx
pop esi
ret

Function at 0x10009b40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov edi, ecx
call fcn.10009ab0
mov ebx, eax
xor esi, esi
mov dword [ebp - 4], ebx
nop word [eax + eax]
lea ecx, [esi + edi]
call fcn.10009860
add esi, eax
cmp esi, 5
jl 0x10009b60
test esi, esi
jle 0x10009b91
mov ecx, ebx
mov edx, esi
mov ebx, edi
sub ebx, ecx
nop dword [eax + eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x10009b80
mov ebx, dword [ebp - 4]
lea ecx, [esi + ebx]
lea eax, [edi - 5]
mov byte [ecx], 0xe9
sub esi, ecx
add eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ecx + 1], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push edi
call esi
mov eax, dword [ebp - 0xc]
sub eax, edi
mov byte [edi], 0xe9
sub eax, 5
mov dword [edi + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a450
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 1]
push eax
call fcn.1002d3e0
add esp, 0xc
xorps xmm0, xmm0
movq qword [esi + 0x44], xmm0
mov ecx, esi
movups xmmword [esi + 0x4c], xmm0
push dword [ebp + 0xc]
movups xmmword [esi + 0x5c], xmm0
mov byte [esi], 0
push dword [ebp + 8]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
call fcn.1000dd10
mov ecx, esi
call fcn.1000ddc0
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x1000aaf0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050320
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10067070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x28], 0x64005c
push 0x2800
push eax
push 0x1006e808
mov dword [ebp - 0x24], 0x650073
mov dword [ebp - 0x20], 0x750074
mov dword [ebp - 0x1c], 0x2e0070
mov dword [ebp - 0x18], 0x6c0064
mov dword [ebp - 0x14], 0x6c
call fcn.1002d3e0
add esp, 0xc
push 0x1006e808
call fcn.1000b350
test al, al
je 0x1000ad68
mov ecx, 0x1006e808
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ab71
sub ecx, edx
sar ecx, 1
je 0x1000ad68
push 0x1006f008
call fcn.1000af10
test al, al
je 0x1000ad68
mov ecx, 0x1006f008
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000aba0
sub ecx, edx
sar ecx, 1
je 0x1000ad68
push 0x1006f808
call fcn.1000b580
test al, al
je 0x1000ad68
mov ecx, 0x1006f808
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000abd0
sub ecx, edx
sar ecx, 1
je 0x1000ad68
push 0x10070008
call fcn.1000b6d0
test al, al
je 0x1000ad68
mov ecx, 0x10070008
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ac00
sub ecx, edx
sar ecx, 1
je 0x1000ad68
push 0x10070808
lea eax, [ebp - 0x28]
push eax
call fcn.1000a9a0
test al, al
je 0x1000ad68
mov eax, 0x10070808
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000ac33
sub eax, edx
sar eax, 1
je 0x1000ad68
push 0x1006e808
lea ecx, [ebp - 0x40]
call fcn.10008ac0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1000a540
push eax
mov ecx, 0x10071008
call fcn.10002ce0
lea ecx, [ebp - 0x58]
call fcn.10002c70
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10008a80
push 0x1006f008
lea ecx, [ebp - 0x40]
call fcn.10008ac0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1000a540
push eax
mov ecx, 0x10071020
call fcn.10002ce0
lea ecx, [ebp - 0x58]
call fcn.10002c70
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10008a80
push 0x1006f808
lea ecx, [ebp - 0x40]
call fcn.10008ac0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1000a540
push eax
mov ecx, 0x10071038
call fcn.10002ce0
lea ecx, [ebp - 0x58]
call fcn.10002c70
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10008a80
push 0x10070008
lea ecx, [ebp - 0x70]
call fcn.10008ac0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1000a540
push eax
mov ecx, 0x10071050
call fcn.10002ce0
lea ecx, [ebp - 0x88]
call fcn.10002c70
lea ecx, [ebp - 0x70]
call fcn.10008a80
push 0
push 0
push 0x1000aac0
call fcn.100347cb
add esp, 0xc
mov al, 1
jmp 0x1000ad6a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002a2e5
mov esp, ebp
pop ebp
ret
Function at 0x1000d220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
sub dword [ebp + 0xc], 1
jne 0x1000d309
push esi
mov esi, dword [ebp + 8]
mov dword [0x1006a7b0], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
mov dword [0x1006a7b4], 0
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
mov dword [ebp - 0xc], 0xc
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 1
push str.D:P_D_OICI_GA___BG__D_OICI_GA___AN_
call dword [0x10071068]
test eax, eax
je 0x1000d29c
push dword [ebp - 8]
push 4
push esi
call dword [0x10071070]
test eax, eax
jne 0x1000d2a4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._GL2UseGameGuard__3HA
push str.core.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000d2eb
lea eax, [ebp + 0xc]
push eax
push 4
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000d2eb
lea eax, [ebp + 0xc]
mov byte [esi], 0
push eax
push dword [ebp + 0xc]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d2f3
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x10001f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000d410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050488
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10067070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, str.Initializing_extender
call fcn.10007580
push eax
call fcn.10007870
add esp, 4
cmp dword [0x1006a7ac], 0
jne 0x1000d509
mov dword [0x1006a7ac], 1
call fcn.10011380
test al, al
je 0x1000d509
mov edx, str.PHX_created
call fcn.10007580
push eax
call fcn.10007870
add esp, 4
call fcn.1000aaf0
test al, al
je 0x1000d509
mov edx, str.HWID_created
call fcn.10007580
push eax
call fcn.10007870
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.10003cf0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x1000d4b6
mov eax, dword [eax]
push eax
call dword [0x10071100]
lea ecx, [ebp - 0x28]
mov dword [0x1006a3a4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10002c70
cmp dword [0x1006a3a4], 0
je 0x1000d509
mov edx, str.ENGINE_created
call fcn.10007580
push eax
call fcn.10007870
push 0
push 0
push 0x1000d320
call fcn.100347cb
push 0
push 0
push 0x1000d530
call fcn.100347cb
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002a2e5
mov esp, ebp
pop ebp
ret
Function at 0x1000e220
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100504c3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x10067070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x78]
push eax
call fcn.10003810
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x1000e266
mov edx, dword [edx]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp byte [edx], 0
jne 0x1000e284
xor ecx, ecx
jmp 0x1000e299
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000e290
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.10002ec0
lea edx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.100072e0
push eax
call fcn.10007870
add esp, 4
lea ecx, [ebp - 0x90]
call fcn.10002c70
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.10002c70
lea eax, [ebp - 0x78]
push eax
call fcn.10003810
cmp dword [eax + 0x14], 0x10
jb 0x1000e2e9
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
lea ecx, [ebp - 0x78]
mov esi, eax
call fcn.10002c70
test esi, esi
je 0x1000e330
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x1000e330
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
lea eax, [ebp - 0x60]
push str._u._u._u._u
push eax
call fcn.1000e1b0
add esp, 0x18
lea esi, [ebp - 0x60]
jmp 0x1000e335
mov esi, 0x10060391
mov edx, str.getHostAddress__
call fcn.10007580
push eax
call fcn.10007870
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002a2e5
mov esp, ebp
pop ebp
ret

Function at 0x10010580
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
jmp 0x1001059c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
push eax
push dword [ebp + 8]
lea ecx, [ebx + 0x100]
mov dword [ebx + 0x110], eax
push ecx
call fcn.1002ce60
add esp, 0xc
xor eax, eax
nop dword [eax]
mov byte [eax + ebx], al
inc eax
cmp eax, 0x100
jl 0x100105c0
xor edi, edi
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x118], 0
xor esi, esi
mov dword [ebp + 0xc], edi
nop word [eax + eax]
mov dl, byte [esi + ebx]
movzx eax, byte [ebx + edi + 0x100]
add eax, dword [ebp + 0xc]
movzx ecx, dl
add ecx, eax
movzx ecx, cl
mov dword [ebp + 0xc], ecx
mov al, byte [ecx + ebx]
mov byte [esi + ebx], al
lea eax, [edi + 1]
mov byte [ecx + ebx], dl
inc esi
cdq
idiv dword [ebx + 0x110]
mov edi, edx
cmp esi, 0x100
jl 0x100105f0
jmp 0x10010639
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10013f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10067070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1001404f
cmp byte [ebx + 0x3d], 0
je 0x1001404f
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x10013f79
xor al, al
jmp 0x10014051
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10005fb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10013fe7
sub eax, 1
je 0x10013feb
sub eax, 2
je 0x10014041
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.10002c70
mov al, bl
jmp 0x10014051
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x10014023
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10038e55
add esp, 0x10
cmp esi, eax
jne 0x10013fd9
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x10014041
test esi, esi
jne 0x10013fa4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.100045e0
jmp 0x10013f9e
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.10002c70
mov al, bl
jmp 0x10014051
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002a2e5
mov esp, ebp
pop ebp
ret
Function at 0x10014210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050cd6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10067070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1002a876
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1001729d
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.10014070
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x100154c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050dc6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10067070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1002a876
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1001729d
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100430f4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10042f73

Function at 0x1004673d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100463fd
Function at 0x40d5c8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
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.0040804b
mov dword [ebp - 0x14], eax
cmp dword [0x813cc0], esi
jne 0x40d6bb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d648
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d79b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d79b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d79b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813cc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813cc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813cc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813cd0], eax
test eax, eax
je 0x40d6b8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813ccc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6e0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6d3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6f5
push 4
pop eax
jmp 0x40d79d
cmp dword [ebp - 0x14], esi
je 0x40d6f5
push dword [0x813cc0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6da
mov eax, dword [0x813ccc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d753
cmp dword [0x813cd0], edi
je 0x40d753
push eax
call ebx
push dword [0x813cd0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d753
test eax, eax
je 0x40d753
call ecx
test eax, eax
je 0x40d748
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 0x40d748
test byte [ebp - 8], 1
jne 0x40d753
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d783
mov eax, dword [0x813cc4]
cmp eax, edi
je 0x40d780
push eax
call ebx
test eax, eax
je 0x40d780
call eax
mov esi, eax
test esi, esi
je 0x40d780
mov eax, dword [0x813cc8]
cmp eax, edi
je 0x40d780
push eax
call ebx
test eax, eax
je 0x40d780
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813cc0]
call ebx
test eax, eax
je 0x40d79b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d79d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040434c
mov esp, ebp
pop ebp
ret