joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ef00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46ef08
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46f0d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0046b920
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0044dde0
mov edx, dword [ebx]
call fcn.0044d38c
lea eax, [ebp - 8]
call fcn.0046b954
mov ecx, dword [ebp - 8]
lea eax, [ebx + 4]
mov edx, esi
call fcn.0046f450
lea eax, [ebp - 0xc]
call fcn.0046b99c
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.0046f450
lea eax, [ebp - 0x10]
call fcn.0046b9dc
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + 0x14]
mov edx, esi
call fcn.0046f450
lea eax, [ebp - 0x14]
call fcn.0046ba28
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0044dde0
mov edx, dword [ebx + 0x1c]
call fcn.0044d38c
lea eax, [ebp - 0x18]
call fcn.0046ba64
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.0044dde0
mov edx, dword [ebx + 0x20]
call fcn.0044d38c
lea eax, [ebp - 0x1c]
call fcn.0046babc
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0044dde0
movzx edx, byte [ebx + 0x24]
call fcn.0044d324
lea eax, [ebp - 0x20]
call fcn.0046bb10
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.0044dde0
mov edx, dword [ebx + 0x28]
call fcn.0044d38c
lea eax, [ebp - 0x24]
call fcn.0046bb8c
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.0044dde0
mov edx, dword [ebx + 0x2c]
call fcn.0044d38c
lea eax, [ebp - 0x28]
call fcn.0046bc14
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.0044dde0
call fcn.0044cf00
mov edi, eax
lea eax, [ebp - 0x2c]
call fcn.0046bc6c
mov edx, dword [ebp - 0x2c]
mov eax, edi
call fcn.0044dde0
mov edx, dword [ebx + 0x30]
call fcn.0044d344
lea eax, [ebp - 0x30]
call fcn.0046bcac
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.0044dde0
mov edx, dword [ebx + 0x34]
call fcn.0044d344
lea eax, [ebp - 0x34]
call fcn.0046bce8
mov edx, dword [ebp - 0x34]
mov eax, edi
call fcn.0044dde0
mov edx, dword [ebx + 0x38]
call fcn.0044d344
lea eax, [ebp - 0x38]
call fcn.0046bd30
mov edx, dword [ebp - 0x38]
mov eax, edi
call fcn.0044dde0
mov edx, dword [ebx + 0x3c]
call fcn.0044d344
lea eax, [ebp - 0x3c]
call fcn.0046bd7c
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.0044dde0
mov edx, dword [ebx + 0x40]
call fcn.0044d344
lea eax, [ebp - 0x40]
call fcn.0046bdc8
mov edx, dword [ebp - 0x40]
mov eax, esi
call fcn.0044dde0
call fcn.0044cf00
mov edx, eax
lea eax, [ebx + 0x44]
call fcn.0046dfc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f0dd
lea eax, [ebp - 0x40]
mov edx, 0x10
call fcn.0040711c
ret
Function at 0x485ca0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff998
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040710c
xor eax, eax
push ebp
push 0x485e32
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x210]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
lea esi, [ebp + eax*2 - 0x210]
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x485cff
mov eax, ebx
sub eax, 0xa
cmp word [eax], 2
je 0x485cff
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406474
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00407a8c
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x485d26
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x485d26
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406474
test eax, eax
je 0x485d2f
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
add ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.00404350
lea eax, [ebp - 0x460]
xor ecx, ecx
mov edx, 0x250
call fcn.0040483c
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x485e12
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x210]
mov ecx, 0x104
call fcn.0040730c
push esi
mov esi, 0x485e40
lea edi, [ebp - 0x668]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x434]
lea edx, [ebp - 0x668]
mov ecx, 0x104
call fcn.004047e8
jbe 0x485dc1
lea edx, [ebp - 0x668]
lea eax, [ebp - 0x434]
mov ecx, 0x104
call fcn.00404350
lea eax, [ebp - 0x460]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x485d93
push ebx
call sub.kernel32.dll_FindClose_1
lea eax, [ebp - 0x210]
add eax, 0x208
sub eax, esi
sar eax, 1
jns 0x485dec
adc eax, 0
mov ecx, eax
add ecx, ecx
mov edx, esi
lea eax, [ebp - 0x668]
call fcn.00404350
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x210]
mov ecx, 0x104
call fcn.0040730c
jmp 0x485e1c
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407124
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485e39
lea eax, [ebp - 4]
call fcn.00407114
ret
Function at 0x498680
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4988d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4b3858
mov eax, 0x4b3854
call fcn.00497210
mov eax, 0x3c2
call fcn.00497250
mov edi, eax
mov eax, 0x1f0
call fcn.00497264
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], 0x8000
lea eax, [ebp - 0x14]
call fcn.0041b064
mov edx, dword [0x497004]
xor eax, eax
call fcn.004631c8
mov dword [esi], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov ebx, eax
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.0040483c
mov dword [ebp - 0x24], 1
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x18]
push eax
call sub.gdiplus.dll_GdiplusStartup
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00448d28
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00464530
mov ecx, dword [ebp - 0xc]
mov edx, edi
call fcn.00466570
call fcn.00466a60
mov dword [ebx + 0xbc], eax
mov eax, dword [ebx + 0xbc]
call fcn.004668e4
mov edx, 0x4988f0
call fcn.00463824
mov eax, dword [ebx + 0xbc]
call fcn.004668e4
mov dl, 5
call fcn.00463814
mov eax, 0x10
call fcn.004972c0
push eax
mov eax, dword [ebx + 0xbc]
call fcn.004668e4
mov edx, 4
pop ecx
call fcn.004637e0
mov eax, dword [ebx + 0xbc]
xor edx, edx
call fcn.00466bf0
mov eax, dword [ebx + 0xbc]
xor edx, edx
call fcn.00466b14
mov eax, dword [0x4ad834]
mov edx, dword [ebx + 0xbc]
mov dword [eax], edx
mov edx, dword [esi]
mov eax, dword [ebx + 0xbc]
call fcn.004632a0
mov eax, ebx
push eax
push 0x49cad8
mov eax, dword [ebx + 0xbc]
call fcn.00466888
mov eax, ebx
push eax
push 0x49c7c0
mov eax, dword [ebx + 0xbc]
call fcn.00466d70
mov eax, ebx
push eax
push 0x49c1cc
mov eax, dword [ebx + 0xbc]
call fcn.00467be4
mov eax, ebx
push eax
push 0x49a75c
mov eax, dword [ebx + 0xbc]
call fcn.00465868
mov eax, dword [ebx + 0xbc]
mov edx, 0xd3d3d3
call fcn.004663dc
mov edi, dword [ebx + 0xbc]
mov byte [edi + 0xb0], 1
push ebp
mov eax, edi
call fcn.004973a4
pop ecx
mov dword [ebx + 0x24], eax
push ebp
mov eax, dword [ebx + 0xbc]
call fcn.00497840
pop ecx
mov edi, eax
mov dword [ebx + 0x28], edi
push ebp
mov eax, edi
call fcn.00497a38
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x2c], eax
push ebp
mov eax, dword [ebx + 0x28]
call fcn.00497cd4
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x30], eax
mov eax, dword [ebx + 0x30]
xor edx, edx
call fcn.00465eec
push ebp
mov eax, dword [ebx + 0x28]
call fcn.00498414
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x34], eax
mov eax, dword [ebx + 0x34]
xor edx, edx
call fcn.00465eec
push 0
push 0xffffffffffffffff
mov ecx, dword [ebx + 0xbc]
mov edx, dword [0x497018]
xor eax, eax
call fcn.00498aac
mov edx, dword [ebx + 0xbc]
mov dword [edx + 0xee], eax
mov eax, ebx
call fcn.0049a494
mov dword [ebx + 0x80], 5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4988da
lea eax, [ebp - 0x28]
call fcn.00407114
ret
Function at 0x49a888
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49a90b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x104
push 0
lea eax, [ebp - 0x10]
mov ecx, 0x49a924
mov edx, ebx
call fcn.004075e0
mov eax, dword [ebp - 0x10]
call fcn.004071b0
push eax
call sub.kernel32.dll_GetVolumeInformationW
push esi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x49a934
call fcn.0041156c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a912
lea eax, [ebp - 0x10]
call fcn.00407114
ret
Function at 0x49f70c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x49f721
add esp, 0xfffffff0
call fcn.0040551c
mov dword [ebp - 4], ecx
mov byte [ebp - 5], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040710c
xor eax, eax
push ebp
push 0x49f7a5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_GetModuleHandleW_2
mov esi, eax
push 0
mov eax, dword [ebp - 4]
call fcn.004071b0
push eax
mov eax, dword [ebp + 8]
push eax
push esi
call sub.kernel32.dll_FindResourceExW_1
mov edi, eax
mov dword [ebx + 0xc], edi
test edi, edi
je 0x49f78f
push edi
push esi
call sub.kernel32.dll_LoadResource
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0x10], 0
je 0x49f78f
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0xc]
push eax
push esi
call sub.kernel32.dll_SizeofResource
mov dword [ebx + 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f7ac
lea eax, [ebp - 4]
call fcn.00407114
ret
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 0x406f14
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 0x406f2d
test al, 0x10
jne 0x406f31
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409178
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 0x4091b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404278
jmp 0x4091ba
mov eax, ebx
mov edx, esi
call fcn.004041dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4091c4
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 0x4091e5
mov al, byte [esp]
jmp 0x4091e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40986c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4096e4
mov eax, dword [0x427e8c]
cmp byte [eax], 0
je 0x4098e8
mov eax, dword [0x427db8]
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.004074f8
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 0x409930
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40991e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x427d90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x428660]
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 0x40a5a4
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 0x40a608
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.00406d5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a60f
lea eax, [ebp - 0xc]
call fcn.00404188
ret

Function at 0x40b21c
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 0x40b28e
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 0x40b295
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041ac
ret

Function at 0x40ce64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ced8
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov edx, ebx
call fcn.0040cd44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cedf
lea eax, [ebp - 0x104]
call fcn.00404188
ret

Function at 0x40cee8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cf5c
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov edx, ebx
call fcn.0040cd44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf63
lea eax, [ebp - 0x104]
call fcn.00404188
ret
Function at 0x40cf6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cfe0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov edx, ebx
call fcn.0040cd44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfe7
lea eax, [ebp - 0x104]
call fcn.00404188
ret

Function at 0x40db44
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 0x40db4d
mov eax, dword [ebp - 4]
add esp, 0xfffff7dc
push ebx
xor ebx, ebx
mov dword [ebp - 0x2828], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, 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 0x40dd00
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.004041dc
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040da48
lea eax, [ebp - 0x10]
push eax
push 0x20019
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 0x40dcda
xor edx, edx
push ebp
push 0x40dcd3
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 0x40dcbc
cmp dword [ebp - 0x1c], 4
jne 0x40dc47
cmp dword [ebp - 0x20], 4
jne 0x40dc47
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, ebx
call fcn.00406d34
jmp 0x40dcbc
cmp dword [ebp - 0x1c], 7
jne 0x40dcaf
cmp dword [ebp - 0x20], 2
jle 0x40dcaf
jmp 0x40dc58
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0
jle 0x40dc78
mov eax, dword [ebp - 0x20]
dec eax
cmp eax, 0x2800
jbe 0x40dc6e
call fcn.00403770
cmp byte [ebp + eax - 0x2821], 0
je 0x40dc55
lea edx, [ebp - 0x2821]
mov eax, ebx
mov ecx, dword [ebp - 0x20]
call fcn.00404278
lea eax, [ebp - 0x2828]
push eax
mov eax, dword [ebx]
mov ecx, 0x40dd18
mov edx, 0x40dd24
call fcn.0040cbcc
mov edx, dword [ebp - 0x2828]
mov eax, ebx
call fcn.004041dc
jmp 0x40dcbc
mov edx, ebx
lea eax, [ebp - 0x2821]
call fcn.00407600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dcda
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 0x40dd07
lea eax, [ebp - 0x2828]
call fcn.00404188
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041ac
ret
Function at 0x40ddcc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40ddd5
mov eax, dword [ebp - 4]
add esp, 0xfffff800
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
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
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40e04c
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 0x40e0c7
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 0x40e0ae
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407600
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00406bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0ce
lea eax, [ebp - 0x108]
call fcn.00404188
ret

Function at 0x40e0d4
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 0x40e14f
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 0x40e136
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00407600
mov eax, dword [ebp - 0x108]
mov edx, ebx
call fcn.00406bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e156
lea eax, [ebp - 0x108]
call fcn.00404188
ret
Function at 0x40e344
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40e440
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.0040462c
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040462c
mov edi, eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
mov edx, dword [ebp - 8]
inc edx
mov eax, ebx
call fcn.004047b8
mov eax, dword [ebp - 4]
call fcn.00406b50
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40e423
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.0040462c
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x40e406
mov eax, dword [ebx]
call fcn.0040462c
lea edx, [ebp - 0x14]
call fcn.00407600
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004041dc
jmp 0x40e40d
mov eax, ebx
call fcn.00404188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e42a
mov eax, dword [ebp - 0xc]
call fcn.00402570
ret

Function at 0x40e49c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffc00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00404188
test ebx, ebx
je 0x40e4d5
push 0x400
lea eax, [esp + 4]
push eax
test ebx, ebx
jns 0x40e4c6
call fcn.00403770
push ebx
call sub.user32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.00407600
add esp, 0x400
pop esi
pop ebx
ret

Function at 0x412e98
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