joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d10
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404e9b
push 0x14
push 0x6041c4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404e4b
push 0x640480
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404d7e
cmp dword [0x640484], 1
je 0x404da1
mov edx, dword [0x640484]
push edx
push 0x6041d8
push str.Err:_Service__s_status_d__not_stopped__can_not_start_it.
push 0x604268
call fcn.0040c230
add esp, 0x10
jmp 0x404e3f
mov dword [ebp - 0x18], 0x604280
mov dword [ebp - 0x14], 0x604294
mov dword [ebp - 0x10], 0x6042ac
mov dword [ebp - 0x1c], 2
cmp dword [ebp + 8], 0
je 0x404dca
mov dword [ebp - 0x1c], 3
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6042cc
push str.Err:_StartService__s_fail__code_d_
push 0x60432c
call fcn.0040c230
add esp, 0x10
jmp 0x404e3f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x640480
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [0x640484]
push ecx
push 0x604344
push str.Service__s_status_d_...
push 0x60438c
call fcn.0040c230
add esp, 0x10
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x404e71
push 0x6043a4
push str.Err:_Service__s_not_exist_
push 0x6043f4
call fcn.0040c230
add esp, 0xc
jmp 0x404e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x60440c
push str.Err:_OpenService__s_failed__code_d_
push 0x604470
call fcn.0040c230
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404eb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_OpenSCManager_failed__code_d_
push str.service_start_external
call fcn.0040c230
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4059b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588216
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea ecx, [ebp - 0x252]
push ecx
call fcn.00568440
add esp, 0xc
push 0x103
lea edx, [ebp - 0x254]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x38], 0
je 0x405a47
cmp dword [ebp - 0x34], 0x7a
je 0x405a47
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.config.exe
lea ecx, [ebp - 0x254]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x405a4e
xor eax, eax
jmp 0x405bd3
call fcn.00402270
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x254]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
jne 0x405a71
mov dword [ebp - 0x298], 0
jmp 0x405ad2
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3fffffff
jle 0x405a96
mov dword [ebp - 0x29c], 0
jmp 0x405ac6
mov eax, dword [ebp - 0x30]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x2a0], esp
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x30]
shl edx, 1
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.004022d0
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x298], edx
mov eax, dword [ebp - 0x298]
push eax
lea ecx, [ebp - 0x270]
call fcn.00406050
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2a8]
push edx
push 0x605f14
lea eax, [ebp - 0x28c]
push eax
call fcn.00407c30
add esp, 0xc
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov byte [ebp - 4], 1
push 0x605f10
mov edx, dword [ebp - 0x2b0]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00407cc0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28c]
call fcn.004060d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.004060d0
push 5
lea ecx, [ebp - 0x2c]
call fcn.00406190
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x405bb6
push 0
push 0x605f18
push 0x605f1c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x290], 0
lea ecx, [ebp - 0x2c]
call fcn.004060d0
mov eax, dword [ebp - 0x290]
jmp 0x405bd3
xor ecx, ecx
cmp dword [ebp - 0x3c], 0x1f
setg cl
mov dword [ebp - 0x294], ecx
lea ecx, [ebp - 0x2c]
call fcn.004060d0
mov eax, dword [ebp - 0x294]
lea esp, [ebp - 0x2b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x40bd20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x29], 0x10
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
mov byte [ebp - 5], cl
push 0xa
push 0x10
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00562144
add esp, 0x10
push 0xa
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00562144
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [ebp - 0x28], eax
push str._r_nErr:_OutPutDebugViewV__Reason__FuncName__Format__TotalLen__ErrCode
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x28], 0
je 0x40bdab
mov dword [ebp - 0x30], 0x601c50
jmp 0x40bdb2
mov dword [ebp - 0x30], 0x601c58
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 8], 0
je 0x40bdca
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
jmp 0x40bdd1
mov dword [ebp - 0x34], str.Reason___
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x28], 0
je 0x40bdea
mov dword [ebp - 0x38], 0x601c74
jmp 0x40bdf1
mov dword [ebp - 0x38], 0x601c7c
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x10], 0
je 0x40be09
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ecx
jmp 0x40be10
mov dword [ebp - 0x3c], str.FuncName___
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x28], 0
je 0x40be29
mov dword [ebp - 0x40], 0x601c90
jmp 0x40be30
mov dword [ebp - 0x40], 0x601c98
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x14], 0
je 0x40be48
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x44], ecx
jmp 0x40be4f
mov dword [ebp - 0x44], str.Format___
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x28], 0
je 0x40be68
mov dword [ebp - 0x48], 0x601cb4
jmp 0x40be6f
mov dword [ebp - 0x48], 0x601cbc
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x28], 0
je 0x40be92
mov dword [ebp - 0x4c], 0x601cc0
jmp 0x40be99
mov dword [ebp - 0x4c], 0x601cc8
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x28], 0
je 0x40bebc
mov dword [ebp - 0x50], 0x601ccc
jmp 0x40bec3
mov dword [ebp - 0x50], 0x601cd4
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x40c520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x41c], 0
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.00568440
add esp, 0xc
xor edx, edx
mov word [ebp - 0x42c], dx
xor eax, eax
mov dword [ebp - 0x42a], eax
mov dword [ebp - 0x426], eax
mov dword [ebp - 0x422], eax
mov word [ebp - 0x41e], ax
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x426]
push edx
movzx eax, word [ebp - 0x42a]
push eax
movzx ecx, word [ebp - 0x42c]
push ecx
push str.HBC_Common___d__02d__02d.ini
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.00562049
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40c5ce
xor eax, eax
jmp 0x40c6a7
xor eax, eax
mov word [ebp - 0x210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00568440
add esp, 0xc
push 0x207
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x6020c0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c640
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40c699
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6020d0
push str.InitializeCommonLogger
call fcn.0040c230
add esp, 0xc
xor eax, eax
jmp 0x40c6a7
mov ecx, dword [ebp - 8]
mov dword [0x6404c4], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x40c6c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x41c], 0
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.00568440
add esp, 0xc
xor edx, edx
mov word [ebp - 0x42c], dx
xor eax, eax
mov dword [ebp - 0x42a], eax
mov dword [ebp - 0x426], eax
mov dword [ebp - 0x422], eax
mov word [ebp - 0x41e], ax
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x426]
push edx
movzx eax, word [ebp - 0x42a]
push eax
movzx ecx, word [ebp - 0x42c]
push ecx
push str.HBC_Error___d__02d__02d.ini
push 0x104
lea edx, [ebp - 0x418]
push edx
call fcn.00562049
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40c76e
xor eax, eax
jmp 0x40c847
xor eax, eax
mov word [ebp - 0x210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00568440
add esp, 0xc
push 0x207
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Logs
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c7e0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40c839
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WAR:_Create_debug_file_faild__err_d_
push str.InitializeErrorLogger
call fcn.0040c230
add esp, 0xc
xor eax, eax
jmp 0x40c847
mov ecx, dword [ebp - 8]
mov dword [0x640658], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x40ca40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b868
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
push 0x59b007
lea ecx, [ebp - 0x2c]
call fcn.00406050
mov dword [ebp - 4], 0
push str.GetIpAddrFromHostName___in_..._n
push 0x6009c8
call fcn.0040c230
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x40cace
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40cace
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406110
push str.GetIpAddrFromHostName___out_..._n
push str.CInternetUtils::GetIpAddrFromHostName
call fcn.0040c230
add esp, 8
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406090
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004060d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret

Function at 0x40d920
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x218], 0
push 0x7f
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.00568440
add esp, 0xc
lea ecx, [ebp - 0x198]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40d975
xor eax, eax
jmp 0x40da47
push 0x80
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40da45
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x40da45
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0xc]
cmp dword [edx], 0
je 0x40da45
mov eax, dword [ebp - 0x220]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jge 0x40d9d5
xor eax, eax
jmp 0x40da47
mov byte [ebp - 0x218], 0
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx + 3]
push edx
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 1]
push ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
movzx edx, byte [ecx]
push edx
push str._u._u._u._u
lea eax, [ebp - 0x218]
push eax
call fcn.00561878
add esp, 0x18
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406110
mov eax, 1
jmp 0x40da47
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x40da60
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x40dac9
mov eax, dword [ebp - 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40dab9
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x40dab9
mov eax, dword [ebp - 4]
jmp 0x40dacb
cmp dword [ebp - 4], 0
je 0x40dac9
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x411350
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret

Function at 0x412570
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x4125b1
cmp dword [ebp + 0xc], 0
je 0x4125b1
cmp dword [ebp + 0x10], 0x10
jae 0x4125b6
jmp 0x4126ca
push 0
push 0x80
push 3
push 0
push 3
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4125e0
jmp 0x4126ca
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jbe 0x412603
jmp 0x4126ca
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412625
jmp 0x4126ca
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x412645
jmp 0x4126ca
mov byte [ebp - 0x2c], 0
xor edx, edx
mov dword [ebp - 0x2b], edx
mov dword [ebp - 0x27], edx
mov dword [ebp - 0x23], edx
mov word [ebp - 0x1f], dx
mov byte [ebp - 0x1d], dl
push 0x58
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.00568440
add esp, 0xc
lea ecx, [ebp - 0x88]
push ecx
call fcn.00411350
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.00411390
add esp, 0xc
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00411490
add esp, 8
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
push 0x10
mov edx, dword [ebp + 0xc]
push edx
call fcn.005617aa
add esp, 0x10
mov dword [ebp - 8], 1
xor eax, eax
jne 0x41259f
cmp dword [ebp - 0xc], 0
je 0x4126da
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], 0
je 0x4126ea
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0xffffffff
je 0x4126fa
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x413510
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], 0
mov eax, 1
pop ebp
ret

Function at 0x413700
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x413734
cmp dword [ebp + 0xc], 0
je 0x413734
cmp dword [ebp + 0x10], 0x14
jae 0x413739
jmp 0x4137e8
push 0
push 0x80
push 3
push 0
push 3
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x413763
jmp 0x4137e8
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jbe 0x413783
jmp 0x4137e8
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4137a2
jmp 0x4137e8
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4137bf
jmp 0x4137e8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00413570
add esp, 0xc
test eax, eax
je 0x4137d9
jmp 0x4137e8
mov dword [ebp - 8], 1
xor edx, edx
jne 0x413722
cmp dword [ebp - 0xc], 0
je 0x4137f8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], 0
je 0x413808
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0xffffffff
je 0x413818
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret