joyce8/EMBER2024-capa huggingface dataset:
Function at 0x558470
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6554fb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x34], ecx
mov word [eax + 0x30], dx
mov dword [esp + 0x10], ecx
mov dword [eax], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x24], ecx
or ecx, 0xffffffff
mov dword [eax + 0x28], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x558590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x655558
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x68], ebx
je 0x558613
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 8]
call fcn.00402500
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x60]
push ecx
push str.sk_d
lea edx, [ebp + 8]
push edx
call fcn.00402f70
add esp, 0xc
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00402570
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x558650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x655588
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x68], ebx
je 0x5586fe
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x60]
push eax
push str.sk_d
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0xc
mov dword [ebp - 0x1c], 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x5586f3
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 4], 0xffffffff
xor eax, eax
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 0x559120
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx + 0x194]
test eax, eax
je 0x559142
cmp byte [eax + 0x137], 0
je 0x559142
mov ecx, dword [ecx + 0x346c]
test ecx, ecx
je 0x559142
jmp 0x571960
jmp sub.WS2_32.dll_recv
push esi
mov esi, ecx
cmp dword [esi + 0x3458], 0
je 0x571975
cmp dword [esi + 0x345c], 0
jne 0x5719e3
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test eax, eax
je 0x5719a2
cmp dword [esi + 0x345c], 0
jne 0x5719ab
cmp eax, 0x2733
jne 0x57199b
push 0x2733
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0x10
cmp byte [esi + 0x3e8], 0
jne 0x5719e3
cmp dword [esi + 0x345c], 0
jne 0x5719bd
cmp byte [esi + 0xd3], 0
jne 0x571975
test eax, eax
je 0x5719e3
cmp eax, 0x2733
jne 0x57199b
mov eax, dword [esi + 0x345c]
test eax, eax
jne 0x571a43
push 0x2733
call sub.WS2_32.dll_WSASetLastError
or eax, 0xffffffff
pop esi
ret 0x10
mov eax, dword [esi + 0x345c]
test eax, eax
jne 0x5719fe
cmp byte [esi + 0x3e8], al
je 0x571991
mov eax, 0xfffffffc
pop esi
ret 0x10
push edi
mov edi, dword [esp + 0x14]
cmp eax, edi
jae 0x571a09
mov edi, eax
mov eax, dword [esi + 0x3458]
mov ecx, dword [esp + 0x10]
push edi
push eax
push ecx
call fcn.00617370
add esp, 0xc
sub dword [esi + 0x345c], edi
mov eax, dword [esi + 0x345c]
je 0x571a40
mov esi, dword [esi + 0x3458]
push eax
lea edx, [esi + edi]
push edx
push esi
call fcn.00618990
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x55a310
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x654bb8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
push 0
mov ecx, 8
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x38]
mov eax, dword [esp + 0x24]
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks4_reply
push edi
mov ecx, esi
call fcn.00559750
test eax, eax
jne 0x55a48c
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 8
jge 0x55a389
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
cmp byte [esi + 0x39], 0x5a
jne 0x55a3fa
mov al, byte [esi + 0x38]
test al, al
je 0x55a39a
cmp al, 4
jne 0x55a3fa
push str.socks4:_reply_OK_n
mov ecx, esi
call fcn.00558e10
cmp dword [esp + 0x20], 0
je 0x55a3e4
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
test eax, eax
jne 0x55a3d9
mov edx, dword [esi + 0x194]
mov eax, dword [edx + 0x140]
push 1
push ecx
push eax
mov ecx, esi
call fcn.00559840
test eax, eax
jne 0x55a48c
mov ax, word [esi + 0x3a]
mov ecx, dword [esp + 0x28]
mov word [ecx], ax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
lea ecx, [esp + 0x1c]
call fcn.00402500
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x55a419
mov eax, dword [eax]
jmp 0x55a421
mov edx, dword [esi + 0xc0]
mov eax, dword [edx]
push eax
mov eax, dword [0x754598]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x28]
add esp, 0xc
push 1
push edx
mov ecx, esi
call fcn.00559660
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0xac]
push eax
call fcn.00561de0
movsx ecx, byte [esi + 0x39]
push ecx
lea edx, [esp + 0x20]
push str.Error_code___d_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
mov ecx, esi
call fcn.00558e10
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 0x755d
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
Function at 0x55a4a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x654bb8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
push 0
mov ecx, 2
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x38]
mov eax, dword [esp + 0x24]
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_init_reply
push edi
mov ecx, esi
call fcn.00559750
test eax, eax
jne 0x55a5cf
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 2
jge 0x55a519
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov al, byte [esi + 0x39]
test al, al
je 0x55a524
cmp al, 2
jne 0x55a52e
cmp byte [esi + 0x38], 5
je 0x55a5b4
push 0x75459c
lea ecx, [esp + 0x20]
call fcn.004027f0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.00559660
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xac]
push edx
call fcn.00561de0
movsx eax, byte [esi + 0x39]
movsx ecx, byte [esi + 0x38]
push eax
push ecx
lea edx, [esp + 0x24]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
mov ecx, esi
call fcn.00558e10
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 0x7580
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
push str.socks5:_init_reply_OK_n
mov ecx, esi
call fcn.00558e10
cmp byte [esi + 0x39], 2
mov edx, dword [esp + 0x20]
sete cl
mov byte [edx], cl
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x55ad90
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x6557d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.00402500
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x194]
mov ecx, dword [eax + 0x14c]
mov edx, dword [eax + 0x148]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.___s__s
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x24]
mov eax, ecx
add esp, 0x10
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x55adf7
sub eax, edi
mov byte [ecx], 1
mov edi, ecx
mov ecx, dword [esi + 0x194]
mov ebx, eax
mov eax, dword [ecx + 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x55ae16
sub eax, edx
mov ecx, eax
mov byte [edi + 1], cl
mov edx, dword [esi + 0x194]
mov eax, dword [edx + 0x14c]
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x55ae33
push str.sending_socks5_auth
movzx ecx, cl
sub eax, ebp
push 0
mov byte [ecx + edi + 2], al
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push ebx
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00559750
push str.socks5:_sending_auth_n
mov ecx, esi
mov edi, eax
call fcn.00558e10
mov dword [esi + 0x40], 0
cmp edi, 0x2733
jne 0x55ae83
xor edi, edi
jmp 0x55ae87
test edi, edi
jne 0x55ae91
mov dword [esi + 0x9c], 0x1f
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x55aec0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x654bb8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
push 0
mov ecx, 2
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x38]
mov eax, dword [esp + 0x24]
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_init_reply
push edi
mov ecx, esi
call fcn.00559750
test eax, eax
jne 0x55afde
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 2
jge 0x55af39
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
cmp byte [esi + 0x39], 0
jne 0x55af6c
mov al, byte [esi + 0x38]
cmp al, 5
je 0x55af4a
cmp al, 1
jne 0x55af6c
push str.socks5:_auth_reply_OK_n
mov ecx, esi
call fcn.00558e10
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
push 0x7545a0
lea ecx, [esp + 0x20]
call fcn.004027f0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.00559660
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xac]
push edx
call fcn.00561de0
movsx eax, byte [esi + 0x39]
movsx ecx, byte [esi + 0x38]
push eax
push ecx
lea edx, [esp + 0x24]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
mov ecx, esi
call fcn.00558e10
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 0x757f
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x55b000
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x655800
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp + 0x80], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov edi, dword [ebp + 0x8c]
mov dword [ebp - 0x21c], edi
mov ecx, 1
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x424], ebx
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x55b096
mov edx, dword [eax]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x220], 2
mov edx, dword [eax]
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x90]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x1c]
push edx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x424]
and eax, ecx
push eax
push ebx
lea edx, [ebp - 0x220]
push edx
lea eax, [edi + 1]
push eax
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x55b106
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
push edi
push ebx
push str.Select_failed__err_code___d__socket___d_n
lea ecx, [ebp]
push ecx
call fcn.006186ab
add esp, 0x10
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.00558e10
mov eax, dword [0x7539f0]
push eax
mov ecx, dword [esi + 0xac]
call fcn.00561de0
mov eax, ebx
jmp 0x55b1ac
cmp eax, ebx
jne 0x55b13b
cmp dword [ebp + 0x90], ebx
je 0x55b134
mov ecx, dword [0x7539f8]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.00561de0
push 1
mov edx, dword [0x7539f8]
push edx
mov ecx, esi
call fcn.00559660
mov eax, 0x7532
jmp 0x55b1ac
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x55b178
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [eax]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x55b171
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [esi + 0x108]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55b178
mov eax, 0x7540
jmp 0x55b1ac
xor eax, eax
jmp 0x55b1ac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.006157d3
add ebp, 0x84
mov esp, ebp
pop ebp
ret 8
Function at 0x55e3a0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0x670490
xor edi, edi
call fcn.00447330
mov ebp, dword [esp + 0x1c]
mov esi, eax
add esp, 4
test esi, esi
je 0x55e3fa
push ebx
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x55e3ee
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push ebp
push edi
push edi
push 0x1a
push edi
call ebx
test eax, eax
jne 0x55e3e8
lea edi, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
test edi, edi
jne 0x55e449
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x55e449
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
push eax
push str.AppData
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x55e43e
lea edi, [eax + 1]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x55e520
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x65b598
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [0x753840], 0
je 0x55e57d
cmp dword [0x753844], 0
je 0x55e57d
cmp dword [0x753848], 0
je 0x55e57d
cmp dword [0x75384c], 0
je 0x55e57d
mov eax, 1
jmp 0x55e6ac
mov eax, dword [0x75383c]
test eax, eax
jne 0x55e5ec
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov word [esp + 0xc], ax
mov dword [esp + 0x20], eax
mov eax, dword [0x752c3c]
test eax, eax
jne 0x55e5a5
mov eax, 0x752c40
push 0
push eax
push str._sidmindex.dll
lea ecx, [esp + 0x14]
call fcn.004021b0
mov eax, dword [esp + 8]
test eax, eax
jne 0x55e5c2
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x75383c], eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.00401210
mov eax, dword [0x75383c]
test eax, eax
je 0x55e682
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call esi
mov ecx, dword [0x75383c]
push str.sqlite3_close
push ecx
mov dword [0x753840], eax
call esi
mov edx, dword [0x75383c]
push str.sqlite3_exec
push edx
mov dword [0x753844], eax
call esi
mov dword [0x753848], eax
mov eax, dword [0x75383c]
push str.sqlite3_free
push eax
call esi
mov ecx, dword [0x75383c]
push str.sqlite3_blob_open
push ecx
mov dword [0x75384c], eax
call esi
mov edx, dword [0x75383c]
push str.sqlite3_blob_close
push edx
mov dword [0x753850], eax
call esi
mov dword [0x753854], eax
mov eax, dword [0x75383c]
push str.sqlite3_blob_bytes
push eax
call esi
mov ecx, dword [0x75383c]
push str.sqlite3_blob_read
push ecx
mov dword [0x753858], eax
call esi
mov dword [0x75385c], eax
cmp dword [0x753840], 0
je 0x55e6aa
cmp dword [0x753844], 0
je 0x55e6aa
cmp dword [0x753848], 0
je 0x55e6aa
cmp dword [0x75384c], 0
jne 0x55e573
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.006157d3
add esp, 0x1c
ret
Function at 0x560120
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movzx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x560133
jmp dword [ecx*4 + 0x5601bc]
mov al, 0x41
ret 4
mov al, 0x42
ret 4
mov al, 0x43
ret 4
mov al, 0x44
ret 4
mov al, 0x45
ret 4
mov al, 0x46
ret 4
mov al, 0x47
ret 4
mov al, 0x48
ret 4
mov al, 0x49
ret 4
mov al, 0x4a
ret 4
mov al, 0x4b
ret 4
mov al, 0x4c
ret 4
mov al, 0x4d
ret 4
mov al, 0x4e
ret 4
mov al, 0x4f
ret 4
mov al, 0x50
ret 4
mov al, 0x51
ret 4
mov al, 0x52
ret 4
mov al, 0x53
ret 4
mov al, 0x54
ret 4
mov al, 0x55
ret 4
mov al, 0x56
ret 4
mov al, 0x57
ret 4
mov al, 0x58
ret 4
mov al, 0x59
ret 4
mov al, 0x5a
ret 4

Function at 0x560890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x65c1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.006171be
add esp, 0x20
cmp eax, 6
jne 0x560960
lea ecx, [esp + 0x30]
call fcn.00402500
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x48]
push str._04d_02d_02d__02d:_02d:_02d_GMT
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x50]
add esp, 0x20
push edx
mov ecx, esi
call fcn.00560470
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4

Function at 0x560980
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x561720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x655cc0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 4]
cmp word [eax], bx
je 0x5617d6
cmp byte [edi + 0x418], bl
je 0x5617d6
xor esi, esi
cmp dword [edi + 0x41c], 0xffffffff
jne 0x561798
push ebx
push ebx
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5617d6
mov dword [ebp - 0x14], ebx
push 2
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5617a0
sub eax, edx
test esi, esi
mov ecx, esi
jne 0x5617b5
mov ecx, dword [edi + 0x41c]
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x5617cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x561823
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
jne 0x56184e
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
cmp eax, 0xffffffff
je 0x561937
push ebx
push ebp
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x561885
test ebx, ebx
jne 0x561885
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5618a8
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.0061a480
add eax, edi
adc edx, ebx
mov dword [esp + 0x14], edx
js 0x5618ad
jg 0x5618a8
cmp eax, 0x4c4b40
jbe 0x5618ad
mov ebp, 1
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x56191e
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
cmp eax, 0xffffffff
je 0x561934
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.00561720
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x41c]
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret