joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bf0
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 0x402d8f
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 0x402d8f
push esi
call ebp
cmp dword [esp + 0x10], eax
jge 0x402c61
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 0x402d8f
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.00403330
push 1
push 0x40f118
push esi
mov ebx, eax
call fcn.00403330
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 0x402d8f
test ebx, ebx
je 0x402d8f
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 0x402d0d
mov eax, esi
sub eax, ebx
lea ebx, [esi + ebp]
add eax, ebp
mov dword [esp + 0x10], eax
mov eax, 1
jmp 0x402d11
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jge 0x402d22
add edx, 4
mov dword [esp + 0x14], edx
jmp 0x402d26
test eax, eax
je 0x402d8f
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 0x403150
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14
lea eax, [esp]
push 0x410088
push 0x13
push eax
push 0x40fc60
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403181
mov eax, 0xfffffffa
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
lea edx, [esp]
push ecx
push 0x40f130
push edx
call fcn.00406b32
add esp, 0xc
xor eax, eax
add esp, 0x14
ret
Function at 0x4031a0
Capabilities:
Read .ini file

Disassembly:
push 0x410088
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 0x4031d0
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 0x403268
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x40f150
lea eax, [esp + 0x30]
push str._s_d
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push 0x410088
push 0x13
push ecx
push 0x40fc60
push edx
push str.Languages
call ebx
test eax, eax
je 0x403263
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x40f130
push ecx
call fcn.00406b32
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 0x4031f7
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 0x403d20
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 0x403e1e
dec eax
je 0x403df1
dec eax
jne 0x403e29
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 0x403db4
dec eax
je 0x403da7
dec eax
jne 0x403dbf
mov dword [esp + 0xbc], 5
jmp 0x403dbf
mov dword [esp + 0xbc], 3
jmp 0x403dbf
mov dword [esp + 0xbc], 4
mov eax, dword [esp + 0x2c]
cmp eax, 4
jb 0x403dd3
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 0x403e29
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 0x403e29
mov dword [esp + 0xbc], 7
lea ecx, [esp + 0xbc]
push ecx
mov ecx, esi
call fcn.00401060
mov ecx, eax
call fcn.00404080
mov eax, 1
pop esi
add esp, 0x4c0
ret

Function at 0x403eb0
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 0x404930
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40c69e
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], 0x40d314
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.00404f50
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 0x4049ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x404a5d
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.00406684
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.00405060
test eax, eax
je 0x404a5d
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 0x404a5d
cmp dword [esp + 0x20], ebx
je 0x404a5d
mov ecx, esi
call fcn.00404c00
test eax, eax
je 0x404a5d
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, bx
je 0x404a5d
and eax, 0xffff
mov ecx, esi
push eax
call fcn.00404eb0
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 0x404d70
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 0x404db9
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x404db9
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 0x404dc2
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.00405060
test eax, eax
je 0x404db9
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 0x404e15
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 0x404e26
mov ebp, edi
push ebp
call fcn.00406684
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 0x404e87
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 0x404e87
test eax, eax
je 0x404e87
cmp edi, 0x400
jae 0x404e73
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 0x404e45
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.00406679
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x404eb0
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 0x404f44
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x138
call fcn.00406684
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 0x404f44
mov eax, dword [esp + 0x14]
test eax, eax
je 0x404f44
push esi
lea ecx, [ebx + 0x11c]
call fcn.00405110
mov edx, dword [esi + 0x10c]
mov eax, dword [ebx + 0x108]
push 1
push 0
push edx
push eax
mov ecx, ebx
call fcn.00405060
test eax, eax
je 0x404f44
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x404ecf
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x404f50
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 0x404f98
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.00405060
test eax, eax
jne 0x404fcf
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.00405060
test eax, eax
jne 0x40500b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
xor edi, edi
cmp word [esp + 0x82], di
jbe 0x405042
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x28
push edx
push esi
call ebx
test di, di
jne 0x405031
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add ebp, edx
inc edi
cmp di, word [esp + 0x82]
jb 0x405017
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 0x4053c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x41059c]
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 0x41019c
push 0x12c
push eax
push 0x40fc60
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
add esp, 0x14
ret
Function at 0x405690
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 0x4057c4
push ebp
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
xor eax, eax
cmp ebp, eax
je 0x405745
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.00405a90
test eax, eax
je 0x405702
lea eax, [esp + 0x438]
push eax
call fcn.00405990
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 0x4057b0
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 0x4057b0
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 0x4058a0
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 0x405907
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x1c]
push eax
push esi
mov byte [esi], dl
call fcn.00405640
add esp, 8
test eax, eax
je 0x405907
push esi
call fcn.00405830
add esp, 4
test eax, eax
jne 0x405915
inc ebx
cmp ebx, 0x1a
jl 0x4058cf
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 0x405ac0
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.00406684
add esp, 4
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40f27c
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 0x405b3e
cmp byte [edi], 0x5c
jne 0x405b2e
push 0
push esi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405b2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405b36
mov byte [edi], 0x5c
inc edi
inc ebp
cmp ebp, ebx
jb 0x405b09
jmp 0x405b3e
mov dword [esp + 0x10], 0
push esi
call fcn.00406679
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x405b60
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 0x405b7c
test al, 0x10
jne 0x405b7c
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x405b90
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 0x405bac
test al, 0x10
je 0x405bac
mov eax, 1
ret 4
xor eax, eax
ret 4

Function at 0x405bc0
Capabilities:
Delete directory

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
push edi
call fcn.00405b90
test eax, eax
je 0x405bfc
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 0x405bf0
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 0x405d70
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 0x405dc3
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 0x405e74
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 0x405e4a
cmp eax, 1
jne 0x405e4a
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 0x405e4a
cmp eax, 0x10
je 0x405e4a
cmp eax, 0x12
jne 0x405e0d
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, dword [esp + 4]
pop edi
add esp, 0x474
ret 8

Function at 0x405e90
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
call fcn.00405f20
test eax, eax
je 0x405efe
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 0x405efe
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
Function at 0x405f50
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0
push 8
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
mov byte [esp + 0x2a], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405fc4
call esi
cmp eax, 0x3f0
jne 0x405fb3
lea ecx, [esp + 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x40604d
test eax, eax
je 0x40604d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 2
push eax
call edi
test eax, eax
jne 0x40604d
call esi
cmp eax, 0x7a
jne 0x40604d
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00406684
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push eax
test esi, esi
push esi
push 2
setne bl
push ecx
mov byte [esp + 0x38], bl
call edi
test eax, eax
je 0x406040
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x406056
test bl, bl
je 0x40604d
push esi
call fcn.00406679
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov eax, dword [esi]
xor edi, edi
test eax, eax
push ebp
mov dword [esp + 0x1c], 0
jbe 0x406097
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp]
push ecx
push edx
call ebx
test eax, eax
jne 0x40608b
mov eax, dword [esi]
inc edi
add ebp, 8
cmp edi, eax
jb 0x406070
jmp 0x406093
mov dword [esp + 0x1c], 1
mov bl, byte [esp + 0x28]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test bl, bl
pop ebp
je 0x4060b0
push esi
call fcn.00406679
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x4060c0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [0x4106cc]
sub esp, 0x34
cmp eax, ecx
jne 0x4060da
mov eax, dword [0x40f2f4]
cmp eax, 0xffffffff
jne 0x406120
lea eax, [esp]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x40611a
lea ecx, [esp]
push ecx
call fcn.004066c7
add esp, 4
lea edx, [esp + 0x14]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x40611a
movsx eax, word [esp + 0x14]
mov dword [0x40f2f4], eax
mov ax, word [0x40f2f4]
add esp, 0x34
ret
Function at 0x406130
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x14
lea eax, [esp]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x40616a
lea edx, [esp]
push edx
call fcn.00406752
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx], eax
mov eax, 1
add esp, 0x14
ret
xor eax, eax
add esp, 0x14
ret

Function at 0x40a93d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fa40
cmp edx, dword [eax]
je 0x40a95f
add eax, 8
inc ecx
cmp eax, 0x40fad0
jl 0x40a950
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fa40]
jne 0x40aa8d
mov eax, dword [0x41072c]
cmp eax, 1
je 0x40aa67
test eax, eax
jne 0x40a990
cmp dword [0x40f3c4], 1
je 0x40aa67
cmp edx, 0xfc
je 0x40aa8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a9c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bb10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004073b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aa0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004073b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d6f8
push edi
call fcn.0040b860
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bb10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bb20
lea eax, [ebp - 0xa0]
push 0x40d6d8
push eax
call fcn.0040bb20
push dword [esi + 0x40fa44]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bb20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040bf35
add esp, 0x2c
pop edi
jmp 0x40aa8d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fa44]
push 0
push eax
push dword [esi]
call fcn.004073b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret