joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c01e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
test edi, edi
je 0x4c01ff
mov dword [edi], 0
test esi, esi
je 0x4c020d
mov dword [esi + 0x13c4], 0
test esi, esi
sete dl
test ebx, ebx
sete al
or eax, edx
test al, 1
jne 0x4c0250
test ecx, ecx
js 0x4c0250
cmp byte [esi + 0x1390], 0
jne 0x4c0270
test edi, edi
je 0x4c0234
mov dword [edi], 0xffffffff
test esi, esi
je 0x4c0268
mov dword [esi + 0x13c4], 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x4c025a
mov dword [edi], 0xfffffffe
test esi, esi
je 0x4c0268
mov dword [esi + 0x13c4], 0xfffffffe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi]
test byte [eax + 0xc], 0x20
jne 0x4c0305
test ecx, ecx
je 0x4c0321
lea eax, [esi + 4]
mov dword [esi + 0x1398], ecx
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x1394]
mov dword [esi + 0x1394], ebx
mov dword [ebp - 0x14], eax
jmp 0x4c02ab
mov eax, dword [esi + 0x1398]
test eax, eax
je 0x4c0321
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x13a8], 0x1388
mov dword [esi + 0x13a4], eax
push edx
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.004bed10
add esp, 0x10
cmp eax, 1
jne 0x4c033a
mov eax, dword [esi + 0x13a8]
cmp eax, 0x1387
ja 0x4c02a1
mov ebx, 0x1388
sub ebx, eax
mov eax, dword [esi]
push eax
push ebx
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp ebx, eax
jne 0x4c0305
mov eax, dword [esi]
test byte [eax + 0xc], 0x20
je 0x4c02a1
test edi, edi
je 0x4c030f
mov dword [edi], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x4c032b
mov dword [edi], 0
mov dword [esi + 0x13c4], 0
jmp 0x4c0268
test edi, edi
je 0x4c0340
mov dword [edi], eax
mov dword [esi + 0x13c4], eax
jmp 0x4c0268
Function at 0x4c07f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4c080c
mov dword [esi], 0
test ebx, ebx
je 0x4c081a
mov dword [ebx + 0x13c4], 0
test ebx, ebx
sete dl
test ecx, ecx
sete al
or eax, edx
test al, 1
jne 0x4c0870
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x4c0870
cmp byte [ebx + 0x1390], 0
jne 0x4c0890
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x4c08aa
test esi, esi
je 0x4c084b
mov dword [esi], 0
test ebx, ebx
je 0x4c0860
mov dword [ebx + 0x13c4], 0
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x4c087a
mov dword [esi], 0xfffffffe
test ebx, ebx
je 0x4c0860
mov dword [ebx + 0x13c4], 0xfffffffe
jmp 0x4c0860
test esi, esi
je 0x4c089a
mov dword [esi], 0xffffffff
test ebx, ebx
je 0x4c0860
mov dword [ebx + 0x13c4], 0xffffffff
jmp 0x4c0860
mov eax, dword [ebp + 0x14]
lea edi, [ebx + 4]
mov dword [ebx + 0x13a8], eax
mov dword [ebx + 0x13a4], ecx
jmp 0x4c08d3
cmp ecx, 4
je 0x4c09bf
mov ecx, dword [ebx + 0x13a8]
test ecx, ecx
je 0x4c0945
mov eax, dword [ebx]
test byte [eax + 0xc], 0x20
jne 0x4c0995
mov edx, dword [ebx + 0x1398]
test edx, edx
jne 0x4c08f2
call fcn.004c0060
test al, al
je 0x4c0961
sub esp, 0xc
lea eax, [ebx + 0x1394]
push eax
call fcn.004bf030
add esp, 0x10
mov ecx, eax
test eax, eax
setne dl
cmp eax, 4
setne al
and eax, 0xff
test edx, eax
jne 0x4c09ae
test ecx, ecx
jne 0x4c08c0
mov eax, dword [ebx]
call fcn.004c0060
test al, al
je 0x4c08c9
mov eax, dword [ebx + 0x1398]
test eax, eax
jne 0x4c08c9
mov edi, dword [ebx + 0x13a8]
test edi, edi
jne 0x4c09e3
test esi, esi
je 0x4c094f
mov dword [esi], 0
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x13c4], 0
jmp 0x4c0862
mov eax, dword [ebx]
push eax
push 0x1388
push 1
push edi
call sub.msvcrt.dll_fread
add esp, 0x10
mov edx, eax
mov eax, dword [ebx]
test byte [eax + 0xc], 0x20
jne 0x4c0995
mov dword [ebx + 0x138c], edx
mov dword [ebx + 0x1398], edx
mov dword [ebx + 0x1394], edi
jmp 0x4c08f2
test esi, esi
je 0x4c099f
mov dword [esi], 0xfffffffa
mov dword [ebx + 0x13c4], 0xfffffffa
jmp 0x4c0860
test esi, esi
je 0x4c09b4
mov dword [esi], ecx
mov dword [ebx + 0x13c4], ecx
jmp 0x4c0860
test esi, esi
je 0x4c09c9
mov dword [esi], 4
mov eax, dword [ebp + 0x14]
mov esi, dword [ebx + 0x13a8]
sub eax, esi
mov dword [ebx + 0x13c4], 4
jmp 0x4c0862
test esi, esi
je 0x4c09ed
mov dword [esi], 0xfffffff9
mov dword [ebx + 0x13c4], 0xfffffff9
jmp 0x4c0860
Function at 0x100017d0
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
lea esi, [ecx + 0x5c]
push 0x40
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.10002350
mov byte [esi], 0x80
pop esi
ret
Function at 0x100030e0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10005808
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 6]
test al, al
je 0x1000327f
call sub.MFC42.DLL_AfxGetModuleState
lea eax, [esi + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x14]
mov dword [esp + 0x34], 0
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esi + 0x20]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CFile::CFile
mov bl, 3
push str.exit.32
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::operator_1
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.100036c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 4
call fcn.10004cfc
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call fcn.10004cf0
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.100036c0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 5
call fcn.10004cfc
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], bl
call fcn.10004cf0
add esi, 0xc8
lea ecx, [esp + 8]
push esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 6
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
push str.x_servicetype
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator
push 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push 0
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x10003237
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
mov byte [esp + 0x34], bl
call fcn.10004cf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.10004dc2
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 1
call fcn.10004cf0
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.10004cf0
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call fcn.10004cf0
mov ecx, dword [esp + 0x2c]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret
Function at 0x10004080
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
mov ebx, dword [esp + 0x10]
cdq
sub eax, edx
mov esi, ecx
sar eax, 1
sub eax, 5
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], eax
call sub.MFC42.DLL_AfxGetModuleState
push 0
push 0
push 0
push edi
push ebx
push 0
push 0
push 0x80000000
push 0
push 0
push 0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
push 0
call sub.MFC42.DLL_AfxRegisterWndClass
push eax
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::CreateEx
mov ecx, dword [esi + 0x4c]
mov edx, dword [sym.imp.MFC42.DLL_CWndconstCWnd::wndTop]
mov edi, eax
mov eax, dword [esi + 0x50]
push 0x42
push eax
push ecx
push 0
push 0
push edx
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowPos
test edi, edi
je 0x10004153
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x10004970
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
push 0
mov dword [esi + 0x44], eax
push 0
jne 0x10004146
mov ecx, dword [esi + 0x20]
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x40
push 0x10008234
push 0x10008220
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x40], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x10004500
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x10005a06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
push edi
push fcn.10004b50
push 0x10004b20
push 0x40
lea eax, [esp + 0x34]
push 8
push eax
call fcn.10005212
mov eax, dword [esp + 0x248]
mov ebx, dword [esp + 0x240]
mov ebp, dword [sym.imp.GDI32.dll_CreateSolidBrush]
xor esi, esi
sub eax, ebx
mov dword [esp + 0x230], esi
mov dword [esp + 0x14], eax
lea edi, [esp + 0x28]
mov eax, 0x55555556
imul esi
mov ecx, edx
mov eax, 0x66666667
shr ecx, 0x1f
add edx, ecx
or cl, 0xff
sub cl, dl
imul esi
sar edx, 1
mov eax, edx
and ecx, 0xff
shr eax, 0x1f
add edx, eax
or al, 0xff
sub al, dl
xor edx, edx
mov dh, al
or edx, ecx
shl edx, 8
or edx, ecx
push edx
call ebp
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
inc esi
add edi, 8
cmp esi, 0x40
jl 0x1000455e
mov eax, dword [esp + 0x248]
lea ecx, [eax - 1]
mov eax, ebx
cmp ebx, ecx
mov dword [esp + 0x10], ecx
jg 0x10004624
mov ecx, dword [esp + 0x240]
mov ebp, dword [esp + 0x244]
shl ebx, 6
sub ebx, ecx
mov edi, ebx
mov ecx, dword [esp + 0x23c]
lea esi, [eax + 1]
push esi
push ebp
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, edi
sub eax, ebx
cdq
idiv dword [esp + 0x14]
lea eax, [esp + eax*8 + 0x28]
test eax, eax
je 0x10004600
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x238]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x10]
mov eax, esi
add edi, 0x3f
cmp eax, ecx
jle 0x100045d3
lea esi, [esp + 0x28]
mov edi, 0x40
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
add esi, 8
dec edi
jne 0x1000462d
push fcn.10004b50
push 0x40
lea eax, [esp + 0x30]
push 8
push eax
mov dword [esp + 0x240], 0xffffffff
call fcn.1000511e
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 0x14
Function at 0x708f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x71d9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x709002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0070cdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x709002
lea edx, [esp + 0x14]
push edx
push 0x723140
call fcn.007046e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0070d20b
push 0x10
call fcn.0070d1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x708fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.006f91c0
jmp 0x708fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00708b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x708ff0
mov ecx, edi
call fcn.006f92c0
push edi
call fcn.0070d1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x709021
inc ebx
cmp ebx, 0x20
jb 0x708f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x70ad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x70ad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x70ad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x70ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x70ad94
push eax
push esi
call fcn.0070d20b
add esp, 8
pop esi
ret 0x10

Function at 0x70ada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x70ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x70ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x723320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0070cdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x70adda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x70ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x70aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x70aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x723320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0070cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x70aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x70ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x70c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0070c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0070c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0070c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0070c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x70c230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x70c2d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x70c2ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0070c230
mov esi, eax
add esp, 8
test esi, esi
jne 0x70c2ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x70c27e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x70c2ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x70cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x70cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x71e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x70cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x70cc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x43b631
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop eax
push 0x7de93fbe
mov esi, dword [esp]
add esp, 4
call fcn.0043b66b
mov esi, 0x3cfc6c6c
xor dword [ecx], eax
inc esi
dec edx
sub esi, 0xb8d863bc
add ecx, 1
or edx, edx
cmp ecx, edi
jne fcn.0043b631
and edx, edx
ret
Function at 0x420e90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420ebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420ebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x108a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 5]
test byte [ebx + eax*4 + 8], 4
je 0x108ca
push eax
push ebx
call fcn.00010414
test al, al
je 0x10a60
mov eax, dword [ebx]
push edi
add eax, 0x78
push eax
call fcn.00013cc6
mov edi, dword [ebx + 0x14d0]
xor ecx, ecx
mov cx, word [ebx + 0x14d8]
cmp cx, 0x3f
mov word [ebx + 0x14da], ax
mov dword [ebp + 8], ecx
jne 0x10901
and dword [ebp + 8], 0
mov ecx, dword [ebx + 0x14c8]
jmp 0x10907
inc dword [ebp + 8]
lea ecx, [edi + 0x40]
cmp word [ebp + 8], ax
mov dword [ebx + 0x14d0], ecx
jne 0x10920
mov dword [ebx + 0x14d0], edi
xor al, al
jmp 0x10a5f
movzx eax, byte [esi + 5]
push eax
push ebx
call fcn.00010538
cmp ax, 0xffff
je 0x10913
movzx eax, ax
mov dword [ebp - 4], eax
or eax, 0x10cb0000
mov dword [edi + 4], eax
mov al, byte [esi + 7]
mov byte [edi + 8], al
mov al, byte [esi + 5]
shl al, 7
or al, byte [esi + 6]
mov byte [edi + 9], al
movzx ax, byte [esi + 0xa]
mov word [edi + 0xa], ax
mov eax, dword [esi + 0x14]
cmp eax, 0xffff
ja 0x10970
test eax, eax
je 0x10970
dec ax
mov word [edi + 0x10], ax
jmp 0x10975
and word [edi + 0x10], 0
mov eax, dword [esi + 0xc]
test al, 0x40
mov ecx, 0x100
je 0x10986
push 0x20
pop edx
jmp 0x10998
mov dl, al
not dl
movzx edx, dl
and edx, 0x80
or edx, ecx
shr edx, 2
test al, 0x24
mov dword [ebp + 0xc], edx
je 0x109b2
test al, 4
je 0x109a9
or edx, 1
mov dword [ebp + 0xc], edx
test al, 0x20
je 0x109b2
or edx, ecx
mov dword [ebp + 0xc], edx
test al, 2
je 0x109ee
movzx ecx, byte [esi + 5]
movzx eax, byte [esi + 6]
imul ecx, ecx, 0x70
add eax, 0x38b
mov edx, ebx
lea eax, [eax + eax*2]
add edx, ecx
test byte [edx + eax*2], 8
je 0x109ee
mov al, byte [esi + 9]
cmp al, 0x20
jne 0x109e0
or dword [ebp + 0xc], 8
jmp 0x109ee
cmp al, 0x21
jne 0x109ea
or dword [ebp + 0xc], 2
jmp 0x109ee
or dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x1c], eax
cmp byte [ebx + 0x14df], 0
je 0x10a2a
mov dword [edi], 0x109
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0x808
jmp 0x10a3d
mov dword [edi], 0x101
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0x808
mov eax, dword [ebp - 4]
mov dword [ebx + eax*4 + 0x161c], esi
mov eax, dword [ebx]
mov esi, dword [ebp + 8]
push esi
add eax, 0x78
push eax
call fcn.00013cba
mov word [ebx + 0x14d8], si
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x401860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x416de4], 0xffffffff
mov dword [0x416de8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x416d80]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x416d7c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x416dec], ecx
call fcn.00401850
mov eax, dword [0x415208]
test eax, eax
jne 0x4016f1
push 0x401840
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00401820
push 0x41500c
push 0x415008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x416d78]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x416d74]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x415004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4017ff
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x401765
cmp al, 0x22
jne 0x401757
cmp byte [esi], 0x22
jne 0x40176e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40177e
cmp al, 0x20
ja 0x40177e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40176e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40179f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4017a4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4017e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40176e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4017ff