joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401210
Capabilities:
Access peb ldr_data
Create process memory minidump
Delete file
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x44e518
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call ebp
push eax
push 0x45b440
lea edi, [esp + 0x1c]
call fcn.004018c0
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x46ecec
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x30], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4012af
mov ecx, 0x104
lea eax, [esp + 0x10]
call fcn.00401680
mov esi, dword [esp + 0x10]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004240ad
add esp, 8
test eax, eax
jl 0x401409
cmp eax, dword [esi - 8]
jg 0x401409
xor ecx, ecx
mov dword [esi - 0xc], eax
lea edx, [esp + 0x18]
mov word [esi + eax*2], cx
push 0x45b448
push edx
lea ecx, [esp + 0x1c]
call fcn.004014c0
add esp, 8
mov byte [esp + 0x30], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004016d0
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401335
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xc
push str..fullmem.dmp
lea ecx, [esp + 0x18]
push ecx
call fcn.004016d0
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013ad
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [esp + 0x38]
push 0
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 2
push esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
push 0x80070057
call fcn.00401960
int3
Function at 0x406080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406097
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4060c8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4060c4
cmp esi, eax
jae 0x4060c8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4060b4
cmp esi, eax
jb 0x4060ce
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40a5e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4503d7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x45d4f4
mov dword [edi + 8], 0x45d4fc
mov dword [edi + 0x5c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0xc]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.0040b620
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.0040bc90
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x470268]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40bc90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44e20b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004374bc
push 4
mov dword [esp + 0x20], 0
call fcn.00424563
mov edi, eax
add esp, 4
test edi, edi
je 0x40bd0e
call fcn.00437099
mov dword [edi], eax
call fcn.00436ec7
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00436deb
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40bd03
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00436e13
jmp 0x40bd10
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40d1c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x450283
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov edi, ecx
mov esi, edx
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], 0
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x28], 1
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x28], 2
test esi, esi
jne 0x40d24b
xor eax, eax
jmp 0x40d25f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d250
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x3c]
call fcn.004053c0
test edi, edi
jne 0x40d273
xor eax, eax
jmp 0x40d28f
mov eax, edi
lea edx, [eax + 2]
jmp 0x40d280
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d280
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [esp + 0x18]
call fcn.004053c0
test ebp, ebp
jne 0x40d2a3
xor eax, eax
jmp 0x40d2bf
mov eax, ebp
lea edx, [eax + 2]
jmp 0x40d2b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d2b0
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x1c]
call fcn.004053c0
push 0x28
call fcn.00424563
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x28], 3
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x40d333
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x38]
push ecx
push edi
push ebx
push edx
push eax
mov ecx, ebp
call fcn.00411600
mov esi, eax
test esi, esi
je 0x40d333
cmp dword [esi + 0x20], 0
mov dword [esi + 0x24], 1
jne 0x40d333
push 0
push 0
push esi
push 0x411990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d375
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x40e120
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0x410], eax
cmp dword [esi + 0x38], 0
je 0x40e1a5
push edi
lea edi, [esi + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x5c], 0
jne 0x40e19d
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x20c]
push ecx
push 0
push 0x45b7d8
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
push esi
xor eax, eax
push ecx
mov ecx, dword [esi + 8]
mov word [esp + 0x214], ax
mov eax, dword [esi + 0x38]
push edx
mov edx, dword [esi + 4]
push eax
call fcn.0040d1c0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.0042404d
add esp, 0x414
ret
Function at 0x40fb50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44e1d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
push eax
mov eax, dword [0x4701b8]
push 0xffffffffffffffff
push eax
push str.MacFile
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0xffffffff
je 0x40fb9a
mov edi, 1
mov eax, dword [esi + 0x14]
mov ecx, dword [0x4701b8]
push eax
push 0x45b7b0
push ecx
lea edx, [esp + 0x18]
push 0x45b5fc
push edx
call fcn.00414180
add esp, 0x14
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jle 0x40fbd3
mov edi, 1
mov esi, dword [esi + 0x14]
mov ecx, dword [0x4701b8]
push esi
push 0x45b7b0
push ecx
lea edx, [esp + 0x1c]
push 0x45b688
push edx
call fcn.00414180
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp dword [eax - 0xc], 0
jle 0x40fc04
mov edi, 1
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x410680
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x2c
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, ecx
mov eax, dword [esi + 0x14]
push eax
mov eax, dword [0x4701b8]
push 0xffffffffffffffff
push eax
push str.MacFile
call edi
cmp eax, 0xffffffff
jne 0x4106f0
mov ecx, dword [esi + 0xc]
push ecx
lea edx, [esp + 0xc]
push str.Group__d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi + 0x14]
add esp, 0xc
push eax
push 0xffffffffffffffff
push str.FileGroup
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4106f0
mov eax, dword [esi + 0x14]
push eax
push 0
push str.FileGroup
push str.Config
call edi
mov ecx, dword [esp + 0x30]
pop edi
mov dword [esi + 0x10], eax
pop esi
xor ecx, esp
call fcn.0042404d
add esp, 0x2c
ret

Function at 0x410710
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44ea78
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
mov eax, dword [esi + 0x14]
push eax
push str.233.123.112.111
push str.MCIP
lea eax, [esp + 0x18]
push str.Config
push eax
call fcn.00414180
add esp, 0x14
lea edi, [esi + 4]
mov dword [esp + 0x18], 0
call fcn.004050a0
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x14]
push eax
push 0xd36b
push str.MCPORT
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov word [esi + 8], ax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x411750
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x20]
test eax, eax
je 0x41176a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411789
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4117a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4117c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret

Function at 0x4117d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44fae8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esi + 0xc]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x10], edi
je 0x411891
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
call fcn.004049c0
mov edi, eax
mov dword [esp + 0x18], 0
mov eax, dword [edi]
mov ebx, dword [esi + 0xc]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x411837
mov ecx, dword [eax + 4]
push ecx
push edi
call fcn.00405d70
mov edi, dword [edi]
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
push ebx
push edi
push edx
call fcn.0041b6a0
mov edi, eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411873
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 1
jne 0x411891
mov ecx, esi
call fcn.004118b0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x414180
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44e1a9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x20], edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esp + 0x14], 1
mov edi, 0x400
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add edi, edi
sub eax, edi
or eax, ecx
jge 0x4141ff
mov ecx, edi
mov eax, esi
call fcn.00401680
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
push edi
push eax
mov eax, dword [esp + 0x3c]
push edx
push eax
push ecx
call ebp
mov ebx, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x414232
push ecx
push eax
call fcn.004240ad
add esp, 8
test eax, eax
jl 0x414265
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x414265
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
test ebx, ebx
jbe 0x41424f
lea edx, [edi - 1]
cmp ebx, edx
je 0x4141de
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00401960
int3
Function at 0x414f70
Capabilities:
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file via mapping

Disassembly:
sub esp, 0x20
push ebp
xor ebp, ebp
push esi
xor esi, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], ebp
cmp ebx, ebp
je 0x415156
push edi
push ebp
push ebp
push 3
push ebp
push 1
push closesocket
push eax
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, 0xffffffff
je 0x41510f
cmp edi, ebp
je 0x41511e
push 0xf0000000
push 1
push ebp
push ebp
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41510f
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push ebp
push ebp
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41510f
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x41510f
mov edx, dword [esp + 0x24]
push ebp
push esi
push edx
push 2
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x10], eax
cmp eax, ebp
je 0x41510f
cmp eax, 0xffffffff
je 0x41510f
push esi
push ebp
push ebp
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x1c], eax
cmp eax, ebp
je 0x41510f
mov edx, dword [esp + 0x14]
push ebp
push esi
mov ecx, eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41510f
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebp
lea eax, [esp + 0x10]
push eax
push ebp
push 2
push ecx
mov dword [esp + 0x20], 4
call esi
test eax, eax
je 0x41510f
mov edx, dword [esp + 0xc]
push edx
call fcn.00424725
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x41510d
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push ebp
push 2
push ecx
call esi
test eax, eax
je 0x415104
mov eax, dword [esp + 0xc]
cmp eax, 0x19
jae 0x415104
xor esi, esi
test eax, eax
jbe 0x4150fc
xor edi, edi
lea ebx, [ebx]
movzx edx, byte [esi + ebp]
push edx
mov eax, 0x32
push str._02x
sub eax, edi
push eax
lea ecx, [edi + ebx]
push ecx
call fcn.00425258
inc esi
add esp, 0x10
add edi, 2
cmp esi, dword [esp + 0xc]
jb 0x4150d0
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], 1
push ebp
call fcn.00424042
add esp, 4
xor ebp, ebp
cmp edi, ebp
je 0x41511a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, ebp
je 0x41512e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41513e
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x41514d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp esi, ebp
je 0x415156
cmp esi, 0xffffffff
jne 0x41515d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x416990
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44e8f9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
mov dword [esp + 0x18], esi
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], edi
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x18], edi
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [esp + 0x10]
cmp edx, edi
jne 0x416a19
xor eax, eax
jmp 0x416a2f
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x416a20
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
mov eax, esi
call fcn.004053c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x45e510
push esi
call fcn.00416e70
push 0x45e514
push esi
call fcn.00416e70
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042404d
add esp, 0x30
ret