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

Disassembly:
push 0xffffffffffffffff
push 0x46f960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044ca40
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044cac0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044cac0
lea ecx, [esi + 0xc]
call fcn.0046127e
lea ecx, [esi + 0x10]
call fcn.0046127e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044f2f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044f2f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044f2f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004612f3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004612f3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44db38
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46fb88
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44db48
call fcn.0044e060
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44dc2b
cmp byte [edi], 0
je 0x44dc2b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44db6d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044c860
test eax, eax
jne 0x44db8d
push 0x49c488
lea ecx, [esi + 0x38]
call fcn.00461430
jmp 0x44dc2b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044c8b0
test eax, eax
jne 0x44dbbc
mov ecx, esi
call fcn.0044c9b0
push edi
add esi, 0x38
push 0x49c464
push esi
call fcn.0045f0f7
add esp, 0xc
jmp 0x44dc2b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044e8e0
test eax, eax
je 0x44dc24
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044dd00
test eax, eax
jne 0x44dc40
push edi
lea eax, [esi + 0x38]
push 0x49c440
push eax
call fcn.0045f0f7
add esp, 0xc
mov ecx, esi
call fcn.0044e060
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44dce8
mov ecx, dword [0x49c6f8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045f0f7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044c960
test eax, eax
jne 0x44dcaa
push 0x49c424
lea ecx, [esi + 0x38]
call fcn.00461430
jmp 0x44dcba
push 0xfa
mov ecx, esi
call fcn.0044e8e0
test eax, eax
jne 0x44dcd7
mov ecx, esi
call fcn.0044e060
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004612f3
jmp 0x44dc2b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004612f3
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x463697
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4636cf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046174e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461726
jmp 0x4636db
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464d85
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x464dc7
call fcn.0046a901
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464dc7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464dbe
xor eax, eax
jmp 0x464dcf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464dd5
pop edi
pop esi
pop ebx
ret 4

Function at 0x46ae31
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46ae5f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ae7d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046ad97
jmp 0x46ae7d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46ae7d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046ad97
test edi, edi
mov eax, edi
jne 0x46ae67
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1002a66
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x1001150
call fcn.01003c0c
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1002c1d
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x1002ac3
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1002c1d
mov eax, dword [esi + 0x10]
mov dword [0x1008914], eax
mov eax, dword [esi + 4]
mov dword [0x1008920], eax
mov eax, dword [esi + 8]
mov dword [0x1008924], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x1008918], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x1008914], 2
je 0x1002b01
or byte [0x1008919], 0x80
mov eax, dword [0x1008920]
shl eax, 8
add eax, dword [0x1008924]
mov dword [0x100891c], eax
call fcn.01002a05
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.01003bad
pop ecx
test eax, eax
jne 0x1002b32
push 0x1c
call fcn.010029d7
pop ecx
call fcn.01003a80
test eax, eax
jne 0x1002b43
push 0x10
call fcn.010029d7
pop ecx
mov dword [ebp - 4], ebx
call fcn.01003647
test eax, eax
jge 0x1002b57
push 0x1b
call fcn.010029a8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1009434], eax
call fcn.0100351a
mov dword [0x1008904], eax
call fcn.01003472
test eax, eax
jge 0x1002b7d
push 8
call fcn.010029a8
pop ecx
call fcn.0100321a
test eax, eax
jge 0x1002b8e
push 9
call fcn.010029a8
pop ecx
call fcn.01002d20
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1002ba1
push eax
call fcn.010029a8
pop ecx
call fcn.010031b6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x1002bb4
movzx eax, word [ebp - 0x40]
jmp 0x1002bb7
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.010022a0
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1002bd8
push esi
call fcn.01002e30
call fcn.01002e66
jmp 0x1002c0a
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x1002c22
mov eax, 0xff
call fcn.01003c47
ret
Function at 0x1002e8e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x1008040]
je 0x1002ea8
inc eax
cmp eax, 0x13
jb 0x1002e99
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1008040]
mov dword [ebp + 8], esi
jne 0x1002fee
mov eax, dword [0x100890c]
cmp eax, 1
push ebx
je 0x1002fbe
test eax, eax
jne 0x1002edd
cmp dword [0x100803c], 1
je 0x1002fbe
cmp ecx, 0xfc
je 0x1002fed
push edi
push 6
pop ecx
mov esi, 0x1001500
mov edi, 0x1008958
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x1008972
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x1008a76], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002f2b
push 5
pop ecx
mov esi, 0x10014e8
mov edi, 0x1008972
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f30
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1002f63
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f44
sub eax, edx
push 3
lea eax, [eax + 0x1008937]
push 0x10014e4
push eax
call fcn.01004200
add esp, 0xc
mov edx, 0x1008958
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002f6b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1008044]
mov esi, 0x10014e0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002f86
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002f92
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10014b8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010040f8
add esp, 0xc
pop edi
jmp 0x1002fed
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1002fed
mov esi, dword [esi + 0x1008044]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1002fd5
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x100351a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1008d78]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1003566
call esi
mov edi, eax
cmp edi, ebx
je 0x100354c
mov dword [0x1008d78], 1
jmp 0x100356b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1003561
push 2
pop eax
mov dword [0x1008d78], eax
jmp 0x1003566
mov eax, dword [0x1008d78]
cmp eax, 1
jne 0x10035e3
cmp edi, ebx
jne 0x1003577
call esi
mov edi, eax
cmp edi, ebx
je 0x10035ec
cmp word [edi], bx
mov eax, edi
je 0x100358c
inc eax
inc eax
cmp word [eax], bx
jne 0x100357e
inc eax
inc eax
cmp word [eax], bx
jne 0x100357e
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x10035da
call fcn.0100488b
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10035da
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x10035d7
push dword [ebp - 4]
call fcn.01003d66
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100363b
cmp eax, 2
je 0x10035f0
cmp eax, ebx
je 0x10035f0
xor eax, eax
jmp 0x100363d
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10035ec
cmp byte [esi], bl
je 0x100360d
inc eax
cmp byte [eax], bl
jne 0x1003603
inc eax
cmp byte [eax], bl
jne 0x1003603
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.0100488b
cmp eax, ebx
je 0x1003634
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10040f8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1008ee0], ebx
push esi
push edi
jne 0x100417a
push 0x1001618
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10041b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100160c
push edi
call esi
test eax, eax
mov dword [0x1008ee0], eax
je 0x10041b5
push 0x10015fc
push edi
call esi
push 0x10015e8
push edi
mov dword [0x1008ee4], eax
call esi
cmp dword [0x1008914], 2
mov dword [0x1008ee8], eax
jne 0x100417a
push 0x10015cc
push edi
call esi
test eax, eax
mov dword [0x1008ef0], eax
je 0x100417a
push 0x10015b4
push edi
call esi
mov dword [0x1008eec], eax
mov eax, dword [0x1008eec]
test eax, eax
je 0x10041bf
call eax
test eax, eax
je 0x10041a6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1008ef0]
test eax, eax
je 0x10041a6
test byte [ebp - 8], 1
jne 0x10041bf
cmp dword [0x1008920], 4
jb 0x10041b9
or byte [ebp + 0x12], 0x20
jmp 0x10041de
xor eax, eax
jmp 0x10041ee
or byte [ebp + 0x12], 4
jmp 0x10041de
mov eax, dword [0x1008ee4]
test eax, eax
je 0x10041de
call eax
mov ebx, eax
test ebx, ebx
je 0x10041de
mov eax, dword [0x1008ee8]
test eax, eax
je 0x10041de
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1008ee0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100553a
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100556b
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1005572
cmp ebx, dword [ebp + 8]
jae 0x1005572
xor eax, eax
jmp 0x1005762
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1005583
xor eax, eax
inc eax
jmp 0x1005761
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1005599
cmp ecx, edx
jae 0x10056de
cmp dword [eax + 4], 0
je 0x10055a2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100558a
cmp dword [ebp + 8], 0
je 0x10055c4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10056de
cmp eax, esi
jae 0x10056de
mov eax, dword [0x1008f08]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x10055e9
cmp dword [esi*4 + 0x1008f10], edi
je 0x10056e2
inc esi
cmp esi, eax
jl 0x10055d7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100575e
cmp dword [ebp - 8], 0x1000000
jne 0x100575e
test byte [ebp - 0xc], 0xcc
je 0x1005667
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100575e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100575e
cmp word [eax + 0x18], 0x10b
jne 0x100575e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100575e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1005667
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1005667
test byte [ecx + 0x27], 0x80
jne 0x10056de
push 1
push 0x1008f50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100557b
mov ecx, dword [0x1008f08]
test ecx, ecx
mov edx, ecx
jle 0x100569b
lea eax, [ecx*4 + 0x1008f0c]
cmp dword [eax], edi
je 0x100569b
dec edx
sub eax, 4
test edx, edx
jg 0x100568f
test edx, edx
jne 0x10056cc
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10056a8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10056c0
lea eax, [edx*4 + 0x1008f10]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10056ae
cmp ecx, 0x10
jge 0x10056cc
inc ecx
mov dword [0x1008f08], ecx
push 0
push 0x1008f50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100557b
xor eax, eax
jmp 0x1005761
test esi, esi
jle 0x100557b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1008f50
call ebx
test eax, eax
jne 0x100557b
cmp dword [esi*4 + 0x1008f10], edi
je 0x1005738
mov eax, dword [0x1008f08]
lea esi, [eax - 1]
test esi, esi
jl 0x1005726
cmp dword [esi*4 + 0x1008f10], edi
je 0x1005722
dec esi
jns 0x1005716
test esi, esi
jge 0x1005736
cmp eax, 0x10
jge 0x1005731
inc eax
mov dword [0x1008f08], eax
lea esi, [eax - 1]
jmp 0x1005738
je 0x1005750
xor ecx, ecx
test esi, esi
jl 0x1005750
lea eax, [ecx*4 + 0x1008f10]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100573e
push 0
push 0x1008f50
call ebx
jmp 0x100557b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100674b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002c30
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006847
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x1008914], 2
jne 0x10067cc
push 0x1001574
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x10067cc
push 0x100218c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10067cc
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x10067cc
cmp dword [ebp - 4], esi
jbe 0x10067cc
mov esi, dword [ebp - 4]
mov edx, dword [0x1008914]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x10067f5
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x1006801
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x1006813
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x1006847
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1006847
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1006847
xor eax, eax
inc eax
jmp 0x1006849
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x80ba70
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
and byte [esi], cl
dec edx
push bp
pop ds
fild dword [ebx]
loopne 0x401054
or eax, 0x16765533
aam 0x27
mov edx, 0x34114f5c
loop 0x40107c
imul edx, dword [0x1f6c2342], 0xffffffbd
je 0x400fdd
pop es
dec eax
or ah, ch
inc edi
or byte [ecx - 0x49], dl
rcl dh, cl
cmp ah, bl
ret
mov ch, 0xec
adc ecx, dword ss:[ebx - 0x29]
or eax, 0xd4bb9d38
pop ebp
inc esi
imul edx, dword [edx - 0x6c61a768], 9
test dword [esp + eax*8 + 0x47], ecx
leave
les eax, [edi - 0x37]
jns 0x4010b6
or byte [ebx - 0x2157b27e], cl
pop esi
or byte [ebx + 0x63], ch
sahf
or eax, 0x23f81e5d
add dh, byte [eax]
movsb byte es:[edi], byte [esi]
loop 0x4010d1
push ds
clc
and eax, dword [edx]
xor byte [edx + 0x3a69e34d], ah
dec edx
xchg eax, esi
call [ebp + 0x16]
and al, 0xb9
movsb byte es:[edi], byte [esi]
xchg dword [ecx - 0x7f604aff], edx
xor al, 0x91
cld
pop ss
jecxz 0x40106a
jecxz 0x4010ef
cmp cl, byte [edx - 0x79]
invalid
fcmove st(0), st(3)
mov edi, 0x8e8eacf0
salc
test byte gs:[ebp - 0x75], 0x12
jns 0x40110c
retf
lds esi, [esi]
pop esi
inc esp
xchg ebx, eax
mov byte [eax - 0x55ff4370], dh
push esi
sub eax, 0xa06203bf
xchg ebp, eax
mov al, 0x90
mov esp, 0x2d56aa00
mov edi, 0x95a06203
lodsb al, byte [esi]
adc eax, 0x58af507
stosb byte es:[edi], al
in eax, dx
movsd dword es:[edi], dword [esi]
xchg eax, edi
test esi, ecx
test al, 0x7b
ficom dword [ecx]
push ds
jmp 0x401114
cdq
inc ebp
hlt
xor byte [0x2d16de2], bl
imul byte [eax]
loop 0x4010bc
dec ecx
dec ecx
pop edx
jge 0x401195
cmp bh, byte [ecx + eax*8]
fist dword [ecx - 0x15631fb8]
cmp word [eax*4 - 0x50e84d16], bp
lodsb al, byte [esi]
ljmp 0x8438
inc esi
sbb ebx, dword [ebp + 0x78]
cmp al, 0x7a
aaa
iretd
Function at 0x12049937
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x12049959
mov eax, 0xfffffffd
jmp 0x120499d1
mov ebx, dword [0x120eab60]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x1204999f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x120eab60]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x120499c7
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x120499d1
mov esp, ebp
pop ebp
ret 4
Function at 0x1205886f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret

Function at 0x1205ab40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x120c1510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.120b6b95
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1205be50
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1205ab94
jmp dword [ecx*4 + 0x1205acfc]
mov al, byte [esi]
test al, al
je 0x1205abc2
cmp al, 0x20
je 0x1205abae
cmp al, 0xa1
jne 0x1205abc2
cmp byte [esi + 1], al
jne 0x1205abc2
test al, 0x80
je 0x1205abba
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1205abc2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1205aba1
test ecx, ecx
je case.default.0x1205ab94
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1205ab94
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1205ac08
cmp dl, 0xa1
jne 0x1205abfc
cmp byte [eax + 1], 0xa1
jne 0x1205abfc
test ecx, ecx
jne 0x1205abf4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1205ac1c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1205ac36
jmp 0x1205ac1c
cmp dl, 0x20
jne 0x1205ac1a
test ecx, ecx
jne 0x1205ac13
mov edi, eax
mov ecx, 1
jmp 0x1205ac1c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1205abdc
cmp ecx, 1
jne case.default.0x1205ab94
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1205ab94
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1205ab94
mov al, byte [esi]
test al, al
je 0x1205ac8e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1205ac74
mov cl, byte [esi + 1]
test cl, cl
je 0x1205ac8e
cmp al, 0xa1
jne 0x1205ac64
cmp cl, al
je 0x1205ac71
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1205c120
inc esi
jmp 0x1205ac86
cmp al, 0x20
je 0x1205ac86
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1205c160
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1205ac4d
push 0
lea ecx, [esp + 0x14]
call fcn.1205c160
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.12065250
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1205acc1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x120c8a58
call fcn.1205c050
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.120b6b27
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret