joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418264
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00419000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00419000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 8]
call fcn.00419000
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x4182fd
cmp dword [esp + 0x10], 0
je 0x4182fd
push dword [esp + 8]
call fcn.00419240
mov ebx, eax
shl ebx, 1
add ebx, 2
push ebx
mov eax, dword [esp + 0xc]
push eax
push 1
push 0
mov eax, dword [esp + 0x14]
push eax
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegSetValueExW
mov dword [esp + 0xc], eax
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
push dword [esp + 0xc]
call fcn.00418523
mov eax, dword [esp + 0xc]
jmp 0x41830e
push dword [esp + 8]
call fcn.0041b9d0
push dword [esp + 4]
call fcn.0041b9d0
push dword [esp]
call fcn.0041b9d0
add esp, 0x14
pop edi
pop ebx
ret 0x10

Function at 0x418330
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
push ebx
mov edx, 0x1e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x418337
mov edx, dword [esp + 0x84]
lea ecx, [esp]
call fcn.00419000
push dword [esp + 8]
call fcn.0041a12b
push 7
push 0x41e52c
lea eax, [esp + 0x10]
push eax
push 0x20
call fcn.0041a07a
call fcn.00418497
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
and ebx, ebx
jne 0x41838d
xor eax, eax
jmp 0x418473
push 0x41e026
push dword [esp + 0xc]
call fcn.004187a4
push dword [esp + 8]
call fcn.0041a193
push dword [esp + 8]
call fcn.0041a1a8
or eax, eax
je 0x41846b
mov ebp, dword [esp + 0xc]
cmp dword [ebp + 0x10], 0
je 0x418466
lea eax, [esp + 0x10]
push eax
mov ebp, dword [esp + 0x10]
push dword [ebp + 0x10]
call dword [0x41f060]
lea eax, [esp + 0x18]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_DuplicateTokenEx
mov dword [esp + 0x14], eax
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
call sub.USERENV.DLL_CreateEnvironmentBlock
mov dword [esp + 0x14], eax
lea ebp, [esp + 0x20]
mov dword [ebp], 0x44
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x28]
push 0x420
push 0
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x88]
push dword [esp + 0x40]
call sub.ADVAPI32.DLL_CreateProcessAsUserW
mov dword [esp + 0x14], eax
push 0
call sub.KERNEL32.dll_ExitProcess
jmp 0x4183a4
mov eax, dword [esp + 0x14]
jmp 0x418473
push dword [esp]
call fcn.0041b9d0
push dword [esp + 0x64]
call fcn.0041b9d0
push eax
push dword [esp + 0xc]
call fcn.0041a12b
pop eax
add esp, 0x78
pop ebx
pop ebp
ret 4
Function at 0x4185d1
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4185d6
mov eax, dword [esp + 0x28]
mov dword [0x41f130], eax
mov edx, str.SYSTEMCurrentControlSet_servicesDiskenum
lea ecx, [esp]
call fcn.00419008
push dword [0x41f130]
push dword [0x41f130]
push 0x1000
call fcn.004191f0
lea eax, [esp + 8]
push eax
call fcn.0041b910
mov dword [esp + 8], 0x1000
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
mov eax, dword [esp + 0xc]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
and eax, eax
je 0x418647
xor eax, eax
jmp 0x41864c
mov eax, 1
and eax, eax
je 0x418755
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
push 0
push 0
push 0x41e02a
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_RegQueryValueExW
and eax, eax
je 0x41867e
xor eax, eax
jmp 0x418683
mov eax, 1
and eax, eax
je 0x418755
push dword [esp + 4]
call fcn.0041896b
mov dword [esp + 0x10], eax
push dword [0x41f130]
push dword [0x41f130]
push 0xff
call fcn.004191f0
lea eax, [esp + 0x18]
push eax
call fcn.0041b910
mov dword [esp + 0x18], 0xff
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.KERNEL32.dll_GetComputerNameW
push dword [esp + 0x14]
call fcn.0041896b
mov dword [esp + 0x1c], eax
push dword [0x41f130]
push dword [0x41f130]
push 8
push dword [0x41f130]
push dword [0x41f130]
mov eax, dword [esp + 0x24]
cdq
push edx
push eax
call fcn.00419350
mov edx, dword [0x41e568]
add dword [esp], edx
call fcn.004193d0
push dword [0x41f130]
push dword [0x41f130]
push 8
push dword [0x41f130]
push dword [0x41f130]
mov eax, dword [esp + 0x34]
cdq
push edx
push eax
call fcn.00419350
mov edx, dword [0x41e568]
add dword [esp], edx
call fcn.004193d0
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0041b910
mov edx, dword [esp + 0x20]
push dword [0x41f130]
call fcn.0041b8b0
pop eax
add eax, dword [0x41e568]
jmp 0x41877d
push dword [esp + 0x14]
call fcn.0041b9d0
push dword [esp]
call fcn.0041b9d0
push dword [esp + 0x20]
call fcn.0041b9d0
push dword [esp + 4]
call fcn.0041b9d0
add esp, 0x24
ret

Function at 0x418b3b
Capabilities:
Persist via run registry key

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0xc]
lea ecx, [esp]
call fcn.00419000
call sub.SETUPAPI.DLL_IsUserAdmin
and eax, eax
je 0x418b5e
mov dword [esp + 4], 0x80000002
jmp 0x418b66
mov dword [esp + 4], 0x80000001
push dword [esp]
push str.Eset_Update_Service
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push dword [esp + 0x10]
call fcn.00418264
xor eax, eax
push dword [esp]
call fcn.0041b9d0
add esp, 8
ret 4
Function at 0x418b8c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
push ebx
mov edx, 0xd2
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x418b93
mov edx, dword [esp + 0x354]
lea ecx, [esp]
call fcn.00419000
mov edx, dword [esp + 0x360]
lea ecx, [esp + 4]
call fcn.00419000
push dword [esp + 0x358]
pop eax
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
lea eax, [esp + 0x24]
lea eax, [esp + 0x6c]
mov edx, dword [esp]
push dword [0x41f130]
call fcn.0041b8b0
mov edx, 0x41e022
call fcn.0041b8b0
mov edx, dword [esp + 8]
call fcn.0041b8b0
lea eax, [esp + 0x348]
push eax
call fcn.0041b910
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x8000004
push 0
push 0
push 0
mov eax, dword [esp + 0x364]
push eax
push 0
call sub.KERNEL32.dll_CreateProcessW
lea ebp, [esp + 0x6c]
mov dword [ebp], 0x10002
lea eax, [esp + 0x6c]
push eax
lea ebp, [esp + 0x14]
push dword [ebp + 4]
push str.GetThreadContext
push dword [0x41f078]
call fcn.0041a452
mov ebx, dword [esp + 0x358]
mov ebp, dword [esp + 8]
add ebx, dword [ebp + 0x3c]
mov dword [esp + 0x20], ebx
push 0x40
push 0x3000
push dword [esp + 0x364]
push 0
lea ebp, [esp + 0x20]
push dword [ebp]
push str.VirtualAllocEx
push dword [0x41f078]
call fcn.0041a49c
mov dword [esp + 0x68], eax
lea eax, [esp + 0x33c]
push eax
push dword [esp + 0x360]
push dword [esp + 0x360]
push dword [esp + 0x74]
push dword [ebp]
push str.WriteProcessMemory
push dword [0x41f078]
call fcn.0041a49c
push dword [esp + 0x68]
lea ebp, [esp + 0x70]
pop eax
mov dword [ebp + 0xb0], eax
lea eax, [esp + 0x6c]
push eax
lea ebp, [esp + 0x14]
push dword [ebp + 4]
push str.SetThreadContext
push dword [0x41f078]
call fcn.0041a452
push dword [ebp + 4]
push str.ResumeThread
push dword [0x41f078]
call fcn.0041a434
mov eax, dword [ebp]
jmp 0x418d1b
push dword [esp]
call fcn.0041b9d0
push dword [esp + 4]
call fcn.0041b9d0
push dword [esp + 0x344]
call fcn.0041b9d0
add esp, 0x348
pop ebx
pop ebp
ret 0x10
Function at 0x41905e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x419147
mov eax, dword [ebp - 0xc]
dec eax
je 0x41912a
dec eax
jne 0x419147
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x4190bd
cmp byte [ebp - 0x1e], 1
jne 0x4190bd
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x419126
dec eax
je 0x419122
dec eax
je 0x419100
dec eax
jne 0x419147
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x4190f4
dec eax
je 0x4190e8
dec eax
jne 0x419147
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x419147
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x419147
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x419147
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x41911e
dec eax
je 0x41911a
dec eax
jne 0x419147
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x419147
push 0x3c
jmp 0x419146
push 0x32
jmp 0x419146
push 0x14
jmp 0x419146
push 5
jmp 0x419146
cmp dword [ebp - 0x14], 0
je 0x419144
cmp dword [ebp - 0x14], 0xa
je 0x419140
cmp dword [ebp - 0x14], 0x5a
jne 0x419147
push 0x28
jmp 0x419146
push 0x1e
jmp 0x419146
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret

Function at 0x4197fb
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x41984a
push dword [esp + 0x10]
push 0x419779
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x41f0b0]
cmp esi, ebx
je 0x41989e
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x419842
cmp byte [esi + 0x10], bl
je 0x419842
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x41981f
jmp 0x41989e
mov esi, dword [0x41f0b0]
cmp esi, ebx
je 0x41989e
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x419897
cmp byte [esi + 0x11], bl
je 0x419874
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x41988a
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x41f0b0
call fcn.0041b7e9
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x419855
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41a521
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x41a54a
test byte [esp + 8], 2
je 0x41a53e
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41a54c
xor eax, eax
ret 8

Function at 0x41a55d
Capabilities:
Copy file

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x41a57c
cmp dword [esp + 8], eax
je 0x41a57c
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41a57e
xor eax, eax
ret 8

Function at 0x41a591
Capabilities:
Get file attributes

Disassembly:
or eax, 0xffffffff
cmp dword [esp + 4], 0
je 0x41a5a1
jmp dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret 4

Function at 0x41a646
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x41a654
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x41a657
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x41a72c
push edi
push esi
push pe_nt_image_headers32
push 3
push esi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a72b
mov esi, dword [ebp + 0x10]
push esi
call fcn.0041a8f4
push esi
mov word [ebp - 0x20], ax
call fcn.0041a91c
push esi
mov word [ebp - 0x1e], ax
call fcn.0041a93f
push esi
mov word [ebp - 0x1c], ax
call fcn.0041a961
push esi
mov word [ebp - 0x1a], ax
call fcn.0041a983
push esi
mov word [ebp - 0x18], ax
call fcn.0041a9a5
push esi
mov word [ebp - 0x16], ax
call fcn.0041a9c7
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
xor eax, eax
xor edx, edx
xor ecx, ecx
cmp dword [ebp + 0xc], 1
jne 0x41a70a
lea edx, [ebp - 8]
jmp 0x41a718
cmp dword [ebp + 0xc], 2
jne 0x41a715
lea ecx, [ebp - 8]
jmp 0x41a718
lea eax, [ebp - 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x41a9f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x41aa25
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x41ad60
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x41f15c]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.0041b11e
test eax, eax
je 0x41adb2
cmp dword [eax + 4], 0
je 0x41ad98
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.0041ae80
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push 0
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 0xc

Function at 0x41ae20
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x41ae79
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41ae78
mov eax, dword [esp + 0x10]
mov ecx, dword [0x41f15c]
push eax
push ecx
call fcn.0041b11e
test eax, eax
je 0x41ae74
cmp dword [eax + 4], 0
je 0x41ae62
push esi
push edi
push eax
call fcn.0041afa0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x41ae80
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x41aea1
push esi
call fcn.0041a9f0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x41af16
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x41af03
dec ecx
je 0x41aeee
sub ecx, 2
je 0x41aedb
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x41af5f
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x41af82
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x41afa0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x41afd5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x41b04a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x41b037
dec ecx
je 0x41b022
sub ecx, 2
je 0x41b00f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0041a9f0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x41b077
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x47bde0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4f000]
push edi
or ebp, 0xffffffff
jmp 0x47be02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47be09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47bdf8
mov eax, 1
add ebx, ebx
jne 0x47be1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47be10
jne 0x47be2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47be10
xor ecx, ecx
sub eax, 3
jb 0x47be40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47beb2
mov ebp, eax
add ebx, ebx
jne 0x47be4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x47be58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47be7c
inc ecx
add ebx, ebx
jne 0x47be68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47be5d
jne 0x47be79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47be5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47be9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47be8d
jmp 0x47bdfe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47be9c
add edi, ecx
jmp 0x47bdfe
pop esi
mov edi, esi
mov ecx, 0x1554
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47beba
cmp byte [edi], 0x22
jne 0x47beba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x47bebf
lea edi, [esi + 0x71000]
mov eax, dword [edi]
or eax, eax
je 0x47bf2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7bc0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7bcc0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47beec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7bcc4]
or eax, eax
je 0x47bf28
mov dword [ebx], eax
add ebx, 4
jmp 0x47bf09
call dword [esi + 0x7bcc8]
popal
jmp 0x439d1c
Function at 0x402f50
Capabilities:
Query or enumerate registry value

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

Function at 0x403c94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x455048], 0
je 0x403cf5
cmp word [0x45521c], 0xd7b2
jne 0x403cbd
cmp dword [0x455224], 0
jbe 0x403cbd
mov eax, 0x455218
call dword [0x455234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45306c
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 0x403d1c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x453030], 0
jne 0x403d11
push 0
push 0x453064
push 0x45306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405968
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 0x4059ce
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.00404080
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4059b8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059d5
lea eax, [ebp - 0x10]
call fcn.00403e10
ret

Function at 0x40aa2c
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 0x40aa65
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f00
jmp 0x40aa6e
mov eax, ebx
mov edx, esi
call fcn.00403e64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b120
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40af98
mov eax, dword [0x4540a8]
cmp byte [eax], 0
je 0x40b19c
mov eax, dword [0x453ecc]
call fcn.00402980
call fcn.00402824
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.004082a0
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 0x40b1e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b1d2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x453e7c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x455664]
call fcn.00404e7c
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