joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022a0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x40fcd8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4022bf
mov ecx, dword [0x40fcd8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4025e0
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push eax
call fcn.004031f0
add esp, 4
test eax, eax
jne 0x402761
push 0x4101f0
call fcn.00403290
add esp, 4
test eax, eax
jne 0x402761
mov ecx, dword [esp + 0x28]
mov edx, dword [0x4101f0]
push 0x4105fc
mov dword [ecx], edx
call fcn.00403240
add esp, 4
test eax, eax
jne 0x402761
mov ebx, dword [esp + 0x24]
mov eax, dword [0x4105fc]
mov dword [ebx], eax
mov eax, dword [0x4101f0]
cmp eax, 1
jne 0x402649
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea ecx, [esp + 0x10]
push ecx
push 0x410610
call fcn.004025c0
test eax, eax
jne 0x402761
mov edx, dword [0x4101f0]
lea eax, [edx*4]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x4101f4], eax
jne 0x40268f
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
ret
push 0x4101f0
call fcn.004032c0
mov esi, eax
add esp, 4
test esi, esi
je 0x4026ce
mov ecx, dword [0x4101f4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x4101f4]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
and eax, 0xffff
mov dword [0x410608], ebx
push eax
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
push 0x402990
and edx, 0xffff
push ecx
push edx
push esi
mov dword [0x41060c], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov esi, eax
mov eax, dword [0x41060c]
test eax, eax
je 0x40271e
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp esi, 1
jne 0x402727
xor esi, esi
jmp 0x40272f
cmp esi, 2
jne 0x40272f
or esi, 0xffffffff
mov eax, dword [0x4101f4]
test eax, eax
je 0x402757
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x4101f4]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebx]
mov eax, esi
mov dword [0x4105fc], ecx
pop edi
pop esi
pop ebx
ret
Function at 0x402ce0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xcc
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
mov esi, dword [esp + 0xdc]
push edi
push 0x3ee
push esi
call ebx
mov edi, eax
test edi, edi
je 0x402e7f
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push edi
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x5c]
push 0x7f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x3ef
push esi
call ebx
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x402e7f
push esi
call ebp
cmp dword [esp + 0x10], eax
jge 0x402d51
lea ecx, [esp + 0x5c]
push 0x7f
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x402e7f
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x60]
push eax
push esi
call fcn.00403420
push 1
push 0x40f120
push esi
mov ebx, eax
call fcn.00403420
mov ebp, eax
push esi
push edi
and ebp, 0xffff
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, ebx
mov dword [esp + 0x10], 0
and esi, 0xffff
add esi, ebp
shr ebx, 0x10
test esi, esi
mov dword [esp + 0x1c], ebx
je 0x402e7f
test ebx, ebx
je 0x402e7f
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub ebx, eax
sub ecx, edx
cmp ebx, esi
mov dword [esp + 0x14], ecx
jge 0x402dfd
mov eax, esi
sub eax, ebx
lea ebx, [esi + ebp]
add eax, ebp
mov dword [esp + 0x10], eax
mov eax, 1
jmp 0x402e01
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x402e12
add edx, 4
mov dword [esp + 0x14], edx
jmp 0x402e16
test eax, eax
je 0x402e7f
mov ebp, dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x2c
push edx
push ebp
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 1
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
push edx
push ebp
mov ebp, dword [sym.imp.USER32.dll_MoveWindow]
call ebp
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x2c
push eax
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
push 1
push ecx
push ebx
push edx
mov edx, dword [esp + 0x5c]
lea ecx, [eax + eax]
sub edx, ecx
push edx
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret

Function at 0x403240
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14
lea eax, [esp]
push 0x4100e8
push 0x13
push eax
push 0x40fcc0
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403271
mov eax, 0xfffffffa
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
lea edx, [esp]
push ecx
push 0x40f138
push edx
call fcn.00407042
add esp, 0xc
xor eax, eax
add esp, 0x14
ret
Function at 0x403290
Capabilities:
Read .ini file

Disassembly:
push 0x4100e8
push 0
push str.Count
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffffa
ret

Function at 0x4032c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x98
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
xor esi, esi
push edi
cmp dword [ebp], 0
jbe 0x403358
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x40f158
lea eax, [esp + 0x30]
push str._s_d
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push 0x4100e8
push 0x13
push ecx
push 0x40fcc0
push edx
push str.Languages
call ebx
test eax, eax
je 0x403353
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x40f138
push ecx
call fcn.00407042
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edx + esi*4], eax
mov eax, dword [ebp]
inc esi
cmp esi, eax
jb 0x4032e7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret
mov eax, 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x403fc0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x4c0
push esi
mov esi, ecx
mov dword [esp + 0x4c0], 0
call fcn.004010a0
lea eax, [esp + 0x28]
mov dword [esp + 0xbc], 1
push eax
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x38]
sub eax, 0
je 0x4040be
dec eax
je 0x404091
dec eax
jne 0x4040c9
lea ecx, [esp + 4]
mov dword [esp + 0xbc], 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
and eax, 0xffff
dec eax
je 0x404054
dec eax
je 0x404047
dec eax
jne 0x40405f
mov dword [esp + 0xbc], 5
jmp 0x40405f
mov dword [esp + 0xbc], 3
jmp 0x40405f
mov dword [esp + 0xbc], 4
mov eax, dword [esp + 0x2c]
cmp eax, 4
jb 0x404073
mov dword [esp + 0x4c0], 1
mov edx, dword [esp + 0x30]
push edx
push eax
lea eax, [esp + 0xc8]
push str._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4040c9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0xc8]
push str._u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [esp + 0x4c0], 1
jmp 0x4040c9
mov dword [esp + 0xbc], 7
lea ecx, [esp + 0xbc]
push ecx
mov ecx, esi
call fcn.00401060
mov ecx, eax
call fcn.00404320
mov eax, 1
pop esi
add esp, 0x4c0
ret

Function at 0x404150
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x14]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8
Function at 0x404d20
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40cbae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x108], ebx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov edi, dword [esp + 0x20]
lea eax, [esi + 4]
push edi
push eax
mov dword [esp + 0x20], ebx
mov dword [esi], 0x40d318
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.00405340
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push edi
mov dword [esi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x404dbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x404e4d
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.00406b94
mov edi, eax
mov ecx, 0xb
xor eax, eax
mov dword [esi + 0x118], edi
rep stosd dword es:[edi], eax
add esp, 4
stosw word es:[edi], ax
mov ecx, dword [esi + 0x110]
mov edx, dword [esi + 0x108]
push ebx
push ebx
push ecx
push edx
mov ecx, esi
call fcn.00405450
test eax, eax
je 0x404e4d
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0x108]
lea eax, [esp + 0x20]
push ebx
push eax
push 0x2e
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404e4d
cmp dword [esp + 0x20], ebx
je 0x404e4d
mov ecx, esi
call fcn.00404ff0
test eax, eax
je 0x404e4d
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, bx
je 0x404e4d
and eax, 0xffff
mov ecx, esi
push eax
call fcn.004052a0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x405160
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x4051a9
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x4051a9
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esi + 4]
push 0x80000000
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4051b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
push ebx
mov ecx, esi
call fcn.00405450
test eax, eax
je 0x4051a9
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x405205
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov edi, dword [ebp + 0x10c]
mov ebp, 0x400
cmp edi, ebp
jae 0x405216
mov ebp, edi
push ebp
call fcn.00406b94
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405277
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
sub edi, eax
je 0x405277
test eax, eax
je 0x405277
cmp edi, 0x400
jae 0x405263
mov ebp, edi
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405235
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
push esi
call fcn.00406b89
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4052a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
jle 0x405334
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x138
call fcn.00406b94
mov esi, eax
add esp, 4
mov ecx, 0x4e
xor eax, eax
mov edi, esi
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x108]
lea eax, [esp + 0x18]
push eax
push 0x138
push esi
push ecx
call ebp
test eax, eax
je 0x405334
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405334
push esi
lea ecx, [ebx + 0x11c]
call fcn.00405500
mov edx, dword [esi + 0x10c]
mov eax, dword [ebx + 0x108]
push 1
push 0
push edx
push eax
mov ecx, ebx
call fcn.00405450
test eax, eax
je 0x405334
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4052bf
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x405340
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
mov edi, ecx
push 0x80
push 3
push ebp
push 3
lea eax, [edi + 4]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x44]
push 0x40
push edx
push esi
call ebx
mov eax, dword [esp + 0x78]
push 0
push 0
push eax
push esi
mov ecx, edi
call fcn.00405450
test eax, eax
jne 0x4053bf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x84]
push 0x18
push edx
push esi
call ebx
mov eax, dword [esp + 0x90]
push 1
and eax, 0xffff
push 0
push eax
push esi
mov ecx, edi
call fcn.00405450
test eax, eax
jne 0x4053fb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
xor edi, edi
cmp word [esp + 0x82], di
jbe 0x405432
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x28
push edx
push esi
call ebx
test di, di
jne 0x405421
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ebp, edx
inc edi
cmp di, word [esp + 0x82]
jb 0x405407
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x130
ret

Function at 0x4057b0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4105fc]
sub esp, 0x14
lea ecx, [esp]
push esi
push eax
push str._04x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea edx, [esp + 4]
push edx
call esi
push eax
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0x4101fc
push 0x12c
push eax
push 0x40fcc0
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
add esp, 0x14
ret
Function at 0x405a80
Capabilities:
Get disk size

Disassembly:
sub esp, 0x828
push ebx
mov ebx, dword [esp + 0x834]
push esi
push edi
xor edi, edi
push str.KERNEL32
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x405bb4
push ebp
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
xor eax, eax
cmp ebp, eax
je 0x405b35
mov eax, dword [esp + 0x83c]
lea ecx, [esp + 0x438]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x438]
push edx
call fcn.00405e80
test eax, eax
je 0x405af2
lea eax, [esp + 0x438]
push eax
call fcn.00405d80
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x440]
push eax
push ecx
call ebp
test eax, eax
je 0x405ba0
mov edx, dword [esp + 0x20]
push esi
shr edx, 0xa
mov dword [ebx], edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x828
ret
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x83c]
mov byte [esp + 0x3b], 0
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], dl
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3a], al
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405ba0
mov eax, dword [esp + 0x18]
mov edi, 1
imul eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
shr eax, 0xa
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x828
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x828
ret

Function at 0x405c90
Capabilities:
Get disk information

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov cl, 0x3a
mov al, 0x5c
push edi
mov edi, dword [esp + 0x14]
mov byte [esi], bl
mov byte [esi + 1], cl
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], bl
mov al, bl
lea ecx, [esp + 0x1c]
add al, 0x41
push ecx
mov byte [esp + 0x20], al
call ebp
cmp eax, edi
jne 0x405cf7
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x1c]
push eax
push esi
mov byte [esi], dl
call fcn.00405a30
add esp, 8
test eax, eax
je 0x405cf7
push esi
call fcn.00405c20
add esp, 4
test eax, eax
jne 0x405d05
inc ebx
cmp ebx, 0x1a
jl 0x405cbf
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x405eb0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
mov dword [esp + 0x14], 1
call ebx
add eax, 2
push eax
call fcn.00406b94
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40f2d8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov edi, esi
call ebx
mov ebx, eax
xor ebp, ebp
test ebx, ebx
jbe 0x405f2e
cmp byte [edi], 0x5c
jne 0x405f1e
push 0
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405f1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405f26
mov byte [edi], 0x5c
inc edi
inc ebp
cmp ebp, ebx
jb 0x405ef9
jmp 0x405f2e
mov dword [esp + 0x10], 0
push esi
call fcn.00406b89
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405f6c
test al, 0x10
jne 0x405f6c
mov eax, 1
ret 4
xor eax, eax
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405f9c
test al, 0x10
je 0x405f9c
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x405fb0
Capabilities:
Delete directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
push edi
call fcn.00405f80
test eax, eax
je 0x405fec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x405fe0
mov esi, 1
push 0
call ebx
pop ebx
mov eax, esi
pop edi
pop esi
ret 4
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x406160
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
xor eax, eax
push edi
mov dword [esp + 8], eax
mov ecx, 0x11
mov dword [esp + 0xc], eax
lea edi, [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x480]
mov dword [esp + 0x18], 0x44
test eax, eax
mov dword [esp + 0x44], 1
je 0x4061b3
mov word [esp + 0x48], 1
mov ecx, dword [esp + 0x47c]
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
lea edx, [esp + 0x94]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406264
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push 0
push eax
push 1
call esi
test eax, eax
je 0x40623a
cmp eax, 1
jne 0x40623a
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push 0
push ecx
call edi
mov eax, dword [esp + 0x64]
cmp eax, 0x11
je 0x40623a
cmp eax, 0x10
je 0x40623a
cmp eax, 0x12
jne 0x4061fd
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, dword [esp]
add esp, 0x474
ret 8
mov eax, 0xcccccccc
pop edi
add esp, 0x474
ret 8

Function at 0x406280
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
xor eax, eax
push edi
mov dword [esp + 4], eax
mov ecx, 0x11
mov dword [esp + 8], eax
lea edi, [esp + 0x14]
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x460]
mov dword [esp + 0x14], 0x44
test eax, eax
mov dword [esp + 0x40], 1
pop edi
je 0x4062cc
mov word [esp + 0x40], 1
mov ecx, dword [esp + 0x458]
lea edx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push 0x20
push 1
push 0
lea edx, [esp + 0x70]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x454
ret 8

Function at 0x406310
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
call fcn.004063a0
test eax, eax
je 0x40637e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40637e
lea edx, [esp + 4]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
add esp, 0x1c
ret