joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4292e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x42b30e
call fcn.0041233c
sub esp, 0x124
mov eax, dword [0x437d80]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x124]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4293ee
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x4293c2
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402b80
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.004292e0
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401b60
test bl, bl
jne 0x4293c2
or dword [ebp - 4], 0xffffffff
jmp 0x42932d
cmp esi, 0x103
je 0x4293d2
cmp esi, 0x3f2
jne 0x4293e2
push dword [edi]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041229e
leave
ret 8

Function at 0x4297c2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4297f7
cmp edi, dword [esi + 0xc]
jge 0x4297f7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4297f7
cmp edi, dword [eax + 8]
jge 0x4297f7
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4297f9
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4298fd
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x429931
jmp fcn.0041f366
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x4299a2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x429a9b
cmp eax, dword [edi + 0xc]
jge 0x429a9b
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4299f3
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x429a84
cmp dword [ebp + 0xc], ebx
je 0x429a84
jmp 0x429a1d
push 0x10
call fcn.0042968e
cmp eax, ebx
je 0x429a09
mov ecx, eax
call fcn.004298f4
mov esi, eax
jmp 0x429a0b
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x429a34
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x429a44
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x429a56
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041f366
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00412360
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x429a96
cmp ecx, dword [esi + 8]
jge 0x429a96
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x429a9c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x429b5b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x429b89
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x429ba7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00429ac5
jmp 0x429ba7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x429ba7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00429ac5
test edi, edi
mov eax, edi
jne 0x429b91
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43acc4]
test ecx, ecx
je 0x429c5a
jmp 0x429b5a
ret 8
Function at 0x429edc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x429ebe
mov ecx, 0x43af00
call fcn.00429822
mov ebx, eax
cmp word [ebx + 8], 0
jne 0x429fd2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.COMCTL32.DLL
call esi
test eax, eax
mov dword [ebp - 4], eax
je 0x429fa9
push edi
push str.KERNEL32.DLL
call esi
push str.GetUserDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov esi, dword [ebp + 0x10]
mov edi, 0x3ee
je 0x429f73
call eax
and ax, 0x3ff
cmp ax, 0x11
jne 0x429f73
mov ecx, str.MS_UI_Gothic
call fcn.00429e21
test eax, eax
je 0x429f73
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xe
add eax, edi
push 0xfc11
movzx eax, ax
push eax
push 5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
jne 0x429f8b
neg esi
sbb esi, esi
and esi, 0xe
add esi, edi
movzx eax, si
push 5
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
pop edi
je 0x429fa9
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.004252f3
add esp, 0xc
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 4], eax
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov word [ebx + 8], ax
pop esi
push dword [ebx + 4]
mov ecx, dword [ebp + 8]
call fcn.00402270
mov bx, word [ebx + 8]
mov eax, dword [ebp + 0xc]
mov word [eax], bx
xor eax, eax
cmp bx, 0xffff
setne al
pop ebx
leave
ret 0xc
Function at 0x801198
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, str.dabcde
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test eax, eax
je 0x8011ec
xor edi, edi
mov eax, 0x80000000
push edi
push esi
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push 0x803129
push str.fghi
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x804010], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x804010]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov dword [0x804247], eax
mov dword [0x804314], esi
push 0
push 0x801126
push 0
push 0x803090
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
pop esi
pop ebp
ret

Function at 0x8020d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x803570
push 0x8022d0
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 [0x804330], 0xffffffff
mov dword [0x804334], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x80432c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x804328]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x804338], ecx
call fcn.008022c0
mov eax, dword [0x804308]
test eax, eax
jne 0x802161
push 0x8022b0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00802290
push 0x80400c
push 0x804008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x804324]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x804320]
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 0x804004
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 0x80226f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x8021d5
cmp al, 0x22
jne 0x8021c7
cmp byte [esi], 0x22
jne 0x8021de
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x8021ee
cmp al, 0x20
ja 0x8021ee
inc esi
mov dword [ebp - 0x74], esi
jmp 0x8021de
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x80220f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x802214
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 0x802254
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 0x8021de
inc esi
mov dword [ebp - 0x74], esi
jmp 0x80226f
Function at 0x10006f77
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10007014
push ebx
push esi
call fcn.10006f40
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10006e89
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10006fc1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007013
push edi
push eax
call fcn.10007f2e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10006fe1
call fcn.10005a99
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007012
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10006e89
add esp, 0x20
test eax, eax
jne 0x10007000
push edi
call fcn.10005a99
jmp 0x10007008
push ebx
call fcn.10005a99
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000727f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e490
push 0x1000e488
push str.FlsAlloc
push 0x1e
call fcn.1000719d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100072b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d108]
call esi
jmp 0x100072b9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100072fd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000e4a0
push 0x1000e498
push str.FlsGetValue
push 0x20
call fcn.1000719d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007334
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d108]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1000c9e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000ca0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000ca0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4021b2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov cl, byte [0x404050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x404054
add edx, dword [0x404050]
call fcn.004020f3
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x4039aa
push eax
sub edi, fcn.00403144
push edi
push fcn.00403144
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x402229
mov eax, fcn.00403144
mov ebx, esi
mov edx, edi
call fcn.004020f3
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.00402d42
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 0
call fcn.0040151f
lea eax, [esi + 0x1c000]
lea edi, [esi + 1]
imul edi, eax
mov ebx, 0x404054
or bl, 1
xor edx, edx
mov eax, esi
div ebx
lea ebx, [ebp - 2]
add eax, 0x404054
mov edx, edi
call fcn.00403144
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x10002810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
cmp edi, 0xfffff98
jbe 0x10002837
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
lea edx, [ebx - 4]
call fcn.10002bf0
add esp, 4
test eax, eax
je 0x1000282e
mov ecx, dword [ebx - 4]
add edi, 7
and edi, 0xfffffffc
mov eax, 0x10
cmp edi, eax
cmovb edi, eax
and ecx, 0xffffffc
mov dword [ebp + 8], ecx
lea eax, [edi + 0x10]
cmp eax, ecx
ja 0x100028af
sub ecx, edi
lea edx, [ebx - 4]
push 0x200
push ecx
add edx, edi
mov ecx, esi
call fcn.10002b20
mov eax, dword [ebx - 4]
add esp, 8
and eax, 0xf0000003
or eax, edi
mov dword [ebx - 4], eax
mov edi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x68]
or eax, edi
test al, 1
jne 0x100028a6
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, ecx
jbe 0x10002890
lea eax, [ecx + ebx]
mov eax, dword [eax - 4]
test al, 1
je 0x100028fa
mov edx, edi
and eax, 0xffffffc
sub edx, ecx
cmp eax, edx
jb 0x100028fa
mov edi, dword [ebp + 0xc]
push edi
push edx
lea edx, [ebx - 4]
add edx, ecx
mov ecx, esi
call fcn.100029c0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10002999
mov eax, dword [ebx - 4]
add ecx, dword [ebp + 8]
and eax, 0xf0000003
or ecx, eax
mov dword [ebx - 4], ecx
jmp 0x10002893
mov eax, dword [ebp + 0xc]
test al, 2
je 0x1000298b
mov ecx, eax
or ecx, 1
mov dword [ebp - 4], ecx
test al, 0x20
je 0x10002945
push ebx
mov edx, 1
mov ecx, esi
call fcn.100025a0
push dword [ebp - 4]
lea edx, [edi - 4]
mov ecx, esi
call fcn.10002630
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10002890
push str.HPReAlloc:_HPAlloc_failed_1_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10002996
push ecx
lea edx, [edi - 4]
mov ecx, esi
call fcn.10002630
mov edi, eax
add esp, 4
test edi, edi
jne 0x10002966
push str.HPReAlloc:_HPAlloc_failed_2_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10002996
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push ebx
push edi
call fcn.10006b90
add esp, 0xc
mov edx, 1
mov ecx, esi
push ebx
call fcn.100025a0
mov ebx, edi
jmp 0x10002890
push 0xd4
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x68]
or eax, edi
test al, 1
jne 0x1000282e
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100055a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10005645
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str._Initializing_9xHeap..._
call esi
call fcn.10003640
push str._Initializing_9xHeap..._OK__
call esi
push 4
push 0x2000
push 0x100000
xorps xmm0, xmm0
xor edi, edi
push edi
movups xmmword [0x10018330], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x1000562f
cmp esi, 0xffffffff
je 0x1000562f
push 0x40
push 0x100000
mov edx, esi
mov ecx, esi
call fcn.10002410
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000561a
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10005637
mov eax, dword [0x10017880]
mov eax, dword [eax + 8]
mov dword [esi + 0x48], eax
mov eax, dword [0x10017880]
mov dword [eax + 8], esi
jmp 0x10005637
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [0x10018330], edi
mov dword [0x1001831c], edi
pop edi
pop esi
mov eax, 1
pop ebp
ret 0xc
Function at 0x404115
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x4041df
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404145
xor esi, esi
jmp 0x4041df
cmp eax, 3
je 0x404156
push 0
push edi
call main
test eax, eax
jne 0x40413e
movzx ecx, word [edi]
mov eax, edi
push ebx
xor ebx, ebx
test cx, cx
je 0x4041cc
push 0x5c
pop edx
cmp cx, dx
jne 0x40416d
mov ebx, eax
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x404166
test ebx, ebx
je 0x4041cc
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call main
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x4041de
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x4041c8
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x4041b9
xor esi, esi
inc esi
jmp 0x4041de
test esi, esi
jle 0x4041de
movzx esi, si
or esi, 0x80070000
jmp 0x4041de
xor esi, esi
jmp 0x4041de
mov esi, 0x80070003
push esi
push 0x72
push str.dirutil.cpp
call fcn.00403821
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x419173
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x419182
pop dword [ebp - 0x4c]
mov eax, 0x419182
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x65f91e00
sub dword [ebp - 0x5c], 0x17a6d8b5
mov dword [ebp - 0x58], 0x210d5f70
add dword [ebp - 0x58], 0x1125ecd5
mov dword [ebp - 0x54], 0xe6d15902
add dword [ebp - 0x54], 0x657aeb2c
mov dword [ebp - 0x50], 0xe368758c
add dword [ebp - 0x50], 0x1c978a74
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x708db8e0
add dword [ebp - 0x5c], 0x3e4b076
mov dword [ebp - 0x58], 0x2b187880
add dword [ebp - 0x58], 0x1653e8f5
mov dword [ebp - 0x54], 0x8b0758ea
add dword [ebp - 0x54], 0xd8681382
mov dword [ebp - 0x50], 0xb7324f4a
add dword [ebp - 0x50], 0x48cdb0b6
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xe2d1c4c
add eax, 0xf21514d8
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ea60
push 0
call eax
mov ecx, 0x7548f834
add ecx, 0x8ab7538c
xor edi, edi
add edi, eax
mov ebx, 0x8fe86652
add ebx, 0x705addae
add ebx, dword [ebp - 0x4c]
mov esi, 0xad5be7b5
sub esi, 0xb4df5bd6
mov dword [ebp - 8], 0xcf7cd256
mov edx, dword [ebx]
add dword [ebp - 0x10], 0xca07637a
xor edx, esi
sub dword [ebp - 0x14], edi
mov dword [edi], edx
xor dword [ebp - 0x48], ecx
add edi, 0x6f250862
sub edi, 0x6f25085e
add ebx, 0xce8c7f06
sub ebx, 0xce8c7f02
loop 0x41929c
add eax, 0x792c73cf
sub eax, 0x792b51fc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe972aa28
sub ecx, 0xe932aa28
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret