joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b794
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 0x45b93f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45b920
mov dl, 1
mov eax, dword [0x416d94]
call fcn.004034f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45b90f
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.00449734
test al, al
je 0x45b902
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, 0x45b950
lea eax, [ebp - 0x254]
call fcn.00409bfc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45b902
xor eax, eax
push ebp
push 0x45b8fb
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 0x45b988
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45b8e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404520
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 0x45b8e4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404520
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b902
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45b805
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a870
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 0x45b946
lea eax, [ebp - 0x260]
call fcn.004042b0
ret

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

Disassembly:
push ecx
mov eax, dword [0x498bdc]
cmp byte [eax + 0xa5], 0
jne 0x45c32d
cmp dword [0x498bf4], 0
jne 0x45c2ee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c278
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x498bf4], eax
cmp dword [0x498bf0], 0
jne 0x45c309
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x498bf0], eax
cmp dword [0x498bf8], 0
jne 0x45c32d
push esp
push 0
push 0
push 0x45c21c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x498bf8], eax
pop edx
ret
Function at 0x45c424
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c43b
add esp, 0xfffffff0
call fcn.00403848
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e734
mov eax, dword [0x497ad0]
cmp word [eax + 2], 0
jne 0x45c463
mov eax, dword [0x497ad0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045dafc
mov eax, dword [0x497ba8]
cmp word [eax + 2], 0
jne 0x45c47d
mov eax, dword [0x497ba8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045dcf4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416978]
call fcn.004034f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416978]
call fcn.004034f4
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 [0x420cd8]
call fcn.00428a9c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45c604
mov eax, dword [0x4979d0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428e6c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e2a4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4979d0]
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.0040d564
test eax, eax
je 0x45c572
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004095dc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d58c
test eax, eax
je 0x45c586
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.00404520
mov eax, dword [0x497894]
cmp byte [eax], 0
jne 0x45c5ba
mov eax, ebx
call fcn.0045c72c
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.0045e480
mov eax, ebx
call fcn.0045ee44
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c5fa
call fcn.004038a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c9ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x498bdc]
cmp dword [eax + 0x30], 0
je 0x45ca56
cmp dword [ebx + 0x94], 0
jne 0x45ca50
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45c93c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ca50
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 0x45ca16
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ca50
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.00418ce0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ca25
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d5b8
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 0x45d5ed
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.004043a0
jmp 0x45d5fa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404304
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45e65c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e69d
mov eax, esi
call fcn.00444d60
test al, al
je 0x45e69d
mov eax, dword [ebx + 0x84]
call fcn.00444a5c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e69d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00444a5c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45fbb4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x45fbde
cmp dword [ebx + 0x64], 0
jne 0x45fbde
cmp dword [ebx + 0x6c], 0
jne 0x45fbde
mov edi, esi
jmp 0x45fc65
cmp edi, 0xffffffff
jne 0x45fbe6
dec edi
jmp 0x45fc65
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x45fc65
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0045efb0
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x45fc33
mov cx, word [esp]
sub cx, si
jmp 0x45fc35
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x45fc1c
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x45fc5b
mov cx, word [esp]
sub cx, si
jmp 0x45fc5d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x45fc44
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x45fcc2
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0045f950
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x45fcad
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x45fcc2
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x45fbbe
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x465f18
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x498c0c
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x465f3a
shr eax, 1
xor eax, 0xedb88320
jmp 0x465f3c
shr eax, 1
dec edx
jne 0x465f28
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x465f21
mov byte [0x49900c], 1
pop esi
pop ebx
ret

Function at 0x465f58
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x49900c], 0
jne 0x465f6f
call fcn.00465f18
mov eax, edi
dec eax
test eax, eax
jl 0x465f98
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x498c0c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x465f79
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4684e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x468519
dec al
je 0x468555
dec al
je 0x468599
dec al
je 0x468604
jmp 0x46868e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x46868e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x468529
jmp 0x46868e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x46868e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x468565
jmp 0x46868e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x46868e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4685c7
xor ebp, ebp
jmp 0x4685d8
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4685e1
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4685a9
jmp 0x46868e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x46868e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x46865c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00465fa0
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x468618
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46df78
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46e0e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e0c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404498
lea eax, [ebp - 0x118]
mov edx, 0x46e100
call fcn.00404578
mov eax, dword [ebp - 0x118]
call fcn.00404770
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x46e036
lea eax, [ebp - 0x111]
call fcn.004095a0
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004043a0
jmp 0x46e03d
mov eax, esi
call fcn.004042b0
cmp bl, 0x61
jae 0x46e05e
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040d438
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404304
jmp 0x46e078
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040d3ac
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404304
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x46e10c
call fcn.00409c7c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404304
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e0cb
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x474690
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4746f4
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404520
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4746fb
lea eax, [ebp - 0xc]
call fcn.004042b0
ret

Function at 0x474c64
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b30
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x474c78
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push esi
mov eax, ebx
call fcn.00404b30
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x474c95
xor eax, eax
pop esi
pop ebx
ret
mov eax, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b30
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x474d6d
test al, 0x10
jne 0x474d71
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x474d78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b30
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x474d91
test al, 0x10
je 0x474d95
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x474d9c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404e4c
xor eax, eax
push ebp
push 0x474ebd
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00404c58
jne 0x474def
mov ecx, 0x474ed4
mov dl, 1
mov eax, dword [0x407a04]
call fcn.0040c5f0
mov edx, eax
mov dword [edx + 0xc], 3
mov eax, edx
call fcn.00403cb0
mov eax, dword [ebp - 4]
call fcn.00404b40
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x474e15
mov eax, dword [ebp - 4]
call fcn.00404b40
mov edx, eax
dec edx
lea eax, [ebp - 4]
call fcn.00404e08
mov eax, dword [ebp - 4]
call fcn.00404b40
cmp eax, 3
jl 0x474e8d
mov eax, dword [ebp - 4]
call fcn.00474d54
test al, al
jne 0x474e8d
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404538
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00409320
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00404b20
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404c58
je 0x474e8d
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00474ccc
mov eax, dword [ebp - 0x14]
call fcn.00474d9c
test al, al
je 0x474e87
push 0
mov eax, dword [ebp - 4]
call fcn.00404b30
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x474e8b
xor ebx, ebx
jmp 0x474e8d
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474ec4
lea eax, [ebp - 0x14]
call fcn.004049bc
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004042d4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049d4
ret
Function at 0x4771e4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00404e4c
xor eax, eax
push ebp
push 0x4772e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xc]
call fcn.00478e00
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00474d14
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00477e8c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00474ccc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00477f04
lea eax, [ebx + 0x50]
call fcn.004042b0
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4772e7
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004049d4
ret
Function at 0x4772f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00404e4c
xor eax, eax
push ebp
push 0x477402
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xa]
call fcn.00478e00
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00404c58
je 0x4773c5
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00474d14
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00477e8c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00474ccc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00477f04
jmp 0x4773d7
xor edx, edx
mov eax, ebx
call fcn.00477e8c
xor edx, edx
mov eax, ebx
call fcn.00477f04
lea eax, [ebx + 0x50]
call fcn.004042b0
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477409
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004049d4
ret

Function at 0x478f14
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404760
xor eax, eax
push ebp
push 0x478f6d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00404770
mov esi, eax
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x478f55
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x478f57
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478f74
lea eax, [ebp - 4]
call fcn.004042b0
ret

Function at 0x478f7c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404760
xor eax, eax
push ebp
push 0x478fe0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
mov eax, dword [ebp - 4]
call fcn.00404770
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040978c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478fe7
lea eax, [ebp - 4]
call fcn.004042b0
ret