joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405656
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004043dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dc8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405640
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40565d
lea eax, [ebp - 0x10]
call fcn.00404188
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040462c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406f45
test al, 0x10
jne 0x406f49
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409190
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4091c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404278
jmp 0x4091d2
mov eax, ebx
mov edx, esi
call fcn.004041dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4091dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4091fd
mov al, byte [esp]
jmp 0x4091ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409884
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4096fc
mov eax, dword [0x428ea0]
cmp byte [eax], 0
je 0x409900
mov eax, dword [0x428dcc]
call fcn.00402c64
call fcn.00402644
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407510
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409948
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409936
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x428da4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x429660]
call fcn.00405040
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40a5bc
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 0x40a620
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
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.004043dc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406d74
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a627
lea eax, [ebp - 0xc]
call fcn.00404188
ret

Function at 0x40b370
Capabilities:
Get file size

Disassembly:
add esp, 0xfffffff4
lea edx, [esp + 8]
push edx
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
mov eax, dword [esp + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, ecx
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret

Function at 0x40b980
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x40baaa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xbff00000
cmp byte [0x427524], 0xff
jne 0x40b9e2
mov byte [0x427524], 0
lea ecx, [ebp - 0x34]
mov edx, 0x40bac4
mov eax, 0x40bae0
call fcn.0040e020
test eax, eax
je 0x40b9d9
mov byte [0x427524], 1
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_FreeLibrary_1
cmp byte [0x427524], 0
sete dl
lea eax, [ebp - 4]
call fcn.0040b884
mov ebx, eax
cmp byte [0x427524], 1
jne 0x40ba50
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov eax, dword [0x428e14]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x40ba43
lea eax, [ebp - 4]
mov dl, 1
call fcn.0040b884
mov ebx, eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov eax, dword [0x428e14]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x40ba94
fild qword [ebp - 0x20]
fstp qword [ebp - 0x10]
wait
jmp 0x40ba94
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x40ba94
mov eax, dword [ebp - 0x24]
imul dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x3c]
fstp qword [ebp - 0x10]
wait
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x3c]
fmul qword [ebp - 0x10]
fstp qword [ebp - 0x10]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bab1
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x40bfe8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x40c102
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x427528], 0
mov eax, esi
call fcn.00404188
mov edx, dword [ebp - 4]
mov eax, 0x40c118
call fcn.00404770
cmp eax, 2
jne 0x40c081
lea eax, [ebp - 8]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040468c
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x40c065
cmp eax, dword [esp]
pop edx
pop eax
jne 0x40c0e0
mov eax, dword [ebp - 4]
call fcn.00406f2c
test al, al
je 0x40c0e0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004041dc
jmp 0x40c0e0
mov bl, 0x42
inc ebx
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404354
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x40c118
call fcn.00404478
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
call sub.kernel32.dll_GetDriveTypeA
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x40c0bc
cmp eax, dword [esp]
pop edx
pop eax
jne 0x40c0cd
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0040bdc4
cmp bl, 0x5a
je 0x40c0e0
cmp dword [esi], 0
jne 0x40c0e0
cmp byte [0x427528], 0
je 0x40c083
mov byte [0x427528], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c109
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret
Function at 0x40c11c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
lea eax, [ebp - 0x160]
mov edx, dword [0x4060fc]
call fcn.0040497c
xor eax, eax
push ebp
push 0x40c284
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004072d8
cmp dword [ebp - 8], 0
je 0x40c17e
lea eax, [ebp - 8]
mov edx, 0x40c2a0
call fcn.00404434
lea ecx, [ebp - 0x160]
mov edx, 0x27
mov eax, ebx
call fcn.004070f4
test eax, eax
jne 0x40c242
xor eax, eax
push ebp
push 0x40c1e0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 1], 0
je 0x40c1d6
push 0x80
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00404478
mov eax, dword [ebp - 0x164]
call fcn.0040462c
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c1ea
xor eax, eax
push ebp
push 0x40c225
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00404478
mov eax, dword [ebp - 0x168]
call fcn.00407184
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c22f
lea eax, [ebp - 0x160]
call fcn.00407144
test eax, eax
je 0x40c198
lea eax, [ebp - 0x160]
call fcn.00407168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c28b
lea eax, [ebp - 0x168]
mov edx, 2
call fcn.004041ac
lea eax, [ebp - 0x160]
mov edx, dword [0x4060fc]
call fcn.00404a40
lea eax, [ebp - 8]
call fcn.00404188
ret
Function at 0x40c4e4
Capabilities:
Create process on windows
Self delete
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40c4ec
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x40c6cd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
call fcn.00404188
lea edx, [ebp - 0x20]
mov al, 1
call fcn.0040fed4
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
mov ecx, 0x40c6e4
call fcn.00404478
lea eax, [ebp - 0x18]
mov edx, 0x40c6fc
call fcn.00404220
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404220
lea eax, [ebp - 0x10]
call fcn.0040fd50
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0040fd60
cmp byte [ebp - 1], 0
je 0x40c5be
push 0
push 0
xor ecx, ecx
mov edx, 0x40c708
mov eax, dword [ebp - 8]
call fcn.0040b578
lea eax, [ebp - 0x18]
call fcn.00404188
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004073a0
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00404220
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.004073a0
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x10]
call fcn.00404220
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.004073a0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00404220
mov eax, dword [ebp - 8]
call fcn.00407184
push dword [ebp - 0x1c]
push 0x40c718
push 0x40c728
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004044ec
push dword [ebp - 0x1c]
push 0x40c734
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x40c728
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004044ec
push dword [ebp - 0x1c]
push 0x40c744
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 0x40c758
push 0x40c728
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004044ec
test bl, bl
je 0x40c64a
push dword [ebp - 0x1c]
push 0x40c76c
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x40c728
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004044ec
push dword [ebp - 0x1c]
push 0x40c734
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push 0x40c728
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004044ec
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.0040fed4
mov eax, dword [ebp - 0x30]
call fcn.0040462c
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
cmp dword [ebp - 0x1c], 0
je 0x40c69c
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0040b578
cmp dword [ebp - 0x1c], 0
je 0x40c6b2
push 0
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6d4
lea eax, [ebp - 0x30]
mov edx, 0xb
call fcn.004041ac
ret
Function at 0x40c770
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x40c92b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x40c8fe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040468c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00406b88
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 0x40c944
call fcn.00404478
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
add al, 0xbf
sub al, 0x1a
jae 0x40c8f4
mov eax, dword [ebp - 0x10]
call fcn.0040462c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x40c8f4
push 0x40c950
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
call fcn.00404354
push dword [ebp - 0x1c]
push 0x40c960
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004044ec
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0x10]
call fcn.0040462c
mov esi, eax
push esi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x428dcc]
mov edx, 0x40c96c
call fcn.00404848
mov edx, dword [ebp - 0x10]
call fcn.00404848
mov dl, 0x20
call fcn.00402fb0
call fcn.00404d84
call fcn.004030b0
cmp ebx, 0xffffffff
jne 0x40c899
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [0x428dcc]
mov edx, 0x40c980
call fcn.00404848
mov edx, dword [ebp - 0x10]
call fcn.00404848
mov dl, 0x20
call fcn.00402fb0
call fcn.00404d84
call fcn.004030b0
cmp ebx, 0xffffffff
je 0x40c8f4
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
push 0x2d4808
push ebx
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c932
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004041ac
lea eax, [ebp - 4]
call fcn.00404188
ret
Function at 0x40dbdc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
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.0040461c
xor eax, eax
push ebp
push 0x40dc7e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
call fcn.0040fc38
test al, al
je 0x40dc1f
mov cl, byte [ebp - 5]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040d42c
mov esi, eax
jmp 0x40dc2e
mov cl, byte [ebp - 5]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040d144
mov esi, eax
test esi, esi
je 0x40dc68
mov dl, 1
mov eax, dword [0x40d9d0]
call fcn.004037c4
mov ebx, eax
mov eax, ebx
call fcn.0040da28
mov dword [ebx + 0x2ef0], esi
push ebx
push 0x40dba0
call sub.user32.dll_EnumWindows
mov eax, ebx
call fcn.0040db64
mov edi, eax
mov eax, ebx
call fcn.004037f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc85
lea eax, [ebp - 4]
call fcn.00404188
ret

Function at 0x40ddbc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x40de41
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.0040fc38
test al, al
je 0x40ddfa
xor ecx, ecx
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.0040d42c
jmp 0x40de07
xor ecx, ecx
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.0040d144
test eax, eax
je 0x40de2b
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de48
lea eax, [ebp - 4]
call fcn.00404188
ret

Function at 0x40dfa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
mov eax, dword [ebp - 8]
call fcn.0040461c
xor eax, eax
push ebp
push 0x40e012
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
mov eax, dword [ebp - 4]
call fcn.0040462c
push eax
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e019
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041ac
ret
Function at 0x40fdcc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40fe40
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004043dc
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.0040fcac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe47
lea eax, [ebp - 0x10c]
call fcn.00404188
ret

Function at 0x40fe50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40fec4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004043dc
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.0040fcac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fecb
lea eax, [ebp - 0x10c]
call fcn.00404188
ret

Function at 0x40fed4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ff48
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.004043dc
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov edx, ebx
call fcn.0040fcac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ff4f
lea eax, [ebp - 0x10c]
call fcn.00404188
ret
Function at 0x410a64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x410a6d
mov eax, dword [ebp - 4]
add esp, 0xfffff7dc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2828], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040461c
mov eax, dword [ebp - 8]
call fcn.0040461c
mov eax, dword [ebp - 0xc]
call fcn.0040461c
xor eax, eax
push ebp
push 0x410c32
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004041dc
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00410960
mov ebx, 0x20019
cmp byte [ebp + 0xc], 0
je 0x410ae5
or ebx, 0x100
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.0040462c
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x410c0c
xor edx, edx
push ebp
push 0x410c05
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x20], 0x2801
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2821]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040462c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x410bee
cmp dword [ebp - 0x1c], 4
jne 0x410b75
cmp dword [ebp - 0x20], 4
jne 0x410b75
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x2821]
mov ecx, 4
call fcn.00402694
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, esi
call fcn.00406d4c
jmp 0x410bee
cmp dword [ebp - 0x1c], 7
jne 0x410be1
cmp dword [ebp - 0x20], 2
jle 0x410be1
jmp 0x410b86
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0
jle 0x410ba6
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, 0x2800
jbe 0x410b9c
call fcn.00403770
cmp byte [ebp + eax - 0x2821], 0
je 0x410b83
lea edx, [ebp - 0x2821]
mov eax, esi
mov ecx, dword [ebp - 0x20]
call fcn.00404278
push 0
push 0
lea eax, [ebp - 0x2828]
push eax
mov eax, dword [esi]
mov ecx, 0x410c4c
mov edx, 0x410c58
call fcn.0040fae8
mov edx, dword [ebp - 0x2828]
mov eax, esi
call fcn.004041dc
jmp 0x410bee
mov edx, esi
lea eax, [ebp - 0x2821]
call fcn.00407618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410c0c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410c39
lea eax, [ebp - 0x2828]
call fcn.00404188
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret
Function at 0x410d00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x410d09
mov eax, dword [ebp - 4]
add esp, 0xfffff7f8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2808], ebx
mov dword [ebp - 0x280c], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x410df9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x410d9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040462c
push eax
push 0x2801
lea eax, [ebp - 0x2801]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0040462c
push eax
mov eax, edi
call fcn.0040462c
push eax
mov eax, esi
call fcn.0040462c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x2801]
mov eax, dword [ebp + 8]
call fcn.00404278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x410ddb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410e00
lea eax, [ebp - 0x280c]
mov edx, 2
call fcn.004041ac
ret

Function at 0x41104c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4110c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404188
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4110ae
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407618
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00406bc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4110ce
lea eax, [ebp - 0x108]
call fcn.00404188
ret

Function at 0x4110d4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41114f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404188
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x411136
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407618
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00406bc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411156
lea eax, [ebp - 0x108]
call fcn.00404188
ret