joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fc8
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 0x4041f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40404b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4041f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40404b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404214
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4040d4
xor eax, eax
push ebp
push 0x4040cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403e10
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 0x4040b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404234
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4040b2
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 0x4040d4
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 0x4041ee
cmp byte [ebp - 0xd], 0
jne 0x40411b
cmp byte [ebp - 0x12], 0
je 0x4041ee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404134
dec ebx
cmp byte [ebx], 0x2e
je 0x404143
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404133
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4041ee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404180
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 0x4041ee
cmp byte [ebp - 0xd], 0
je 0x4041ee
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 0x4041ee
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
Function at 0x404384
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 0x4043ea
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.00403988
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402874
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4043d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4043f1
lea eax, [ebp - 0x10]
call fcn.00403740
ret

Function at 0x4061fc
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 0x406235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403830
jmp 0x40623e
mov eax, ebx
mov edx, esi
call fcn.00403794
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4073cc
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 0x407430
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.00403988
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405590
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407437
lea eax, [ebp - 0xc]
call fcn.00403740
ret
Function at 0x401f57
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor eax, eax
push eax
push 0x8000000
push 3
push eax
push 1
push 0x80000000
push dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x401fab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40217f
and esi, 0xffff
or esi, 0x80070000
jmp 0x40217f
mov esi, dword [0x408178]
mov eax, 0x4400
mov dword [ebp - 4], eax
test esi, esi
jne 0x402166
mov ecx, 0x10000
cmp eax, 0xfffffff
jae 0x402143
push ecx
push 0x418180
push 0x408180
call sub.MSVCR100.dll_memcpy
mov esi, dword [ebp - 4]
add esp, 0xc
push 0
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402123
cmp eax, esi
jne 0x40213d
push 0
lea eax, [ebp + 8]
push eax
push 0x10000
push 0x418180
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402123
cmp dword [ebp + 8], 0
je 0x40213d
lea eax, [esi - 0x4400]
neg eax
sbb eax, eax
and eax, 0x10000
push eax
push 0x408180
push dword [ebp + 8]
push 0x418180
call sub.SCNPST32.dll_RCVR_CountBlocks32_16
add ebx, eax
lea eax, [esi - 0x4400]
neg eax
sbb eax, eax
and eax, 0x10000
push eax
push 0x408180
push dword [ebp + 8]
push 0x418180
call sub.SCNPST64.dll_RCVR_CountBlocks64_16
add edi, eax
lea eax, [esi - 0x4400]
neg eax
sbb eax, eax
and eax, 0x10000
push eax
push 0x408180
push dword [ebp + 8]
push 0x418180
call sub.SCNPST64C.dll_RCVR_CountBlocks64new_16
mov edx, dword [ebp - 8]
add edx, eax
mov dword [ebp - 8], edx
cmp edx, edi
jbe 0x4020c1
test edi, edi
je 0x4020af
mov ecx, edi
jmp 0x4020b2
xor ecx, ecx
inc ecx
mov eax, edx
xor edx, edx
div ecx
cmp eax, 0x32
jb 0x402101
push 3
jmp 0x4020dd
cmp edi, ebx
jbe 0x4020e6
test ebx, ebx
je 0x4020cd
mov ecx, ebx
jmp 0x4020d0
xor ecx, ecx
inc ecx
xor edx, edx
mov eax, edi
div ecx
cmp eax, 0x64
jb 0x402101
push 2
pop esi
mov dword [0x408178], esi
jmp 0x402107
test edi, edi
je 0x4020ee
mov ecx, edi
jmp 0x4020f1
xor ecx, ecx
inc ecx
xor edx, edx
mov eax, ebx
div ecx
cmp eax, 0x64
jb 0x402101
xor esi, esi
inc esi
jmp 0x4020de
mov esi, dword [0x408178]
mov ecx, 0x10000
cmp dword [ebp + 8], ecx
jb 0x402143
mov eax, dword [ebp - 4]
add eax, ecx
mov dword [ebp - 4], eax
test esi, esi
je 0x401fc6
jmp 0x402143
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x402176
and esi, 0xffff
or esi, 0x80070000
jmp 0x402176
mov esi, dword [0x408178]
test esi, esi
jne 0x402166
test ebx, ebx
jne 0x40214f
test edi, edi
je 0x402166
cmp dword [ebp - 8], edi
jbe 0x402159
push 3
pop esi
jmp 0x402160
cmp edi, ebx
sbb esi, esi
add esi, 2
mov dword [0x408178], esi
neg esi
sbb esi, esi
and esi, 0x7ffbf6fd
add esi, 0x80040903
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40222a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x401680]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x428228
push 0xc
call sub.OLMAPI32.dll_Ordinal_259
test eax, eax
jns 0x402255
xor eax, eax
jmp 0x40237c
push esi
push dword [0x40810c]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push dword [0x408108]
call esi
cmp dword [ebp + 0xc], 0
jne 0x402326
test eax, eax
jne 0x402326
xor esi, esi
push esi
push 1
push dword [0x408104]
call fcn.0040583b
test eax, eax
je 0x402379
call fcn.004028a1
push 0x401494
push edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], 0x402ae9
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
mov dword [ebp - 0x44], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 5
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x408108]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x38], esi
call fcn.0040238b
test ax, ax
je 0x402379
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x428d50
call fcn.0040480b
push dword [ebp + 0x14]
push esi
push edi
call fcn.004028dc
cmp dword [0x428220], esi
je 0x402321
call fcn.004021af
xor eax, eax
inc eax
jmp 0x40237b
push 0x80
mov edi, 0x428240
push edi
push 0x80f2
push dword [0x428228]
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
push 0
call esi
mov esi, eax
test esi, esi
je 0x402379
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x30], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x402379
cmp dword [ebp - 0x28], 2
jne 0x402379
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00405004
leave
ret 0x10

Function at 0x40427a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x401680]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push 0x401540
push 0x80000001
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40432d
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x401598
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404321
mov eax, dword [ebp - 0x218]
shr eax, 1
lea eax, [eax*2 + 2]
cmp eax, 0x20a
jae 0x40431c
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x210]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor eax, eax
inc eax
jmp 0x40432f
call fcn.004053d1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405004
leave
ret 8
Function at 0x40433e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x401540
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404375
push 0x401598
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x404377
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x401680]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x428238], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
je 0x4044c8
push 8
push dword [0x42821c]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x4043c9
cmp dword [eax + 8], 0
je 0x4043c9
push dword [eax + 8]
push 0x428230
push esi
call dword [sym.imp.USER32.dll_FillRect]
push ebx
push 0x3f2
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x34]
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x20
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
push 0
push 0x31
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x428238]
mov esi, dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
cmp eax, dword [ebp - 0x34]
jl 0x40447e
push 2
call edi
push eax
push ebx
call esi
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [0x428238]
mov dword [ebp - 0x3c], eax
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push 6
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [0x428238]
cmp eax, dword [ebp - 0x2c]
jge 0x4044c7
push 0xf
call edi
push eax
push ebx
call esi
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [0x428238]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push 6
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405004
leave
ret 8
Function at 0x40497f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x401680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, 0x4014a8
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4080fc]
and dword [ebp - 0xa0], 0
mov ebx, dword [ebp + 8]
movsb byte es:[edi], byte [esi]
push 0xe
pop ecx
mov esi, 0x4014ec
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x401524
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0xffffffff
jne 0x404af4
push 4
pop esi
lea eax, [ebp - 0x94]
push eax
push 1
push 0
lea eax, [ebp - 0x8c]
push eax
push 0x80000001
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x9c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x404a5e
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404a51
cmp dword [ebp - 0x90], esi
jne 0x404a51
mov eax, dword [ebp - 0x98]
mov esi, dword [ebp - 0xa0]
mov dword [ebx], eax
jmp 0x404a54
xor esi, esi
inc esi
push dword [ebp - 0x94]
call edi
jmp 0x404a61
xor esi, esi
inc esi
test esi, esi
je 0x404aeb
push 4
pop esi
lea eax, [ebp - 0x94]
push eax
push 1
push 0
lea eax, [ebp - 0x48]
push eax
push 0x80000001
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x9c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404ae3
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404ad1
cmp dword [ebp - 0x90], esi
jne 0x404ad1
mov eax, dword [ebp - 0x98]
jmp 0x404ad7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push dword [ebp - 0x94]
mov dword [ebx], eax
call edi
jmp 0x404aeb
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebx], eax
mov eax, dword [ebx]
mov dword [0x4080fc], eax
jmp 0x404af6
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00405004
leave
ret 4
Function at 0x404f46
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x401680], eax
je 0x404f68
cmp dword [0x401680], ebx
jne 0x405001
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x401680
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x401680], esi
test esi, esi
jne 0x404fd7
mov dword [0x401680], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x401680
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x401680]
not eax
mov dword [0x408110], eax
pop esi
pop ebx
leave
ret

Function at 0x405004
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401680]
jne fcn.004053d1
ret

Function at 0x4053d1
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4290a0], eax
mov dword [0x42909c], ecx
mov dword [0x429098], edx
mov dword [0x429094], ebx
mov dword [0x429090], esi
mov dword [0x42908c], edi
mov word [0x4290b8], ss
mov word [0x4290ac], cs
mov word [0x429088], ds
mov word [0x429084], es
mov word [0x429080], fs
mov word [0x42907c], gs
pushfd
pop dword [0x4290b0]
mov eax, dword [ebp]
mov dword [0x4290a4], eax
mov eax, dword [ebp + 4]
mov dword [0x4290a8], eax
lea eax, [ebp + 8]
mov dword [0x4290b4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x428ff0], 0x10001
mov eax, dword [0x4290a8]
mov dword [0x428fa4], eax
mov dword [0x428f98], 0xc0000409
mov dword [0x428f9c], 1
mov eax, dword [0x401680]
mov dword [ebp - 0x328], eax
mov eax, dword [0x408110]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x428fe8], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x401684
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x428fe8], 0
jne 0x4054bd
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x405961
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x401680]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push 0x40174c
push 0x4016f8
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4059f3
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x4059f3
shr ecx, 1
cmp word [ebp + ecx*2 - 0x210], 0x5c
push 0xffffffffffffffff
sete al
lea eax, [eax*2 + 0x4017e0]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.00405a78
jmp 0x4059f5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00405004
leave
ret 4

Function at 0x405a04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x401680]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push 0x40176c
push 0x401690
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x405a67
cmp dword [ebp - 0x210], 4
jb 0x405a67
lea eax, [ebp - 0x20c]
push eax
call fcn.00405a78
jmp 0x405a69
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00405004
leave
ret 4
Function at 0x450860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x44000]
push edi
or ebp, 0xffffffff
jmp 0x450882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x450889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x450878
mov eax, 1
add ebx, ebx
jne 0x45089b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4508ac
jne 0x4508cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4508cb
dec eax
add ebx, ebx
jne 0x4508b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x450890
add ebx, ebx
jne 0x4508c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45091d
xor ecx, ecx
sub eax, 3
jb 0x4508e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x450952
sar eax, 1
mov ebp, eax
jmp 0x4508ee
add ebx, ebx
jne 0x4508ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4508bc
inc ecx
add ebx, ebx
jne 0x4508fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4508bc
add ebx, ebx
jne 0x450909
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4508fe
jne 0x45091a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4508fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45093c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45092e
jmp 0x45087e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45093c
add edi, ecx
jmp 0x45087e
pop esi
mov edi, esi
mov ecx, 0xb8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45095a
cmp byte [edi], 4
jne 0x45095a
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 al, bl
loop 0x45095f
lea edi, [esi + 0x4e000]
mov eax, dword [edi]
or eax, eax
je 0x4509d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x59858]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x59894]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45098c
mov ecx, edi
jns 0x4509bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x59898]
or eax, eax
je 0x4509d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4509a9
call dword [esi + 0x598a8]
mov ebp, dword [esi + 0x5989c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x450a0b
sub esp, 0xffffff80
jmp 0x401fe4