joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031040
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10031050
sub eax, edx
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [0x10072be0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10031079
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
test edi, edi
je 0x10031090
nop
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x10031080
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x1003110f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10031102
mov edx, dword [esp + 0x10]
push 0
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi + 0x10], eax
push esi
mov byte [edi + 0x14], al
call dword [0x10072be4]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x10031560
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10031596
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100315a0
sub eax, edx
push eax
call fcn.100273f0
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push edx
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x10
jne 0x100315fd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push 2
push edx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x1003160d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x1003161e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x100335e0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x10033602
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x100335f6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x10033632
cmp dword [esi + 8], 0
jne 0x10033625
mov ecx, dword [eax + 8]
push 0x1006b590
push ecx
call sub.MSVCR120.dll_fopen
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10033625
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call sub.MSVCR120.dll_fread
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10033654
mov eax, dword [esi + 8]
test eax, eax
je 0x1003364e
push eax
call sub.MSVCR120.dll_fclose
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x10034e90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x10072be0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10034eb5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x10034efc
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10034f00
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x10034f5c
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x10034f23
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x10034f98
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x1006b937
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x1006b938
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x10034f67
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x100379b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10073650]
mov dword [ebp - 4], eax
jmp 0x100379c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100379e6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100379c0
mov esp, ebp
pop ebp
ret

Function at 0x100379f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10073660], eax
je 0x10037a0e
mov eax, 0x10dd
jmp 0x10037aef
mov eax, dword [0x10073670]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10037a8c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10037a6a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10037a6a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10037b60
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10037a16
mov dword [0x10073670], 0
call fcn.10037b00
mov ecx, dword [0x1007366c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x10037ad9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x10037aa4
mov dword [0x1007366c], 0
mov dword [0x10073660], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10038070
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10038085
xor eax, eax
jmp 0x100380fa
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x100380b2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x100380f5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x100380f3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x100380ef
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x100380f3
xor eax, eax
jmp 0x100380fa
jmp 0x100380a9
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10038a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10038b50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10038b3c
cmp dword [ebp - 4], 0x50000000
jb 0x10038abc
cmp dword [ebp - 4], 0x80000000
ja 0x10038abc
mov dword [ebp - 4], 0x80010000
jmp 0x10038a95
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10038ae2
jmp 0x10038b3c
cmp dword [ebp - 0x10], 0x10000
jne 0x10038b25
cmp dword [ebp - 0x14], 0x10000
jb 0x10038b25
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10038b18
mov eax, dword [ebp - 0x24]
jmp 0x10038b3e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10038b37
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10038b50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10038a95
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10038b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10038c50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10038c44
cmp dword [ebp - 4], 0x50000000
jb 0x10038bc1
cmp dword [ebp - 4], 0x80000000
ja 0x10038bc1
mov dword [ebp - 4], 0x4fff0000
jmp 0x10038b9a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10038be7
jmp 0x10038c44
cmp dword [ebp - 0x10], 0x10000
jne 0x10038c2a
cmp dword [ebp - 0x14], 0x10000
jb 0x10038c2a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10038c1d
mov eax, dword [ebp - 0x24]
jmp 0x10038c46
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10038c3f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10038c50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10038b9a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10038c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10073660], eax
je 0x10038ca5
mov eax, 0x10dd
jmp 0x10038e3d
cmp dword [0x10073664], 0
je 0x10038cb8
mov eax, dword [0x10073664]
jmp 0x10038e3d
cmp dword [ebp + 8], 0
jne 0x10038cc8
mov eax, 6
jmp 0x10038e3d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10038cf1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x10073664], ecx
mov edx, dword [ebp + 8]
mov dword [0x10073668], edx
mov eax, dword [ebp - 0xc]
jmp 0x10038e3d
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10038d4a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x10073664], ecx
cmp dword [ebp - 0x18], 0
je 0x10038d39
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x10073668], ecx
mov eax, dword [ebp - 0xc]
jmp 0x10038e3d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100376b0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100376b0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x10038d8a
cmp dword [ebp - 8], 0x1e
jbe 0x10038da6
mov dword [ebp - 0xc], 9
cmp dword [0x10073658], 0
je 0x10038da1
jmp 0x10038d1a
jmp 0x10038d11
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10038dcd
mov dword [ebp - 0xc], 9
cmp dword [0x10073658], 0
je 0x10038dc8
jmp 0x10038d1a
jmp 0x10038d11
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10038dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x10038d11
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x10073670]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x10073670], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1003a320
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x1003a33b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1003a351
jmp 0x1003a3c0
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.1003dc20
mov dword [ebp - 0x430], 0x428
push 0x424
push 0
lea ecx, [ebp - 0x42c]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1003a3b6
lea ecx, [ebp - 0x430]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.1003e700
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1003a390
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4

Function at 0x100462c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 1
jmp 0x100462db
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfe
jge 0x10046318
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov word [ebp - 8], ax
movsx edx, word [ebp - 8]
test edx, edx
je 0x10046304
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov byte [eax + 0xc], 1
movsx ecx, word [ebp - 8]
test ecx, ecx
jne 0x10046316
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
mov byte [edx + 0xc], 0
jmp 0x100462d2
mov dword [ebp - 0x18], 1
jmp 0x1004632a
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfe
jge 0x100463d2
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10046220
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
je 0x100463cd
mov dword [ebp - 0x10], 0
jmp 0x10046360
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
call fcn.100443a0
cmp dword [ebp - 0x10], eax
jae 0x100463cd
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10042a40
mov edx, dword [eax]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x18]
jne 0x100463cb
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10042a40
mov edx, dword [eax]
cmp dword [edx + 4], 0
je 0x100463ac
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.10042a40
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
call edx
jmp 0x100463cb
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.10042a40
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx]
call eax
jmp 0x10046357
jmp 0x10046321
mov esp, ebp
pop ebp
ret
Function at 0x10046b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8

Function at 0x10046be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 2
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8

Function at 0x10046c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8

Function at 0x10046c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 1], 0
push 0
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jle 0x10046cc5
mov dword [ebp - 8], 1
jmp 0x10046ccc
mov dword [ebp - 8], 0
mov cl, byte [ebp - 8]
mov byte [ebp - 1], cl
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x10046cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0xc]
push eax
push 0x40
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 1], 0
push 0
push 2
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jle 0x10046d35
mov dword [ebp - 8], 1
jmp 0x10046d3c
mov dword [ebp - 8], 0
mov cl, byte [ebp - 8]
mov byte [ebp - 1], cl
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8

Function at 0x10046d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 1], 0
push 0
push 4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jle 0x10046da5
mov dword [ebp - 8], 1
jmp 0x10046dac
mov dword [ebp - 8], 0
mov cl, byte [ebp - 8]
mov byte [ebp - 1], cl
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x1004b7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x40], 0
je 0x1004b7be
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x1004b7ca
mov al, 1
jmp 0x1004b945
mov dword [ebp - 0x20], 8
call fcn.1004c540
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x14], eax
call fcn.1004c540
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.1004c550
add esp, 8
movzx eax, al
test eax, eax
je 0x1004b80d
xor al, al
jmp 0x1004b945
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.1004a9e0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x48]
call fcn.1003db30
mov ecx, eax
call fcn.1003c4e0
mov esi, eax
lea ecx, [ebp - 0x48]
call fcn.1003eda0
add esi, eax
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.1003db30
mov ecx, eax
call fcn.1003c4e0
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x40]
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1004b882
cmp dword [ebp - 0x10], 1
je 0x1004b889
cmp dword [ebp - 0x10], 3
je 0x1004b916
jmp 0x1004b927
mov eax, dword [ebp - 8]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.1003db30
mov ecx, eax
call fcn.1003c4e0
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0xc], edx
je 0x1004b8e6
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.1003db30
mov ecx, eax
call fcn.1003c4e0
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x1004b8e6
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x48]
call fcn.1003c380
mov al, byte [ebp - 1]
jmp 0x1004b945
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x1004b902
mov byte [ebp - 2], 1
lea ecx, [ebp - 0x48]
call fcn.1003c380
mov al, byte [ebp - 2]
jmp 0x1004b945
cmp dword [ebp - 0xc], 0
jne 0x1004b914
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.100449d0
jmp 0x1004b938
mov byte [ebp - 3], 1
lea ecx, [ebp - 0x48]
call fcn.1003c380
mov al, byte [ebp - 3]
jmp 0x1004b945
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.1003c380
mov al, byte [ebp - 4]
jmp 0x1004b945
jmp 0x1004b819
pop esi
mov esp, ebp
pop ebp
ret