joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401304
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401300
lea ebx, [ebx]
cmp esi, eax
jae 0x401304
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012f0
cmp esi, eax
jb 0x40130a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402e2f
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x402e0d
cmp eax, 2
jne 0x402e1f
test esi, esi
mov eax, dword [esp]
je 0x402e2b
test eax, eax
je 0x402e28
cmp byte [eax + esi - 1], 0
je 0x402e2b
mov eax, 0xd
pop ecx
ret 8
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x4034c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44b0b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x10c]
add eax, 0xffffffff
cmp eax, 3
ja case.default.0x4034f6
jmp dword [eax*4 + 0x403654]
xor ebx, ebx
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x40351b
mov byte [eax], cl
add eax, 1
sub edi, 1
jne 0x403508
jmp 0x40351f
test edi, edi
jne 0x403527
sub eax, 1
mov ebx, 0x8007007a
test ebx, ebx
mov byte [eax], 0
jge 0x40363a
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 4
xor ebx, ebx
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x403567
mov byte [eax], cl
add eax, 1
sub edi, 1
jne 0x403554
jmp 0x40356b
test edi, edi
jne 0x403573
sub eax, 1
mov ebx, 0x8007007a
test ebx, ebx
mov byte [eax], 0
jl case.default.0x4034f6
add ebp, 0x110
push ebp
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call fcn.004020b0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push str.CUpdateProcess::BuildPath
mov dword [esp + 0x58], 0
call fcn.004020b0
mov dword [esp + 0x54], 0xffffffff
call fcn.004041e0
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 4
lea edx, [ebp + 0x110]
xor ebx, ebx
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x403623
mov byte [eax], cl
add eax, 1
sub edi, 1
jne 0x403610
jmp 0x403627
test edi, edi
jne 0x40362f
sub eax, 1
mov ebx, 0x8007007a
test ebx, ebx
mov byte [eax], 0
jl case.default.0x4034f6
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x403670
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44b088
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
movzx eax, word [esp + 0x54]
push str.UPDATE_FILE
push eax
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x403811
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x403811
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403811
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40380a
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40380a
cmp dword [esp + 0x18], edi
jne 0x40380a
lea esi, [esp + 0x14]
call fcn.00410a80
mov dword [esp + 0x4c], 0
mov edx, dword [esp + 0x18]
push edx
push ebx
push 0x452734
mov edi, esi
call fcn.00412b00
add esp, 0xc
mov ecx, esi
call fcn.00410bd0
push eax
lea ecx, [esp + 0x28]
call fcn.004020b0
mov ebx, 1
mov byte [esp + 0x4c], bl
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x403788
xor eax, eax
jmp 0x40379d
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403790
sub eax, esi
js 0x403800
cmp eax, dword [ecx - 8]
jg 0x403800
mov dword [ecx - 0xc], eax
sub esp, 0x1c
mov byte [eax + ecx], 0
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.004020f0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x452740
mov byte [esp + 0x88], 2
call fcn.004020b0
mov byte [esp + 0x84], bl
call fcn.004041e0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
call fcn.00402120
lea ecx, [esp + 0x14]
call fcn.00410b40
mov eax, ebx
jmp 0x403813
push 0x80070057
call fcn.00401170
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004322f2
add esp, 0x3c
ret 4
Function at 0x404f50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00436440
mov edx, dword [esp + 0x11c]
lea eax, [esp + 0x10]
mov ecx, eax
add esp, 0xc
mov esi, 0x104
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x404fa5
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x404f92
jmp 0x404fa9
test esi, esi
jne 0x404fac
sub eax, 1
cmp dword [edi + 0x18], 0x10
mov byte [eax], 0
pop esi
jb 0x404fbb
mov eax, dword [edi + 4]
jmp 0x404fbe
lea eax, [edi + 4]
push eax
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
push 0
push 0
lea eax, [esp + 0xc]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jl 0x405005
je 0x405005
mov eax, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004322f2
add esp, 0x108
ret 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004322f2
add esp, 0x108
ret 4
Function at 0x405020
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x44a63b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call fcn.00410aa0
push 0
push 2
mov dword [esp + 0x158], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or ebp, 0xffffffff
test edi, edi
je 0x405125
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40511e
lea edx, [esp + 0x1c]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40511e
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x44]
call fcn.00410aa0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0043449d
add esp, 8
test eax, eax
jne 0x4050f0
mov eax, dword [esp + 0x24]
push eax
push 0
push 0x100000
call ebx
mov esi, eax
test esi, esi
jne 0x405173
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40510f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4050b4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x150], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x405149
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004322f2
add esp, 0x140
ret
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405192
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x150], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4051b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40514b
Function at 0x4075f0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x44ae8b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407644
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.004024f0
mov dword [esp + 0xd0], ebx
push 0xc
push str.XJ3o7zR5iQ
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.004024f0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0xdc], 1
call fcn.004139d0
mov esi, 0x10
mov byte [esp + 0xd0], 3
cmp dword [esp + 0x28], esi
jb 0x4076b9
mov eax, dword [esp + 0x14]
push eax
call fcn.00416c01
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.00413b60
push 0x3b
push str.SELECT_COUNT___FROM_sqlite_master_WHERE_name__LogDbName
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.004024f0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0xd8], 4
call fcn.00413cd0
lea ecx, [esp + 0x64]
call fcn.00413e40
cmp eax, ebx
jne 0x407758
cmp dword [esp + 0x44], esi
jb 0x407721
mov eax, dword [esp + 0x30]
push eax
call fcn.00416c01
add esp, 4
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0xd4], bl
call fcn.00413a70
cmp dword [esp + 0x60], esi
jb 0x407751
mov edx, dword [esp + 0x4c]
push edx
call fcn.00416c01
add esp, 4
mov eax, 1
jmp 0x40779d
cmp dword [esp + 0x44], esi
jb 0x40776b
mov eax, dword [esp + 0x30]
push eax
call fcn.00416c01
add esp, 4
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0xd4], bl
call fcn.00413a70
cmp dword [esp + 0x60], esi
jb 0x40779b
mov edx, dword [esp + 0x4c]
push edx
call fcn.00416c01
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004322f2
add esp, 0xc4
ret
Function at 0x40cc10
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44a538
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push 0xffffffffffffffff
mov esi, ecx
push 0
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.00402280
push 4
push str..bak
lea eax, [esp + 0x14]
mov dword [esp + 0x3c], 0
call fcn.00411890
mov eax, dword [esp + 0x10]
mov edi, 0x10
cmp dword [esp + 0x24], edi
jae 0x40cc90
lea eax, [esp + 0x10]
cmp dword [esi + 0x18], edi
jb 0x40cc9a
mov esi, dword [esi + 4]
jmp 0x40cc9d
add esi, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
jae 0x40ccb3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x24], edi
jb 0x40cccd
mov eax, dword [esp + 0x10]
push eax
call fcn.00416c01
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004322f2
add esp, 0x2c
ret

Function at 0x40ccf0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x44abb8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
mov ebp, dword [esp + 0x8c]
xor ebx, ebx
mov esi, ecx
mov ecx, 0xf
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x88], ebx
call fcn.00402280
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x38]
call fcn.00402280
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x54]
call fcn.00402280
push 1
push 0x45290c
lea eax, [esp + 0x50]
call fcn.00411890
push ebx
push esi
or eax, 0xffffffff
lea esi, [esp + 0x50]
call fcn.004117a0
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x10]
push ecx
mov esi, ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 1
call fcn.00410d70
lea esi, [esp + 0x10]
call fcn.0040cdf0
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004322f2
add esp, 0x70
ret 0xc
Function at 0x40d3a0
Capabilities:
Check if file exists
Get common file path
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x44b3dc
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov ebp, 1
mov byte [esp + 0x28], bl
call fcn.00436440
add esp, 0xc
push 0x104
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.driverszdGuard1.sys
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40d49d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x10
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x453318
xor esi, esi
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov dword [esp + 0x270], ebx
mov ecx, esp
mov dword [ecx + 0x18], edi
lea eax, [esp + 0x54]
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x4c], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x40d470
sub eax, edi
push eax
lea edx, [esp + 0x58]
push edx
call fcn.004024f0
mov dword [esp + 0x270], 0xffffffff
call fcn.004041e0
mov eax, esi
jmp 0x40d5bd
push str.zdGuard1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40d5bb
push str.chainWork
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x40d4de
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push str.m_pfnChainWork__NULL
call fcn.004020b0
mov dword [esp + 0x254], ebp
jmp 0x40d542
push 0x4526a4
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ecx
call eax
mov esi, eax
cmp esi, ebx
jge 0x40d569
push 0x103
lea edx, [esp + 0x129]
push ebx
push edx
mov byte [esp + 0x130], bl
call fcn.00436440
add esp, 0xc
push esi
push 0x453380
mov eax, 0x104
lea edi, [esp + 0x12c]
call fcn.00402ed0
sub esp, 0x14
mov eax, edi
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004020b0
mov dword [esp + 0x254], 2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push str.CUpdateProcess::InstallZdGuard1
call fcn.004020b0
mov dword [esp + 0x270], 0xffffffff
call fcn.004041e0
mov eax, ebx
jmp 0x40d5bd
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push str.zdGuard1.sys
call fcn.004020b0
sub esp, 0x1c
mov dword [esp + 0x270], 3
mov ecx, esp
mov dword [esp + 0x50], esp
push str.CUpdateProcess::InstallZdGuard1
call fcn.004020b0
mov dword [esp + 0x270], 0xffffffff
call fcn.004041e0
push 0xffffffffffffffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, ebp
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004322f2
add esp, 0x228
ret
Function at 0x414590
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
mov esi, eax
je 0x41474e
test esi, esi
je 0x41474e
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x41474e
mov ebx, dword [esp + 0x20]
mov eax, ebx
call fcn.00414510
cmp dword [ebp], eax
jl 0x41474e
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
xor ebp, ebp
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ecx
lea eax, [ebp + 0x13]
mov dword [esp + 0x14], ebp
js 0x4146b3
cmp ebp, ebx
jne 0x414623
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x414699
mov ebp, eax
lea esp, [esp]
movzx edx, byte [edi + 2]
xor ecx, ecx
mov ch, byte [edi]
add edi, 3
add esi, 4
mov cl, byte [edi - 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_rb]
mov byte [esi - 4], dl
shl ecx, 6
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_rb]
shl ecx, 6
mov byte [esi - 3], dl
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_rb]
shr ecx, 0x14
and ecx, 0x3f
sub ebp, 1
mov byte [esi - 2], dl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_rb]
mov byte [esi - 1], cl
jne 0x414630
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add ebp, 1
cmp ebp, ebx
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
jle 0x41460a
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x20]
sub ecx, eax
je 0x414737
lea ebp, [ecx + 1]
test ebp, ebp
je 0x414737
xor eax, eax
test ecx, ecx
jle 0x4146d1
movzx eax, byte [edi]
add edi, 1
shl eax, 8
cmp ecx, 1
jle 0x4146e1
movzx edx, byte [edi]
or eax, edx
add edi, 1
shl eax, 8
cmp ecx, 2
jle 0x4146ee
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test ebp, ebp
jle 0x414718
mov ecx, ebp
jmp 0x414700
mov edx, eax
shr edx, 0x1a
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_rb]
mov byte [esi], dl
add esi, 1
shl eax, 6
sub ecx, 1
jne 0x414700
add dword [esp + 0x10], ebp
mov edi, 4
sub edi, ebp
test edi, edi
jle 0x414733
push edi
push 0x3d
push esi
call fcn.00436440
add esp, 0xc
add dword [esp + 0x10], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x416b00
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
push esi
call edi
test eax, eax
jne 0x416b2f
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
je 0x416bb3
mov ecx, dword [esi]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x416ba2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x416b97
mov eax, dword [esp + 4]
mov ecx, dword [esi]
lea edx, [esi + 4]
push edx
push 0x10
push eax
push 0x6602
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x416b97
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, 1
pop edi
pop ecx
ret 8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
xor eax, eax
pop edi
pop ecx
ret 8

Function at 0x4176e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41772c
call fcn.00421553
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41772c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41776f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x417758
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x417758
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41776c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x418620
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45e520]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x418660
push 0x44da78
push 4
push eax
call fcn.00436d68
push eax
call fcn.00401000
add esp, 0x10
jmp 0x418672
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4186e0
push edi
call fcn.00436e43
mov edi, dword [eax]
call fcn.00436e43
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00436de9
add esp, 0x18
mov ebx, eax
call fcn.00436e43
cmp dword [eax], 0
je 0x4186c0
call fcn.00436e43
push dword [eax]
call fcn.004018f0
pop ecx
jmp 0x4186c7
call fcn.00436e43
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4186e0
cmp ebx, esi
jae 0x4186e0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4186e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004322f2
leave
ret