joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037f80
Capabilities:
Check if file exists
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054490
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1006f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x1006f9d0]
mov dword [ebp - 0x10], eax
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.10001d80
push eax
call fcn.1003ed00
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.10001ee0
mov esi, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
xor ecx, ecx
mov dword [esi - 8], eax
push str.TENCENTTBH_faces_
mov word [esi + eax*2], cx
call edi
push str.TENCENTTBH_faces_
push eax
lea ecx, [ebp - 0x10]
call fcn.1000b370
push str.u_d.gif
call edi
push str.u_d.gif
push eax
lea ecx, [ebp - 0x10]
call fcn.1000b370
mov edx, dword [0x1006f9d0]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.1000b260
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100380b7
push esi
call fcn.10015a50
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
add esp, 4
mov dword [ebp - 0x14], eax
cmp ecx, dword [0x1006f9cc]
je 0x1003807c
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x1003807c
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea edx, [edi - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp edx, dword [0x1006f9cc]
je 0x100380a2
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x100380a2
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 4
push ebx
push 0x10037db0
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, dword [0x1006f9cc]
je 0x10038112
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10038112
push esi
call ebx
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x10038137
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x10038137
push esi
call ebx
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100383f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052b24
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1006f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x100384e5
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], edi
mov dword [edi], ebx
push 8
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x100384c0
xor ecx, ecx
mov dword [edi], eax
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
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 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x100671cc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x100671cc
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x1003e3a6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10070764], 0
push esi
push edi
jne 0x1003e31c
call fcn.1003e288
test eax, eax
je 0x1003e361
mov eax, dword [0x10070764]
cmp eax, 1
jne 0x1003e33d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1003e361
jmp 0x1003e3a3
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1003e3a3
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1003e365
xor eax, eax
jmp 0x1003e3a3
mov eax, dword [esi]
push dword [0x10070764]
call edi
mov edi, eax
test edi, edi
je 0x1003e387
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1003e3a3
lea edi, [esi + 0xff0]
push esi
push dword [0x10070764]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1003e38d
mov eax, esi
pop edi
pop esi
ret
jmp 0x1003e308

Function at 0x1003e530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push edi
test ecx, ecx
je 0x1003e5aa
mov edi, dword [ebp + 0x18]
push edi
call fcn.1003e520
add esp, 4
cmp ecx, eax
jl 0x1003e5aa
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov word [esi], ax
mov byte [ebp + 0x13], al
mov al, 0x40
add al, 0x40
mov byte [ebp + 0x13], al
nop
xor eax, eax
test edi, edi
jle 0x1003e5a0
mov dl, byte [ebp + 8]
push ebx
lea esp, [esp]
nop
nop
mov ecx, dword [ebp + 0x14]
mov cl, byte [eax + ecx]
xor cl, byte [ebp + 0x13]
nop
mov ebx, eax
and ebx, 3
mov bl, byte [ebx + 0x1005aadc]
add bl, dl
xor bl, cl
movzx ecx, bl
mov word [esi + eax*2], cx
nop
xor ecx, ecx
mov word [esi + eax*2 + 2], cx
inc eax
cmp eax, edi
jl 0x1003e570
pop ebx
nop
pop esi
mov eax, 1
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret

Function at 0x1003e650
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x1003e69f
cmp dword [ebp - 0x114], 6
jb 0x1003e69f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x1003ed00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1003edeb
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x1003edeb
push esi
call fcn.1003e650
test eax, eax
je 0x1003edc6
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1003edd5
push str.SHGetKnownFolderPath
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003eda9
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xa520a1a4
mov dword [ebp - 0x10], 0x4ff61780
mov dword [ebp - 0xc], 0x731618bd
mov dword [ebp - 8], 0x16afc543
call eax
test eax, eax
js 0x1003eda9
mov eax, dword [ebp - 0x18]
push eax
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x1003ee40
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100514ab
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x1005adc8
lea ecx, [ebp - 0x524]
mov dword [ebp - 0x524], esi
call fcn.10010350
push 0xfe
lea ecx, [ebp - 0x10e]
xor eax, eax
push esi
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x528], 1
mov dword [ebp - 0x52c], pe_nt_image_headers32
mov word [ebp - 0x110], ax
call sub.MSVCR100.dll_memset
mov edi, dword [ebp - 0x524]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [ebp - 0x52c]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x528]
push ecx
push edi
push str.SOFTWAREMicrosoftInternet_ExplorerVersion_Vector
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea edx, [ebp - 0x110]
push 0
push edx
call dword [sym.imp.MSVCR100.dll_wcstod]
fst qword [ebp - 0x534]
fldz
add esp, 8
fcompp
fnstsw ax
test ah, 1
jne 0x1003f019
push 0x1005ad58
lea ecx, [ebp - 0x524]
call fcn.10010350
mov edi, dword [ebp - 0x524]
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x528]
push edx
push edi
push str.SOFTWAREMicrosoftInternet_ExplorerVersion_Vector
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x528], 1
mov dword [ebp - 0x52c], pe_nt_image_headers32
call esi
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.MSVCR100.dll_wcstod]
fst qword [ebp - 0x534]
fldz
add esp, 8
fcompp
fnstsw ax
test ah, 1
jne 0x1003f019
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x316]
push edx
mov word [ebp - 0x318], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Internet_Exploreriexplore.exe
lea ecx, [ebp - 0x318]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_wcscat_s]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x51e]
push eax
mov word [ebp - 0x520], dx
call sub.MSVCR100.dll_memset
push 0x2e
push 0x104
lea ecx, [ebp - 0x520]
push ecx
lea edx, [ebp - 0x318]
push edx
call fcn.10041a30
lea eax, [ebp - 0x520]
push 0
push eax
call dword [sym.imp.MSVCR100.dll_wcstod]
fstp qword [ebp - 0x534]
add esp, 0x30
push edi
mov dword [ebp - 4], 0xffffffff
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
fld qword [ebp - 0x534]
add esp, 4
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.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x1003f0b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100514eb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x1006f184]
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 eax, dword [0x1006f9d0]
xor ebx, ebx
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x224], 0x20a
mov dword [ebp - 0x220], eax
mov ecx, 0x10070824
mov dword [ebp - 4], ebx
call fcn.1003e5b0
mov ecx, 0x10070844
mov esi, eax
call fcn.1003e5b0
lea ecx, [ebp - 0x224]
push ecx
push 0x105
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.10001d80
push eax
lea edx, [ebp - 0x228]
push edx
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.10001ee0
mov esi, dword [ebp - 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [esi - 8], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x1003f235
cmp dword [esi - 8], ecx
je 0x1003f235
push 0x22
lea ecx, [ebp - 0x220]
call fcn.1000aa80
push 0x22
lea ecx, [ebp - 0x220]
call fcn.1003f050
mov esi, dword [ebp - 0x220]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x1003f235
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x21a]
push eax
mov word [ebp - 0x21c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea ecx, [ebp - 0x220]
call fcn.10001d80
push eax
lea ecx, [ebp - 0x21c]
push 0x105
push ecx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, 0x10070814
call fcn.1003e5b0
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x21c]
push edx
call edi
mov esi, dword [ebp - 0x220]
test eax, eax
je 0x1003f235
mov ebx, 1
lea eax, [esi - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp eax, dword [0x1006f9cc]
je 0x1003f25e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1003f25e
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
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.1004c4fe
mov esp, ebp
pop ebp
ret

Function at 0x1003f340
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x10040280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x1004034a
test edi, edi
je 0x1004034a
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
push edi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1004034a
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x20c]
push ecx
call esi
test eax, eax
je 0x10040316
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
jne 0x1004034a
push str..url
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
test eax, eax
je 0x1004034a
lea ecx, [ebp - 0x20c]
push ecx
call esi
test eax, eax
jne 0x10040301
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10040c20
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005156b
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x1006f184]
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, dword [ebp + 8]
test esi, esi
je 0x10040e1e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
test eax, eax
je 0x10040e1e
push esi
lea ecx, [ebp - 0x514]
call fcn.1000b6f0
push 0
push esi
push 0
mov dword [ebp - 4], 0
call sub.urlmon.dll_IsValidURL
test eax, eax
jne 0x10040cbc
mov eax, dword [ebp - 0x514]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x10040cb2
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10040cb2
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
jmp 0x10040e20
push str.localhost
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10040ce1
lea ecx, [ebp - 0x514]
call fcn.10001e10
mov eax, 1
jmp 0x10040e20
cmp dword [ebp + 0xc], 0
je 0x10040cf4
push esi
call fcn.10040810
add esp, 4
test eax, eax
jne 0x10040ccc
push esi
call fcn.10040690
add esp, 4
test eax, eax
jne 0x10040ccc
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x50e]
push eax
mov word [ebp - 0x510], dx
call sub.MSVCR100.dll_memset
push 0x38
lea ecx, [ebp - 0x54c]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x550]
push eax
push 0x10000000
lea edx, [ebp - 0x510]
push esi
mov dword [ebp - 0x550], 0x3c
mov dword [ebp - 0x54c], edx
mov dword [ebp - 0x548], 0x200
call edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x10040dd4
xor ecx, ecx
push 0xfe
push ecx
lea edx, [ebp - 0x10e]
push edx
mov word [ebp - 0x110], cx
call sub.MSVCR100.dll_memset
push 0x80
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.1003fe70
add esp, 0x18
test eax, eax
je 0x10040db5
lea ecx, [ebp - 0x110]
push ecx
call fcn.100400b0
add esp, 4
test eax, eax
jne 0x10040ccc
push esi
call fcn.10040ac0
add esp, 4
lea ecx, [ebp - 0x514]
test eax, eax
je 0x10040e19
call fcn.10001e10
mov eax, 1
jmp 0x10040e20
cmp dword [ebp - 0x544], 0xffffffff
jne 0x10040e13
push str.site
lea edx, [ebp - 0x510]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x10040e13
lea eax, [ebp - 0x510]
push eax
call fcn.1003fde0
add esp, 4
lea ecx, [ebp - 0x514]
mov esi, eax
call fcn.10001e10
mov eax, esi
jmp 0x10040e20
lea ecx, [ebp - 0x514]
call fcn.10001e10
xor eax, eax
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.1004c4fe
mov esp, ebp
pop ebp
ret
Function at 0x10041210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov dword [ebp - 0x418], eax
xor ebx, ebx
mov word [ebp - 0x414], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0x18
cmp dword [0x100709e0], ebx
jne 0x1004128d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea edx, [ebp - 0x414]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10041330
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.dllcache
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 1
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x10041330
push edi
push esi
call fcn.10041150
test eax, eax
je 0x10041329
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x41c]
push edx
mov edx, dword [ebp - 0x418]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10041760
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x44], 0x33323156
mov dword [ebp - 0x40], 0x37363534
mov dword [ebp - 0x3c], 0x62613938
mov dword [ebp - 0x38], 0x66656463
mov dword [ebp - 0x34], 0x6a696867
mov dword [ebp - 0x30], 0x6e6d6c6b
mov dword [ebp - 0x2c], 0x7271706f
mov dword [ebp - 0x28], 0x76757473
mov dword [ebp - 0x24], 0x7a797877
mov dword [ebp - 0x20], 0x44434641
mov dword [ebp - 0x1c], 0x48474245
mov dword [ebp - 0x18], 0x4c494a4b
mov dword [ebp - 0x14], 0x504f4e4d
mov dword [ebp - 0x10], 0x54535251
mov dword [ebp - 0xc], 0x58573055
mov word [ebp - 8], 0x5a59
mov byte [ebp - 6], 0
mov dword [ebp - 0x84], 0x6f666442
mov dword [ebp - 0x80], 0x53707773
mov dword [ebp - 0x7c], 0x4d377846
mov dword [ebp - 0x78], 0x365a304b
mov dword [ebp - 0x74], 0x3868546b
mov dword [ebp - 0x70], 0x3472474f
mov dword [ebp - 0x6c], 0x31694a48
mov dword [ebp - 0x68], 0x43744e55
mov dword [ebp - 0x64], 0x587a5035
mov dword [ebp - 0x60], 0x6a443351
mov dword [ebp - 0x5c], 0x7579626e
mov dword [ebp - 0x58], 0x71325756
mov dword [ebp - 0x54], 0x616c4c76
mov dword [ebp - 0x50], 0x63675965
mov dword [ebp - 0x4c], 0x39416d52
mov word [ebp - 0x48], 0x4945
mov byte [ebp - 0x46], 0
jne 0x10041879
lea ecx, [ebp - 0x84]
lea edi, [ebp - 0x44]
mov dword [ebp - 0x8c], ecx
jmp 0x10041888
lea edx, [ebp - 0x44]
lea edi, [ebp - 0x84]
mov dword [ebp - 0x8c], edx
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x10041895
mov esi, dword [eax]
jmp 0x10041897
mov esi, eax
test ecx, ecx
je 0x100418e5
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
mov dword [ebp - 0x88], ecx
mov al, byte [esi]
cmp al, 0x30
jl 0x100418b1
cmp al, 0x39
jle 0x100418c1
cmp al, 0x61
jl 0x100418b9
cmp al, 0x7a
jle 0x100418c1
cmp al, 0x41
jl 0x100418dc
cmp al, 0x5a
jg 0x100418dc
movsx eax, al
push eax
push edi
call ebx
add esp, 8
test eax, eax
je 0x100418dc
mov ecx, dword [ebp - 0x8c]
sub eax, edi
mov dl, byte [eax + ecx]
mov byte [esi], dl
inc esi
dec dword [ebp - 0x88]
jne 0x100418a7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret