joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014e5
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001542
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x1001539
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x1001915
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10011a0
call fcn.01001af0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001950
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001950
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001968
cmp eax, 0x20b
je 0x1001955
mov dword [ebp - 0x1c], edi
jmp 0x100197c
cmp dword [ecx + 0x84], 0xe
jbe 0x1001950
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001976
cmp dword [ecx + 0x74], 0xe
jbe 0x1001950
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002030], 0xffffffff
or dword [0x1002034], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002028]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002024]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002038], eax
call fcn.01001aec
cmp dword [section..data], edi
jne 0x10019d7
push fcn.01001aec
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001ada
push 0x10010c8
push 0x10010c4
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002020]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100201c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x10010c0
push 0x10010bc
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010017bf
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001a4e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001a83
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001b29
ret
Function at 0x1000c0a0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call 0x100bcc9e
test eax, eax
js 0x1000c196
cmp word [ebp - 0x34], 6
je 0x1000c196
lea eax, [ebp - 4]
push eax
push 0x10004090
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000c14d
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100040ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c144
cmp dword [ebp - 0xc], eax
je 0x1000c144
push 0x100040c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1000c144
push 0x100040cc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000c144
push dword [ebp + 8]
mov ecx, esi
call dword [0x100ac510]
call esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
cmp esi, 0x78
je 0x1000c165
cmp esi, 0xdc
jb 0x1000c196
cmp esi, 0x140
jae 0x1000c196
push 0x3594
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x1000c196
mov ecx, eax
mov edx, 0x20
and ecx, 0x1f
sub edx, ecx
push esi
mov dword [eax + edx - 4], edx
lea ecx, [eax + edx]
call fcn.1000ca80
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1009f080
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1009f0be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1009f0b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1009f0c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1009f0a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1009f190
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1009f1c1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1009f1c1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x1009f1c1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1945600
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1240000]
push edi
or ebp, 0xffffffff
jmp 0x1945622
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1945629
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1945618
mov eax, 1
add ebx, ebx
jne 0x194563b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x194564c
jne 0x194566b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x194566b
dec eax
add ebx, ebx
jne 0x1945658
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1945630
add ebx, ebx
jne 0x1945667
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x19456bd
xor ecx, ecx
sub eax, 3
jb 0x1945683
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x19456f2
sar eax, 1
mov ebp, eax
jmp 0x194568e
add ebx, ebx
jne 0x194568e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x194565c
inc ecx
add ebx, ebx
jne 0x194569c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x194565c
add ebx, ebx
jne 0x19456a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x194569e
jne 0x19456ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x194569e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x19456dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x19456ce
jmp 0x194561e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x19456dc
add edi, ecx
jmp 0x194561e
pop esi
mov edi, esi
mov ecx, 0xd89e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x19456fa
cmp byte [edi], 0x23
jne 0x19456fa
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 0x19456ff
lea edi, [esi + 0x1541000]
mov eax, dword [edi]
or eax, eax
je 0x194576e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x154829c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15483dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x194572c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15483e4]
or eax, eax
je 0x1945768
mov dword [ebx], eax
add ebx, 4
jmp 0x1945749
call dword [esi + 0x15483e0]
mov ebp, dword [esi + 0x15483e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x19457a2
sub esp, 0xffffff80
jmp 0x5a9a30
Function at 0x404b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44f43a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0044e6f3
mov eax, dword [0x467c48]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x20], eax
mov ecx, dword [0x467c48]
mov dword [esi + 0x30], ecx
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call fcn.0043bc02
mov edx, dword [0x467c48]
mov dword [esi + 0x54], edx
mov eax, dword [0x467c48]
mov dword [esi + 0x58], eax
mov ecx, dword [0x467c48]
mov dword [esi + 0x5c], ecx
push 0x46c838
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
mov dword [esi], method.CSocket.virtual_0
mov dword [esi + 0x2c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x24], edi
call fcn.004411a3
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x44f43a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0044e6f3
mov eax, dword [0x467c48]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x20], eax
mov ecx, dword [0x467c48]
mov dword [esi + 0x30], ecx
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call fcn.0043bc02
mov edx, dword [0x467c48]
mov dword [esi + 0x54], edx
mov eax, dword [0x467c48]
mov dword [esi + 0x58], eax
mov ecx, dword [0x467c48]
mov dword [esi + 0x5c], ecx
push 0x46c838
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
mov dword [esi], method.CSocket.virtual_0
mov dword [esi + 0x2c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x24], edi
call fcn.004411a3
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405130
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x405152
pop edi
mov eax, 1
pop esi
add esp, 0x110
ret
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push edi
push ecx
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 1
call sub.WSOCK32.dll_select
xor edx, edx
test eax, eax
setg dl
mov eax, edx
cmp eax, edi
je 0x4051e3
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
cmp eax, edi
je 0x4051e3
mov ecx, dword [esi + 4]
mov dl, byte [0x46c838]
push 2
lea eax, [esp + 0xf]
push 1
push eax
push ecx
mov byte [esp + 0x1b], dl
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, edi
jg 0x4051e3
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2744
je 0x4051de
cmp eax, 0x2745
je 0x4051de
cmp eax, 0x2746
je 0x4051de
cmp eax, 0x2726
je 0x4051de
cmp esi, edi
jne 0x4051e3
mov edi, 1
mov eax, edi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x406cd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44f7ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0044e025
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call fcn.00442234
mov eax, dword [0x467c48]
lea ecx, [esi + 0x30]
mov dword [ecx], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0x46c838
mov byte [esp + 0x18], 2
mov dword [esi], method.CAsyncSocket.virtual_0
mov dword [esi + 0x2c], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], edi
call fcn.004411a3
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4092c0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.0041a940
push ebp
push esi
push edi
push 0
push 0
push 0
push 1
push str.DownloadApp
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4092f6
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x100c
ret
mov eax, dword [esp + 0x101c]
mov eax, dword [eax + 4]
test eax, eax
jne 0x409309
mov eax, 0x45573c
push 0
push accept
push 0
push 0
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x409335
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x100c
ret
mov ecx, dword [esp + 0x1020]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x409348
mov eax, 0x45573c
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409380
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x100c
ret
lea edx, [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push edx
lea eax, [esp + 0x20]
push 0x1000
push eax
push esi
call ebx
test eax, eax
je 0x4093d5
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4093d1
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push eax
push edx
push edi
call ebp
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x1000
push ecx
push esi
call ebx
test eax, eax
jne 0x4093a3
mov ebp, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x100c
ret
Function at 0x409400
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455740
push 0x41ab04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0
push 0x80
push 4
push 0
push 1
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x409507
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409469
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409507
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x40948b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409507
push 0
lea ecx, [ebp - 0x1c]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x28], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4094f9
cmp dword [ebp - 0x1c], edi
jne 0x4094f9
xor esi, esi
mov dword [ebp - 4], esi
call ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x4094d8
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44fcb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00429def
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.00429c8c
mov edi, dword [0x46f704]
lea ecx, [esp + 8]
call fcn.00429c8c
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x40adac
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.00429d28
lea ecx, [esp + 0xc]
call fcn.00429d28
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov edx, dword [esi + 0xc]
mov dword [edx], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov ecx, dword [esi + 0x2c]
mov dword [ecx], 0
mov edx, dword [esp + 0x24]
push 0
push 0
push 0
push edx
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esi], vtable.std::strstreambuf.0
call fcn.0042a8d0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x410690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45034c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call fcn.0043bf73
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], 0
call fcn.0043bf73
mov eax, dword [0x467c48]
lea edi, [esi + 0x2c]
mov dword [edi], eax
lea ebx, [esi + 0x30]
push 0
mov ecx, ebx
mov byte [esp + 0x1c], 2
call fcn.0041995a
mov dword [ebx], 0x4555ec
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
mov byte [esp + 0x1c], 3
mov dword [esi], 0x455aa0
call fcn.00412db0
add esp, 4
mov ecx, edi
push str.security.dat
call fcn.004413f6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x410750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x450381
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x455aa0
lea edi, [esi + 0x30]
mov dword [esp + 0x14], 2
lea eax, [edi + 8]
mov dword [edi], 0x4555ec
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.00419985
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 1
call fcn.00441066
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 0
call fcn.0043bfa6
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0043bfa6
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x412160
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4506a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x510]
lea esi, [edi + 0x510]
mov ecx, esi
call dword [eax + 0x2c]
mov edx, dword [esi]
push 0xffffff
mov ecx, esi
call dword [edx + 0x30]
lea ebp, [edi + 0x500]
push 0
push ebp
mov ecx, esi
call fcn.0044ac2b
lea ebx, [edi + 0x44]
mov dword [esp + 0x14], 0x64
jmp 0x4121c2
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x4ec]
mov ecx, dword [ebx]
sub ecx, eax
mov eax, ecx
mov dword [ebx], ecx
cmp eax, 0xff
jle 0x4121dd
mov dword [ebx], 0xffffff01
cmp dword [ebx], 0xffffff01
jge 0x4121eb
mov dword [ebx], 0xff
mov eax, dword [ebx - 8]
mov ecx, dword [ebx]
mov dword [esp + 0x1c], vtable.CPen.0
lea eax, [eax + eax*4]
lea edi, [ecx + 0x100]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv edi
mov edx, dword [ebp]
mov esi, eax
mov eax, dword [ebp + 8]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov eax, dword [ebx - 4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv edi
mov edx, dword [ebp + 4]
mov edi, eax
mov eax, dword [ebp + 0xc]
sub eax, edx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add edi, eax
mov dword [esp + 0x20], edx
mov eax, 0xff
mov dword [esp + 0x2c], edx
sub eax, ecx
and eax, 0xff
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
push 1
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call fcn.004441c0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea ecx, [eax + 0x510]
call fcn.00443a70
mov dword [esp + 0x18], eax
lea ecx, [edi + 3]
lea eax, [esi + 3]
push ecx
push eax
push edi
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0x514]
push ecx
call dword [sym.imp.GDI32.dll_Ellipse]
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x510]
push edx
call fcn.00443a70
mov dword [esp + 0x1c], vtable.CGdiObject.0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 1
call fcn.00444217
mov eax, dword [esp + 0x14]
add ebx, 0xc
dec eax
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4121be
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x412740
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x450725
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x467c48]
push esi
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x234]
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x230], 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 8], eax
je 0x41282b
push eax
call fcn.00440da7
mov edx, dword [esp + 0xc]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x1c]
push esi
push edx
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41281e
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41281e
mov eax, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04x_04xPrivateBuild
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41281e
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.0043ac98
add esp, 8
test esi, esi
je 0x41282b
push esi
call fcn.00440dd0
add esp, 4
mov esi, dword [esp + 0x230]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00440ddb
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 0
call fcn.00441066
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret 8