joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46472c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4648d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4648b8
mov dl, 1
mov eax, dword [0x41be1c]
call fcn.00403948
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4648a7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00452738
test al, al
je 0x46489a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4648e8
lea eax, [ebp - 0x254]
call fcn.0040a2e0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46489a
xor eax, eax
push ebp
push 0x464893
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x464920
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46487c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a3c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46487c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46489a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46479d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420a28
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4648de
lea eax, [ebp - 0x260]
call fcn.004047cc
ret

Function at 0x46520c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4d9be0]
cmp byte [eax + 0xa5], 0
jne 0x46527d
cmp dword [0x4d9bf8], 0
jne 0x46523e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4651c8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d9bf8], eax
cmp dword [0x4d9bf4], 0
jne 0x465259
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d9bf4], eax
cmp dword [0x4d9bfc], 0
jne 0x46527d
push esp
push 0
push 0
push 0x46516c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4d9bfc], eax
pop edx
ret
Function at 0x465374
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46538b
add esp, 0xfffffff0
call fcn.00403cdc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426a38
mov eax, dword [0x4d8b10]
cmp word [eax + 2], 0
jne 0x4653b3
mov eax, dword [0x4d8b10]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466af4
mov eax, dword [0x4d8c54]
cmp word [eax + 2], 0
jne 0x4653cd
mov eax, dword [0x4d8c54]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466cec
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b7b8]
call fcn.00403948
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b7b8]
call fcn.00403948
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x428f90]
call fcn.004304e8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x465554
mov eax, dword [0x4d8930]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004308b8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46728c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d8930]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e220
test eax, eax
je 0x4654c2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409ca4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e248
test eax, eax
je 0x4654d6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a3c
mov eax, dword [0x4d871c]
cmp byte [eax], 0
jne 0x46550a
mov eax, ebx
call fcn.0046567c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00467468
mov eax, ebx
call fcn.00467e2c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46554a
call fcn.00403d34
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4658fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d9be0]
cmp dword [eax + 0x30], 0
je 0x4659a6
cmp dword [ebx + 0x94], 0
jne 0x4659a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46588c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4659a0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x465966
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4659a0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041dfec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x465975
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x466508
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46653d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048bc
jmp 0x46654a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404820
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x467644
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x467685
mov eax, esi
call fcn.0044dd20
test al, al
je 0x467685
mov eax, dword [ebx + 0x84]
call fcn.0044da1c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x467685
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044da1c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x48e7b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c7c
xor eax, eax
push ebp
push 0x48e886
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x48e898
lea edi, [ebp - 0x2c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00404c8c
mov esi, eax
inc esi
mov dword [ebp - 0xc], 1
xor edi, edi
jmp 0x48e867
mov dl, byte [esi]
cmp dl, 0x27
je 0x48e80c
cmp dl, byte [ebp - 5]
jne 0x48e811
xor bl, 1
jmp 0x48e863
test bl, bl
jne 0x48e863
mov al, byte [esi]
and eax, 0xff
bt dword [ebp - 0x2c], eax
jae 0x48e863
cmp byte [ebp + 8], 0
je 0x48e83a
mov al, byte [esi]
sub al, 0x3a
je 0x48e863
add al, 0xfe
sub al, 3
jb 0x48e863
mov edi, dword [ebp - 0xc]
inc edi
jmp 0x48e863
cmp byte [esi], 0x3a
jne 0x48e859
mov al, byte [esi - 1]
sub al, 0x20
je 0x48e854
add al, 0xf8
sub al, 2
jb 0x48e854
sub al, 2
je 0x48e854
sub al, 0x11
jne 0x48e863
mov edi, dword [ebp - 0xc]
jmp 0x48e863
cmp byte [esi + 1], 0x3a
jne 0x48e863
mov edi, dword [ebp - 0xc]
inc edi
inc esi
inc dword [ebp - 0xc]
test edi, edi
jne 0x48e870
cmp byte [esi], 0
jne 0x48e800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e88d
lea eax, [ebp - 4]
call fcn.004047cc
ret

Function at 0x49b79f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4d82b6
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x49b7f7
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4d82d7
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x49b7ed
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x49b7fb
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4a88cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a8a4d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d855c], 0
jne 0x4a8a2a
push 0x4d9d70
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4a8a23
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d855c], 0
jne 0x4a8a0b
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404e18
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c8c
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00408c90
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x4a8a64
call fcn.0040a360
mov eax, dword [ebp - 0xc]
call fcn.00404c8c
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4a898c
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404e18
jmp 0x4a89c3
lea eax, [ebp - 8]
mov edx, 0x4a8a84
call fcn.00404864
xor eax, eax
push ebp
push 0x4a89b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004719f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a89c3
mov eax, dword [ebp - 8]
call fcn.00404c8c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4d855c], eax
cmp dword [0x4d855c], 0
jne 0x4a89f6
mov ecx, dword [0x4d8ad4]
mov dl, 1
mov eax, dword [0x408014]
call fcn.0040d3c0
call fcn.00404208
push 0x4a8a90
mov eax, dword [0x4d855c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d9d88], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8a2a
push 0x4d9d70
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8a54
lea eax, [ebp - 0x18]
call fcn.004047cc
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004047f0
ret
Function at 0x4bde04
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x4bde3f
cmp dword [ebx + 0x5c], 0
je 0x4bde3f
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004b62a8
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4bdf8a
cmp dword [ebx + 0x7c], 0
jne 0x4bde65
mov dl, 1
mov eax, dword [0x41b874]
call fcn.00403948
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4bdf63
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x4bdf90]
push eax
mov al, byte [0x4bdf94]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x4d8afc]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x48892c]
call fcn.0048b168
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4bdf5c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004b62a8
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004b62a8
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x4b4a54]
call fcn.00405dcc
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x4bdf2f
mov edx, dword [0x4d8d68]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4bdf40
cmp eax, 0x1007
jne 0x4bdf3c
mov byte [ebx + 0x74], 0x18
jmp 0x4bdf40
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdf8a
mov eax, dword [ebp - 4]
call fcn.00403978
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004b62a8
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4c78e8
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4c78f0
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c7a84
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x60]
call fcn.004c7e5c
mov byte [ebx + 0x1030], 0
lea edx, [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x60]
add eax, 4
call fcn.00404820
lea edx, [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x60]
add eax, 8
call fcn.00404820
lea edx, [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x60]
add eax, 0xc
call fcn.00404820
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x70]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x60]
add eax, 0x10
call fcn.00404820
lea edx, [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x60]
add eax, 0x14
call fcn.00404820
lea edx, [ebp - 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x60]
add eax, 0x18
call fcn.00404820
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x7c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x60]
add eax, 0x1c
call fcn.00404820
lea edx, [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x60]
add eax, 0x20
call fcn.00404820
lea edx, [ebp - 0x24]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x60]
add eax, 0x24
call fcn.00404820
lea edx, [ebp - 0x28]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x60]
add eax, 0x28
call fcn.00404820
lea edx, [ebp - 0x2c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x60]
add eax, 0x2c
call fcn.00404820
lea edx, [ebp - 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x60]
add eax, 0x30
call fcn.00404820
lea edx, [ebp - 0x34]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x60]
add eax, 0x34
call fcn.00404820
mov byte [ebx + 0x1030], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7a8b
lea eax, [ebp - 0x34]
mov edx, 0xd
call fcn.004047f0
ret
Function at 0x401933
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x42683f
call fcn.004256c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.004032ae
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.0040198c
lea ecx, [esi + 0x30]
call fcn.004032ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405386
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x405512
Capabilities:
Create directory

Disassembly:
mov eax, 0x426bd0
call fcn.004256c0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405535
mov al, 1
jmp 0x40557b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405546
xor al, al
jmp 0x40557b
lea ecx, [ebp - 0x44]
call fcn.0040573f
lea ecx, [ebp - 0x1c]
call fcn.004032ae
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040598d
test al, al
je 0x405570
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00403a73
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40598c
or eax, eax
ret

Function at 0x406031
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40605b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40605b
xor al, al
jmp 0x40607b
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004259a0
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x40ccdc
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x427346
call fcn.004256c0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.004032ae
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040cd36
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40cd88
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x427391
call fcn.004256c0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0040f16e
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00401bcc
push dword [esi + 0x24]
call fcn.00403a73
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.00401f34
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040d321
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40f79a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42779d
call fcn.004256c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov byte [esi + 0x17], bl
call fcn.004032ae
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call fcn.004032ae
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.004032ae
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 6
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov word [esi + 0x4c], bx
mov byte [esi + 0x4e], bl
mov byte [esi + 0x4f], bl
call fcn.0040cd36
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 7
call fcn.0040cd36
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40f9de
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x42781e
call fcn.004256c0
push ecx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esi], 0x42a18c
mov dword [esi + 4], 0x42a178
mov dword [esi + 8], 0x42a168
mov dword [esi + 0xc], 0x42991c
mov dword [esi + 0x10], 0x42a154
mov dword [esi + 0x14], eax
mov byte [esi + 0x18], al
mov dword [ebp - 0x10], esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
call fcn.004032ae
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.004032ae
lea edi, [esi + 0x60]
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.0040573f
lea ecx, [edi + 0x28]
call fcn.004032ae
lea ecx, [esi + 0x98]
mov byte [ebp - 4], 5
call fcn.0040b7a3
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42a140
mov dword [esi + 4], 0x42a12c
mov dword [esi + 8], 0x42a11c
mov dword [esi + 0xc], 0x42a10c
mov dword [esi + 0x10], 0x42a0f8
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret