joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov bp, word [esp + 0x154]
push esi
push edi
mov edi, ebx
mov esi, ecx
shl edi, 0xa
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp bp, 5
sete al
mov dword [ecx + edi + 0x2c], eax
mov edx, dword [esi + 0xc]
mov dword [edx + edi + 0x38], 1
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
shl ecx, 0xa
lea edx, [ecx + eax + 0x40]
lea eax, [eax + edi + 0x40]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
lea edx, [ecx + edi + 0x40]
push edx
push eax
push ebx
push str._r_n___d___d_
call dword [sym.imp.MSVCRT.dll_wprintf]
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x6c]
push ecx
push ebx
push str._SwCalc.exe____d:_d_
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
add esp, 0x28
rep stosd dword es:[edi], eax
lea eax, [ebx + ebx*4]
pop edi
mov word [esp + 0x3c], bp
pop esi
lea eax, [eax + eax*4]
pop ebp
mov dword [esp + 4], 0x44
pop ebx
lea eax, [eax + eax*4]
mov dword [esp + 0x10], 0x3e8
shl eax, 1
cmp eax, 0x3e8
jg 0x401af0
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x150]
lea edx, [esp]
xor eax, eax
push ecx
push edx
push eax
push eax
push 0x10
push 1
push eax
lea ecx, [esp + 0x60]
push eax
push ecx
push eax
mov dword [esp + 0x3c], 0x64
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 0x144
ret 0xc

Function at 0x402050
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
lea eax, [esp + 4]
push esi
push edi
mov esi, ecx
push eax
call fcn.00402020
push eax
call fcn.00402270
lea ecx, [esp + 0x14]
push str.map.bin
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
lea edx, [esp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4020ca
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
inc ecx
lea eax, [esp + 8]
push 0
push eax
shl ecx, 0xa
push ecx
push edx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x204
ret
Function at 0x4021b0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x100
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
test ebp, ebp
push edi
jle 0x4021df
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x10]
mov edx, ebp
mov esi, dword [eax]
add eax, 0x10
mov dword [ecx], esi
add ecx, 4
dec edx
jne 0x4021d2
push 0x1770
lea eax, [esp + 0x14]
push 1
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x40221b
call fcn.00401350
test ebp, ebp
jle 0x402263
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esp + 0x10]
mov ebx, ebp
mov ecx, dword [edi]
push 0x64
push ecx
call esi
add edi, 4
dec ebx
jne 0x40220c
jmp 0x40223f
cmp eax, 0x102
jne 0x40223f
test ebp, ebp
jle 0x402263
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edi, [esp + 0x10]
mov ebx, ebp
mov edx, dword [edi]
push 0x64
push edx
call esi
add edi, 4
dec ebx
jne 0x402232
test ebp, ebp
jle 0x402263
mov esi, dword [esp + 0x118]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, ebp
mov eax, dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call edi
add esi, 0x10
dec ebx
jne 0x402252
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret

Function at 0x402270
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x608
push esi
mov esi, dword [esp + 0x614]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x20c]
lea ecx, [esp + 0x40c]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.MSVCRT.dll__wsplitpath]
add esp, 0x14
cmp word [esp + 0xe], 0
jne 0x4022c2
xor al, al
pop esi
add esp, 0x608
ret
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
dec eax
cmp word [esp + eax*2 + 0xc], 0x5c
lea eax, [esp + eax*2 + 0xc]
je 0x4022e7
xor al, al
pop esi
add esp, 0x608
ret
mov cl, byte [esp + 0x610]
test cl, cl
je 0x40232e
lea edx, [esp + 0xc]
push 0x5c
push edx
mov word [eax], 0
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x402315
xor al, al
pop esi
add esp, 0x608
ret
mov word [eax + 2], 0
push 0
lea eax, [esp + 0x10]
push 0x4056bc
lea ecx, [esp + 0xc]
push eax
push ecx
jmp 0x40233f
push 0
lea edx, [esp + 0x10]
push 0x4056bc
lea eax, [esp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.MSVCRT.dll__wmakepath]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40236c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40236c
xor al, al
pop esi
add esp, 0x608
ret
push 0x4056b8
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov al, 1
pop esi
add esp, 0x608
ret
Function at 0x402390
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x14c]
push edi
push eax
push ecx
lea edx, [esp + 0x50]
push str._AutoMarkServer.exe____d:_d_
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
add esp, 0x10
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x154]
mov ecx, dword [esp + 0x158]
mov word [esp + 0x34], ax
lea edx, [esp + 4]
xor eax, eax
push ecx
push edx
push eax
push eax
push 0x10
push 1
push eax
lea ecx, [esp + 0x64]
push eax
push ecx
push eax
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x3c], 0x258
mov dword [esp + 0x40], 0x190
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
add esp, 0x144
ret

Function at 0x402470
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x403806
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
mov esi, dword [esp + 0x440]
push edi
cmp word [esi], 0
je 0x40260f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x2a]
mov ebx, dword [sym.imp.MSVCRT.dll_swprintf]
and ecx, 0xffff
lea edx, [esp + 0x34]
push ecx
push esi
push str._s_02d_99.log
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x34]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x402523
lea ecx, [esp + 0x14]
call fcn.00401270
push 0x40578c
lea ecx, [esp + 0x18]
mov dword [esp + 0x440], 0
call fcn.00401310
mov dword [esp + 0x43c], edi
lea ecx, [esp + 0x14]
jmp 0x40260a
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x4025dd
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402572
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x16]
push 2
push edx
push esi
mov byte [esp + 0x22], 0xff
mov byte [esp + 0x23], 0xfe
call edi
lea eax, [esp + 0x10]
push 0
push eax
push 0x20
push 0x405768
push esi
call edi
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x450]
mov eax, dword [esp + 0x44c]
push ecx
mov ecx, dword [esp + 0x44c]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x3a]
push ecx
mov ecx, dword [esp + 0x3c]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x50]
push str._02d:_02d:_02d_t_02d_t_d_t_d_t_s_r_n
push edx
call ebx
add esp, 0x24
lea ecx, [esp + 0x10]
lea edx, [eax + eax]
lea eax, [esp + 0x34]
push 0
push ecx
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40260f
lea ecx, [esp + 0x1c]
call fcn.00401270
push 0x405718
lea ecx, [esp + 0x20]
mov dword [esp + 0x440], 1
call fcn.00401310
mov dword [esp + 0x43c], edi
lea ecx, [esp + 0x1c]
call fcn.004012b0
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x434
ret
Function at 0x403140
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 0x20]
push ebx
push eax
call fcn.00402270
add esp, 8
test al, al
jne 0x403168
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov ebp, dword [sym.imp.MSVCRT.dll_wcscpy]
add esi, 0x228
push ebx
push esi
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_wcscat]
push 0x405a98
push esi
call edi
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4031ac
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4031ac
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4
push ebx
push esi
call ebp
push str.temp
push esi
call edi
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4031de
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4031de
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4
push ebx
push esi
call ebp
push 0x405a84
push esi
call edi
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403210
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403210
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4
push str._d._s
push esi
call edi
mov ecx, dword [esp + 0x18]
push ebx
lea esi, [ecx + 0x430]
push esi
call ebp
push str.http
push esi
call edi
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403254
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403254
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4
push str._s_d.amf
push esi
call edi
add esp, 8
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x403280
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
sub esp, 0x214
mov eax, dword [esp + 0x218]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00403140
test al, al
jne 0x4032c5
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret 4
push str.Local_buyi_auto_mark_server_mutex_mark
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x4032ef
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.Local_buyi_auto_mark_server_event_new
push 0
lea edx, [esp + 0x14]
push 0
push edx
call edi
test eax, eax
mov dword [esi + 0x18], eax
jne 0x40331d
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret 4
push str.Local_buyi_auto_mark_server_event_end
push 0
lea eax, [esp + 0x14]
push 0
push eax
call edi
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x403345
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret 4
lea ecx, [esi + 0x20]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [esp + 0x20]
push str.TaskList.mof
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4033aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x20
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf8
pop ebx
add eax, 0xa
add esp, 0x214
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Local_buyi_auto_mark_server_memory
push 0x100000
cmp eax, 0xb7
mov eax, dword [esi + 0xc]
push 0
lea edx, [esp + 0x18]
push 4
push edx
push eax
setne bl
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x4033ed
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret 4
mov cl, byte [esp + 0x224]
test bl, bl
mov byte [esi + 0x638], cl
je 0x403440
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov ecx, 0x40000
xor eax, eax
mov edi, esi
lea edx, [esi + 0x14]
rep stosd dword es:[edi], eax
push edx
mov dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret 4
mov ecx, esi
call fcn.00403480
mov edi, eax
test edi, edi
je 0x403466
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
mov ecx, esi
mov dword [edi + 8], 1
call fcn.004034d0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret 4
Function at 0x403560
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404208
push 0x403782
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x405c38], 0xffffffff
or dword [0x405c3c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x405c2c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x405c28]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x405c40], eax
call fcn.00403781
cmp dword [0x405bf0], 0
jne 0x4035e3
push 0x40377e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040376c
push 0x40500c
push 0x405008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x405c24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x405c20]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x405004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004011c0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0xaa50b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0xaa5200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xaa50d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa50c2
add dl, dl
jne 0xaa50e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa5134
xor eax, eax
add dl, dl
jne 0xaa50ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa51d5
add dl, dl
jne 0xaa50fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa5108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa5113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa511e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xaa512a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xaa50cd
mov eax, 1
add dl, dl
jne 0xaa5142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa514d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa5139
sub eax, ebx
mov ebx, 1
jne 0xaa5180
mov ecx, 1
add dl, dl
jne 0xaa5166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa5171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa515d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa50cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xaa5197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa51a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa518e
cmp eax, 0x7d00
jae 0xaa51c5
cmp eax, 0x500
jb 0xaa51c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa50cd
cmp eax, 0x7f
ja 0xaa51c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa50cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xaa51f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xaa50cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1001cb40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x1001cb56
mov eax, 0x80004003
jmp 0x1001cbed
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0x20219
push 0
push str.SoftwareSmdmFGeneral
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001cba1
lea edx, [ebp - 8]
push edx
push str.SoftwareSmdmFGeneral
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001cbe1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.use_secondary_url
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x1001d610
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x1001d66f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001d63c
mov eax, 1
jmp 0x1001d68d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001d66d
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 4]
jmp 0x1001d68d
jmp 0x1001d688
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x1001d688
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1001d68d
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x1001de70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x1001de79
xor ecx, ecx
jne 0x1001de79
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x1001de9a
mov eax, 0xd
jmp 0x1001def5
xor eax, eax
jne 0x1001de81
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x1001deab
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x1001df00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1012c620]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x230], ecx
push 0
lea ecx, [ebp - 0x18]
call fcn.1001da80
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.1001dd40
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1001df6d
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x18]
call fcn.1001dab0
mov eax, dword [ebp - 0x224]
jmp 0x1001dffe
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1001dfd3
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x18]
call fcn.1001df00
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1001dfca
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x18]
call fcn.1001dab0
mov eax, dword [ebp - 0x228]
jmp 0x1001dffe
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x1001df74
lea ecx, [ebp - 0x18]
call fcn.1001dc30
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.1001db50
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x18]
call fcn.1001dab0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1007dd64
mov esp, ebp
pop ebp
ret 4
Function at 0x10025d30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffff
je 0x10025d75
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10025d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10025d75
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10037bd0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0x811c9dc5
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.10005720
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 0xa
div ecx
add eax, 1
mov dword [ebp - 4], eax
jmp 0x10037c10
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x10037c37
mov esi, dword [ebp - 0x10]
imul esi, esi, 0x1000193
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100056e0
movzx edx, word [eax]
xor esi, edx
mov dword [ebp - 0x10], esi
jmp 0x10037c07
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10037c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x10037c89
xor ecx, ecx
jne 0x10037c89
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10037cd0
mov eax, dword [ebp - 0xc]
jmp 0x10037d2d
cmp dword [ebp - 4], 1
je 0x10037ce3
cmp dword [ebp - 4], 2
je 0x10037ce3
mov eax, 0xd
jmp 0x10037d2d
cmp dword [ebp + 0xc], 0
je 0x10037d21
cmp dword [ebp - 8], 0
je 0x10037d19
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x10037d10
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x10037d17
mov eax, 0xd
jmp 0x10037d2d
jmp 0x10037d21
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc