joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039c5
Capabilities:
Listen for remote procedure calls
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.01004979
mov edi, eax
cmp edi, ebx
je 0x1006e4c
push esi
mov esi, dword [0x1001180]
push edi
push 0x1003b04
push 0xa
push 0x1003af8
call esi
test eax, eax
jne 0x1003ae3
push edi
push 0x1003af0
push 0xa
push 0x1003ae8
call esi
test eax, eax
jne 0x1003ae3
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.SystemCurrentControlSetControlPrint
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003aa2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.SerializeRpc
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x100d3f8
lea eax, [ebp - 0xc]
push eax
push ebx
push str.CallExitProcessOnShutdown
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.MaxRpcSize
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x1003a99
mov dword [ebp - 0x10], 0x100000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0x10]
push 0xa
push ebx
push ebx
push ebx
push dword [0x100d518]
call dword [0x1001160]
test eax, eax
jne 0x1003ae3
cmp dword [ebp - 0x14], ebx
jne 0x1006e53
push 0x8000
call dword [0x1001188]
push 1
push 0x1770
push 1
call dword [0x100118c]
pop esi
pop edi
pop ebx
leave
ret
xor eax, eax
jmp 0x1003ade
xor eax, eax
jmp 0x1003adf
call dword [0x1001184]
jmp 0x1003ac4

Function at 0x100414e
Capabilities:
Create thread

Disassembly:
push 0x18
push 0x10041a0
call fcn.01002e26
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push 0x1003dca
push 0x10000
push esi
call dword [fcn.010010b8]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x1004193
push eax
call dword [fcn.010010ac]
xor eax, eax
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
call fcn.01002e15
ret
call dword [fcn.010010c8]
jmp 0x1004186
Function at 0x10047d4
Capabilities:
Create thread
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x100d3e0
call dword [0x10010a4]
call fcn.01004427
call dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1004924
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100481b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x100595c
push 0x1004914
call dword [entry0]
cmp eax, esi
mov dword [0x100d20c], eax
je 0x1006cce
push 1
call fcn.0100433c
cmp eax, 1
mov dword [0x100d208], eax
jne 0x10048d5
push ebx
push edi
mov ebx, str.Spooler_exiting
push ebx
push esi
mov esi, dword [0x10010c4]
mov edi, 0x1f0003
push edi
call esi
test eax, eax
jne 0x1006ce1
push 0x10048ec
push eax
xor edi, edi
inc edi
push edi
push eax
call dword [0x10010b4]
xor esi, esi
cmp eax, esi
mov dword [0x100d200], eax
je 0x1006d10
call fcn.010039c5
cmp eax, esi
jne 0x10048e2
push edi
call fcn.0100433c
lea eax, [ebp - 8]
push eax
push esi
push dword [0x100d20c]
push 0x100425c
push 0x10000
push esi
call dword [fcn.010010b8]
cmp eax, esi
je 0x10048da
push eax
call dword [fcn.010010ac]
call fcn.01004935
cmp eax, esi
jne 0x10048e2
push 2
call fcn.0100433c
pop edi
pop ebx
pop esi
leave
ret 8
call dword [fcn.010010c8]
jmp 0x10048c8
push esi
push eax
push edi
call fcn.010075f9
jmp 0x10048d3
call dword [fcn.010010c8]
push esi
push eax
push esi
call fcn.010075f9
jmp 0x10048d5
push eax
call dword [fcn.010010ac]
push 1
call fcn.0100433c
cmp eax, 1
mov dword [0x100d208], eax
jne 0x10048d3
push 0xbb8
call dword [0x10010c0]
push ebx
push 0
jmp 0x1004862
push esi
call dword [fcn.010010bc]
jmp dword [fcn.010010c8]
Function at 0x10080fb
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100d520]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call dword [fcn.010010c8]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push ebx
call dword [0x1001164]
cmp eax, ebx
je 0x1008149
cmp eax, 0x6bd
je 0x10081f3
cmp eax, ebx
jg 0x100813d
mov esi, eax
jmp 0x10081f5
and eax, 0xffff
or eax, 0x80070000
jmp 0x1008136
cmp dword [ebp - 0x18], 4
je 0x1008157
xor esi, esi
inc esi
jmp 0x10081f5
lea eax, [ebp - 0x14]
push eax
push 1
push 8
call dword [0x10010e8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x10081e4
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10081d2
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
je 0x10081c0
xor eax, eax
cmp dword [ebp - 0x1c], ebx
setne al
jmp 0x10081c5
call fcn.0100b917
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x10081d9
call fcn.0100b917
mov esi, eax
push dword [ebp - 0x14]
call dword [fcn.010010ac]
jmp 0x10081f5
call fcn.0100b917
mov esi, eax
cmp esi, 0x800703f0
jne 0x10081f5
xor esi, esi
push edi
call dword [fcn.010010e4]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01004b8f
leave
ret

Function at 0x10083e1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100842d
cmp word [eax], 0
je 0x100842d
push esi
push eax
call sub.SPOOLSS.DLL_AllocSplStr
mov esi, eax
test esi, esi
je 0x100842c
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x10083bf
push 0x10000
push 0
call dword [fcn.010010b8]
test eax, eax
je 0x1008426
push eax
call dword [fcn.010010ac]
jmp 0x100842c
push esi
call sub.SPOOLSS.DLL_DllFreeSplStr
pop esi
pop ebp
ret 4
Function at 0x100afd8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100d520]
and dword [ebp - 0x240], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa
pop ecx
mov esi, 0x100b0a0
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
movsw word es:[edi], word [esi]
mov esi, dword [fcn.0100114c]
push eax
call esi
test ebx, ebx
pop ecx
mov edi, eax
je 0x100b086
push ebx
call esi
cmp eax, edi
pop ecx
jb 0x100b086
push 0x104
lea eax, [ebp - 0x23c]
push eax
call dword [0x1001098]
test eax, eax
je 0x100b086
push edi
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [0x1001148]
add esp, 0xc
test eax, eax
jne 0x100b062
lea eax, [ebx + edi*2]
push eax
push 0x105
lea eax, [ebp - 0x23c]
push eax
call fcn.0100af9f
jmp 0x100b074
push ebx
push 0x105
lea eax, [ebp - 0x23c]
push eax
call fcn.01009e3a
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x23c]
push eax
call sym.spoolsv.exe_YDriverUnloadComplete
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x240], eax
pop edi
pop esi
setge al
pop ebx
call fcn.01004b8f
leave
ret 4

Function at 0x100b123
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x100b150
push dword [eax + 0xc]
call dword [0x1001144]
test eax, eax
pop ecx
pop ecx
jne 0x100b147
push 0xffffffffffffffff
call dword [fcn.010010bc]
xor eax, eax
pop ebp
ret 4
Function at 0x40a5a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x40a5c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a5c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a5b8
mov eax, 1
add ebx, ebx
jne 0x40a5db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a5d0
jne 0x40a5ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a5d0
xor ecx, ecx
sub eax, 3
jb 0x40a600
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a672
mov ebp, eax
add ebx, ebx
jne 0x40a60b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a618
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a63c
inc ecx
add ebx, ebx
jne 0x40a628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a61d
jne 0x40a639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a61d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a65c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a64d
jmp 0x40a5be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a65c
add edi, ecx
jmp 0x40a5be
pop esi
mov edi, esi
mov ecx, 8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40a67a
cmp byte [edi], 1
jne 0x40a67a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40a67f
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a6f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa7ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa828]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a6ac
mov ecx, edi
jns 0x40a6db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa82c]
or eax, eax
je 0x40a6f1
mov dword [ebx], eax
add ebx, 4
jmp 0x40a6c9
call dword [esi + 0xa83c]
mov ebp, dword [esi + 0xa830]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40a72b
sub esp, 0xffffff80
jmp 0x4012b4
Function at 0x401200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401215
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401227
xor eax, eax
jmp 0x401259
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40124b
cmp esi, eax
jae 0x401223
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40123d
cmp esi, eax
jae 0x401223
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x407d7f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x407dd2
call fcn.0042b39c
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x407dd2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x407dc8
xor eax, eax
jmp 0x407eeb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x407e02
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x407e02
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x407ee8
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x407e2f
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00406a9a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x407ee8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x407e78
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x407e78
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x407e72
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00406a9a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x407ed8
and dword [ebp + 0xc], 0
jmp 0x407ed8
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x407ed8
push 0xc
call fcn.00424b7f
mov esi, eax
test esi, esi
pop ecx
je 0x407eba
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x407ebc
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x407ed3
push dword [ebp - 8]
call fcn.0041fc82
jmp 0x407ed8
call fcn.0041fc59
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x407e3d
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410b9a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x437bd8
call fcn.00411d8c
mov edi, 0x94
mov eax, edi
call fcn.00411b00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x445d2c], ecx
mov eax, dword [esi + 4]
mov dword [0x445d38], eax
mov edx, dword [esi + 8]
mov dword [0x445d3c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x445d30], esi
cmp ecx, 2
je 0x410bfa
or esi, 0x8000
mov dword [0x445d30], esi
shl eax, 8
add eax, edx
mov dword [0x445d34], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x410c35
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410c35
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410c4d
cmp eax, 0x20b
je 0x410c3a
mov dword [ebp - 0x1c], esi
jmp 0x410c61
cmp dword [ecx + 0x84], 0xe
jbe 0x410c35
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x410c5b
cmp dword [ecx + 0x74], 0xe
jbe 0x410c35
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415092
pop ecx
test eax, eax
jne 0x410c75
push 0x1c
call fcn.00410b76
pop ecx
call fcn.00414f89
test eax, eax
jne 0x410c86
push 0x10
call fcn.00410b76
pop ecx
call fcn.00414ce1
mov dword [ebp - 4], esi
call fcn.00414ae3
test eax, eax
jge 0x410c9f
push 0x1b
call fcn.00410b51
pop ecx
call fcn.00414a44
mov dword [0x447710], eax
call fcn.004148da
mov dword [0x445d14], eax
call fcn.00414844
test eax, eax
jge 0x410cc4
push 8
call fcn.00410b51
pop ecx
call fcn.00414611
test eax, eax
jge 0x410cd5
push 9
call fcn.00410b51
pop ecx
push 1
call fcn.00412661
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x410ceb
push eax
call fcn.00410b51
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004145cb
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x410d0c
movzx eax, word [ebp - 0x40]
jmp 0x410d0f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041f792
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x410d2d
push edi
call fcn.0041278e
call fcn.004127b0
jmp 0x410d5f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00411dc7
ret
Function at 0x4126cb
Capabilities:
Terminate process

Disassembly:
push 8
push 0x437ca8
call fcn.00411d8c
push 8
call fcn.004169a6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x445d6c], esi
jne 0x4126ff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x445d68], esi
mov al, byte [ebp + 0x10]
mov byte [0x445d64], al
cmp dword [ebp + 0xc], edi
jne 0x412749
cmp dword [0x447708], edi
je 0x412739
mov eax, dword [0x447704]
sub eax, 4
mov dword [0x447704], eax
cmp eax, dword [0x447708]
jb 0x412739
mov eax, dword [eax]
cmp eax, edi
je 0x41271a
call eax
jmp 0x41271a
push 0x441094
mov eax, 0x44108c
call fcn.00412649
pop ecx
push 0x4410a0
mov eax, 0x441098
call fcn.00412649
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41277a
cmp dword [ebp + 0x10], edi
jne 0x412788
mov dword [0x445d6c], esi
push dword [ebp + 8]
call fcn.00412607
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x412787
push 8
call fcn.004168f1
pop ecx
ret
call fcn.00411dc7
ret

Function at 0x412894
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4128b1
call fcn.00412f0d
mov dword [eax], 0x16
xor eax, eax
jmp 0x41291b
push esi
push 0x8c
push 1
call fcn.0041934c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x412906
push esi
call fcn.00414d8f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4128e4
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4127ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41291a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00411ee1
test ebx, ebx
pop ecx
je 0x412918
push ebx
call fcn.00412f1f
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4139b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00411b00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413a4b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x445d2c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x413a4b
cmp eax, 1
je 0x413a6c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413a4b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413a18
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x413a47
xor eax, eax
inc eax
jmp 0x413a8b
cmp edi, eax
jae 0x413a4f
xor eax, eax
jmp 0x413a8b
cmp eax, esi
jae 0x413a56
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x445d2c]
jmp 0x413a6f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4142b7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x442410]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4425e0]
je 0x4142ec
inc eax
cmp eax, 0x13
jb 0x4142dd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4425e0]
jne 0x414412
mov eax, dword [0x445d18]
cmp eax, 1
je 0x4143ea
cmp eax, edx
jne 0x41431c
cmp dword [0x44240c], 1
je 0x4143ea
cmp ecx, 0xfc
je 0x414412
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414352
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041aab0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004111c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x414386
mov eax, edi
push eax
call fcn.004111c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4381b0
push edi
call fcn.0041abb0
add esp, 0x10
push edi
call fcn.004111c0
push dword [esi + 0x4425e4]
mov ebx, eax
call fcn.004111c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411b00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041aab0
push edi
push ebx
call fcn.0041aac0
push 0x438190
push ebx
call fcn.0041aac0
push dword [esi + 0x4425e4]
push ebx
call fcn.0041aac0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041a9b0
add esp, 0x2c
jmp 0x414412
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4425e4]
push dword [esi]
call fcn.004111c0
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00410d9f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4148da
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x445f84]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x414923
call ebp
mov esi, eax
cmp esi, ebx
je 0x414909
mov dword [0x445f84], 1
jmp 0x414928
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41491e
push 2
pop eax
mov dword [0x445f84], eax
jmp 0x414923
mov eax, dword [0x445f84]
cmp eax, 1
jne 0x414980
cmp esi, ebx
jne 0x41493b
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41493b
xor eax, eax
jmp 0x414a27
cmp word [esi], bx
mov eax, esi
je 0x414950
inc eax
inc eax
cmp word [eax], bx
jne 0x414942
inc eax
inc eax
cmp word [eax], bx
jne 0x414942
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041254f
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x414973
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x414a27
push ebp
push esi
push edi
call fcn.00410e80
add esp, 0xc
jmp 0x414965
cmp eax, 2
je 0x414989
cmp eax, ebx
jne 0x414934
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x414934
cmp byte [ebp], bl
mov esi, ebp
je 0x4149bf
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x414934
push esi
add edi, eax
call fcn.004111c0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41499c
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041254f
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x414a38
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x414a19
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x414a2e
push edi
call fcn.004111c0
push esi
lea edi, [edi + eax + 1]
call fcn.00411aa9
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4149df
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00411ee1
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x414934