joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40287e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 0x10]
push ebx
push eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
push 0x42c728
mov dword [esi], eax
setne al
push eax
call fcn.0041164f
push dword [esi]
call fcn.004163d5
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
push ebx
push ecx
push dword [esi]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4028ef
mov eax, dword [esi]
cmp eax, dword [ebp + 8]
jne 0x4028ef
mov bl, 1
push 0x42c6e8
push ebx
call fcn.0041164f
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402b50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [eax + 0xc]
and dword [esi + 4], 0
or dword [esi], 0xffffffff
or dword [esi + 0x10], 0xffffffff
or dword [esi + 8], 0xffffffff
and dword [esi + 0x14], 0
mov dword [ebp - 4], ecx
call fcn.00402a64
test al, al
jne 0x402d04
mov ecx, dword [ebp - 4]
call fcn.004029fa
test al, al
je 0x402c63
lea eax, [edi + 0x78]
test eax, eax
je 0x402c20
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x402c20
cmp dword [eax + 0x74], 0
je 0x402c20
mov eax, dword [ebp + 8]
push 0
push ecx
push dword [eax + 8]
push edi
call dword [sym.imp.IMAGEHLP.dll_ImageRvaToVa]
mov ebx, eax
test ebx, ebx
je 0x402c20
cmp dword [ebx], 0x48
push 0x42c85c
sete al
push eax
call fcn.0041164f
mov eax, dword [ebx]
and dword [ebp + 8], 0
add eax, dword [edi + 0xe8]
pop ecx
pop ecx
mov dword [esi + 0xc], eax
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 6]
test edx, edx
lea ecx, [ecx + edi + 0x18]
mov dword [ebp + 0xc], edx
jbe 0x402c20
mov edx, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
cmp edi, edx
jae 0x402c02
mov edx, edi
mov edi, dword [ecx + 0xc]
mov dword [ebp - 4], edx
cmp eax, edi
jb 0x402c12
add edx, edi
cmp eax, edx
jb 0x402c2a
inc dword [ebp + 8]
add ecx, 0x28
mov edx, dword [ebp + 8]
cmp edx, dword [ebp + 0xc]
jb 0x402bf6
push 0x42c818
jmp 0x402cad
mov edx, dword [ebp + 8]
mov dword [esi + 4], ecx
mov dword [esi], edx
mov edx, eax
sub edx, edi
push 0x42c85c
mov dword [esi + 8], edx
mov ecx, dword [ecx + 0x14]
add ecx, edx
mov dword [esi + 0x10], ecx
mov ecx, dword [ebx + 8]
sub ecx, eax
mov dword [esi + 0x14], ecx
add ecx, edx
cmp ecx, dword [ebp - 4]
setb al
push eax
call fcn.0041164f
pop ecx
pop ecx
jmp 0x402d04
mov edx, dword [edi + 0x28]
and dword [ebp + 8], 0
mov dword [esi + 0xc], edx
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 6]
test ecx, ecx
lea eax, [eax + edi + 0x18]
mov dword [ebp + 0xc], ecx
jbe 0x402ca8
mov ecx, dword [eax + 0x10]
mov edi, dword [eax + 8]
cmp edi, ecx
jae 0x402c8c
mov ecx, edi
mov edi, dword [eax + 0xc]
cmp edx, edi
jb 0x402c9a
lea ebx, [edi + ecx]
cmp edx, ebx
jb 0x402cbf
inc dword [ebp + 8]
add eax, 0x28
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jb 0x402c80
push 0x42c7d8
push 0
call fcn.0041164f
pop ecx
xor al, al
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [ebp + 8]
sub edx, edi
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov eax, dword [eax + 0x14]
sub ecx, edx
add eax, edx
mov ebx, ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
call fcn.00402990
test al, al
je 0x402d01
mov edi, 0x80
push 0x42c7a8
cmp ebx, edi
sbb al, al
inc al
push eax
call fcn.0041164f
pop ecx
mov dword [esi + 0x14], edi
pop ecx
jmp 0x402d04
mov dword [esi + 0x14], ebx
mov al, 1
jmp 0x402cb8
Function at 0x402d96
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push 0x42c8a4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402df0
push ebx
lea eax, [ebp - 4]
push esi
push eax
mov esi, 0x43533c
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
je 0x402df0
cmp dword [ebp - 4], 8
jne 0x402df0
mov eax, esi
jmp 0x402df2
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x402df6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x42c8a4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402e53
lea eax, [ebp - 4]
push 0
push eax
push 8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
je 0x402e4f
cmp dword [ebp - 4], 8
jne 0x402e4f
xor eax, eax
inc eax
jmp 0x402e55
xor eax, eax
jmp 0x402e55
xor al, al
pop esi
leave
ret 4
Function at 0x403bb3
Capabilities:
Create process on windows
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x950
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.00416900
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x403c31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42cd7c
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403d34
push 2
push 1
lea eax, [ebp - 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.00414a42
push eax
call esi
push eax
call edi
test eax, eax
jne 0x403c8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42cd48
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403d34
push dword [ebp - 8]
mov edi, 0x42cd40
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00416958
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push 0x42cd34
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push 0x42cd24
call esi
mov eax, dword [ebp - 0xc]
add eax, 0x50
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push 0x42c62c
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403d38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x950]
push 0x42ccf0
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x950]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
xor al, al
jmp 0x403d3a
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d3f
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 4], ecx
call fcn.004163d5
mov ebx, eax
pop ecx
test ebx, ebx
je 0x403d65
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x403d67
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0x100000
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x403dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42cd7c
lea eax, [ebp - 0x808]
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebx, ebx
jmp 0x403e66
push 2
push 0
lea eax, [ebx + 4]
push 0x100000
push eax
call esi
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
call esi
push eax
call edi
test eax, eax
jne 0x403dec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42cde8
jmp 0x403d9c
push 2
push 0
lea eax, [ebx + 8]
push 0x100001
push eax
call esi
push eax
call fcn.00401006
mov ecx, eax
call fcn.00414a42
push eax
call esi
push eax
call edi
test eax, eax
jne 0x403e23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42cd48
jmp 0x403d9c
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push ebx
push 0x403e9e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x403e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push 0x42cdb4
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, esi
je 0x403e76
mov ecx, ebx
call fcn.00403e81
push ebx
call fcn.00416017
pop ecx
xor al, al
jmp 0x403e7c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4042df
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov byte [esi + 0x15], 1
push dword [0x4354fc]
call edi
call fcn.00401006
mov ecx, eax
call fcn.00401ad8
mov ebx, eax
test ebx, ebx
je 0x404389
and byte [esi + 0x14], 0
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 1
push ebx
call edi
lea edi, [esi + 4]
cmp dword [edi], 0
jne 0x404335
cmp dword [esi + 0xc], 0
je 0x404389
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x404389
mov eax, dword [esi + 0xc]
cmp dword [ebp - 8], eax
jne 0x404363
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [edi]
jne 0x404363
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x10]
jne 0x404363
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [esi + 8]
je 0x404389
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0x10]
mov edx, dword [edi]
sub esi, ecx
push 1
sub eax, edx
push esi
push eax
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x10
push 0
push edi
call fcn.00416900
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4045a2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call fcn.00401006
mov ecx, eax
call fcn.00402d4f
fld dword [ebp + 8]
fcomp dword [0x4282d0]
mov edi, eax
fnstsw ax
test ah, 5
jp 0x4045cc
fldz
fstp dword [ebp + 8]
xor esi, esi
push esi
call fcn.00403041
add byte [ebp + esi + 8], al
inc esi
cmp esi, 4
pop ecx
jb 0x4045ce
call fcn.00403b2d
mov esi, eax
test esi, esi
je 0x40460a
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push edi
call fcn.00403096
pop ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401006
mov ecx, eax
call fcn.00402df6
pop edi
pop esi
leave
ret
Function at 0x405255
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push dword [0x4354fc]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x38]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp byte [esi], al
je 0x4052e7
mov dword [ebp - 4], eax
call fcn.0040754e
test eax, eax
jle 0x405300
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
call fcn.00407565
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0xcc0020
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
inc dword [ebp - 4]
call fcn.0040754e
cmp dword [ebp - 4], eax
jl 0x405297
pop edi
jmp 0x405300
push 0xcc0020
push eax
push eax
push ebx
push dword [esi + 0x30]
push dword [esi + 0x34]
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push dword [0x4354fc]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
leave
ret

Function at 0x4056d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x42ccd4
lea eax, [ebp - 0x210]
push 0x42d000
push eax
call fcn.00416958
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40574b
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x42cff0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40574b
cmp dword [ebp - 4], eax
setne al
mov byte [0x4354f0], al
leave
ret
Function at 0x405a26
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp dword [esi + 0x64], ebx
jne 0x405a73
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x64], eax
jne 0x405a73
call ebp
push eax
lea eax, [esp + 0x14]
push 0x42d040
push eax
call fcn.00416958
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x68], ebx
jne 0x405aa6
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0x68], eax
jne 0x405aa6
call ebp
push eax
lea eax, [esp + 0x14]
push 0x42d004
push eax
call fcn.00416958
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x814]
mov eax, dword [esi + 0x64]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
mov dword [ecx], eax
add esp, 0x800
ret 8

Function at 0x405aee
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x405b5d
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32First
jmp 0x405b52
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.00421d40
pop ecx
test eax, eax
pop ecx
je 0x405b64
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x405b26
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret 4
mov al, 1
jmp 0x405b5f

Function at 0x405b68
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
call fcn.00407493
test al, al
je 0x405b9b
lea eax, [esp]
push 0x400
push eax
call fcn.00407602
pop ecx
test al, al
pop ecx
jne 0x405b9b
push 0x42d084
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x405b9d
xor al, al
add esp, 0x400
ret
Function at 0x4061b6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406221
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4061f3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406221
push ebx
call fcn.00417012
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x4061ea
lea ecx, [ebp - 4]
push esi
push ecx
push ebx
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x406225
xor al, al
jmp 0x406240
push ebx
push dword [ebp + 8]
call fcn.00406055
mov ecx, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.00416f29
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406cbe
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
push 0x42d37c
push dword [ebp + 8]
call fcn.00417234
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
pop ecx
je 0x406d79
push 2
push edi
push esi
call fcn.0041766c
xor ebx, ebx
inc ebx
push ebx
push 0xfffffffffffffffa
push esi
call fcn.0041766c
push esi
push ebx
lea eax, [ebp - 2]
push 2
push eax
call fcn.00417555
movzx eax, word [ebp - 2]
push ebx
push 0xfffffffffffffffe
pop ecx
sub ecx, eax
push ecx
push esi
call fcn.0041766c
push esi
call fcn.004173d3
mov dword [ebp + 8], eax
push esi
movzx eax, word [ebp - 2]
push eax
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00417555
add esp, 0x48
push edi
push edi
push esi
call fcn.0041766c
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push ebx
mov ebx, 0x42d350
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push eax
call edi
test eax, eax
jne 0x406d80
push 0xf0000008
push 1
push ebx
push eax
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
jne 0x406d80
push esi
call fcn.0041714a
pop ecx
xor al, al
jmp 0x406e68
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x406da8
push esi
call fcn.0041714a
pop ecx
xor bl, bl
jmp 0x406e5b
mov ebx, dword [ebp + 8]
and byte [ebp + 0xb], 0
mov edi, 0x400
cmp ebx, edi
jge 0x406dbe
mov edi, ebx
mov byte [ebp + 0xb], 1
push esi
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.00417555
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406e3c
sub ebx, edi
cmp byte [ebp + 0xb], 0
je 0x406daf
push esi
call fcn.0041714a
pop ecx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
push esi
push 0x54
push 0x42d2b0
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x406e43
movzx eax, word [ebp - 2]
push esi
push 0x42d330
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x406e47
xor bl, bl
jmp 0x406e49
push esi
call fcn.0041714a
pop ecx
xor bl, bl
jmp 0x406e52
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407a13
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x407a41
push esi
call fcn.0040a8fa
cmp dword [esi + 0x40], 0
pop ecx
je 0x407a3a
xor eax, eax
mov dword [esi + 0x10], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x407ab3
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x407aa5
mov eax, dword [esi + 8]
test eax, eax
je 0x407a62
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b0]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x407aa1
cmp eax, 2
je 0x407aa5
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x407a57
cmp eax, 3
je 0x407a86
cmp eax, 1
jne 0x407a57
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x407a57
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x407a57
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x407ad1
cmp eax, 0xcc
je 0x407ad1
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.00407ada
pop ecx
pop esi
ret
Function at 0x411eeb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x411f54
push dword [esi + 8]
lea ecx, [ebp - 8]
call fcn.0041398a
mov ecx, esi
call fcn.0041188f
test al, al
jne 0x411f4c
lea ecx, [ebp - 4]
call fcn.0041396b
lea ecx, [ebp - 8]
call fcn.00413d9d
push eax
lea eax, [ebp - 4]
push 0x42f910
push eax
call fcn.00413d08
add esp, 0xc
lea ecx, [ebp - 4]
call fcn.00413d9d
push eax
push 0x42f8fc
call fcn.00413796
pop ecx
pop ecx
push 0xffffffffffffffff
call fcn.004178b3
lea ecx, [ebp - 8]
call fcn.00413a45
pop esi
leave
ret

Function at 0x4123a2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
je 0x4123ce
mov ecx, dword [esp + 8]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x42f420]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x4123b4
pop edi
pop esi
ret

Function at 0x4142b1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004167c0
lea eax, [ebp - 0x104]
push eax
call fcn.00414333
add esp, 0xc
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x41432e
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.004168b0
test eax, eax
pop ecx
pop ecx
jne 0x414316
lea eax, [ebp - 0x104]
push 0x2f
push eax
call fcn.004168b0
test eax, eax
pop ecx
pop ecx
je 0x41432a
and byte [eax], 0
push 0
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x4142ee
jmp 0x4142c1
xor al, al
jmp 0x414330
mov al, 1
pop esi
leave
ret

Function at 0x4143f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41440b
xor al, al
ret
and eax, 1
dec al
neg al
sbb eax, eax
inc eax
ret

Function at 0x414416
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41443d
and eax, 0xfffffffe
cmp byte [esp + 8], 0
je 0x414432
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret