joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4176f0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4177ba
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x4177c4]
fnstsw ax
sahf
je 0x41775b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
call sym.WeiXun.exe__Auutils_DateTimeToFileTime_qqr16System_TDateTime
fld qword [ebp + 8]
fcomp dword [0x4177c4]
fnstsw ax
sahf
je 0x417777
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
call sym.WeiXun.exe__Auutils_DateTimeToFileTime_qqr16System_TDateTime
fld qword [ebp + 0x10]
fcomp dword [0x4177c4]
fnstsw ax
sahf
je 0x417793
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
call sym.WeiXun.exe__Auutils_DateTimeToFileTime_qqr16System_TDateTime
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x417808
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x41786f
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call sym.WeiXun.exe__Auutils_Int2x32ToInt64_qqrxuixui
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41787c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
cmp dword [ebp + 8], 0
je 0x417931
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x417931
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x417931
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_FreeResource
cmp dword [ebp - 0x1c], 0
je 0x417931
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x417931
xor eax, eax
push ebp
push 0x417927
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
call fcn.0043bcbc
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417931
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417ab4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
test byte [ebp - 5], 1
je 0x417acf
add dword [ebp - 0xc], 0x20
test byte [ebp - 5], 2
je 0x417ad9
add dword [ebp - 0xc], 2
test byte [ebp - 5], 4
je 0x417ae2
inc dword [ebp - 0xc]
test byte [ebp - 5], 8
je 0x417aec
add dword [ebp - 0xc], 4
test byte [ebp - 5], 0x10
je 0x417af9
add dword [ebp - 0xc], 0x100
test byte [ebp - 5], 0x20
je 0x417b06
add dword [ebp - 0xc], 0x1000
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret
Function at 0x417b28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dl, byte [0x417c14]
mov byte [eax], dl
mov eax, dword [ebp - 4]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x417c08
mov eax, dword [ebp - 0x10]
and eax, 0x20
cmp eax, 0x20
jne 0x417b75
mov eax, dword [ebp - 8]
mov al, byte [eax]
or al, byte [0x417c18]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
and eax, 2
cmp eax, 2
jne 0x417b90
mov eax, dword [ebp - 8]
mov al, byte [eax]
or al, byte [0x417c1c]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
and eax, 1
dec eax
jne 0x417ba9
mov eax, dword [ebp - 8]
mov al, byte [eax]
or al, byte [0x417c20]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
and eax, 4
cmp eax, 4
jne 0x417bc4
mov eax, dword [ebp - 8]
mov al, byte [eax]
or al, byte [0x417c24]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
and eax, 0x100
cmp eax, 0x100
jne 0x417be3
mov eax, dword [ebp - 8]
mov al, byte [eax]
or al, byte [0x417c28]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
and eax, 0x1000
cmp eax, 0x1000
jne 0x417c02
mov eax, dword [ebp - 8]
mov al, byte [eax]
or al, byte [0x417c2c]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov byte [ebp - 9], 1
jmp 0x417c0c
mov byte [ebp - 9], 0
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x418148
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x418269
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x418247
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x418219
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.WeiXun.exe__Auutils_TauStringList_GetName_qqri
cmp dword [ebp - 0x18], 0
je 0x418216
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4181c9
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.WeiXun.exe__Auutils_TauStringList_GetName_qqri
mov eax, dword [ebp - 0x1c]
call fcn.00458668
add eax, 2
push eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.WeiXun.exe__Auutils_TauStringList_GetName_qqri
lea eax, [ebp - 0x20]
mov edx, 0x41827c
call fcn.00458670
mov eax, dword [ebp - 0x20]
call fcn.00458860
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0xc]
jg 0x41818c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41824e
cmp dword [ebp - 0x14], 0xffffffff
je 0x418246
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
Function at 0x418280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4183a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41837f
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x418351
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.WeiXun.exe__Auutils_TauStringList_GetValue_qqri
cmp dword [ebp - 0x18], 0
je 0x41834e
cmp dword [ebp - 0x14], 0xffffffff
jne 0x418301
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.WeiXun.exe__Auutils_TauStringList_GetValue_qqri
mov eax, dword [ebp - 0x1c]
call fcn.00458668
add eax, 2
push eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.WeiXun.exe__Auutils_TauStringList_GetValue_qqri
lea eax, [ebp - 0x20]
mov edx, 0x4183b4
call fcn.00458670
mov eax, dword [ebp - 0x20]
call fcn.00458860
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_WriteFile
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0xc]
jg 0x4182c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418386
cmp dword [ebp - 0x14], 0xffffffff
je 0x41837e
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
Function at 0x42a56c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x4e1bd8
call fcn.004bc450
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.004bbb18
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x42a5e1
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x42a5e1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004bbb38
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x42a5e1
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x42a5fe
cmp dword [ebp - 0x34], 0
je 0x42a5fe
mov edx, dword [ebp - 0x34]
jmp 0x42a603
mov edx, 0x4e184c
lea eax, [ebp - 4]
call fcn.004d9310
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.004bbb28
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004d9514
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d94e4
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x42a681
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4318f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 1]
call fcn.0043194c
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43191a
lea eax, [ebp - 1]
xor edx, edx
call fcn.00431980
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x431930
lea eax, [ebp - 1]
mov dl, 2
call fcn.00431980
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x431946
lea eax, [ebp - 1]
mov dl, 1
call fcn.00431980
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x431f7c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x4e8964]
mov eax, dword [eax]
call fcn.00490e08
push 0
mov edx, dword [0x4e8964]
mov ecx, dword [edx]
push dword [ecx + 0x30]
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp - 4]
cmp word [eax + 0x24a], 0
je 0x431fc4
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
call dword [ebx + 0x248]
pop ebx
pop ecx
pop ebp
ret

Function at 0x431fc8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [0x4e8964]
mov eax, dword [eax]
call fcn.00490eb8
push 9
mov edx, dword [0x4e8964]
mov ecx, dword [edx]
push dword [ecx + 0x30]
call sub.USER32.DLL_ShowWindow
mov eax, dword [0x4e8964]
mov edx, dword [eax]
push dword [edx + 0x30]
call sub.USER32.DLL_SetForegroundWindow
mov ecx, dword [ebp - 4]
cmp word [ecx + 0x252], 0
je 0x43201f
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x254]
call dword [ebx + 0x250]
pop ebx
pop ecx
pop ebp
ret

Function at 0x44242c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4e8ed8
cmp dword [edi], 0
jne 0x4424a8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4e8ed4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e3200
mov ecx, 2
call fcn.00456858
mov edx, 0x442404
lea eax, [esi + 5]
call fcn.00442424
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00442424
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x44247d
mov dword [0x4e8ed4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x443864
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00456f1c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4e8770]
cmp byte [edx + 0xc], 0
je 0x4438c8
mov edx, dword [0x4e8764]
cmp dword [edx], 2
jne 0x4438c8
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x4438cc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x443984
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00443864
test al, al
je 0x443966
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004584a0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x443966
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00458860
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00458860
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004585a0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x44391f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44398b
lea eax, [ebp - 0x2c]
call fcn.004583b0
lea eax, [ebp - 0xc]
call fcn.004583b0
ret

Function at 0x443a84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00458860
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x443adc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e8730]
mov dl, 1
mov eax, dword [0x44350c]
call fcn.00449ec8
call fcn.00457e2c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00443614
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x444418
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4340b4]
call fcn.00458e08
xor eax, eax
push ebp
push 0x44455c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e3248], 0
jne 0x44446b
mov ecx, dword [0x4e8760]
mov dl, 1
mov eax, dword [0x4454d0]
call fcn.00449e8c
call fcn.00457e2c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00456f1c
mov eax, ebx
call fcn.00458c58
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x44456c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0045a2c0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00458c68
test eax, eax
jle 0x444503
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x4444fc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00458630
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00458618
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004463f8
test eax, eax
jne 0x4444fc
mov ebx, 0x15
jmp 0x444508
mov ebx, 0x10
jmp 0x444508
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4e3248]
call fcn.00444370
mov eax, dword [ebp - 8]
call fcn.00444370
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0045a2d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444563
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004583d4
lea eax, [ebp - 0x10]
mov edx, dword [0x4340b4]
call fcn.00458ed8
ret

Function at 0x449618
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x449651
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004584a0
jmp 0x44965a
mov eax, ebx
mov edx, esi
call fcn.00458404
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x449664
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
test eax, eax
jle 0x449685
mov al, byte [esp]
jmp 0x449687
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x449d0c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x449b84
mov eax, dword [0x4e8934]
cmp byte [eax], 0
je 0x449d79
mov eax, dword [0x4e893c]
call fcn.00456d60
call fcn.0045674c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00446f14
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x449dc0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x449daf
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4e87e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e8ba4]
call fcn.00459cbc
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x44ac4c
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 0x44acb0
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00458618
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00446794
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44acb7
lea eax, [ebp - 0xc]
call fcn.004583b0
ret

Function at 0x4567c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4567fd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x45681d
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00458618
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x456984
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004583b0
test esi, esi
jne 0x4569ba
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004584a0
jmp 0x4569d8
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00456898
mov edi, eax
test esi, esi
je 0x4569d8
cmp dword [ebx], 0
je 0x4569d8
dec esi
jmp 0x4569c1
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x4574d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e3774]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x457568
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x457548
xor eax, eax
push ebp
push 0x457541
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x457584
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457548
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4e3774]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e3774], ax
mov esp, ebp
pop ebp
ret

Function at 0x458190
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e9218], 0
je 0x4581f1
cmp word [0x4e93ec], 0xd7b2
jne 0x4581b9
cmp dword [0x4e93f4], 0
jbe 0x4581b9
mov eax, 0x4e93e8
call dword [0x4e9404]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x458218
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4e3784], 0
jne 0x45820d
push 0
push 0x4e37dc
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x458364
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00456570
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e9219], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x45832c
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc