joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059d8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 4]
push eax
push 0x20028
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405a50
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x405a47
mov eax, dword [ebp - 0xc]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push edi
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
neg esi
push eax
sbb esi, esi
push edi
push dword [ebp - 4]
and esi, 2
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x408942
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea esi, [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x4089ed
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push 0x4089f5
push ebx
push ebx
call fcn.0040bfeb
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x40898a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4089ed
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x20], ax
mov ax, word [ebp + 0x18]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x408a0f
mov dword [ebp - 8], edi
call dword [sym.imp.netcomm.dll_Ordinal_1_1]
cmp eax, ebx
mov dword [edi], eax
je 0x4089e8
xor eax, eax
inc eax
jmp 0x4089ef
call fcn.004048db
xor eax, eax
pop esi
pop ebx
leave
ret 0x1c
Function at 0x4091a1
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4212e0]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov ebx, edx
lea eax, [ebp - 0x80]
mov esi, ecx
push eax
mov ecx, ebx
call fcn.00407db1
test al, al
je 0x4091d9
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 4]
jmp 0x4091db
xor eax, eax
cmp eax, 1
jg 0x4091e4
xor eax, eax
jmp 0x409210
push edi
mov ecx, ebx
call fcn.004050d4
test eax, eax
mov dword [ebp - 0x80], eax
je 0x40920d
lea edi, [ebp - 0x80]
mov ecx, ebx
call fcn.004050f3
mov edi, eax
cmp edi, dword [ebp + 0x94]
jb 0x409229
cmp dword [ebp - 0x80], 0
jne 0x4091f3
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x88]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b0c5
add ebp, 0x8c
leave
ret 4
mov edx, dword [ebx + 0x44]
mov eax, 0x104
lea ecx, [ebp - 0x7c]
call fcn.0040a595
push edi
mov edx, esi
mov ecx, ebx
call fcn.00403255
mov ecx, eax
add eax, 8
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov ecx, esi
call fcn.0040a35d
xor eax, eax
inc eax
jmp 0x40920f

Function at 0x4095ce
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4212e0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
mov dword [ebp - 0x7c], eax
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x9c]
mov dword [esi + 0x18], eax
push 0x104
lea eax, [ebp - 0x78]
push eax
mov ebx, ecx
push 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str..ver
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4096ae
lea ecx, [esi + 0x1c]
lea edx, [ebp - 0x78]
call fcn.00404ca4
test eax, eax
je 0x4096ae
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 4]
mov eax, dword [ebx]
push esi
push 0x1005
mov ecx, ebx
call dword [eax]
mov eax, dword [ebx]
push esi
push 0x1006
mov ecx, ebx
call dword [eax]
mov ebx, dword [ebp - 0x7c]
lea eax, [esi + 4]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
add ebx, 0xc
mov eax, 0x1004
call fcn.00407dde
mov eax, dword [edi]
lea ecx, [esi + 8]
push ecx
mov ecx, edi
call dword [eax + 8]
push esi
call fcn.00409e48
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4096a9
push 0
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
inc eax
jmp 0x4096b0
xor eax, eax
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop ebx
call fcn.0040b0c5
add ebp, 0x90
leave
ret 8
Function at 0x40a268
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x4212e0]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 4
mov eax, 0x41b0ac
call fcn.00417062
push esi
mov edi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push edi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp]
push edi
push eax
xor eax, eax
call fcn.00401158
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x40a2fe
mov eax, dword [0x422674]
mov ecx, 0x422674
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], edi
push esi
push 0x96
lea ecx, [ebp - 0x10]
call fcn.0040a3c6
pop ecx
pop ecx
mov ecx, dword [ebx + 0xc]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x10]
call fcn.004031cf
xor eax, eax
jmp 0x40a31b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.0040b0c5
add ebp, 0x108
leave
ret

Function at 0x40a6d9
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4212e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5c
push esi
call fcn.0040b0b2
test eax, eax
pop ecx
pop ecx
jne 0x40a702
xor eax, eax
jmp 0x40a745
sub eax, esi
cmp eax, 2
jle 0x40a73c
inc eax
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a73c
lea eax, [ebp - 0x108]
push eax
call fcn.0040a6d9
test eax, eax
pop ecx
je 0x40a6fe
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b0c5
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4212e0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x104
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a7a9
lea eax, [ebp - 0x80]
push eax
call fcn.0040a6d9
test eax, eax
pop ecx
jne 0x40a7a9
or eax, 0xffffffff
jmp 0x40a7b9
push 0
push 0x8121
push esi
call fcn.0040c692
add esp, 0xc
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.0040b0c5
add ebp, 0x88
leave
ret
Function at 0x40a7ce
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push dword [esi + 0x14]
call fcn.0040d530
pop ecx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a83f
lea eax, [ebp - 0x10]
push eax
movzx eax, word [esi + 0x1a]
push eax
movzx eax, word [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x40a838
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x40a838
lea eax, [ebp - 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [esi + 0x1c]
and eax, 0x27
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
leave
ret

Function at 0x40a853
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0x15c
mov eax, dword [0x4212e0]
xor eax, ebp
mov dword [ebp + 0xd8], eax
push esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040d9a0
add esp, 0xc
push 0x104
push edi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 0x80
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a8d8
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xd8]
xor ecx, ebp
pop esi
call fcn.0040b0c5
add ebp, 0xdc
leave
ret

Function at 0x40ac03
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4212e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040ab42
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040d9a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40ac52
cmp dword [ebp - 0x1c], 5
jb 0x40ac6a
jmp 0x40ac66
cmp dword [ebp - 0x10], 1
jne 0x40ac6a
cmp dword [ebp - 0x1c], 4
ja 0x40ac66
jne 0x40ac6a
cmp dword [ebp - 0x18], 0
jbe 0x40ac6a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41c34c
call fcn.0040a9f5
test eax, eax
jge 0x40ac8b
mov byte [0x423160], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b0c5
add ebp, 0x78
leave
ret

Function at 0x40b0c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4212e0]
jne 0x40b0cf
repz ret
jmp fcn.0040eecd
Function at 0x411bf5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x421a50]
je 0x411c10
inc edi
cmp edi, 0x17
jb 0x411c01
cmp edi, 0x17
jae 0x411d90
push ebp
push 3
call fcn.00415c23
cmp eax, 1
pop ecx
je 0x411d5c
push 3
call fcn.00415c23
test eax, eax
pop ecx
jne 0x411c44
cmp dword [0x4212d0], 1
je 0x411d5c
cmp ebx, 0xfc
je 0x411d8f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x422bd0
push ebp
call fcn.00415059
add esp, 0xc
test eax, eax
je 0x411c7a
push esi
push esi
push esi
push esi
push esi
call fcn.0040ed72
add esp, 0x14
push 0x104
mov esi, 0x422be9
push esi
push 0
mov byte [0x422ced], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411cbe
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00415059
add esp, 0xc
test eax, eax
je 0x411cbe
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040ed72
add esp, 0x14
push esi
call fcn.00410990
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411d03
push esi
call fcn.00410990
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x422ee4
push 0x41cb1c
sub ecx, eax
push ecx
push eax
call fcn.00414fa6
add esp, 0x14
test eax, eax
je 0x411d03
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040ed72
add esp, 0x14
jmp 0x411d05
xor esi, esi
push 0x41cb18
push ebx
push ebp
call fcn.00414462
add esp, 0xc
test eax, eax
je 0x411d25
push esi
push esi
push esi
push esi
push esi
call fcn.0040ed72
add esp, 0x14
push dword [edi*8 + 0x421a54]
push ebx
push ebp
call fcn.00414462
add esp, 0xc
test eax, eax
je 0x411d47
push esi
push esi
push esi
push esi
push esi
call fcn.0040ed72
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00415a66
add esp, 0xc
jmp 0x411d8f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x411d8f
cmp ebp, 0xffffffff
je 0x411d8f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x421a54]
push dword [esi]
call fcn.00410990
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x415a66
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040e7e9
xor ebx, ebx
cmp dword [0x423080], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x415b3c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415c1c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41dc68
push edi
call esi
cmp eax, ebx
je 0x415c1c
push eax
call fcn.0040e77b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423080], eax
call esi
push eax
call fcn.0040e77b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423084], eax
call esi
push eax
call fcn.0040e77b
mov dword [0x423088], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411982
test eax, eax
pop ecx
pop ecx
je 0x415b0a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ed72
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x415b3c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040e77b
cmp eax, ebx
pop ecx
mov dword [0x423090], eax
je 0x415b3c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040e77b
pop ecx
mov dword [0x42308c], eax
mov eax, dword [0x42308c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x415bc1
cmp dword [0x423090], ecx
je 0x415bc1
push eax
call fcn.0040e7f2
push dword [0x423090]
mov esi, eax
call fcn.0040e7f2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x415bc1
cmp edi, ebx
je 0x415bc1
call esi
cmp eax, ebx
je 0x415b8e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x415b8e
test byte [ebp - 0x18], 1
jne 0x415bc1
lea eax, [ebp - 0x10]
push eax
call fcn.004119b9
test eax, eax
pop ecx
je 0x415ba9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040ed72
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x415bb8
or dword [ebp + 0x10], 0x200000
jmp 0x415bfc
or dword [ebp + 0x10], 0x40000
jmp 0x415bfc
mov eax, dword [0x423084]
cmp eax, dword [ebp - 8]
je 0x415bfc
push eax
call fcn.0040e7f2
cmp eax, ebx
pop ecx
je 0x415bfc
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x415bfc
mov eax, dword [0x423088]
cmp eax, dword [ebp - 8]
je 0x415bfc
push eax
call fcn.0040e7f2
cmp eax, ebx
pop ecx
je 0x415bfc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423080]
call fcn.0040e7f2
cmp eax, ebx
pop ecx
je 0x415c1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415c1e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7ba6b4
Capabilities:
Encode data using xor

Disassembly:
iretd
jle 0x7ba682
das
cmp al, 0xf1
pop eax
inc edx
cmp eax, 0x8eba62e
jmp 0x7ba6be
add al, ah
add eax, dword [eax]
add byte [eax], al
add byte [eax], al
jmp 0x7ba6be
pushal
call 0x7ba6c4
pop ebp
sub ebp, 0x10
sub ebp, 0x3ba6b4
jmp 0x7ba6da
mov eax, 0x3ba6b4
add eax, ebp
add eax, 0x4c
mov ecx, 0x60e
push cs
push es
add byte [eax], al
mov edx, 0x9bffbd69
xor byte [eax], dl
inc eax
dec ecx
jne 0x7ba6f1
jmp 0x7ba704
loop 0x7ba6aa
loop 0x7ba6e8
push ebp
imul ebp, dword [ecx + 0x69], 0x6991a8e8
imul ebp, dword [ecx + 0x6a], 0x696dd1a4
imul ebp, dword [ecx - 0x2d], 0x69696941
call 0x69e538b9
imul ebp, dword [edx - 0x5c], 0x69696dd1
imul edx, ebx, 0x69696941
sahf
mov ebp, dword [edx - 0x5f]
loop 0x7ba70c
imul ebp, dword gs:[ecx + 0x69], 0x3939ac6a
add dword [ecx + 0x1696712], edi
lea eax, [ebx + 0x44]
imul ebp, dword [eax + 0x45], 0x54eb014d
inc edi
iretd
Function at 0x402f08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fa0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f80
xor eax, eax
push ebp
push 0x402f79
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 0x402fbc
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 0x402f80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40384c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x4038ad
cmp word [0x40a218], 0xd7b2
jne 0x403875
cmp dword [0x40a220], 0
jbe 0x403875
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
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 0x4038d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x4038c9
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4041dc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40440c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40425f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40440c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40425f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404428
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4042e8
xor eax, eax
push ebp
push 0x4042e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404024
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4042c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404448
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4042c6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404402
cmp byte [ebp - 0xd], 0
jne 0x40432f
cmp byte [ebp - 0x12], 0
je 0x404402
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404348
dec ebx
cmp byte [ebx], 0x2e
je 0x404357
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404347
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404402
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404394
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404402
cmp byte [ebp - 0xd], 0
je 0x404402
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404402
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret