joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba030
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f57fc
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00403b80
test eax, eax
jg 0x4ba0d2
push 0
push 0x20e
push str.RepairService_repair.cc
lea ecx, [ebp - 0xe0]
call fcn.00403b90
add eax, 8
mov dword [ebp - 4], 0
push str.Stopping_service
push eax
mov dword [ebp - 0x30], 1
lea esi, [ebx + 8]
call fcn.00402a60
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4ba0c8
mov esi, dword [esi]
push esi
push eax
call fcn.004041b0
add esp, 8
test byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
je 0x4ba0ea
lea ecx, [ebp - 0xe0]
call fcn.00403be0
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebx + 4]
call edi
test eax, eax
je 0x4ba116
push 0x1f4
call esi
cmp dword [ebp - 0x28], 1
jne 0x4ba0f6
mov al, 1
jmp 0x4ba118
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret

Function at 0x4ba140
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f584c
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x52de80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00403b80
test eax, eax
jg 0x4ba1c2
push ebx
push 0x1e6
push str.RepairService_repair.cc
lea ecx, [ebp - 0xc0]
call fcn.00403b90
mov dword [ebp - 4], ebx
lea edi, [esi + 8]
add eax, 8
mov ebx, 1
push str.Uninstalling_service
push eax
mov dword [ebp - 0x10], ebx
call fcn.00402a60
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x4ba1b8
mov edi, dword [edi]
push edi
push eax
call fcn.004041b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4ba1dc
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffe
call fcn.00403be0
mov ecx, esi
call fcn.004ba030
test al, al
jne 0x4ba1ee
mov ecx, esi
call fcn.004b8790
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp dword [esi + 4], 0
je 0x4ba229
call fcn.00410210
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4ba222
lea ecx, [ebp - 0x170]
call fcn.00403be0
mov dword [esi + 4], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba6a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f597b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], edx
push 0x2001f
push eax
push dword [ecx]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edx
call fcn.00425f7b
mov edi, dword [ebp - 0x230]
test eax, eax
je 0x4ba71e
xor bl, bl
jmp 0x4ba794
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004bf4f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
jmp 0x4ba740
lea eax, [ebp - 0x224]
mov dword [ebp - 0x21c], 0x208
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x4ba792
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push eax
lea eax, [ebp - 0x21c]
inc esi
push eax
call fcn.004ba6a0
add esp, 8
test al, al
jne 0x4ba740
xor bl, bl
jmp 0x4ba794
mov bl, 1
test edi, edi
je 0x4ba79f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4ba7c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f59bb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
push 0x60000
push 4
push edi
push dword [esi]
call ebx
test eax, eax
je 0x4ba85e
lea eax, [ebp - 0x230]
push eax
push 0x60000
push 0
push edi
push dword [esi]
call ebx
test eax, eax
je 0x4ba85e
xor al, al
jmp 0x4ba935
mov edi, dword [ebp - 0x230]
xor eax, eax
push 2
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x224]
push 8
push eax
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
push 0
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x20000004
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004bf4f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
nop
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x4ba926
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x230]
inc esi
push eax
call fcn.004ba7c0
add esp, 8
jmp 0x4ba8e0
mov bl, 1
test edi, edi
je 0x4ba933
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4d80f7
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004c8d55
mov dword [ebp - 0x14], eax
cmp dword [0x55a378], esi
jne 0x4d81ea
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4d8177
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d82ca
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4d82ca
push 0x506f6c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d82ca
push eax
call ebx
push 0x506f78
push edi
mov dword [0x55a378], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x55a37c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x55a380], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x55a388], eax
test eax, eax
je 0x4d81e7
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x55a384], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d820f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d8202
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4d8224
push 4
pop eax
jmp 0x4d82cc
cmp dword [ebp - 0x14], esi
je 0x4d8224
push dword [0x55a378]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d8209
mov eax, dword [0x55a384]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4d8282
cmp dword [0x55a388], edi
je 0x4d8282
push eax
call ebx
push dword [0x55a388]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d8282
test eax, eax
je 0x4d8282
call ecx
test eax, eax
je 0x4d8277
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4d8277
test byte [ebp - 8], 1
jne 0x4d8282
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4d82b2
mov eax, dword [0x55a37c]
cmp eax, edi
je 0x4d82af
push eax
call ebx
test eax, eax
je 0x4d82af
call eax
mov esi, eax
test esi, esi
je 0x4d82af
mov eax, dword [0x55a380]
cmp eax, edi
je 0x4d82af
push eax
call ebx
test eax, eax
je 0x4d82af
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x55a378]
call ebx
test eax, eax
je 0x4d82ca
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4d82cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x4e8644
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, 0x1505
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x8c]
add ebx, ecx
cmp esi, 0x102
jae 0x4e8754
test esi, esi
je 0x4e8754
xor edx, edx
mov dword [ebp - 4], edx
test esi, esi
je 0x4e8695
mov edi, edx
movzx ecx, byte [edi + ebx]
imul eax, eax, 0x21
add eax, ecx
inc edi
cmp edi, esi
jb 0x4e8681
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
and eax, 0xff
mov ebx, dword [edi + eax*4 + 0xb4]
mov dword [edi + eax*4 + 0xb4], ecx
mov dword [edi + 0x4c8], edx
test ebx, ebx
je 0x4e8754
sub ecx, ebx
cmp ecx, esi
jbe 0x4e8754
mov eax, dword [edi + 0x80]
sub eax, 0x106
cmp ecx, eax
jae 0x4e8754
cmp esi, dword [edi + 0x4cc]
ja 0x4e8754
test esi, esi
je 0x4e872a
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov eax, dword [edi + 0x8c]
add eax, ecx
sub edx, ecx
mov dword [ebp + 8], edx
mov edx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax]
cmp al, byte [esi + ecx]
mov esi, dword [ebp + 0x10]
jne 0x4e8754
lea eax, [ebx + edx]
push eax
push edi
call fcn.004e8560
pop ecx
pop ecx
cmp eax, 1
jne 0x4e8754
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
inc edx
inc eax
mov dword [ebp - 4], edx
mov dword [ebp + 0xc], eax
cmp edx, esi
jb 0x4e86f7
mov eax, dword [edi + 0x8c]
lea ecx, [ebx + esi]
cmp byte [ecx + eax - 1], 0x3b
je 0x4e874a
lea eax, [ebx + esi]
push eax
push edi
call fcn.004e8560
pop ecx
pop ecx
test eax, eax
jne 0x4e8754
mov dword [edi + 0x4c8], ebx
mov eax, esi
jmp 0x4e8756
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e93a1
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4e93ae
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004e940d
Function at 0x401c65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4050e0
cmp edx, dword [eax]
je 0x401c87
add eax, 8
inc ecx
cmp eax, 0x405170
jl 0x401c78
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4050e0]
jne 0x401db5
mov eax, dword [0x405498]
cmp eax, 1
je 0x401d8f
test eax, eax
jne 0x401cb8
cmp dword [0x405034], 1
je 0x401d8f
cmp edx, 0xfc
je 0x401db5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401cef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402210
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402380
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401d32
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402380
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x404380
push edi
call fcn.00403010
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402210
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402220
lea eax, [ebp - 0xa0]
push 0x404360
push eax
call fcn.00402220
push dword [esi + 0x4050e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402220
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00402f7e
add esp, 0x2c
pop edi
jmp 0x401db5
lea eax, [ebp + 8]
lea esi, [esi + 0x4050e4]
push 0
push eax
push dword [esi]
call fcn.00402380
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]
pop esi
leave
ret
Function at 0x408063
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43dbc8]
jne 0x40806d
repz ret
jmp fcn.0040a927

Function at 0x40a11b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43dbc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405bbd
and dword [ebp - 0x14], 0
cmp dword [0x4550fc], 0
mov dword [ebp - 0x18], eax
jne 0x40a1ce
push 0x402a8c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a276
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402a80
push ebx
call edi
test eax, eax
je 0x40a276
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402a70
push ebx
mov dword [0x4550fc], eax
call edi
push eax
call esi
push 0x402a5c
push ebx
mov dword [0x455100], eax
call edi
push eax
call esi
push 0x402a40
push ebx
mov dword [0x455104], eax
call edi
push eax
call esi
mov dword [0x45510c], eax
test eax, eax
je 0x40a1ce
push 0x402a28
push ebx
call edi
push eax
call esi
mov dword [0x455108], eax
mov eax, dword [0x455108]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a227
cmp dword [0x45510c], ecx
je 0x40a227
push eax
call esi
push dword [0x45510c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a227
test ebx, ebx
je 0x40a227
call edi
test eax, eax
je 0x40a21e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a21e
test byte [ebp - 8], 1
jne 0x40a227
or dword [ebp + 0x10], 0x200000
jmp 0x40a25a
mov eax, dword [0x455100]
cmp eax, dword [ebp - 0x18]
je 0x40a25a
push eax
call esi
test eax, eax
je 0x40a25a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a25a
mov eax, dword [0x455104]
cmp eax, dword [ebp - 0x18]
je 0x40a25a
push eax
call esi
test eax, eax
je 0x40a25a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4550fc]
call esi
test eax, eax
je 0x40a276
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a278
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408063
leave
ret
Function at 0x401119
Capabilities:
Check if file exists
Create process memory minidump
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test edi, edi
je 0x4011ab
xor ebx, ebx
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4011ab
cmp esi, 0xffffffff
je 0x4011ab
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push eax
push 0x50
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x4011b4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016f8
Capabilities:
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], edx
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
mov dword [ebp - 0x30], 0x10
stosd dword es:[edi], eax
mov esi, ecx
push 0xf0000000
push 1
push ebx
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
test eax, eax
jne 0x401769
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x401886
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
jne 0x401794
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
jmp 0x401759
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x400
push 1
call fcn.00404934
mov esi, eax
mov dword [ebp - 0x2c], esi
pop ecx
pop ecx
test esi, esi
jne 0x4017db
jmp 0x401788
cmp dword [ebp - 0x20], ebx
je 0x4017f4
push ebx
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4017f4
push 0x400
push ebx
push esi
call fcn.00405210
add esp, 0xc
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4017b5
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401836
mov edi, dword [ebp - 0x24]
mov esi, ebx
movzx eax, byte [ebp + esi - 0x14]
push eax
push str._02x
push 3
push edi
call fcn.00404918
add esp, 0x10
add edi, 2
inc esi
cmp esi, 0x10
jl 0x401811
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00404844
mov edi, dword [ebp - 0x24]
mov esi, edi
pop ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40185f
sub esi, ecx
test esi, esi
jle 0x401883
movsx ax, byte [edi + ebx]
movzx eax, ax
push eax
call fcn.00404ab3
mov byte [edi + ebx], al
inc ebx
pop ecx
cmp ebx, esi
jl 0x40186c
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403dd5
mov esp, ebp
pop ebp
ret
Function at 0x401955
Capabilities:
Read .ini file

Disassembly:
push 0x33c
mov eax, 0x413c6a
call fcn.004129bf
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x344], ax
lea eax, [ebp - 0x342]
push ebx
push eax
call fcn.00405210
add esp, 0xc
lea eax, [ebp - 0x344]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x344]
push 0x5c
push eax
call fcn.00403de4
pop ecx
pop ecx
test eax, eax
je 0x401b2e
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [0x41d1e0]
mov dword [ebp - 0x348], eax
lea eax, [ebp - 0x344]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x348]
push str._sp2pdll.dll
push eax
call fcn.00402823
lea edi, [ebp - 0x344]
add esp, 0xc
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4019e7
push 5
pop ecx
mov esi, str.config.ini
lea eax, [ebp - 0x344]
rep movsd dword es:[edi], dword [esi]
push eax
push ebx
push 0x41968c
movsw word es:[edi], word [esi]
mov esi, 0x419698
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
test edi, edi
je 0x401b1d
push 0x63
lea eax, [ebp - 0x73]
mov byte [ebp - 0x74], bl
push ebx
push eax
call fcn.00405210
pop ecx
pop ecx
mov ecx, dword [ebp - 0x348]
lea edx, [ebp - 0x74]
call fcn.004016f8
pop ecx
test eax, eax
je 0x401b1d
xor eax, eax
push 0xc6
mov word [ebp - 0x13c], ax
lea eax, [ebp - 0x13a]
push ebx
push eax
call fcn.00405210
add esp, 0xc
lea eax, [ebp - 0x344]
push eax
push 0x64
lea eax, [ebp - 0x13c]
push eax
push 0x419a98
push 0x4196bc
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x13c], 0
je 0x401b1d
lea ecx, [ebp - 0x74]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a9d
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x401ab5
mov eax, ebx
jmp 0x401aca
lea eax, [esi + esi]
call fcn.0040ffd0
mov ecx, esp
lea edx, [ebp - 0x74]
push 3
push esi
call fcn.004024b1
lea ecx, [ebp - 0x13c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401af6
test dx, dx
je 0x401af2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401af6
add ecx, 4
add eax, 4
test dx, dx
jne 0x401ad0
mov eax, ebx
jmp 0x401afb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401b1d
lea eax, [ebp - 0x344]
mov edi, ebx
push eax
push 0x419688
push 0x41968c
push 0x419698
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
call fcn.004011e6
mov eax, edi
lea esp, [ebp - 0x358]
call fcn.004129b0
ret
Function at 0x401f63
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8254
call fcn.0040ffa0
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x8250], eax
push ebx
push esi
push edi
push 0x401ef0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401b3a
mov esi, 0x8090
lea eax, [esp + 0x1ac]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00405210
push esi
lea eax, [esp + 0x1bc]
mov dword [esp + 0x1b8], ebx
push ebx
push eax
mov dword [esp + 0x8264], ebx
mov dword [esp + 0x1bc], ebx
call fcn.00405210
xor eax, eax
lea edi, [esp + 0x8254]
stosd dword es:[edi], eax
mov esi, vtable.CP2PPipeServer.0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x1b8], esi
mov dword [esp + 0x8268], ebx
call fcn.00403988
add esp, 0x10
lea ecx, [esp + 0x1a8]
call fcn.00403740
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x41e33c]
mov dword [esp + 0x1a0], esi
test eax, eax
je 0x40208f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x41e33c], ebx
mov dword [0x41e334], ebx
mov dword [0x41e330], ebx
mov dword [0x41e328], ebx
mov dword [0x41e32c], ebx
mov dword [0x41e320], ebx
mov dword [0x41e318], ebx
mov dword [0x41e310], ebx
mov dword [0x41e30c], ebx
mov dword [0x41e308], ebx
mov dword [0x41e304], ebx
mov dword [0x41e2fc], ebx
mov dword [0x41e300], ebx
mov dword [0x41e338], ebx
mov dword [0x41e324], ebx
mov dword [0x41e31c], ebx
mov ecx, dword [esp + 0x825c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403dd5
mov esp, ebp
pop ebp
ret 0x10