joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x4472f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x447300
pop dword [ebp - 0x14]
mov eax, 0x447300
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x4e653
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x57c9b114
sub ecx, 0x57c96fe6
xor esi, esi
add esi, eax
mov edi, 0xf2c63d05
add edi, 0xd8120fb
add edi, dword [ebp - 0x14]
mov edx, 0xda32b9b6
sub dword [ebp - 4], 0xd3493ed5
mov ebx, dword [edi]
xor dword [ebp - 0xc], edi
xor ebx, edx
xor dword [ebp - 0x10], ebx
mov dword [esi], ebx
add dword [ebp - 0xc], 0x28e9ac9f
add esi, 4
add edi, 0x69c4c720
sub edi, 0x69c4c71c
loop 0x447351
add eax, 0x8d81da13
sub eax, 0x8d80e288
mov ebx, eax
add eax, 0xfe6fa644
sub eax, 0xfe6fa63f
mov ecx, 0x2352f708
add ecx, 0xdced08f8
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x406560
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x460d73
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0044f418
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4065b1
mov eax, dword [esi + 0x1c]
push eax
call fcn.00418835
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x406860
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x460d43
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.0041c70b
xor edi, edi
mov dword [esp + 0x2c], edi
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [ebp + 4], edi
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x2c], 1
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
cmp dword [ebx + 0xc], edi
sete al
cmp eax, edi
mov dword [esi + 0x30], eax
je 0x406970
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041cb60
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
lea edi, [esi + 0x20]
je 0x40690d
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
jmp 0x406928
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [edi], ecx
mov ecx, dword [esp + 0x44]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0041ce27
test ebp, ebp
je 0x40694e
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0041ceac
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
mov dword [esi + 0x18], eax
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0041c81f
jmp 0x406982
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 0x14
Function at 0x408a60
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x47c748]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
lea eax, [esp + 0xc]
push eax
push 8
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 5
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408b66
push 0x400
call fcn.00418830
mov esi, eax
add esp, 4
test esi, esi
je 0x408b77
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x400
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x408b6a
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x408b6a
push edi
xor ebx, ebx
xor edi, edi
cmp dword [esi], ebx
jbe 0x408b58
push ebp
lea ebp, [esi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x408b52
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x408b26
mov edx, dword [esp + 0x10]
pop ebp
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x408b6a
mov ebx, 1
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x408b6a
mov esi, dword [esp + 0x10]
test esi, esi
je 0x408b77
push esi
call fcn.00418835
add esp, 4
mov ecx, dword [esp + 0x1c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00433873
add esp, 0x18
ret
Function at 0x408b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push edi
call fcn.00423554
mov edi, dword [eax + 0xc]
push 0x46b8e8
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x408bca
mov ecx, dword [esp + 0x10]
push eax
push eax
push 0x46bcbc
call fcn.0041efe2
pop edi
xor eax, eax
pop ebx
pop ecx
ret 4
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x408bea
pop esi
pop edi
pop ebx
pop ecx
ret 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.0043ac30
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x408c4b
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov edx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x408c4d
xor esi, esi
push edi
mov dword [0x481bc0], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret 4

Function at 0x408c80
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
sub esp, 8
mov eax, dword [0x47c748]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
call fcn.00423554
mov eax, dword [eax + 0xc]
push 0x46bc08
push 0x85
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x408cd6
push eax
push eax
push 0x46bcbc
mov ecx, ebx
call fcn.0041efe2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00433873
add esp, 8
ret
push ebp
call fcn.00423554
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
call fcn.00423554
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push esi
push 0
push 4
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
mov ebx, eax
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
mov eax, dword [esp + 0x10]
push esi
push eax
push ebp
call fcn.0043ac30
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00433873
add esp, 8
ret
Function at 0x408dd0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4618f0
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x47c748]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x228], 3
mov ebx, dword [esp + 0x238]
mov ecx, dword [esp + 0x23c]
mov ebp, dword [esp + 0x234]
mov esi, dword [esp + 0x230]
push ebx
push 0x104
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.0040aca0
lea eax, [esi - 0x10]
mov byte [esp + 0x228], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x228], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ea1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x228], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ec5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ef3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00433873
add esp, 0x21c
ret 0x10

Function at 0x40ab70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40ab89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40abc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40abc0
lea ebx, [ebx]
cmp esi, eax
jae 0x40abc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40abb0
cmp esi, eax
jb 0x40abca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40dfc0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x461773
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x47c748]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x228
lea eax, [esp + 0x24]
push ebx
mov dword [esp + 0x25c], ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x22c
call fcn.00436a90
add esp, 0xc
call fcn.004238c5
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e03d
push 0x80004005
call fcn.0040a390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push ebx
push 2
mov byte [esp + 0x25c], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e0c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e08d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x254], 0xffffffff
mov eax, dword [esp + 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e0bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40e1d6
push 0x46e1c8
push str..exe
lea ecx, [esp + 0x264]
push ecx
call fcn.00410780
push 0x46e1c8
push str..EXE
lea edx, [esp + 0x264]
push edx
call fcn.00410780
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov ebp, dword [esp + 0x25c]
je 0x40e181
lea eax, [esp + 0x40]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e110
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040a600
push 0x46e1c8
push str..exe
lea edx, [esp + 0x1c]
push edx
call fcn.00410780
push 0x46e1c8
push str..EXE
lea eax, [esp + 0x1c]
push eax
call fcn.00410780
mov esi, dword [esp + 0x14]
push ebp
push esi
call fcn.0043587e
add esp, 8
test eax, eax
je 0x40e179
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e106
jmp 0x40e181
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.00433873
add esp, 0x244
ret 4
Function at 0x4125b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x460d0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044fd67
push 4
mov dword [esp + 0x20], 0
call fcn.00418805
mov edi, eax
add esp, 4
test edi, edi
je 0x412630
call fcn.0044f517
mov dword [edi], eax
call fcn.0044f3ed
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0044c9a6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x412625
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0044c9c7
jmp 0x412632
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x412fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4623ce
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xc0]
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
push eax
call fcn.004135b0
mov dword [esp + 0xb8], 1
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
lea eax, [esp + edx + 0x30]
push eax
call fcn.0040bc90
mov ecx, dword [esp + 0xc8]
add esp, 4
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004133b0
lea ecx, [esp + 0x14]
lea eax, [esp + 0x30]
call fcn.004136c0
mov byte [esp + 0xb8], 2
cmp dword [eax + 0x18], 8
mov dword [esp + 0xc], 1
jb 0x413072
mov eax, dword [eax + 4]
jmp 0x413075
add eax, 4
push eax
lea ecx, [esp + 0x14]
call fcn.0040aca0
mov ecx, 3
mov dword [esp + 0xb8], ecx
mov edi, eax
mov dword [esp + 0xc], ecx
call fcn.00409af0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040a710
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [esp + 0xb8], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xc], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4130dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xb8], 1
cmp dword [esp + 0x2c], 8
mov dword [esp + 0xc], 0x10
jb 0x413103
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00418835
add esp, 4
push 0x46e1c8
push 0x46e054
push esi
call fcn.00410780
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb8], 0
call fcn.00413650
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x80], vtable.std::ios_base.0
call fcn.0044fd29
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xb0
ret 8
Function at 0x4148f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x460d0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0044fd67
push 4
mov dword [esp + 0x20], 0
call fcn.00418805
mov edi, eax
add esp, 4
test edi, edi
je 0x414970
call fcn.0044f517
mov dword [edi], eax
call fcn.0044f3ed
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0044c9a6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x414965
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0044c9c7
jmp 0x414972
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x418570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
call fcn.00423554
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x14]
push 0x46b8f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4185ab
mov ecx, dword [esp + 0x10]
push eax
push eax
push 0x46bcbc
call fcn.0041efe2
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4185cb
pop ebx
pop edi
pop esi
pop ecx
ret 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0043ac30
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0xc]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x41862c
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
jmp 0x41862e
xor esi, esi
mov ecx, dword [esp + 0x1c]
push edi
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc

Function at 0x4199d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x419a1d
call fcn.00423554
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x419a1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x419a60
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x419a49
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x419a49
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x419a5d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc