joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042a0
Capabilities:
Get common file path
Get disk information
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [str.mNF:]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x48d58c]
push esi
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404290
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x48d590]
mov edx, dword [0x48d594]
add edi, 0x23f
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea esp, [esp]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x494d1c]
shl esi, 4
add esi, dword [ebp - 0x18]
cmp eax, 0xfa9
jne 0x40432c
mov dword [0x494d18], 0xedeb2e40
jmp 0x404347
cmp eax, 0x3eb
jne 0x404347
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4947a8], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x494d1c], 0x9e6
mov dword [0x494d14], 0xf4ea3dee
jne 0x404380
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x494d1c], 0x213
jne 0x40440e
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [ebp - 0x4c0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
lea ecx, [ebp - 0x8c0]
push ecx
push 0
push 0x403f68
push 0x403fb8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x494d1c], 0xc
jne 0x404422
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404300
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404470
Capabilities:
Clear file content
Connect pipe
Get thread local storage value
Read pipe
Set file attributes
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040a880
mov eax, dword [0x494d1c]
mov ecx, dword [0x4947ac]
shr eax, 3
test eax, eax
jbe 0x404562
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x494d1c], 0x959
jne 0x404548
push 0
push 0
push 0
call edi
push 0
lea eax, [ebp - 0x808]
push eax
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x1008]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 4]
push edx
call fcn.004042a0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4044b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407740
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48c668]
jne 0x40774a
repz ret
jmp fcn.0040c7de

Function at 0x40c405
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408a3b
and dword [ebp - 4], 0
cmp dword [0x492798], 0
mov ebx, eax
jne 0x40c4b6
push 0x401d44
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c567
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d38
push edi
call esi
test eax, eax
je 0x40c567
push eax
call fcn.004089c9
mov dword [esp], 0x401d28
push edi
mov dword [0x492798], eax
call esi
push eax
call fcn.004089c9
mov dword [esp], 0x401d14
push edi
mov dword [0x49279c], eax
call esi
push eax
call fcn.004089c9
mov dword [esp], 0x401cf8
push edi
mov dword [0x4927a0], eax
call esi
push eax
call fcn.004089c9
pop ecx
mov dword [0x4927a8], eax
test eax, eax
je 0x40c4b6
push 0x401ce0
push edi
call esi
push eax
call fcn.004089c9
pop ecx
mov dword [0x4927a4], eax
mov eax, dword [0x4927a4]
cmp eax, ebx
je 0x40c50e
cmp dword [0x4927a8], ebx
je 0x40c50e
push eax
call fcn.00408a44
push dword [0x4927a8]
mov esi, eax
call fcn.00408a44
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c50e
test edi, edi
je 0x40c50e
call esi
test eax, eax
je 0x40c505
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c505
test byte [ebp - 0xc], 1
jne 0x40c50e
or dword [ebp + 0x10], 0x200000
jmp 0x40c547
mov eax, dword [0x49279c]
cmp eax, ebx
je 0x40c547
push eax
call fcn.00408a44
pop ecx
test eax, eax
je 0x40c547
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c547
mov eax, dword [0x4927a0]
cmp eax, ebx
je 0x40c547
push eax
call fcn.00408a44
pop ecx
test eax, eax
je 0x40c547
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x492798]
call fcn.00408a44
pop ecx
test eax, eax
je 0x40c567
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c569
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c610
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc eax
mov cl, bl
cmp esi, eax
jbe 0x40c62d
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x40c625
cmp cl, byte [edx]
jne 0x40c668
push esi
push edx
push 0xffffffffffffffff
call fcn.00405dbe
not eax
mov ecx, ebx
cmp dword [ecx + 0x43e044], eax
jne 0x40c64e
cmp dword [ecx + 0x43e040], esi
je 0x40c659
add ecx, 0xc
inc ebx
cmp ecx, 0x48
jb 0x40c63e
jmp 0x40c668
imul eax, ebx, 0xc
mov ecx, dword [eax + 0x43e048]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
pop esi
pop ebx
ret 0xc

Function at 0x40e295
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + 0x43e098]
mov byte [eax + 0x445080], cl
inc ecx
cmp ecx, 0x100
jl 0x40e29e
mov al, byte [ebp + 0x43e098]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x445d81], al
mov byte [ebp*4 + 0x445d80], al
mov byte [ebp*4 + 0x445983], al
mov byte [ebp*4 + 0x445980], al
mov byte [ebp*4 + 0x445583], al
mov byte [ebp*4 + 0x445582], al
mov byte [ebp*4 + 0x445182], al
mov byte [ebp*4 + 0x445181], al
call fcn.0040eae4
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x445d83], al
mov byte [ebp*4 + 0x445982], al
mov byte [ebp*4 + 0x445581], al
mov byte [ebp*4 + 0x445180], al
call fcn.0040eae4
mov bl, byte [ebp + 0x445080]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x445d82], al
mov byte [ebp*4 + 0x445981], al
mov byte [ebp*4 + 0x445580], al
mov byte [ebp*4 + 0x445183], al
call fcn.0040eae4
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x446d82], al
mov byte [ebp*4 + 0x446981], al
mov byte [ebp*4 + 0x446580], al
mov byte [ebp*4 + 0x446183], al
mov byte [edi*4 + 0x447d82], al
mov byte [edi*4 + 0x447981], al
mov byte [edi*4 + 0x447580], al
mov byte [edi*4 + 0x447183], al
call fcn.0040eae4
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x446d80], al
mov byte [ebp*4 + 0x446983], al
mov byte [ebp*4 + 0x446582], al
mov byte [ebp*4 + 0x446181], al
mov byte [edi*4 + 0x447d80], al
mov byte [edi*4 + 0x447983], al
mov byte [edi*4 + 0x447582], al
mov byte [edi*4 + 0x447181], al
call fcn.0040eae4
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x446d81], al
mov byte [ebp*4 + 0x446980], al
mov byte [ebp*4 + 0x446583], al
mov byte [ebp*4 + 0x446182], al
mov byte [edi*4 + 0x447d81], al
mov byte [edi*4 + 0x447980], al
mov byte [edi*4 + 0x447583], al
mov byte [edi*4 + 0x447182], al
call fcn.0040eae4
mov byte [ebp*4 + 0x446d83], al
mov byte [ebp*4 + 0x446982], al
mov byte [ebp*4 + 0x446581], al
mov byte [ebp*4 + 0x446180], al
inc ebp
mov byte [edi*4 + 0x447d83], al
mov byte [edi*4 + 0x447982], al
mov byte [edi*4 + 0x447581], al
mov byte [edi*4 + 0x447180], al
cmp ebp, 0x100
jl 0x40e2b4
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40ebc2
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x1c]
push edi
push 0x20
push dword [esp + 0x48]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x24], esi
call fcn.0041fc00
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x40ec42
cmp ebx, dword [ebp + 4]
jg 0x40eda6
cmp edi, esi
jge 0x40ec2f
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x40ec2b
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x40ec0b
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x40ec35
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x40ebf6
cmp ebx, dword [ebp + 4]
jg 0x40eda6
mov edi, 0x43e198
movzx eax, byte [esp + esi*4 + 0x1d]
mov cl, byte [esp + 0x20]
xor cl, byte [eax + 0x43e098]
mov byte [esp + 0x20], cl
movzx eax, byte [esp + esi*4 + 0x1e]
mov al, byte [eax + 0x43e098]
xor byte [esp + 0x21], al
movzx eax, byte [esp + esi*4 + 0x1f]
mov al, byte [eax + 0x43e098]
xor byte [esp + 0x22], al
movzx eax, byte [esp + esi*4 + 0x1c]
mov al, byte [eax + 0x43e098]
xor byte [esp + 0x23], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x20], al
mov dword [esp + 0x1c], edi
cmp esi, 8
je 0x40ecd3
cmp esi, 1
jle 0x40ecc7
lea eax, [esi - 1]
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], eax
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x40ecb5
sub dword [esp + 0x14], 1
jne 0x40ecb2
xor edi, edi
test esi, esi
jle 0x40ed99
jmp 0x40ed51
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 3
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x40ece2
sub dword [esp + 0x14], 1
jne 0x40ecdf
movzx eax, byte [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 3
mov al, byte [eax + 0x43e098]
xor byte [esp + 0x30], al
movzx eax, byte [esp + 0x2d]
mov al, byte [eax + 0x43e098]
xor byte [esp + 0x31], al
movzx eax, byte [esp + 0x2e]
mov al, byte [eax + 0x43e098]
xor byte [esp + 0x32], al
movzx eax, byte [esp + 0x2f]
mov al, byte [eax + 0x43e098]
xor byte [esp + 0x33], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x40ed3f
sub dword [esp + 0x14], 1
jne 0x40ed3c
cmp ebx, dword [ebp + 4]
jg 0x40ed9c
cmp edi, esi
jge 0x40ed86
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x40ed82
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x40ed62
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x40ed8c
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x40ed51
cmp ebx, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
jle 0x40ec50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
Function at 0x403f8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b504c], 0
je 0x403fed
cmp word [0x4b5220], 0xd7b2
jne 0x403fb5
cmp dword [0x4b5228], 0
jbe 0x403fb5
mov eax, 0x4b521c
call dword [0x4b5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b306c
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 0x404014
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b3030], 0
jne 0x404009
push 0
push 0x4b3064
push 0x4b306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404160
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.00402748
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404128
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40ce1c
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 0x40ce55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040429c
jmp 0x40ce5e
mov eax, ebx
mov edx, esi
call fcn.00404200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d510
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d388
mov eax, dword [0x4b4988]
cmp byte [eax], 0
je 0x40d58c
mov eax, dword [0x4b46b0]
call fcn.00402b98
call fcn.004028b0
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.00409bcc
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 0x40d5d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d5c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b4644]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b5668]
call fcn.004059d4
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 0x40de70
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 0x40df46
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404244
lea eax, [ebp - 8]
call fcn.004046e8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404698
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40df30
mov eax, ebx
call fcn.00402748
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40df29
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.00404698
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40df13
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40df58
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40df13
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 0x40df30
mov eax, dword [ebp - 0x10]
call fcn.00402768
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df4d
lea eax, [ebp - 8]
call fcn.004041ac
ret

Function at 0x40e51c
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 0x40e580
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.0040442c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409548
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e587
lea eax, [ebp - 0xc]
call fcn.004041ac
ret

Function at 0x423584
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.004233dc
dec esi
jne 0x4235a6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4246e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b588c
cmp dword [edi], 0
jne 0x424764
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b5888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b3524
mov ecx, 2
call fcn.00402944
mov edx, 0x4246c0
lea eax, [esi + 5]
call fcn.004246e0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004246e0
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 0x424739
mov dword [0x4b5888], 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 0x425d28
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x425d2e
ret

Function at 0x42838c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4283dd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4283c4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4283b4
jmp 0x4283dd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4283c5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438ab0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x438c19
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404244
mov eax, dword [ebp - 0x10]
call fcn.00438818
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x438b02
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404738
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00438f68
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x438bd7
xor eax, eax
push ebp
push 0x438bd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00438988
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00438c48
test al, al
je 0x438bae
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0040429c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x438bae
mov eax, dword [ebp - 0x34]
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 - 0x14]
call fcn.00404698
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x438ba8
mov eax, dword [ebp - 0x14]
call fcn.00404698
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004043b4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00438ab0
dec ebx
cmp ebx, 0xffffffff
jne 0x438b61
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438bd7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00438988
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404698
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00438974
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438c20
lea eax, [ebp - 0x3c]
call fcn.004041ac
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004041d0
ret