joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011cb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ccb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10027008]
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 eax, dword [edi + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x10011cf3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [edi + 4], 0
je 0x10011d0e
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10011d07
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x10011e84
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x1002701c], 0
mov esi, eax
mov dword [ebp - 0x30], esi
je 0x10011e20
push 0
mov ecx, 0x10027018
call fcn.1000cd00
mov eax, dword [0x1002701c]
cmp byte [eax + 0x54], 0
je 0x10011e20
cmp dword [eax + 0x58], 6
jb 0x10011e20
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push dword [ebp - 0x14]
push esi
push str.creat_thread_handle:_0x_x__id__d
push eax
call fcn.10014460
add esp, 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x10027018
push 0x39
push str.RC::DmAvCore::RCImplThreadPoolSimple::Excute
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_framework_src_vbaselib_src_rcimplthreadpoolsimple.cpp
push eax
push 6
call fcn.1000e140
test bl, bl
je 0x10011dc9
lea eax, [ebp - 0x2c]
mov ecx, 0x10027018
push eax
call fcn.1000e780
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10011e0c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10011e02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10011e02
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001a342
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp byte [ebp + 0x10], 0
je 0x10011e38
test esi, esi
je 0x10011e31
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x10011e74
mov ebx, dword [edi + 8]
lea ecx, [ebp - 0x30]
push ecx
mov eax, dword [ebx + 4]
push eax
push ebx
mov dword [ebp - 0x34], eax
call fcn.100125a0
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [edi + 0xc]
sub ecx, eax
cmp ecx, 1
jae 0x10011e68
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 4], edx
mov dword [eax], edx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10011e82
push eax
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001a301
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100137f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10027008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edx
test edi, edi
jne 0x10013831
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a301
mov esp, ebp
pop ebp
ret 0x10
test byte [ebp + 0x14], 2
push esi
je 0x100138c6
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x1001384e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
mov ecx, dword [ebx + 0x38]
mov esi, dword [ecx]
cmp esi, ecx
je 0x1001386e
mov eax, dword [esi + 8]
cmp dword [eax], edi
je 0x10013866
mov esi, dword [esi]
cmp esi, ecx
jne 0x10013857
jmp 0x1001386e
mov edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x1001387f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0xc]
cmp edx, 1
jne 0x100138b8
mov eax, dword [esi + 8]
add eax, 4
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
cmp ebx, 1
jne 0x100138d9
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 8]
add eax, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x100138d7
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
jmp 0x100138d0
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test byte [ebp + 0x14], 1
pop esi
je 0x100138e7
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
cmp ebx, 1
pop edi
sete al
xor ecx, ebp
pop ebx
call fcn.1001a301
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10013c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10027008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 8], 0
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x10013c69
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a301
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
test bl, 2
je 0x10013cc1
cmp dword [esi + 0x24], 0
je 0x10013cc1
push 0x14
call fcn.1001a312
add esp, 4
mov dword [eax], 0
push 0x10013b90
push eax
push dword [ebp + 0xc]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
push edi
mov dword [eax + 0x10], esi
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
push 1
push 1
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x10013cd4
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test bl, 1
pop ebx
je 0x10013ce3
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
cmp edi, 1
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.1001a301
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100156b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d140
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10027008]
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 eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100156f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push 0x2c
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1001a312
mov esi, eax
mov dword [ebp - 0x1c], 0
add esp, 4
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0
mov dword [esi], 0
lea eax, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], eax
xor eax, eax
push 0xc
push str.Advapi32.dll
mov dword [esi + 0x10], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.10004710
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.10019630
mov ecx, eax
call fcn.100196f0
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x100157be
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100157b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100157b4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001a342
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
sub esp, 8
mov word [ebp - 0x2c], ax
lea eax, [esi + 0x14]
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x14]
push eax
call fcn.10018920
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x100157f7
lea eax, [esi + 8]
jmp 0x100157f9
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x10015809
cmp dword [ebx + 0x14], 8
jb 0x1001580b
mov ebx, dword [ebx]
jmp 0x1001580b
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x1001582c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001582c
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10015855
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1001586a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1001a342
add esp, 8
mov dword [ebp - 0x14], 0
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.1001a301
mov esp, ebp
pop ebp
ret 4
Function at 0x10018500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bfe8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10027008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10018536
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100185e6
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10018610
test al, al
je 0x1001858f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100185d2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100185c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100185c8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1001a342
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
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.1001a301
mov esp, ebp
pop ebp
ret
Function at 0x10018920
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10025ae8
push 0x1001ac0e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10027008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x10018989
xor eax, eax
jmp 0x10018aff
mov dword [ebp - 4], ebx
push 0x10022104
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018aca
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10018aca
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018aca
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x10018aca
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018aca
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x10018aca
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018aca
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x10018aca
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10018aca
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x10018aca
push 0x10022148
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10018aca
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10018ab3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x10018aa0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x10018ab0
jmp 0x10018aca
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.10018b26
test ebx, ebx
jne 0x10018afd
test esi, esi
je 0x10018aef
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10018afd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1001a301
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10019150
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x10027008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x100191d2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x100191d2
test ecx, ecx
je 0x100191ce
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10019190
xor eax, eax
jmp 0x100191d7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x100191e1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001a301
add esp, 0xc
ret 0xc

Function at 0x10019260
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x10027008]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1001928e
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1001a301
add esp, 8
ret 4
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x10019277
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100192d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100192d4
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1001a301
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.1001a301
add esp, 8
ret 4
Function at 0x18626e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.data_1
lea edi, [esi - 0x635000]
push edi
jmp 0x18626fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1862701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x18626f0
mov eax, 1
add ebx, ebx
jne 0x1862713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1862724
jne 0x1862743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1862743
dec eax
add ebx, ebx
jne 0x1862730
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1862708
add ebx, ebx
jne 0x186273f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1862795
xor ecx, ecx
sub eax, 3
jb 0x186275b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x18627ca
sar eax, 1
mov ebp, eax
jmp 0x1862766
add ebx, ebx
jne 0x1862766
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1862734
inc ecx
add ebx, ebx
jne 0x1862774
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1862734
add ebx, ebx
jne 0x1862781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1862776
jne 0x1862792
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1862776
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x18627b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x18627a6
jmp 0x18626f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x18627b4
add edi, ecx
jmp 0x18626f6
pop esi
mov edi, esi
mov ecx, 0x13
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x18627d2
cmp byte [edi], 1
jne 0x18627d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x18627d7
lea edi, [esi + 0x1460000]
mov eax, dword [edi]
or eax, eax
je 0x186284f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x148b040]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x148b07c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1862804
mov ecx, edi
jns 0x1862833
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x148b084]
or eax, eax
je 0x1862849
mov dword [ebx], eax
add ebx, 4
jmp 0x1862821
call dword [esi + 0x148b080]
mov ebp, dword [esi + 0x148b088]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1862883
sub esp, 0xffffff80
jmp 0x401184
Function at 0x401fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x4092f4
call fcn.00404790
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x402084
test esi, esi
jne 0x402084
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x402068
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402062
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402062
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x402051
cmp esi, eax
jae 0x402055
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402043
cmp esi, eax
jb 0x402059
xor eax, eax
jmp 0x402062
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40208d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x4092f4
call fcn.00404790
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x401ff5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402188
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4021ba
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4021b6
cmp esi, eax
jae 0x4021ba
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4021a8
cmp esi, eax
jb 0x4021c0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4021f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40225e
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40222d
cmp eax, 2
jne 0x402248
mov eax, dword [ebp - 4]
test esi, esi
je 0x402258
test eax, eax
je 0x402253
test al, 1
jne 0x402248
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x402258
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8