joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a510
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41b1d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov esi, ecx
test ebx, ebx
je 0x40eea3
test esi, esi
je 0x40eead
lea eax, [ebp - 0x20]
mov dword [ebx], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push esi
push 0
call dword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x40eee0
xor ecx, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov edx, 2
mov edi, dword [0x40186c]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov ecx, edi
call dword [0x41c398]
call edi
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40a633
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x40a62a
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push 0
call dword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
test eax, eax
je 0x40eeb7
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 2
mov esi, dword [0x401870]
mov ecx, esi
push edi
call dword [0x41c398]
call esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x40a5fd
mov eax, 0x8007000e
jmp 0x40a618
mov eax, 0x80004003
jmp 0x40a618
mov eax, 0x80070057
jmp 0x40a618
call fcn.0040b54a
push dword [ebx]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov dword [ebx], 0
jmp 0x40a5fd
mov ecx, eax
call fcn.00410dc8
jmp 0x40a618

Function at 0x40bc30
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 2
push eax
push 9
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0xa
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
leave
ret
Function at 0x40c400
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x41a330
call fcn.0040cc28
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x41b588
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40c228
cmp eax, esi
jne 0x40c21b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40c22b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x40c1ff
xor esi, esi
inc esi
cmp dword [0x41b58c], esi
jne 0x40c23d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40c277
cmp dword [0x41b58c], ebx
jne 0x40c271
mov dword [0x41b58c], esi
push 0x403748
push 0x40373c
call fcn.0040c35c
pop ecx
pop ecx
test eax, eax
je 0x40c277
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40c34c
mov dword [0x41b21c], esi
cmp dword [0x41b58c], esi
jne 0x40c29a
push 0x403738
push 0x403704
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x41b58c], 2
test edi, edi
jne 0x40c2a7
xor eax, eax
mov ecx, 0x41b588
xchg dword [ecx], eax
cmp dword [0x41b598], 0
je 0x40c2d3
push 0x41b598
call fcn.0040ca80
pop ecx
test eax, eax
je 0x40c2d3
push ebx
push 2
push ebx
mov esi, dword [0x41b598]
mov ecx, esi
call dword [0x41c398]
call esi
push dword [0x41b228]
push dword [0x41b224]
push dword [0x41b220]
call fcn.00409c00
add esp, 0xc
mov dword [0x41b218], eax
cmp dword [0x41b230], 0
jne 0x40c331
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x41b21c], 0
jne 0x40c345
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x41b218]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0040cb75
jmp 0x40c1e3

Function at 0x40c964
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41a370
call fcn.0040cc28
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c9c4
cmp eax, 0xffffffff
je 0x40c9c4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40c9bd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40c9bd
cmp edx, 0x10000000
jae 0x40c9bd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40c9ba
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ca30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40ca6e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40ca66
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40ca70
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40ca56
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40cb40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40cb71
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40cb71
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40cb71
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x411c66
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x28]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov word [ebx], ax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov byte [eax], 0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x411cdb
sub eax, 1
je 0x411cd2
sub eax, 1
je 0x411cac
sub eax, 1
jne 0x411ce5
push edi
call fcn.0040bdf0
jmp 0x411ce2
test edi, edi
js 0x411cc9
mov edi, 0x8007029c
push edi
push 2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413633
mov ecx, edi
call fcn.004128c8
jmp 0x411ce2
mov ecx, edi
call fcn.004128db
jmp 0x411ce2
mov ecx, edi
call fcn.004128b5
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x38]
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
lock xadd dword [0x41b620], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x411d0d
xor ecx, ecx
cmp word [eax], cx
jne 0x411d0f
xor eax, eax
mov dword [esi + 0xc], eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x2c]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4c], eax
xor eax, eax
push 6
pop ecx
mov dword [esi + 0x28], edx
rep stosd dword es:[edi], eax
mov edi, dword [0x41b708]
test edi, edi
je 0x411d68
mov ecx, edi
call dword [0x41c398]
call edi
mov edi, dword [0x41b5a8]
mov dword [esi + 0x44], eax
test edi, edi
je 0x411d88
push 0x400
push dword [ebp + 0x30]
mov ecx, edi
push esi
call dword [0x41c398]
call edi
mov edi, dword [0x41b79c]
test edi, edi
je 0x411d9d
push esi
mov ecx, edi
call dword [0x41c398]
call edi
mov edi, dword [0x41b7a4]
test edi, edi
je 0x411db2
push esi
mov ecx, edi
call dword [0x41c398]
call edi
xor eax, eax
cmp dword [esi + 4], eax
jl 0x411dcb
cmp dword [ebp + 0x18], 3
je 0x411dc4
call fcn.0041542b
mov dword [esi + 4], 0x8000ffff
call fcn.00411b93
mov edi, dword [0x41b788]
test al, al
jne 0x411df7
test edi, edi
je 0x411e30
cmp byte [0x41b794], al
jne 0x411e30
xor eax, eax
mov ecx, edi
push eax
push eax
push esi
call dword [0x41c398]
call edi
jmp 0x411e30
test edi, edi
je 0x411e15
cmp byte [0x41b794], 0
jne 0x411e15
push 0x800
push ebx
push esi
mov ecx, edi
call dword [0x41c398]
call edi
xor eax, eax
cmp word [ebx], ax
jne 0x411e29
push esi
mov edx, 0x800
mov ecx, ebx
call fcn.00411479
push ebx
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp byte [0x41b78c], 0
je 0x411e4d
mov esi, dword [0x41b700]
test esi, esi
je 0x411e4d
mov ecx, esi
call dword [0x41c398]
call esi
pop edi
pop esi
pop ebx
leave
ret 0x34
Function at 0x412b0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x40d838
call fcn.0040c8ad
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x412b70
call fcn.0040b54a
mov esi, eax
jmp 0x412c88
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x412b8f
call fcn.0040b54a
jmp 0x412c7f
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x412b85
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x412bdb
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x412bd1
lea ecx, [ebp - 0x418]
call fcn.0041133c
mov esi, 0x8007000e
jmp 0x412ca1
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.0040f563
cmp eax, 0x400
jbe 0x412c02
push eax
lea ecx, [ebp - 0x418]
call fcn.00410c53
mov eax, dword [ebp - 0x418]
jmp 0x412c0e
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x412c38
test eax, eax
jne 0x412c43
mov esi, 0x8007000e
jmp 0x412c81
push ebx
push eax
push ebx
push dword [ebp - 0x424]
push esi
push 3
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x412b85
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.004129b8
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x412ca1
lea ecx, [ebp - 0x418]
call fcn.0041133c
lea ecx, [ebp - 0x428]
call fcn.0040f8c5
mov eax, esi
call fcn.0040c7ff
ret 0x10
Function at 0x4140b5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0x4140d2
mov ecx, 0x80004005
call fcn.00410dd8
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x4140e3
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4140db
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x414168
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
jne 0x414183
mov ecx, 0x80004005
call fcn.00410dd8
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41418a
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x414be1
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41b1d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x218], eax
push ecx
lea ecx, [ebp - 0x20c]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.004149e8
push 0x40554c
lea ecx, [ebp - 0x20c]
call fcn.00414983
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
jne 0x414c65
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x414cad
mov ecx, dword [ebp + 4]
mov edx, 0xc0
push 0x404758
call fcn.00413cc0
mov edi, eax
jmp 0x414c93
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov ecx, esi
call fcn.004119e0
mov ebx, eax
test ebx, ebx
jns 0x414c9b
mov ecx, dword [ebp + 4]
mov edx, 0xc6
push ebx
push 0x404758
call fcn.00413cd9
mov edi, ebx
mov esi, dword [ebp - 0x210]
jmp 0x414cad
mov ecx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x214]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x414cca
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x414cca
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x8f0
call fcn.00415431
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c440
leave
ret 8
Function at 0x416caf
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x224
mov eax, 0x40d99b
call fcn.0040c8ad
mov ebx, ecx
mov edi, dword [ebp + 0xc]
push 0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [ebx + 0x9c]
test eax, eax
jne 0x416ce2
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x416e61
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x228], 0x208
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push 0
push 0x405be8
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
mov eax, 0xea
test esi, esi
je 0x416d1e
cmp esi, eax
jne 0x416d39
cmp dword [ebp - 0x22c], 1
je 0x416d3c
cmp dword [ebp - 0x22c], 7
je 0x416d3c
cmp dword [ebp - 0x22c], 2
je 0x416d3c
push esi
jmp 0x416cd7
and dword [ebp - 4], 0
cmp dword [ebp - 0x22c], 2
jne 0x416dbf
cmp esi, eax
jne 0x416d64
push 0xce
push 0x404830
mov edx, 0x2e7
mov ecx, dword [ebp + 4]
call fcn.00416fce
mov ebx, 0x104
mov ecx, edi
push ebx
call fcn.00416bfd
push ebx
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x228], eax
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x416dae
add eax, eax
mov dword [ebp - 0x228], eax
test esi, esi
je 0x416e27
push esi
push 0x404830
mov edx, 0x301
jmp 0x416d5c
push 0xce
push 0x404830
mov edx, 0x2ed
jmp 0x416d5c
cmp esi, eax
mov ecx, edi
mov eax, dword [ebp - 0x228]
jne 0x416df9
shr eax, 1
push eax
call fcn.00416bfd
lea ecx, [ebp - 0x228]
push ecx
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push 0x405be8
push dword [ebx + 0x9c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
jmp 0x416d99
shr eax, 1
push eax
call fcn.00416bfd
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x224]
push ecx
mov ecx, eax
call fcn.0041495a
mov ecx, dword [ebp + 4]
test eax, eax
jns 0x416d99
push eax
push ecx
call fcn.00417096
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov eax, dword [ebp - 0x228]
shr eax, 1
mov dword [ebp - 0x228], eax
je 0x416e41
dec eax
push eax
jmp 0x416e43
push 0
call fcn.00416fe9
xor eax, eax
inc eax
jmp 0x416e63
xor eax, eax
call fcn.0040c7ff
ret 8
Function at 0x417d93
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x41b1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi], 2
jne 0x417f3d
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x417f3d
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x170]
push 0x405cc0
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x15c], eax
call fcn.00417cfe
test al, al
je 0x417e2a
mov eax, dword [ebp - 0x170]
cmp eax, dword [esi]
jne 0x417e2a
mov eax, dword [ebp - 0x16c]
cmp eax, dword [esi + 4]
jne 0x417e2a
mov eax, dword [ebp - 0x168]
cmp eax, dword [esi + 8]
jne 0x417e2a
mov eax, dword [ebp - 0x160]
cmp eax, dword [esi + 0x10]
je 0x417f3d
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x405d48
push 0x10
push eax
call fcn.0040b190
add esp, 0x10
test eax, eax
js 0x417f3d
push dword [esi + 0x10]
lea eax, [ebp - 0x44]
push 0x405d50
push 0x10
push eax
call fcn.0040b190
add esp, 0x10
test eax, eax
js 0x417f3d
push edi
push 0x2710
push dword [esi + 8]
push dword [esi + 4]
call fcn.0040d020
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x14c], edx
push eax
call dword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
test eax, eax
je 0x417f3d
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x180]
push eax
push edi
call dword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x417f3d
push 0x80
lea eax, [ebp - 0x148]
push eax
push edi
lea eax, [ebp - 0x168]
push eax
push edi
push 0x800
call dword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
test eax, eax
jle 0x417f3d
lea eax, [ebp - 0x24]
mov dword [ebp - 0x158], 0x4054e4
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x148]
push 0x4047ac
push edi
mov dword [ebp - 0x14c], eax
call dword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x417f3d
push edi
lea eax, [ebp - 0x158]
push eax
push edi
push 4
push edi
push 0x800003f7
push 1
push 2
push esi
call dword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
push esi
call dword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c440
leave
ret
Function at 0x417f4b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41b1d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x28]
xor ebx, ebx
push dword [esi + 0x14]
push 0x405cb4
push 0x10
push eax
call fcn.0040b190
add esp, 0x10
test eax, eax
js 0x417fb9
lea eax, [ebp - 0x2c]
mov edx, 0x405d60
push eax
push 2
push ecx
mov ecx, 0x80000002
call fcn.00418470
test eax, eax
jne 0x417fb9
push 0x14
push esi
push 3
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x417fb0
mov bl, 1
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c440
leave
ret 4

Function at 0x418537
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x41b1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
mov esi, 0xc04
push eax
push 8
push 0x404
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x418585
push 3
lea eax, [ebp - 0x44]
push 0x4061fc
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffff800
add esi, eax
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.0040c440
leave
ret

Function at 0x418595
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41b1d4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x41b820]
jne 0x418631
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 6
push eax
push 1
xor edi, edi
push edi
push 0x406210
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x418630
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x4062c8
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x418630
push 3
push dword [edi*8 + 0x401af0]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x418622
inc edi
cmp edi, 0x1c
jb 0x418600
jmp 0x418630
mov ax, word [edi*8 + 0x401af4]
mov word [0x41b820], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x41b820]
xor ecx, ebp
call fcn.0040c440
leave
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x673f4ae2
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x66ba143c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x5e7370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5e738e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x610074
push ecx
mov edi, eax
call fcn.005fb198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5e73cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005fb02e
push esi
call fcn.005fafb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret