joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051a45
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x10051b9c
mov edx, 0x10000000
cmp eax, 0x7c
je 0x10051b9c
cmp eax, 0x29
jne 0x10051a82
cmp dword [esi + 0x10], 0
jne 0x10051b9c
cmp eax, eax
jne 0x10051a82
test dword [esi + 0x50], edx
je 0x10051ba2
cmp eax, 0x2e
jne 0x10051a9d
push 5
lea ecx, [esi + 0x24]
call fcn.10122123
mov ecx, esi
call fcn.10051a1c
jmp 0x10051b86
cmp eax, 0x5c
jne 0x10051af2
mov ecx, esi
call fcn.10051a1c
test byte [esi + 0x50], 0x80
je 0x10051ae6
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x10051ace
push 4
lea ecx, [esi + 0x24]
call fcn.10122123
mov ecx, esi
call fcn.10051a1c
jmp 0x10051b8d
cmp eax, 0x42
jne 0x10051ae6
push 4
lea ecx, [esi + 0x24]
call fcn.10122123
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x10051ac2
mov ecx, esi
call fcn.10122123
jmp 0x10051b86
cmp eax, 0x5b
jne 0x10051b12
mov ecx, esi
call fcn.10051a1c
mov ecx, esi
call fcn.100525d0
cmp dword [esi + 0x4c], 0x5d
je 0x10051a91
push 4
jmp 0x10051ba4
cmp eax, 0x28
jne 0x10051b2f
mov ecx, esi
call fcn.10051a1c
mov ecx, esi
call fcn.10052709
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x10051ba2
jmp 0x10051b7b
cmp eax, 0x5e
jne 0x10051b38
push 2
jmp 0x10051aba
cmp eax, 0x24
jne 0x10051b44
push 3
jmp 0x10051aba
cmp eax, 0x2a
je 0x10051b98
cmp eax, 0x2b
je 0x10051b98
cmp eax, 0x3f
je 0x10051b98
cmp eax, 0x7b
je 0x10051b98
cmp eax, 0x7d
jne 0x10051b62
test dword [esi + 0x50], edx
je 0x10051b94
cmp eax, 0x5d
jne 0x10051b6c
test dword [esi + 0x50], edx
je 0x10051b0b
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.10122123
mov bl, 1
mov ecx, esi
call fcn.10051a1c
test bl, bl
je 0x10051b8d
mov ecx, esi
call fcn.10122123
mov cl, 1
jmp 0x10051a4c
push 6
jmp 0x10051ba4
push 0xa
jmp 0x10051ba4
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.10122123
int3

Function at 0x1005eb7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1005ebbd
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
test eax, eax
je 0x1005ebbd
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1005ebbd
cmp word [eax + 2], 0
je 0x1005ebbd
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x1005ebbd
add eax, 0x30
jmp 0x1005ebc2
mov eax, 0x1016e450
pop edi
pop esi
ret
Function at 0x100cc523
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1c
test byte [0x101d6e80], 0x20
push esi
push edi
mov esi, ecx
je 0x100cc558
push dword [ebx + 0xc]
mov edx, 0x1017e6e8
push dword [ebx + 8]
call fcn.10122123
mov eax, dword [0x101cfc78]
mov ecx, 0x101cfc78
push 0x1c135e
call dword [eax + 4]
lea eax, [esi + 8]
mov ecx, dword [eax]
mov esi, ecx
mov edi, dword [eax + 4]
mov edx, edi
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 0xc
dec eax
mov dword [ebp - 0x10], esi
shl eax, 0xc
xor eax, ecx
and eax, 0x7f000
xor ecx, eax
mov eax, esi
mov esi, dword [ebp - 4]
push ebx
mov ebx, ecx
mov ecx, edi
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, dword [ebp - 0x10]
jne 0x100cc5a8
cmp ecx, edi
je 0x100cc5d8
mov esi, eax
mov dword [ebp - 0x10], ecx
shr esi, 0xc
mov edi, eax
dec esi
mov edx, ecx
shl esi, 0xc
xor esi, eax
and esi, 0x7f000
xor esi, eax
push ebx
mov ebx, esi
mov esi, dword [ebp - 4]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, edi
jne 0x100cc5a8
cmp ecx, dword [ebp - 0x10]
jne 0x100cc5a8
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x100e6cca
Capabilities:
Create process on windows

Disassembly:
push 0x7d0
mov eax, 0x1014b08d
call fcn.100fb0fb
mov eax, ecx
mov dword [ebp - 0x780], eax
cmp dword [eax + 4], 0xffffffff
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x784], esi
je 0x100e6d02
push 0
call fcn.10122123
test al, al
je 0x100e6e95
lea ecx, [ebp - 0x2c]
call fcn.100049bb
and dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x100e6d73
cmp dword [ebx + 0x10], 0
je 0x100e6d82
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100e6d24
mov eax, dword [ebx]
push 0x20
pop ecx
cmp cx, word [eax]
je 0x100e6d73
lea ecx, [ebp - 0x44]
call fcn.100049bb
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.10014b27
push ebx
lea eax, [ebp - 0x44]
mov edx, str._s__s
push eax
lea ecx, [ebp - 0x5c]
call fcn.100e66fb
push eax
lea ecx, [ebp - 0x2c]
call fcn.10122123
lea ecx, [ebp - 0x5c]
call fcn.10122123
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.10122123
jmp 0x100e6d82
cmp dword [ebx + 0x10], 0
je 0x100e6d82
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10122123
push 0x44
pop edi
push edi
lea eax, [ebp - 0x7dc]
push 0
push eax
call fcn.100fd6a1
mov dword [ebp - 0x7dc], edi
xor eax, eax
lea edi, [ebp - 0x794]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x780]
cmp dword [edi + 0x1c], 0
jne 0x100e6dbe
and dword [ebp - 0x780], 0
jmp 0x100e6dd5
lea eax, [edi + 0xc]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x780], eax
jb 0x100e6dd5
mov eax, dword [eax]
mov dword [ebp - 0x780], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_GetPriorityClass]
mov edx, eax
or edx, 0x8000000
cmp dword [ebp - 0x1c], 0
jne 0x100e6df4
xor ecx, ecx
jmp 0x100e6dff
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [esi + 0x10], 0
jne 0x100e6e09
xor eax, eax
jmp 0x100e6e13
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100e6e13
mov eax, dword [esi]
lea esi, [ebp - 0x794]
push esi
lea esi, [ebp - 0x7dc]
push esi
push dword [ebp - 0x780]
push 0
push edx
xor edx, edx
push edx
push edx
push edx
push ecx
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
jne 0x100e6e67
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
push ebx
push dword [ebp - 0x784]
push ecx
call esi
push eax
push ecx
lea ecx, [ebp - 0x77c]
call fcn.10122123
push 0x101c8f84
lea eax, [ebp - 0x77c]
jmp 0x100e6ead
mov eax, dword [ebp - 0x794]
push dword [ebp - 0x790]
mov dword [edi + 4], eax
mov dword [edi + 8], 0x103
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.10122123
xor eax, eax
call fcn.100fb0ad
ret 0x14
push ecx
push ecx
lea ecx, [ebp - 0x3ec]
call fcn.100e70d5
push 0x101c8f84
lea eax, [ebp - 0x3ec]
push eax
call fcn.10122123
int3
Function at 0x100e7c9f
Capabilities:
Start service

Disassembly:
push 8
mov eax, 0x10141cb0
call fcn.100fb0c7
mov ebx, ecx
push 0
push 0
push dword [ebx + 4]
call dword [sym.imp.advapi32.dll_StartServiceW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x100e7ceb
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp eax, 0x420
jne 0x100e7cf6
push str.OService::StartService___Service_instance_already_running
push ecx
push 0x64
mov edx, 0x7c1
mov ecx, 0x2541043
call fcn.10122123
add esp, 0xc
cmp byte [ebx + 0x14], 0
je 0x100e7d36
mov esi, dword [ebx + 0xc]
jmp 0x100e7d14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
sub esp, 0xc
call fcn.10122123
xor al, al
jmp 0x100e7d38
add esi, 0xffffffe4
mov ecx, esi
call fcn.100e7c9f
mov edi, dword [ebx + 8]
cmp esi, edi
jne 0x100e7d0a
mov esi, dword [ebx + 0xc]
cmp edi, esi
je 0x100e7d33
mov ecx, edi
call fcn.10122123
add edi, 0x1c
cmp edi, esi
jne 0x100e7d22
mov edi, dword [ebx + 8]
mov dword [ebx + 0xc], edi
mov al, 1
call fcn.100fb098
ret

Function at 0x100ed34c
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x101c5a10
call fcn.100fb519
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x100ed3c2
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100ed3c2
mov esi, dword [edx + ecx + 0xd8]
lea eax, [ecx + esi]
cmp edi, eax
jb 0x100ed3c2
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100ed3c2
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100ed3cb
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100ed5b9
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x101d73d4]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x101d73e0]
test edx, edx
jne 0x100ed601
test eax, eax
je 0x100ed614
mov edx, eax
mov dword [0x101d73d4], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100ed614
cmp ecx, ebx
jb 0x100ed614
cmp ecx, edi
jbe 0x100ed6f8
mov edx, eax
test eax, eax
jmp 0x100ed636
test edx, edx
je 0x100ed631
mov eax, dword [edx + 8]
test eax, eax
je 0x100ed631
cmp eax, ebx
jb 0x100ed631
cmp eax, edi
jbe 0x100ed6f8
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x101d73d4], edx
jne 0x100ed61a
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100ed678
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
cmp esi, 0x40000000
jae 0x100ed6a0
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
mov edx, esi
mov ecx, ebx
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
mov edx, edi
mov ecx, esi
call fcn.10122123
mov edx, eax
test edx, edx
je 0x100ed71d
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x101d73e0]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x101d73d4], edx
mov dword [0x101d73e0], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x100ed6e8
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x100ed71d
cmp esi, edi
ja 0x100ed71d
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.100fd6a1
add esp, 0xc
mov eax, esi
jmp 0x100ed71f
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100ed5c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x101d73d4]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x101d73e0]
test edx, edx
jne 0x100ed601
test eax, eax
je 0x100ed614
mov edx, eax
mov dword [0x101d73d4], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100ed614
cmp ecx, ebx
jb 0x100ed614
cmp ecx, edi
jbe 0x100ed6f8
mov edx, eax
test eax, eax
jmp 0x100ed636
test edx, edx
je 0x100ed631
mov eax, dword [edx + 8]
test eax, eax
je 0x100ed631
cmp eax, ebx
jb 0x100ed631
cmp eax, edi
jbe 0x100ed6f8
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x101d73d4], edx
jne 0x100ed61a
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100ed678
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
cmp esi, 0x40000000
jae 0x100ed6a0
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
mov edx, esi
mov ecx, ebx
call fcn.10122123
mov edx, eax
test edx, edx
jne 0x100ed6be
mov edx, edi
mov ecx, esi
call fcn.10122123
mov edx, eax
test edx, edx
je 0x100ed71d
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x101d73e0]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x101d73d4], edx
mov dword [0x101d73e0], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x100ed6e8
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x100ed71d
cmp esi, edi
ja 0x100ed71d
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.100fd6a1
add esp, 0xc
mov eax, esi
jmp 0x100ed71f
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100f0c68
Capabilities:
Get hostname

Disassembly:
push 0x60
mov eax, 0x1014c0f7
call fcn.100fb0fb
mov esi, ecx
mov dword [ebp - 0x68], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x6c], esi
and dword [ebp - 0x68], 0
push eax
mov dword [esi], 0x101a7f24
call fcn.10122123
and dword [ebp - 4], 0
cmp dword [edi + 0x10], 0
je 0x100f0cad
push edi
lea ecx, [ebp - 0x60]
call fcn.10122123
xor ebx, ebx
inc ebx
jmp 0x100f0cde
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.kernel32.dll_GetComputerNameW]
test eax, eax
lea edx, [ebp - 0x30]
mov ecx, 0x1015d1bc
cmove edx, ecx
lea ecx, [ebp - 0x48]
push edx
call fcn.10122123
push 6
lea eax, [ebp - 0x48]
pop ebx
push eax
lea ecx, [esi + 0x1c]
call fcn.10122123
test bl, 2
je 0x100f0cf7
lea ecx, [ebp - 0x48]
and ebx, 0xfffffffd
call fcn.10122123
test bl, 1
je 0x100f0d04
lea ecx, [ebp - 0x60]
call fcn.10122123
mov eax, esi
call fcn.100fb0ad
ret 8

Function at 0x10122123
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10122132
pop dword [ebp - 0x34]
mov eax, 0x5b1c303c
sub eax, 0x4b0a0f0a
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x99a2a
push 0
mov eax, 0x3e94402f
sub eax, 0x2e7f4c7b
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x14e27ee6
sub ecx, 0x14e2331f
xor edx, edx
add edx, eax
mov ebx, 0x101f1400
add ebx, dword [ebp - 0x34]
mov esi, 0x4dcb93f1
sub esi, 0x5f68c322
xor dword [ebp - 0xc], 0x45b1f1fe
mov edi, dword [ebx]
xor dword [ebp - 0x30], edi
sub edi, esi
xor dword [ebp - 0x30], esi
mov dword [edx], edi
sub dword [ebp - 0x24], 0xde9554c4
add edx, 4
add ebx, 4
loop 0x1012218d
add eax, 0x121ef
mov ebx, eax
add eax, 0xb9b79685
add eax, 0x46486980
mov ecx, 0xae23e725
sub ecx, 0x9e23e725
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x40bf12
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40bf21
pop dword [ebp - 8]
mov eax, 0x4d4d3202
add eax, 0xb2f38d1f
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3aa0b
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x4726
xor esi, esi
add esi, eax
mov edx, 0x9b27844a
add edx, 0x651af1b6
add edx, dword [ebp - 8]
mov ebx, 0x9c02484a
sub dword [ebp - 4], eax
mov edi, dword [edx]
xor edi, ebx
sub dword [ebp - 4], 0xbe38b3a2
mov dword [esi], edi
add esi, 0x4a3b7d12
sub esi, 0x4a3b7d0e
add edx, 0x1a2d16df
sub edx, 0x1a2d16db
loop 0x40bf71
add eax, 0x10f6b
mov ebx, eax
add eax, 5
mov ecx, 0x74e38191
sub ecx, 0x74a38191
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x410f5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42104c]
jne 0x413fe3
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x422720], eax
mov dword [0x42271c], ecx
mov dword [0x422718], edx
mov dword [0x422714], ebx
mov dword [0x422710], esi
mov dword [0x42270c], edi
mov word [0x422738], ss
mov word [0x42272c], cs
mov word [0x422708], ds
mov word [0x422704], es
mov word [0x422700], fs
mov word [0x4226fc], gs
pushfd
pop dword [0x422730]
mov eax, dword [ebp]
mov dword [0x422724], eax
mov eax, dword [ebp + 4]
mov dword [0x422728], eax
lea eax, [ebp + 8]
mov dword [0x422734], eax
mov eax, dword [ebp - 0x320]
mov dword [0x422670], 0x10001
mov eax, dword [0x422728]
mov dword [0x422624], eax
mov dword [0x422618], 0xc0000409
mov dword [0x42261c], 1
mov eax, dword [0x42104c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x421050]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x422668], eax
push 1
call fcn.00415efd
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x402cf0
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x422668], 0
jne 0x4140cf
push 1
call fcn.00415efd
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x402357
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4418a3
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.00410051
pop ecx
and dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0x10
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.0040269a
lea ecx, [esp + 8]
call fcn.00402286
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043df0a
mov esp, ebp
pop ebp
ret

Function at 0x406557
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442d1f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
and dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0xb0]
and dword [esp + 0x38], 0
push eax
push edi
mov ecx, esi
call fcn.00429277
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040253d
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043df0a
mov esp, ebp
pop ebp
ret 4

Function at 0x406666
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bf69
Function at 0x407d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2d0], 0
je 0x407ded
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x407ddd
mov ecx, esi
call fcn.00407a86
jmp 0x407def
cmp dword [esp + 0xc], 6
jb 0x407ded
mov ecx, esi
call fcn.004072c9
jmp 0x407def
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0043df0a
mov esp, ebp
pop ebp
ret
Function at 0x40c2b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442dc7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x40c2fb
xor eax, eax
jmp 0x40c459
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40c324
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40c324
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, ebx
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40c459
cmp dword [edi + 0x50], 0
je 0x40c457
mov ecx, edi
call fcn.0040d310
cmp dword [edi + 0x40], 0
jne 0x40c354
push dword [edi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
jmp 0x40c457
push ecx
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
call fcn.0040cda7
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x40c44e
cmp eax, 1
jg 0x40c433
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x40c3fd
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x40c44e
jmp 0x40c401
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x40c42f
test ecx, ecx
jne 0x40c368
cmp dword [esp + 0x30], 0x20
jae 0x40c44e
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040cdec
jmp 0x40c368
mov esi, ebx
jmp 0x40c44e
cmp eax, 3
jne 0x40c44e
movsx eax, byte [esp + 0x13]
push dword [edi + 0x50]
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
lea ecx, [esp + 0x20]
call fcn.00402286
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043df0a
mov esp, ebp
pop ebp
ret 4