joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52f6ab
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0052f627
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x52f81a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x52f81a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x52f7cf
jg 0x52f707
test eax, eax
je 0x52f7c5
push 1
push 0x1000
call fcn.0052cb22
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x52f72a
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x52f7bc
push 0x8000
push ebx
call fcn.0052914c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x52f753
jg 0x52f74e
cmp ecx, 0x1000
jb 0x52f753
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0052baa3
add esp, 0x10
cmp eax, 0xffffffff
je 0x52f798
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x52f74e
jl 0x52f77f
test ecx, ecx
jne 0x52f740
push dword [ebp - 0xc]
push ebx
call fcn.0052914c
push esi
call fcn.0052c2c2
add esp, 0xc
xor ebx, ebx
jmp 0x52f828
cmp byte [edi + 0x24], 0
je 0x52f7af
cmp dword [edi + 0x20], 5
jne 0x52f7af
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x52f7ba
mov ebx, dword [edi + 0x18]
jmp 0x52f7bc
xor ebx, ebx
push esi
call fcn.0052c2c2
pop ecx
jmp 0x52f828
test ecx, ecx
jg 0x52f791
jl 0x52f7cf
test eax, eax
jae 0x52f791
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00520adf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x52f7ef
cmp byte [edi + 0x1c], 0
je 0x52f791
jmp 0x52f820
push ebx
call fcn.0052f5bd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x52f791
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x52f828
cmp byte [edi + 0x1c], 0
je 0x52f825
mov ebx, dword [edi + 0x18]
jmp 0x52f828
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00520adf
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x533403
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5bf364]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x53344e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0053359e
test al, al
jne 0x533448
sub edx, 2
cmp edx, edi
jne 0x53342e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x533470
lea eax, [edi + 2]
cmp edx, eax
je 0x533470
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0053334f
add esp, 0x10
jmp 0x53356a
push esi
lea ecx, [ebp - 0x255]
call fcn.0053359e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5334b3
push dword [ebp - 0x25c]
jmp 0x533460
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5334f0
cmp word [ebp - 0x226], 0
je 0x533511
cmp word [ebp - 0x226], ax
jne 0x5334f0
cmp word [ebp - 0x224], 0
je 0x533511
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0053334f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x53355d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5334ca
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x533545
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x53356a
push 0x53317f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00521660
add esp, 0x10
jmp 0x53353a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ec8c
leave
ret
Function at 0x533e67
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x533f04
push ebx
push esi
call fcn.00533e30
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005311c3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x533eb1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x533f03
push edi
push eax
call fcn.0052d519
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x533ed1
call fcn.0052c2c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x533f02
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005311c3
add esp, 0x20
test eax, eax
jne 0x533ef0
push edi
call fcn.0052c2c2
jmp 0x533ef8
push ebx
call fcn.0052c2c2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x533f07
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x533f18
pop esi
ret
push ebx
push edi
push esi
call fcn.00533e30
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0052d519
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x533f40
push ebx
push esi
push edi
call fcn.00510fc0
add esp, 0xc
push 0
call fcn.0052c2c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x53469d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005341b8

Function at 0x536742
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0052c82a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5367b1
cmp esi, dword [ebp - 4]
je 0x5367ac
cmp dword [ebp + 0xc], 0
je 0x5367ac
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x536789
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00536294
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5367b3
xor eax, eax
inc eax
jmp 0x5367b3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x536818
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5bf364]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0052c82a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0052c82a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x53688f
cmp word [ecx], dx
je 0x53688f
mov eax, dword [0x5780dc]
push edi
dec eax
push eax
push 0x577fc8
call fcn.005367b7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x536902
cmp word [eax], dx
je 0x536902
mov eax, dword [edi]
test eax, eax
je 0x5368b3
cmp word [eax], dx
je 0x5368b3
lea eax, [ebp - 0x10]
push eax
call fcn.0053619a
jmp 0x5368bc
lea eax, [ebp - 0x10]
push eax
call fcn.00536235
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x53692c
mov eax, dword [0x577fc4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x577cb8
call fcn.005367b7
add esp, 0xc
test al, al
je 0x53692c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5368f7
cmp word [eax], di
je 0x5368f7
lea eax, [ebp - 0x10]
push eax
call fcn.0053619a
pop ecx
jmp 0x53692e
lea eax, [ebp - 0x10]
push eax
call fcn.00536235
jmp 0x5368f4
mov eax, dword [edi]
test eax, eax
je 0x536919
cmp word [eax], dx
je 0x536919
lea eax, [ebp - 0x10]
push eax
call fcn.0053614f
pop ecx
jmp 0x53692c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5369f7
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0053663c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5369f7
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5369f7
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5369f7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x536984
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0052d235
test ebx, ebx
je 0x5369f2
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0052d235
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5369f7
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5369f7
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00521fb0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5369f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ec8c
leave
ret
Function at 0x53bc70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x53bc7c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0053bc90
Function at 0x1001ad3
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
push 0x1001460
call fcn.010028f5
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
mov ebx, 0x1001450
je 0x1001b02
push ebx
push edi
call esi
push edi
call fcn.010029ef
push 0x10013e8
call fcn.010028f5
mov edi, eax
test edi, edi
je 0x1001b1c
push ebx
push edi
call esi
push edi
call fcn.010029ef
push 0x1001370
call fcn.010028f5
mov edi, eax
test edi, edi
mov ebx, 0x100134c
je 0x1001b43
push 0x100132c
push edi
call esi
push ebx
push edi
call esi
push edi
call fcn.010029ef
mov esi, 0x10012b0
push esi
call fcn.010028f5
mov edi, eax
test edi, edi
je 0x1001b66
push 0x10012a0
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
call fcn.010029ef
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [0x1001050]
push 4
push 0
lea eax, [esp + 0x18]
push eax
call dword [0x100104c]
push esi
call fcn.010028f5
mov ebp, eax
test ebp, ebp
je 0x1001c06
push 0x1001370
call fcn.010028f5
mov esi, eax
test esi, esi
je 0x1001c00
push 0x100132c
push ebp
push esi
call fcn.01001a80
cmp word [0x10064e0], 0
je 0x1001bda
mov edi, 0x1006440
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1001be2
push ebx
push ebp
push esi
call fcn.01001a80
push 0x1001280
push ebp
push esi
call fcn.01001a80
push 0x100125c
push ebp
push esi
call fcn.01001a80
push esi
call fcn.010029ef
push ebp
call fcn.010029ef
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x100232a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], esi
call dword [0x1001024]
mov ebx, dword [ebp + 8]
mov dword [0x10064c4], ebx
call dword [fcn.01001074]
push 0x7f00
push esi
mov dword [0x1006420], eax
call dword [0x1001138]
push eax
call dword [0x100113c]
push esi
push 1
push ebx
mov dword [ebp - 0xc], eax
call fcn.01003109
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x80
call dword [0x1001070]
test eax, eax
jne 0x10023c2
lea eax, [ebp - 0x270]
push 0x10015d8
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0x10015a0
lea eax, [ebp - 0x270]
push eax
push esi
call fcn.01002f20
push esi
push esi
push esi
push 0x1001590
push eax
push esi
mov dword [ebp + 8], eax
call fcn.01002aa2
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [0x100106c]
test eax, eax
je 0x100241d
push dword [ebp - 0x20]
call dword [fcn.01001068]
push dword [ebp - 0x24]
call dword [fcn.01001068]
jmp 0x1002432
push dword [ebp - 4]
push 0x1001580
push 0x1001578
call fcn.01003ca6
add esp, 0xc
push dword [ebp + 8]
push esi
call fcn.01002b58
push dword [ebp - 4]
push esi
call fcn.01002a2e
call fcn.01001c6c
test eax, eax
push esi
push 0x1001d71
push esi
je 0x1002458
push 0x67
jmp 0x100245a
push 0x66
push ebx
call dword [0x1001140]
cmp eax, 1
jne 0x100247f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x478]
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.01001ad3
push esi
push esi
push ebx
call fcn.01003109
push dword [ebp - 0xc]
call dword [0x100113c]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x1002499
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10015f0
call fcn.01002684
xor ebx, ebx
push ebx
mov edi, dword [0x1001078]
call edi
cmp word [eax], 0x5a4d
jne 0x10024d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10024d6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10024ee
cmp eax, 0x20b
je 0x10024db
mov dword [ebp - 0x1c], ebx
jmp 0x1002502
cmp dword [ecx + 0x84], 0xe
jbe 0x10024d6
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10024fc
cmp dword [ecx + 0x74], 0xe
jbe 0x10024d6
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10066e4], 0xffffffff
or dword [0x10066e8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1006304]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1006300]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10066ec], eax
call fcn.0100267e
cmp dword [section..data], ebx
jne 0x100255d
push fcn.0100267e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100266c
push 0x1001230
push 0x100122c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10062fc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10062f8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001228
push 0x1001224
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10025f3
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10025c7
cmp al, 0x22
jne 0x10025b9
cmp byte [esi], 0x22
jne 0x10025d0
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10025da
cmp al, 0x20
jbe 0x10025cc
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [0x100107c]
test byte [ebp - 0x4c], 1
je 0x10025fe
movzx eax, word [ebp - 0x48]
jmp 0x1002601
cmp byte [esi], 0x20
jbe 0x10025d0
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10025f3
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100261e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002653
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010026bd
ret
Function at 0x100271d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x1002746
push eax
jmp 0x10027ac
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x1002776
cmp eax, 2
jbe 0x1002768
cmp eax, 3
jbe 0x1002776
cmp eax, 5
ja 0x1002776
cmp dword [ebp - 4], 4
je 0x100277b
cmp dword [ebp - 4], 5
jmp 0x1002772
cmp dword [ebp - 4], 1
je 0x100277b
cmp dword [ebp - 4], 2
je 0x100277b
jmp 0x10027b2
cmp dword [ebp - 4], eax
jne 0x10027b2
mov eax, dword [ebp - 8]
add eax, 2
push eax
call dword [ebp + 0x14]
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, ebx
jne 0x10027a7
mov eax, dword [ebp - 8]
mov word [edi + eax], bx
mov eax, edi
jmp 0x10027b4
push edi
call dword [ebp + 0x18]
push esi
call dword [fcn.01001054]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x401c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec058
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebp + 8]
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401d6c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x401d6c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401d6c
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x401d6c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x401d65
push esi
push ebx
push eax
call fcn.005c6c10
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x401d5e
mov ecx, dword [ebp - 0x14]
call fcn.00405120
mov esi, eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x401d5e
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x401d6e
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x401d90
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
Function at 0x404170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0047e6ba

Function at 0x404c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404c75
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404cb6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404cb2
nop word [eax + eax]
cmp esi, edx
jae 0x404cb6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404ca0
cmp esi, edx
jb 0x404cbb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x405270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec201
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
push 0x63ca44
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebx], 0
call fcn.00404b00
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push esi
push edi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4053ab
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4053a2
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add eax, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d175
mov esi, eax
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push 0
push esi
call fcn.005c7190
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
push esi
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x405399
push esi
lea ecx, [ebp - 0x1c]
call fcn.00404b00
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00404270
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405399
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.0047d17e
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret