joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b4c0
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
sub esp, 0x84c
mov eax, dword [0x1001c3d0]
push ebp
push esi
mov dword [esp + 0x850], eax
mov esi, ecx
call fcn.1000b1a0
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push str.ReadHttpFile
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebp
mov dword [esi + 0x102c], eax
jne 0x1000b510
pop esi
mov eax, 0x80004005
pop ebp
mov ecx, dword [esp + 0x848]
call fcn.1000d8e6
add esp, 0x84c
ret
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x58]
mov dword [esp + 0x2c], eax
mov eax, 0x400
lea ecx, [esp + 0x458]
lea edi, [esi + 0x2c]
push ebp
push edi
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov word [esp + 0x3c], 0x50
call fcn.1000e8de
add esp, 4
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1000b599
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x102c]
push ebp
push ebp
push 3
push ebp
push ebp
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebp
mov dword [esi + 0x1030], eax
jne 0x1000b5b4
mov ecx, esi
call fcn.1000b1a0
pop edi
pop esi
mov eax, 0x80004005
pop ebp
mov ecx, dword [esp + 0x848]
call fcn.1000d8e6
add esp, 0x84c
ret
push ebp
push 0x400000
push ebp
push ebp
push str.HTTP_1.1
lea ecx, [esp + 0x468]
push ecx
push 0x10017a68
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebp
mov dword [esi + 0x1034], eax
je 0x1000b592
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetErrorDlg]
mov dword [esi + 0x28], ebp
mov dword [esi + 0x1038], ebp
mov dword [esi + 0x103c], ebp
mov dword [esp + 0x14], 0x80004005
mov dword [esp + 0x18], 4
jmp 0x1000b610
mov edx, dword [esi + 0x1034]
push ebp
push ebp
push ebp
push ebp
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1000b6d6
mov edx, dword [esi + 0x1034]
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x20000013
push edx
call edi
test eax, eax
je 0x1000b6d6
mov eax, dword [esp + 0x10]
cmp eax, 0xc8
je 0x1000b6d0
cmp eax, 0x64
je 0x1000b6d0
cmp eax, 0x197
jne 0x1000b6d6
mov eax, dword [esi + 0x1034]
mov ecx, dword [esi + 0x10]
push ebp
push 2
push 0x2eee
push eax
push ecx
call ebx
cmp eax, 6
je 0x1000b6d6
cmp eax, 0x4c7
je 0x1000b6d6
mov edx, dword [esi + 0x1034]
push ebp
push ebp
push ebp
push ebp
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1000b610
mov edx, dword [esi + 0x1034]
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x20000013
push edx
call edi
test eax, eax
je 0x1000b610
mov eax, dword [esp + 0x10]
cmp eax, 0xc8
je 0x1000b6d0
cmp eax, 0x64
jne 0x1000b610
mov dword [esp + 0x14], ebp
jmp 0x1000b6dd
mov ecx, esi
call fcn.1000b1a0
mov ecx, dword [esp + 0x858]
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
call fcn.1000d8e6
add esp, 0x84c
ret
Function at 0x1000b840
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x10016c00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x24]
test eax, eax
mov dword [esp + 4], 0
mov dword [esp + 0x1c], ecx
je 0x1000b9a4
push ebx
push ebp
push edi
nop
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000b8a6
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x2c]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [esp + 0x10], 0
jmp 0x1000b996
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [esi + 0x9054]
mov ebp, edi
push ebp
mov dword [esp + 0x1c], ebp
call ebx
push edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], edi
call ebx
lea ecx, [esi + 0x1040]
mov byte [esp + 0x34], 1
call fcn.1000c4d0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, eax
mov byte [esp + 0x38], 0
call edi
cmp ebx, 0x8000
jae 0x1000b8ff
mov dword [esp + 0x10], 1
jmp 0x1000b98b
mov ecx, dword [esi + 0x1034]
lea eax, [esp + 0x14]
push eax
push 0x8000
lea ebx, [esi + 0x1054]
push ebx
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1000b950
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1000b93e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jge 0x1000b96f
mov ecx, esi
call fcn.1000b070
jmp 0x1000b98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
jmp 0x1000b931
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x103c]
add edx, eax
test eax, eax
mov dword [esi + 0x103c], edx
jne 0x1000b973
mov dword [esi + 0x28], 1
jmp 0x1000b973
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
push ebx
mov ecx, esi
call fcn.1000b7d0
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebp
mov dword [esp + 0x38], 0xffffffff
call edi
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x1000b880
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x1000bd90
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push 0
push 1
push esi
push edi
push ebx
call ebp
test eax, eax
jne 0x1000bdc0
push 8
push 1
push esi
push edi
push ebx
call ebp
test eax, eax
je 0x1000bdc7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1000bdda
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
call esi
pop edi
pop esi
and eax, 0xffff
pop ebp
or eax, 0x80070000
pop ebx
ret
Function at 0x1000bf90
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000bfd2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1000bfc4
call esi
pop esi
ret
call esi
and eax, 0xffff
or eax, 0x80070000
pop esi
ret
xor eax, eax
ret

Function at 0x1000bfe0
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1000c01a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1000c00c
call esi
pop esi
ret
call esi
and eax, 0xffff
or eax, 0x80070000
pop esi
ret
xor eax, eax
ret

Function at 0x1000c180
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push 1
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1000c1c6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1000c1b8
call esi
pop esi
ret
call esi
and eax, 0xffff
or eax, 0x80070000
pop esi
ret
xor eax, eax
ret

Function at 0x1000c1d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 1
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x1000c211
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1000c203
call esi
pop esi
ret
call esi
and eax, 0xffff
or eax, 0x80070000
pop esi
ret
xor eax, eax
ret

Function at 0x1000c220
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x202
call fcn.1000e016
mov ebx, eax
add esp, 4
xor ecx, ecx
xor eax, eax
mov esi, ebx
lea esp, [esp]
mov byte [esi], al
inc eax
inc esi
cmp ax, 0x100
jl 0x1000c240
mov byte [ebx + 0x200], cl
mov byte [ebx + 0x201], cl
xor dl, dl
mov esi, ebx
mov ebp, 0x100
nop
mov eax, dword [esp + 0x14]
movzx edi, dl
movzx edx, byte [edi + eax]
movzx eax, byte [esi]
add edx, ecx
add eax, edx
and eax, 0x800000ff
jns 0x1000c280
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
mov al, byte [esi]
mov dl, byte [ecx + ebx]
mov byte [esi], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
movzx edi, byte [esp + 0x18]
cdq
idiv edi
inc esi
dec ebp
jne 0x1000c260
mov eax, dword [esp + 0x1c]
lea edi, [ebx + 0x100]
mov esi, ebx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [eax], ebx
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1000d050
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x218
push ebx
mov ebx, dword [esp + 0x224]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1000d078
mov eax, 0x80004005
pop ebx
add esp, 0x218
ret 8
push ebp
mov ebp, dword [esp + 0x224]
lea eax, [esp + 8]
push eax
push 0x2000000
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d113
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x104
call esi
test eax, eax
jne 0x1000d0ff
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.1000d050
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x104
call esi
test eax, eax
je 0x1000d0c6
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 8
Function at 0x1000d120
Capabilities:
Set registry value

Disassembly:
sub esp, 0x260
push ebx
push esi
push 0x27
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x274]
push ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x64]
push str.CLSID_ls
push eax
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x64]
push edx
push 0x80000000
call ebx
test eax, eax
je 0x1000d182
pop esi
or eax, 0x80070000
pop ebx
add esp, 0x260
ret 0x20
mov eax, dword [esp + 0x27c]
push ebp
push edi
push eax
lea ecx, [esp + 0x6c]
push 0x10017ba4
push ecx
call esi
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
add esp, 0xc
push 0x208
lea edx, [esp + 0x6c]
push edx
push 1
push 0
push eax
call ebp
mov edi, eax
test edi, edi
jne 0x1000d1ea
mov edx, dword [esp + 0x290]
push edx
lea eax, [esp + 0x6c]
push 0x10017ba4
push eax
call esi
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1000d209
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebp
pop esi
or eax, 0x80070000
pop ebx
add esp, 0x260
ret 0x20
mov edx, dword [esp + 0x288]
push edx
lea eax, [esp + 0x6c]
push 0x10017ba4
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
call ebx
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x6c]
push eax
push 1
push 0
push ecx
call ebp
mov edi, eax
test edi, edi
je 0x1000d270
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, edi
pop edi
pop ebp
pop esi
or eax, 0x80070000
pop ebx
add esp, 0x260
ret 0x20
mov ecx, dword [esp + 0x28c]
push ecx
lea edx, [esp + 0x6c]
push 0x10017ba4
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x68]
push eax
call ebx
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x6c]
push edx
push 1
push 0
push str.ThreadingModel
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov esi, eax
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
test esi, esi
jle 0x1000d2d2
and esi, 0xffff
or esi, 0x80070000
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x260
ret 0x20
Function at 0x1000d80a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1001c3d0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.1000d7da
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1000ed40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1000d86c
cmp dword [ebp - 0x1c], 5
jb 0x1000d884
jmp 0x1000d880
cmp dword [ebp - 0x10], 1
jne 0x1000d884
cmp dword [ebp - 0x1c], 4
ja 0x1000d880
jne 0x1000d884
cmp dword [ebp - 0x18], 0
jbe 0x1000d884
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10017c78
call fcn.10008b80
test eax, eax
jge 0x1000d8a5
mov byte [0x1001d288], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.1000d8e6
add ebp, 0x78
leave
ret

Function at 0x1000e8f4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000e9e4
mov eax, 0x94
call fcn.1000d960
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000ea59
mov ecx, dword [esi + 0x10]
mov dword [0x1001d630], ecx
mov eax, dword [esi + 4]
mov dword [0x1001d63c], eax
mov edx, dword [esi + 8]
mov dword [0x1001d640], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1001d634], esi
je 0x1000e95f
or esi, 0x8000
mov dword [0x1001d634], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1001d638], eax
call fcn.1001081f
test eax, eax
pop ecx
je 0x1000ea59
call fcn.1000fa64
test eax, eax
jne 0x1000e98c
call fcn.10010870
jmp 0x1000ea59
call fcn.1001230f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1001ecd4], eax
call fcn.100121ed
mov dword [0x1001d450], eax
call fcn.10011cce
test eax, eax
jl 0x1000e9dd
call fcn.1001214b
test eax, eax
jl 0x1000e9d8
call fcn.10011f18
test eax, eax
jl 0x1000e9d8
push 0
call fcn.10011a50
test eax, eax
pop ecx
jne 0x1000e9d8
inc dword [0x1001d44c]
jmp 0x1000ea6a
call fcn.10011ecc
call fcn.1000f84d
jmp 0x1000e982
test eax, eax
jne 0x1000ea14
cmp dword [0x1001d44c], eax
jle 0x1000ea59
dec dword [0x1001d44c]
cmp dword [0x1001d66c], eax
jne 0x1000ea03
call fcn.10011b8e
call fcn.10011ecc
call fcn.1000f84d
call fcn.10010870
jmp 0x1000ea6a
cmp eax, 2
jne 0x1000ea5d
push 0x8c
push 1
call fcn.10011c13
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000ea59
push esi
push dword [0x1001c434]
call dword [0x1001d474]
test eax, eax
push esi
je 0x1000ea53
call fcn.1000f86a
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000ea6a
call fcn.1000e479
pop ecx
xor eax, eax
jmp 0x1000ea6d
cmp eax, 3
jne 0x1000ea6a
push 0
call fcn.1000fa35
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10011aba
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10018008
call fcn.1000eda0
push 8
call fcn.10010a42
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1001d670], esi
jne 0x10011aee
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1001d66c], esi
mov al, byte [ebp + 0x10]
mov byte [0x1001d668], al
cmp dword [ebp + 0xc], edi
jne 0x10011b38
cmp dword [0x1001eca8], edi
je 0x10011b28
mov eax, dword [0x1001eca4]
sub eax, 4
mov dword [0x1001eca4], eax
cmp eax, dword [0x1001eca8]
jb 0x10011b28
mov eax, dword [eax]
cmp eax, edi
je 0x10011b09
call eax
jmp 0x10011b09
push 0x1001b034
mov eax, 0x1001b02c
call fcn.10011a38
pop ecx
push 0x1001b040
mov eax, 0x1001b038
call fcn.10011a38
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10011b69
cmp dword [ebp + 0x10], edi
jne 0x10011b77
mov dword [0x1001d670], esi
push dword [ebp + 8]
call fcn.100119f6
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10011b76
push 8
call fcn.1001098d
pop ecx
ret
call fcn.1000eddb
ret

Function at 0x10012516
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001c3d0]
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 + 0x1001c620]
je 0x1001254b
inc eax
cmp eax, 0x13
jb 0x1001253c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1001c620]
jne 0x10012671
mov eax, dword [0x1001d458]
cmp eax, 1
je 0x10012649
cmp eax, edx
jne 0x1001257b
cmp dword [0x1001d45c], 1
je 0x10012649
cmp ecx, 0xfc
je 0x10012671
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 0x100125b1
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10012c40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10012d40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100125e5
mov eax, edi
push eax
call fcn.10012d40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10017d54
push edi
call fcn.1000d9a0
add esp, 0x10
push edi
call fcn.10012d40
push dword [esi + 0x1001c624]
mov ebx, eax
call fcn.10012d40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000d960
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10012c40
push edi
push ebx
call fcn.10012c50
push 0x10017d50
push ebx
call fcn.10012c50
push dword [esi + 0x1001c624]
push ebx
call fcn.10012c50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10012b40
add esp, 0x2c
jmp 0x10012671
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1001c624]
push dword [esi]
call fcn.10012d40
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.1000d8e6
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10012b40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001d788], ebx
push esi
push edi
jne 0x10012bc0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10012bfb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1001d788], eax
je 0x10012bfb
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1001d78c], eax
call esi
cmp dword [0x1001d630], 2
mov dword [0x1001d790], eax
jne 0x10012bc0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1001d798], eax
je 0x10012bc0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1001d794], eax
mov eax, dword [0x1001d794]
test eax, eax
je 0x10012c05
call eax
test eax, eax
je 0x10012bec
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001d798]
test eax, eax
je 0x10012bec
test byte [ebp - 8], 1
jne 0x10012c05
cmp dword [0x1001d63c], 4
jb 0x10012bff
or byte [ebp + 0x12], 0x20
jmp 0x10012c24
xor eax, eax
jmp 0x10012c34
or byte [ebp + 0x12], 4
jmp 0x10012c24
mov eax, dword [0x1001d78c]
test eax, eax
je 0x10012c24
call eax
mov ebx, eax
test ebx, ebx
je 0x10012c24
mov eax, dword [0x1001d790]
test eax, eax
je 0x10012c24
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001d788]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013600
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1001c3d0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10013631
xor eax, eax
jmp 0x100137ba
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1001eba0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1001366d
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10015205
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10013748
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10013786
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x100136d1
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100136c2
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x100136a2
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10013711
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1001371a
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10013693
jmp 0x1001371c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x100137b5
cmp dword [ebp - 0x6c], edi
je 0x10013786
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1001377b
call fcn.10013ca4
mov dword [eax], 9
call fcn.10013cad
mov dword [eax], esi
jmp 0x100137b0
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10013770
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1001371c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1001371c
push dword [ebp - 0x6c]
call fcn.10013cb6
pop ecx
jmp 0x100137b0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1001379e
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1001379e
xor eax, eax
jmp 0x100137b8
call fcn.10013ca4
mov dword [eax], 0x1c
call fcn.10013cad
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x100137b8
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000d8e6
add ebp, 0x3a0
leave
ret