joyce8/EMBER2024-capa huggingface dataset:
Function at 0x144860e
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0144858a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x144877d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x144877d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1448732
jg 0x144866a
test eax, eax
je 0x1448728
push 1
push 0x1000
call fcn.0143af94
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x144868d
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x144871f
push 0x8000
push ebx
call fcn.0143803a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x14486b6
jg 0x14486b1
cmp ecx, 0x1000
jb 0x14486b6
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0143e441
add esp, 0x10
cmp eax, 0xffffffff
je 0x14486fb
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x14486b1
jl 0x14486e2
test ecx, ecx
jne 0x14486a3
push dword [ebp - 0xc]
push ebx
call fcn.0143803a
push esi
call fcn.0143aff1
add esp, 0xc
xor ebx, ebx
jmp 0x144878b
cmp byte [edi + 0x24], 0
je 0x1448712
cmp dword [edi + 0x20], 5
jne 0x1448712
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x144871d
mov ebx, dword [edi + 0x18]
jmp 0x144871f
xor ebx, ebx
push esi
call fcn.0143aff1
pop ecx
jmp 0x144878b
test ecx, ecx
jg 0x14486f4
jl 0x1448732
test eax, eax
jae 0x14486f4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01440264
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1448752
cmp byte [edi + 0x1c], 0
je 0x14486f4
jmp 0x1448783
push ebx
call fcn.01441f6d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14486f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x144878b
cmp byte [edi + 0x1c], 0
je 0x1448788
mov ebx, dword [edi + 0x18]
jmp 0x144878b
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.01440264
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x144a080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x144a0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x144a0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100132b
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 1]
mov eax, dword [ebp + 0x10]
cmp eax, ecx
mov ecx, dword [ebp + 8]
jne 0x100135a
push dword [ecx + eax*4]
push 0x2711
push 1
call fcn.01002f39
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
push esi
lea esi, [ecx + eax*4]
push 0
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_strtoul]
add esp, 0xc
cmp eax, dword [ebp + 0x14]
jb 0x100137f
cmp eax, dword [ebp + 0x18]
ja 0x100137f
pop esi
pop ebp
ret 0x14
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi]
push 0x2712
push 1
call fcn.01002f39
add esp, 0x14
jmp 0x1001352

Function at 0x100170a
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10040a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10050c0], 0
jbe 0x10017b9
cmp dword [0x10040a0], 0xffffffff
jne 0x1001739
and dword [0x10040a0], 0
push esi
push edi
push 2
push 0
push 0
push 0x41
lea eax, [ebp - 0x48]
push eax
push dword [0x1005688]
push 0x10055e0
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov ecx, dword [0x10050c0]
mov esi, dword [0x10050c4]
mov edi, ecx
sub edi, esi
mov eax, edi
imul eax, eax, 0x64
xor edx, edx
div ecx
push eax
push edi
push esi
push ecx
lea eax, [ebp - 0x48]
push eax
push 0x274f
push 1
call fcn.01002f39
mov ecx, dword [0x10050c8]
add esp, 0x1c
pop edi
pop esi
test ecx, ecx
jbe 0x10017b9
mov eax, dword [0x10050d0]
xor edx, edx
div ecx
push eax
push dword [0x10050cc]
push dword [0x10040a0]
push 0x2753
push 1
call fcn.01002f39
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01002ac1
leave
ret

Function at 0x100180b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x100115c
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100185a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001150
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [ebp - 8]
cmp ebx, esi
jne 0x1001863
mov bl, 0x80
cmp dword [ebp - 4], esi
je 0x1001871
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x100187c
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
pop edi
test eax, eax
je 0x10018b8
xor eax, eax
jmp 0x10018cf
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [ebp + 0x10]
call sub.msvcrt.dll_memcpy
xor eax, eax
add esp, 0xc
inc eax
leave
ret 0xc
Function at 0x1001988
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_getaddrinfo]
push edi
push 8
pop ecx
xor ebx, ebx
mov byte [eax], bl
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 4
call esi
test eax, eax
jne 0x1001a02
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
push edi
call fcn.010012bf
cmp byte [ebp + 0x20], bl
je 0x10019f3
push 4
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [esi]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, bl
jmp 0x1001a4d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 2
call esi
test eax, eax
jne 0x1001a4b
push dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push dword [ebp + 0x10]
push esi
push edi
call fcn.010012bf
cmp dword [esi + 0x14], ebx
je 0x1001a35
mov esi, dword [esi + 0x14]
jmp 0x1001a38
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.01001920
test eax, eax
setge bl
jmp 0x10019f5
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x100145d
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [0x10071c0]
push dword [ebp + 8]
call sub.IMM32.dll_ImmAssociateContext
push 0x10071a0
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
cmp dword [0x10071b8], eax
mov dword [ebp - 4], eax
jbe 0x1001542
push esi
mov ecx, dword [0x10071bc]
mov esi, dword [ecx + eax*4]
xor ebx, ebx
cmp esi, ebx
je 0x100152c
cmp dword [esi], ebx
je 0x1001529
cmp dword [esi + 0x18], ebx
je 0x10014bf
push ebx
push dword [esi + 0x14]
mov dword [esi + 0x18], ebx
call sub.IMM32.dll_ImmSetOpenStatus
push dword [esi + 0x14]
call sub.IMM32.dll_ImmDestroyContext
lea ebx, [esi + 0x240]
mov eax, dword [ebx]
test eax, eax
je 0x10014d9
push eax
call edi
and dword [ebx], 0
lea ebx, [esi + 0x258]
mov dword [ebp + 8], 0x20
mov eax, dword [ebx]
test eax, eax
je 0x10014f9
push eax
call edi
and dword [ebx], 0
and dword [ebx + 0x88], 0
add ebx, 4
dec dword [ebp + 8]
jne 0x10014e6
mov eax, dword [esi + 0x368]
test eax, eax
je 0x1001515
push eax
call edi
and dword [esi + 0x36c], 0
lea ebx, [esi + 0x384]
mov eax, dword [ebx]
test eax, eax
je 0x1001527
push eax
call edi
and dword [ebx], 0
xor ebx, ebx
push esi
call edi
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [0x10071b8]
mov dword [ebp - 4], eax
jb 0x1001497
pop esi
jmp 0x1001544
xor ebx, ebx
push dword [0x10071bc]
call edi
push 0x10071a0
mov dword [0x10071bc], ebx
mov dword [0x10071b8], ebx
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword [0x1007120]
cmp eax, ebx
je 0x1001594
cmp dword [ebp + 0xc], 0x16
jne 0x100157a
cmp dword [0x1007018], ebx
jne 0x1001594
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
call sub.KERNEL32.dll_UnregisterConsoleIME
mov dword [0x1007120], ebx
pop edi
pop ebx
leave
ret 8
Function at 0x100181f
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.010015f5
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x100192d
movzx eax, word [eax + 0x26]
sub eax, 0x3a4
je 0x1001873
sub eax, 4
je 0x100186a
sub eax, 0xd
je 0x1001861
dec eax
jne 0x100187a
mov dword [ebp - 4], 0x404
jmp 0x100187a
mov dword [ebp - 4], 0x412
jmp 0x100187a
mov dword [ebp - 4], 0x804
jmp 0x100187a
mov dword [ebp - 4], 0x411
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and ax, 0xf000
cmp ax, 0xe000
jne 0x1001931
movzx eax, word [ebp + 0x10]
cmp eax, dword [ebp - 4]
je 0x1001931
cmp dword [ebp + 0x14], edi
je 0x100192d
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push edi
call esi
mov ebx, eax
cmp ebx, edi
je 0x100192d
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x100192d
push edi
push ebx
call esi
xor eax, eax
test ebx, ebx
jle 0x1001926
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0xc]
cmp ecx, dword [edi + eax*4]
je 0x10018e0
inc eax
cmp eax, ebx
jl 0x10018d6
cmp eax, ebx
jge 0x1001926
xor edx, edx
add eax, dword [ebp + 0x14]
jns 0x10018f0
lea eax, [ebx - 1]
jmp 0x10018f6
cmp eax, ebx
jl 0x10018f6
xor eax, eax
mov ecx, dword [edi + eax*4]
test ecx, 0xf0000000
je 0x1001913
and ecx, 0xffff
cmp ecx, dword [ebp - 4]
je 0x1001913
inc edx
cmp edx, ebx
jl 0x10018e6
jmp 0x1001926
push 0
push dword [edi + eax*4]
push 0x40f
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x1001934
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1002c6f
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10070f4]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
push edi
lea eax, [esi + 0x228]
and word [eax], 0
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x204]
push eax
push 0x1006
push dword [esi + 0x10]
mov ebx, 0x100
push dword [esi + 0xc]
lea edi, [esi + 0x28]
and word [edi], 0
mov dword [ebp - 0x410], ebx
call sub.IMM32.dll_ImmEscapeW
test eax, eax
lea eax, [ebp - 0x204]
jne 0x1002dd6
push ebx
push eax
push dword [esi + 0xc]
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
lea eax, [ebp - 0x204]
push eax
jne 0x1002dd7
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x1002dd2
cmp word [ebp - 0x204], 0x45
je 0x1002d0e
cmp word [ebp - 0x204], 0x65
jne 0x1002dd2
push 0x10012e0
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10011cc
lea eax, [ebp - 0x404]
push eax
call ebx
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call ebx
lea eax, [ebp - 0x408]
push eax
push 9
xor ebx, ebx
push ebx
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002dd2
lea eax, [ebp - 0x410]
push eax
push edi
push ebx
push ebx
push 0x10012c4
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov di, word [edi]
cmp di, bx
je 0x1002dde
xor ecx, ecx
mov eax, 0x1007072
cmp di, word [eax - 2]
jne 0x1002dab
mov dx, word [esi + 0x2a]
cmp dx, word [eax]
je 0x1002db8
add eax, 0xe
inc ecx
cmp eax, 0x10070e2
jl 0x1002d9c
jmp 0x1002dde
imul ecx, ecx, 0xe
push 6
add ecx, 0x1007074
push ecx
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x1002dde
xor eax, eax
jmp 0x1002de1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010055c7
leave
ret 4
Function at 0x1002e44
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [eax + 0x18], edi
mov dword [ebp - 4], ecx
mov dword [ebp + 8], edx
je 0x1002fc2
test cl, 8
lea eax, [esi + 8]
je 0x1002ecf
test cl, 1
push 2
pop edi
je 0x1002eb5
test cl, 2
je 0x1002e9b
mov ecx, 0x100705c
mov dx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
add eax, 4
cmp ecx, 0x1007060
jl 0x1002e83
jmp 0x1002f28
mov ecx, str.hQB0JSv
mov dx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
add eax, 4
cmp ecx, 0x1007054
jl 0x1002ea0
jmp 0x1002f28
mov ecx, 0x1007044
mov dx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
add eax, 4
cmp ecx, 0x1007048
jl 0x1002eba
jmp 0x1002f28
test cl, 1
push 3
pop edi
je 0x1002f10
test cl, 2
je 0x1002ef6
mov ecx, 0x1007054
mov dx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
add eax, 4
cmp ecx, 0x100705a
jl 0x1002ee1
jmp 0x1002f28
mov ecx, 0x1007048
mov dx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
add eax, 4
cmp ecx, 0x100704e
jl 0x1002efb
jmp 0x1002f28
mov ecx, 0x100703c
mov dx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
add eax, 4
cmp ecx, 0x1007042
jl 0x1002f15
mov al, byte [ebp + 8]
test al, 1
je 0x1002f3c
mov ax, word [0x1007022]
mov word [esi + edi*4 + 8], ax
jmp 0x1002f6f
test al, 2
je 0x1002f48
mov ax, word [0x1007024]
jmp 0x1002f35
test al, 4
je 0x1002f54
mov ax, word [0x1007026]
jmp 0x1002f35
test al, 8
je 0x1002f60
mov ax, word [0x1007028]
jmp 0x1002f35
mov word [esi + edi*4 + 8], 0x20
inc edi
mov word [esi + edi*4 + 8], 0x20
push 0x15
inc edi
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x1002f9d
lea eax, [esi + edi*4 + 8]
mov ecx, 0x1007034
add edi, 4
mov dx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
add eax, 4
cmp ecx, 0x100703c
jl 0x1002f88
jmp 0x1002fc2
test byte [ebp - 4], 0x10
je 0x1002fc2
lea eax, [esi + edi*4 + 8]
mov ecx, 0x100702c
add edi, 4
mov dx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
add eax, 4
cmp ecx, 0x1007034
jl 0x1002faf
test edi, edi
jle 0x1002fd6
lea eax, [esi + 0xa]
mov ecx, edi
mov word [eax], 7
add eax, 4
dec ecx
jne 0x1002fcb
xor eax, eax
mov dword [esi], edi
inc eax
pop edi
mov dword [esi + 4], eax
pop esi
leave
ret 8
Function at 0x1005cb5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001348
call fcn.010056f8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1005cf2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005cf2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005d0a
cmp eax, 0x20b
je 0x1005cf7
mov dword [ebp - 0x1c], ebx
jmp 0x1005d1e
cmp dword [ecx + 0x84], 0xe
jbe 0x1005cf2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1005d18
cmp dword [ecx + 0x74], 0xe
jbe 0x1005cf2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10071cc], 0xffffffff
or dword [0x10071d0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007180]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100717c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10071d4], eax
call fcn.01005eae
cmp dword [0x1007108], ebx
jne 0x1005d79
push fcn.01005eae
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005e97
push 0x1007010
push 0x100700c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1007178]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1007174]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1007008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1005e0f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005de3
cmp al, 0x22
jne 0x1005dd5
cmp byte [esi], 0x22
jne 0x1005dec
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005df6
cmp al, 0x20
jbe 0x1005de8
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1005e1a
movzx eax, word [ebp - 0x50]
jmp 0x1005e1d
cmp byte [esi], 0x20
jbe 0x1005dec
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005e0f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1005e3a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1005e6f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005733
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.HeapSetInformation
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401035
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x406474
push ebx
call edi
test esi, esi
mov dword [0x406474], esi
je 0x40446d
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [section..data], 0x44bf19b1
pop ebx
leave
ret
mov dword [0x406474], 0xbb40e64e
jmp 0x401093
Function at 0x40111e
Capabilities:
Terminate process

Disassembly:
call section..text
push 0x5c
push 0x406428
call fcn.00401556
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x409050
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x4044f8
xor esi, esi
inc esi
mov eax, dword [0x40904c]
cmp eax, esi
je 0x404517
mov eax, dword [0x40904c]
test eax, eax
jne 0x401226
mov dword [0x40904c], esi
push 0x4062c4
push 0x4062bc
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x4045b2
mov eax, dword [0x40904c]
cmp eax, esi
jne 0x4011d1
push 0x4062b8
push 0x406298
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40904c], 2
cmp dword [ebp - 0x20], ebx
jne 0x4011de
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x409054], ebx
jne 0x404524
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x4045b2
mov eax, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x40121a
cmp cx, 0x22
je 0x40454f
inc eax
inc eax
jmp 0x401200
cmp cx, bx
je 0x401231
cmp dword [ebp - 0x1c], ebx
je 0x401231
jmp 0x40120c
mov dword [0x409144], esi
jmp 0x4011ad
movzx ecx, word [eax]
cmp cx, bx
je 0x401df0
cmp cx, 0x20
ja 0x401df0
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x401231
test byte [ebp - 0x40], 1
jne 0x404546
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call 0x401e22
mov dword [0x409118], eax
cmp dword [0x409060], ebx
jne 0x40458f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
call fcn.00402273
ret 0x10
cmp eax, esi
jne 0x404507
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x401174
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401160
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x4011ad
push 0x409054
call fcn.00404f3d
pop ecx
test eax, eax
je 0x4011ea
push ebx
push 2
push ebx
call dword [0x409054]
jmp 0x4011ea
movzx ecx, word [ebp - 0x3c]
jmp 0x401dfd
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x401216
cmp dword [0x409144], ebx
jne 0x40459d
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x409118]
jmp 0x4045be
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401457
ret