joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402970
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4424f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], 0x22c
xor esi, esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4029ec
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0x228]
je 0x4029cf
lea edx, [ebp - 0x230]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4029b1
jmp 0x4029ec
mov ecx, 0x8b
lea esi, [ebp - 0x230]
mov dword [ebp - 0x234], 1
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x234]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f12c
mov esp, ebp
pop ebp
ret

Function at 0x402a10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4424f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
xor ebx, ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402a7c
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402a76
lea edx, [ebp - 0x230]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402a51
jmp 0x402a7c
mov ebx, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040f12c
mov esp, ebp
pop ebp
ret

Function at 0x402aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x402ac9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x402ac9
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402f80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a6b4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4424f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.CHttpDownloadExBase.0
call dword [0x42f90c]
lea ecx, [esi + 8]
call dword [0x42f90c]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CHttpDownloadEx.0
call dword [0x42f90c]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004015d0
push 0x42fba8
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 2
call fcn.00401010
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 3
call dword [sym.imp.mfc100u.dll_]
push eax
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBufferSetLength]
push eax
push 0x42fba4
push str.DownloadType
push 0x42fb78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
dec eax
je 0x403076
dec eax
jne 0x40307a
mov eax, 1
jmp 0x40307d
xor eax, eax
jmp 0x40307d
mov eax, dword [ebp + 8]
sub eax, 0
je 0x4030c1
dec eax
je 0x4030a3
push 0x34
call sub.mfc100u.dll_new
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x4030df
mov ecx, eax
call fcn.004033a0
jmp 0x4030e1
push 0x14
call sub.mfc100u.dll_new
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4030df
mov ecx, eax
call fcn.00406080
jmp 0x4030e1
push 0x34
call sub.mfc100u.dll_new
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4030df
mov ecx, eax
call fcn.004033a0
jmp 0x4030e1
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [esi + 0x14], eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403610
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push eax
mov dword [esi], vtable.DownWrapper.0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
jne 0x403643
push 0x43b7c4
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], str.can_not_load_xldl.dll
call sub.MSVCR100.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XL_Init
push eax
call edi
mov edx, dword [esi + 4]
push str.XL_UnInit
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.XL_CreateTask
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_DeleteTask
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.XL_StartTask
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.XL_StopTask
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_QueryTaskInfo
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 4]
push str.XL_QueryTaskInfoEx
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
push str.XL_SetSpeedLimit
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_SetUploadSpeedLimit
push ecx
mov dword [esi + 0x28], eax
call edi
mov edx, dword [esi + 4]
push str.XL_DelTempFile
push edx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
push str.XL_SetProxy
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_SetUserAgent
push ecx
mov dword [esi + 0x34], eax
call edi
mov edx, dword [esi + 4]
push str.XL_GetFileSizeWithUrl
push edx
mov dword [esi + 0x38], eax
call edi
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 4]
push str.XL_ParseThunderPrivateUrl
push eax
call edi
mov ecx, dword [esi + 4]
push str.XL_SetAdditionInfo
push ecx
mov dword [esi + 0x40], eax
call edi
mov dword [esi + 0x44], eax
push str.XL_SetFileIdAndSize
mov edx, dword [esi + 4]
push edx
call edi
mov dword [esi + 0x48], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x403840
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a74e
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4424f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x42fe34
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4c
call sub.mfc100u.dll_new
add esp, 4
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x403919
lea ecx, [ebp - 0x420]
push ecx
mov ecx, eax
call fcn.00403610
jmp 0x40391b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f12c
mov esp, ebp
pop ebp
ret
Function at 0x408d90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_]
push 0x40
mov esi, eax
lea eax, [ebp - 0x50]
push 0
push eax
mov dword [ebp - 0x54], 0x44
call sub.MSVCR100.dll_memset
or dword [ebp - 0x28], 1
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp + 8]
mov esi, eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408fa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b159
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4424f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x3375c]
push eax
call sub.gdiplus.dll_GdiplusShutdown
lea ecx, [ebp - 0x10]
push ecx
call fcn.00420420
add esp, 4
cmp dword [esi + 0x33764], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0
jne 0x409020
push str.updaterUpdated.tag
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00401010
add esp, 0xc
mov ecx, eax
call dword [sym.imp.mfc100u.dll_]
push eax
call edi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp dword [esi + 0x33770], 0
jne 0x409052
push str.updateRestart.tag
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00401010
add esp, 0xc
mov ecx, eax
call dword [sym.imp.mfc100u.dll_]
push eax
call edi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, esi
call sub.mfc100u.dll_CWinApp::ExitInstance
lea ecx, [ebp - 0x10]
mov esi, eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b589
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4424f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [0x42f918]
lea eax, [edi + 4]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call dword [0x42f918]
fld dword [edi + 8]
fstp dword [esi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
fld dword [edi + 0x14]
fstp dword [esi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x40], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40c2d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b8a5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4424f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [0x42f90c]
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
call dword [0x42f90c]
fldz
mov eax, 0xff000000
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
fst dword [esi + 0x38]
fst dword [esi + 0x34]
mov ebx, 1
fst dword [esi + 0x30]
push 0x431648
fst dword [esi + 0x2c]
mov byte [ebp - 4], bl
fst dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x2c], eax
fst dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
fst dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
fst dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
fstp dword [esi + 0x14]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
xor eax, eax
lea ecx, [esi + 4]
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], 3
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], SysStringLen
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
fld dword [0x431644]
fstp dword [esi + 8]
mov dword [esi + 0xc], 0xfe000000
mov dword [esi + 0x44], ebx
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
Function at 0x40f12c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4424f8]
jne 0x40f136
repz ret
jmp fcn.0040f78f

Function at 0x40fbb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp + 8]
call dword [0x42f908]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
test eax, eax
jne 0x40fbde
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 8]
mov esi, eax
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x411f10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0xac], 0
je 0x411f55
call fcn.00411d20
test eax, eax
je 0x411f5c
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x411eb0
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc8], eax
test eax, eax
je 0x411f55
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x411f55
mov ecx, dword [eax]
push edi
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esi + 0xd0]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0xd0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [ebp - 8]
push edi
push ecx
mov ecx, dword [esi + 0x88]
push 0
push ecx
mov ecx, dword [esi + 0x84]
push ecx
mov ecx, dword [esi + 0xb0]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x411f55
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], ecx
call sub.mfc100u.dll_AfxGetModuleState
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x412942
call sub.mfc100u.dll_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412942
push edi
call sub.mfc100u.dll_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x412930
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x412929
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x412929
push edi
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
push edi
push esi
call fcn.00412520
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4151e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c35c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4424f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call dword [0x42f918]
lea edx, [edi + 8]
push edx
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call dword [0x42f918]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x40], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4152a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c35c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4424f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call dword [0x42f918]
lea edx, [edi + 8]
push edx
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call dword [0x42f918]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x38]
mov dword [esi + 0x38], edx
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x417550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c699
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4424f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp + 0xc]
cmp esi, ebx
jne 0x4175a1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
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
push 0x43253c
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x417604
mov ecx, dword [ebp + 0x10]
movzx eax, si
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapW]
push 0x10
mov edi, eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x4175f6
lea edx, [ebp - 0x10]
push edx
push ebx
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x10], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
push edi
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4176c2
push edi
xor esi, esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4176c2
call sub.mfc100u.dll_AfxGetModuleState
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100u.dll_]
movzx ecx, si
mov esi, dword [ebp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
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]
push ebx
mov esi, eax
push 0
mov dword [ebp - 0x14], esi
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 sub.MSVCR100.dll_memcpy
add esp, 0xc
lea edx, [ebp + 8]
push edx
push 0
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp + 8]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x41769d
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x10], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x41769f
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
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