joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084396
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100ad2e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.1003f4c0
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x10007c3c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x10007c3c
call fcn.10005d50
mov esi, eax
jmp 0x10007d29
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10007c5f
call fcn.10005d50
jmp 0x10007d1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x10007c7d
call fcn.10005d50
jmp 0x10007d1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10007c9e
mov esi, 0x8007000e
jmp 0x10007d1e
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10005b80
jmp 0x10007cc8
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x10007cdf
mov esi, 0x8007000e
jmp 0x10007d1e
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10007cff
call fcn.10005d50
jmp 0x10007d1c
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.100079e0
mov esi, eax
test edi, edi
je 0x10007d29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10007d42
lea ecx, [ebp - 0x420]
call fcn.10006390
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 - 0x14]
xor ecx, ebp
call fcn.10010f1d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100086c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100ad2e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x10008a00
push 0
push 0
mov dword [ebp - 8], 0
call fcn.100460cb
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 8], eax
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10010f1d
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a1e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084458
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100ad2e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100107ef
mov edi, eax
add esp, 4
test edi, edi
je 0x1000a283
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10012598
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000a285
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10003a80
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1000a2e5
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1000a2e5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x1000a309
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1000a32b
cmp byte [ebp + 0xc], 0
je 0x1000a318
push esi
call fcn.10012b35
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1000a337
mov esi, str.ios_base::badbit_set
jmp 0x1000a347
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.1000a370
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.100043a0
push 0x100a3a6c
lea eax, [ebp - 0x30]
push eax
call fcn.1003fa6c
int3
Function at 0x1000d7b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100848ab
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x100ad2e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100b14a4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], esi
test al, 1
jne 0x1000d81f
or eax, 1
mov dword [0x100b149c], 0
mov dword [0x100b14a4], eax
xor eax, eax
push 0x1008a7f0
mov dword [0x100b14a0], 7
mov word [0x100b148c], ax
call fcn.10010cb4
add esp, 4
cmp dword [0x100b149c], 0
jne 0x1000d91c
mov eax, dword [0x100b1488]
test al, 1
jne 0x1000d866
or eax, 1
mov dword [0x100b1480], 0
mov dword [0x100b1488], eax
xor eax, eax
push 0x1008a850
mov dword [0x100b1484], 7
mov word [0x100b1470], ax
call fcn.10010cb4
add esp, 4
cmp dword [0x100b1480], 0
jne 0x1000d8c2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1003f4c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d8a1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x100b1470
call fcn.10009bd0
push 0x100b1470
lea ecx, [ebp - 0x234]
call fcn.1000c270
push 9
push str.ludashi_
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.10009940
cmp eax, 0x100b148c
je 0x1000d90a
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x1000d8fc
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, 0x100b148c
call fcn.10009bd0
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call fcn.100047f0
push 0x100b148c
mov ecx, esi
call fcn.1000c270
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10010f1d
mov esp, ebp
pop ebp
ret
Function at 0x1000d950
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008490c
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x100ad2e4]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.1003f4c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d9d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10009bd0
mov edi, dword [ebp - 0x21c]
lea eax, [ebp - 0x230]
mov esi, dword [ebp - 0x230]
cmp edi, 8
push 4
push 0x1008c40c
push 0
push dword [ebp - 0x220]
cmovae eax, esi
mov dword [ebp - 4], 0
push eax
call fcn.1000be80
add esp, 0x14
cmp eax, 0xffffffff
je 0x1000db1d
call fcn.10017f40
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1000db0d
push 0x5c
push str.d:jenkins.jenkinsworkspacepay_groupdll_repairdll_repairdll_repair_helper_srcutils.cc
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], al
call fcn.10009ad0
push 3
push 0x1008bde4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.10009ad0
mov byte [ebp - 4], 2
call fcn.10017f40
mov edi, eax
lea ecx, [ebp - 0x2f8]
push 0xb4
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10003db0
mov esi, eax
push str.find_system_error_pop_wnd
push esi
mov byte [ebp - 4], 3
call fcn.10004ce0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f8]
call fcn.10004e00
lea ecx, [ebp - 0x248]
call fcn.100047a0
lea ecx, [ebp - 0x260]
call fcn.100047a0
mov edi, dword [ebp - 0x21c]
mov bl, 1
mov esi, dword [ebp - 0x230]
jmp 0x1000db1f
xor bl, bl
cmp edi, 8
jb 0x1000db4f
lea ecx, [edi*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x1000db45
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000db6d
push ecx
push esi
call fcn.1001081f
add esp, 8
mov al, bl
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.10010f1d
mov esp, ebp
pop ebp
ret
call fcn.100434d9
int3
Function at 0x10016bd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008502a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100ad2e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.100064a0
mov ecx, eax
test ecx, ecx
je 0x10016d94
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.100064a0
mov ecx, eax
test ecx, ecx
je 0x10016d9e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.100064a0
mov ecx, eax
test ecx, ecx
je 0x10016da8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x10016cb2
xor ecx, ecx
jmp 0x10016cd0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016cc0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10018740
push edi
mov ecx, ebx
call fcn.10016e90
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10016cec
xor ecx, ecx
jmp 0x10016d04
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016cf4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.10018740
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.10017a50
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.10016e90
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016d45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x10016d7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10016d7e
cmp dword [esi + 0x10], 0
je 0x10016d75
push dword [edi]
call fcn.1004bd76
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10005d90
push 0x80004005
call fcn.10005d90
push 0x80004005
call fcn.10005d90
int3
Function at 0x100176c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085118
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100ad2e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x10017894
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10017715
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x10017894
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10017733
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x10017894
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10017751
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x10017894
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1001776f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x10017894
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10017894
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10017794
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x100177c7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x100177df
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x1001781d
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.10009590
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.1003fe90
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x1008f8fc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100189a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001784b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x10017884
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x10017884
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.10015f7e
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.100047f0
lea ecx, [ebp - 0x28]
call fcn.100047f0
lea ecx, [ebp - 0x34]
call fcn.10016e60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10010f1d
mov esp, ebp
pop ebp
ret 4
Function at 0x10018070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085207
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100ad2e4]
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, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x100180ba
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100180c6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.10009bd0
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x10018133
push 0x48
call fcn.100107ef
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x10018127
push 0x48
push 0
push ebx
call fcn.1003f4c0
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.10016bd0
jmp 0x10018129
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018160
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.10009bd0
push 3
push 0x1008f8fc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10009940
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100181af
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x100181fe
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x100181fe
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.10009bd0
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.100047f0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10018234
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001822a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018271
push edx
push ecx
call fcn.1001081f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x10018253
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.10010f1d
mov esp, ebp
pop ebp
ret 0x14
call fcn.100434d9
int3
Function at 0x10018910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10018969
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10018969
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 0x1001895a
cmp esi, edx
jae 0x10018969
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10018948
cmp esi, edx
jae 0x10018969
cmp word [esi], 0
je 0x10018969
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100192b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x100192bf
pop ebp
jmp fcn.1001a210
xor eax, eax
pop ebp
ret 0xc
Function at 0x1001a510
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100855e3
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100ad2e4]
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 ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x1001a5b5
cmp word [esi], di
je 0x1001a5b5
test eax, eax
je 0x1001a571
cmp word [eax], di
je 0x1001a571
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x1001a5b5
jmp 0x1001a5b0
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1003f4c0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x1001a5b5
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1001a62c
mov eax, dword [ebx + 0x24]
test eax, eax
js 0x1001a617
lea esi, [ebx + 0x34]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x1001a5e5
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x1001a606
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x1001a64c
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x1001a617
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1001a62c
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
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.10010f1d
mov esp, ebp
pop ebp
ret 0x30
call fcn.10011eac
int3

Function at 0x1001b1a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x1001b1b5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001b1c0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc