joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4404e1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x4158]
cmp eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
je 0x440569
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x440560
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x440552
cmp byte [eax + 0x70], 0xb
je 0x440552
mov cl, byte [eax + 0x73]
movzx edx, cl
cmp edx, dword [esi + 0x4158]
je 0x440534
cmp byte [esi + 0x4160], 0
je 0x440552
cmp cl, 0xff
je 0x440552
cmp byte [eax + 0x70], 0xa
je 0x440552
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x440552
cmp byte [eax + 0x70], 0x1a
jne 0x440552
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x440506
mov eax, dword [ebp + 8]
mov dword [esi + 0x4158], eax
push 3
pop eax
cmp dword [esi + 0x14], eax
mov dword [ebp - 4], eax
jl 0x4405c9
lea edi, [esi + 0x64]
mov eax, dword [edi]
test eax, eax
je 0x4405bb
cmp byte [eax + 0x70], 0xb
je 0x4405bb
movzx ecx, byte [eax + 0x73]
cmp ecx, dword [esi + 0x4158]
jne 0x4405bb
test byte [eax + 0x72], 0x20
jne 0x4405bb
push 0
push dword [eax]
call ebx
mov eax, dword [edi]
push 4
push dword [eax]
call ebx
mov eax, dword [edi]
test byte [eax + 0x72], 0x40
je 0x4405bb
cmp byte [eax + 0x70], 0x1a
jne 0x4405bb
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0x14]
jle 0x440577
push 0
push dword [ebp + 8]
push 0x130c
push dword [esi + 0x4150]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop ebx
leave
ret 4
Function at 0x4449b2
Capabilities:
Parse credit card information

Disassembly:
jmp 0x444a4b
cmp ecx, 0x4f
jne 0x4449c9
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax + 2]
jmp 0x444a49
cmp ecx, 0x5e
jne 0x4449e5
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 4]
cmp ecx, dword [esp + 8]
je 0x444a58
movzx ecx, byte [0x4665ae]
jmp 0x444a49
cmp ecx, 0x38
jl 0x444a12
cmp ecx, 0x3d
jle 0x444a03
cmp ecx, 0x40
jle 0x4449fe
cmp ecx, 0x43
jle 0x444a03
cmp ecx, 0x44
jne 0x444a12
mov dl, byte [eax + 3]
jmp 0x444a06
mov dl, byte [eax + 1]
cmp dl, 0xf
je 0x444a10
cmp dl, 0xe
jne 0x444a12
inc eax
inc eax
movzx edx, byte [ecx + 0x466550]
add eax, edx
cmp dword [esp + 4], 0
je 0x444a4b
cmp ecx, 0x1b
jl 0x444a4b
cmp ecx, 0x1c
jle 0x444a36
cmp ecx, 0x1d
jle 0x444a4b
cmp ecx, 0x2a
jg 0x444a4b
movzx ecx, byte [eax - 1]
cmp cl, 0xc0
jb 0x444a4b
and ecx, 0x3f
movzx ecx, byte [ecx + 0x466610]
add eax, ecx
movzx ecx, byte [eax]
test ecx, ecx
jne 0x4449b7
xor eax, eax
ret
Function at 0x4512ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x45130b
cmp dword [ebp + 0x14], edi
je 0x45130b
cmp ecx, edi
jne 0x451312
call fcn.004547fc
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045479d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x451326
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x451347
cmp ebx, 0xffffffff
je 0x451336
push ebx
push edi
push ecx
call fcn.00450c80
add esp, 0xc
cmp esi, edi
je 0x4512f3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4512f3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x451363
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x45136a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x45145b
test word [esi + 0xc], 0x10c
je 0x4513be
mov eax, dword [esi + 4]
test eax, eax
je 0x4513be
jl 0x4514bc
cmp ebx, eax
mov edi, ebx
jb 0x45138f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x451463
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00459ad0
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x451453
cmp ebx, dword [ebp - 0xc]
jb 0x45142b
cmp dword [ebp - 0xc], 0
je 0x4513e8
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x4513dd
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4513e4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4513f3
mov eax, bind
cmp ebx, eax
ja 0x4513f3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x45148f
push eax
push dword [ebp - 8]
push esi
call fcn.00451dfb
pop ecx
push eax
call fcn.004599d3
add esp, 0xc
test eax, eax
je 0x4514ce
cmp eax, 0xffffffff
je 0x4514bc
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x451453
push esi
call fcn.004592f2
cmp eax, 0xffffffff
pop ecx
je 0x4514c0
cmp dword [ebp - 4], 0
je 0x45148f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x451372
mov eax, dword [ebp + 0x14]
jmp 0x45130d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x45147a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00450c80
add esp, 0xc
call fcn.004547fc
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x451303
cmp dword [ebp + 0xc], 0xffffffff
je 0x4514a5
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00450c80
add esp, 0xc
call fcn.004547fc
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x451303
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x45130d
or dword [esi + 0xc], 0x10
jmp 0x4514c0
Function at 0x454963
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x471b50]
je 0x45497e
inc edi
cmp edi, 0x17
jb 0x45496f
cmp edi, 0x17
jae 0x454afe
push ebp
push 3
call fcn.0045efa3
cmp eax, 1
pop ecx
je 0x454aca
push 3
call fcn.0045efa3
test eax, eax
pop ecx
jne 0x4549b2
cmp dword [0x471388], 1
je 0x454aca
cmp ebx, 0xfc
je 0x454afd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x473a90
push ebp
call fcn.0045ed09
add esp, 0xc
test eax, eax
je 0x4549e8
push esi
push esi
push esi
push esi
push esi
call fcn.004546a1
add esp, 0x14
push 0x104
mov esi, 0x473aa9
push esi
push 0
mov byte [0x473bad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x454a2c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0045ed09
add esp, 0xc
test eax, eax
je 0x454a2c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004546a1
add esp, 0x14
push esi
call fcn.0044e5e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x454a71
push esi
call fcn.0044e5e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x473da4
push 0x467698
sub ecx, eax
push ecx
push eax
call fcn.0045ec56
add esp, 0x14
test eax, eax
je 0x454a71
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004546a1
add esp, 0x14
jmp 0x454a73
xor esi, esi
push 0x46c094
push ebx
push ebp
call fcn.0045eb98
add esp, 0xc
test eax, eax
je 0x454a93
push esi
push esi
push esi
push esi
push esi
call fcn.004546a1
add esp, 0x14
push dword [edi*8 + 0x471b54]
push ebx
push ebp
call fcn.0045eb98
add esp, 0xc
test eax, eax
je 0x454ab5
push esi
push esi
push esi
push esi
push esi
call fcn.004546a1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045ede6
add esp, 0xc
jmp 0x454afd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x454afd
cmp ebp, 0xffffffff
je 0x454afd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x471b54]
push dword [esi]
call fcn.0044e5e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x459f69
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x471df4]
jne 0x459f73
repz ret
jmp fcn.004618d7

Function at 0x45ede6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00454118
xor ebx, ebx
cmp dword [0x47411c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45eebc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45ef9c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46944c
push edi
call esi
cmp eax, ebx
je 0x45ef9c
push eax
call fcn.004540aa
mov dword [esp], 0x46943c
push edi
mov dword [0x47411c], eax
call esi
push eax
call fcn.004540aa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x474120], eax
call esi
push eax
call fcn.004540aa
mov dword [0x474124], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044e05e
test eax, eax
pop ecx
pop ecx
je 0x45ee8a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004546a1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45eebc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004540aa
cmp eax, ebx
pop ecx
mov dword [0x47412c], eax
je 0x45eebc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004540aa
pop ecx
mov dword [0x474128], eax
mov eax, dword [0x474128]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45ef41
cmp dword [0x47412c], ecx
je 0x45ef41
push eax
call fcn.00454121
push dword [0x47412c]
mov esi, eax
call fcn.00454121
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45ef41
cmp edi, ebx
je 0x45ef41
call esi
cmp eax, ebx
je 0x45ef0e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45ef0e
test byte [ebp - 0x18], 1
jne 0x45ef41
lea eax, [ebp - 0x10]
push eax
call fcn.0044e095
test eax, eax
pop ecx
je 0x45ef29
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004546a1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45ef38
or dword [ebp + 0x10], 0x200000
jmp 0x45ef7c
or dword [ebp + 0x10], 0x40000
jmp 0x45ef7c
mov eax, dword [0x474120]
cmp eax, dword [ebp - 8]
je 0x45ef7c
push eax
call fcn.00454121
cmp eax, ebx
pop ecx
je 0x45ef7c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45ef7c
mov eax, dword [0x474124]
cmp eax, dword [ebp - 8]
je 0x45ef7c
push eax
call fcn.00454121
cmp eax, ebx
pop ecx
je 0x45ef7c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47411c]
call fcn.00454121
cmp eax, ebx
pop ecx
je 0x45ef9c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45ef9e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4033e0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40dbf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
mov edi, ecx
push str.Shell_TrayWnd
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov esi, eax
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x4034a0
cmp esi, ebx
je 0x403482
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x24]
push edx
push 0x402b90
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov edx, dword [edi + 0x20]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp edi, ebx
jne 0x40346e
xor eax, eax
jmp 0x403471
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x34]
push ecx
push edx
push 3
push eax
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push ebx
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, ebx
je 0x4034eb
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x24]
push edx
push 0x402b90
push eax
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov edx, dword [edi + 0x20]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp edi, ebx
je 0x4034da
mov ebx, dword [edi + 0x20]
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x24]
push eax
push ecx
push 3
push ebx
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push 5
jmp 0x403483

Function at 0x4050b0
Capabilities:
Create http request

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
mov dword [esi + 0xc], eax
je 0x4050c6
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx]
jmp 0x4050c8
xor ecx, ecx
neg eax
sbb eax, eax
push 0
push 0
and eax, 3
push ecx
push eax
push str.DownLoadServer
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
pop esi
test eax, eax
je 0x405104
lea edx, [esp + 4]
push 4
push edx
push 2
push eax
mov dword [esp + 0x14], 0x2710
call dword [sym.imp.WININET.dll_InternetSetOptionA]
xor eax, eax
ret 8
mov eax, 2
ret 8
Function at 0x405120
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
sub esp, 0x1fc
mov eax, dword [esp + 0x200]
mov ecx, dword [ecx]
push ebx
push esi
push edi
push 0
push SysReAllocString
push 0
push 0
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x4051f6
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea edx, [esp + 0xc]
push 0
lea eax, [esp + 0x18]
push edx
push eax
push 0x13
push esi
mov dword [esp + 0x20], 0x1f4
call ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0xc8
jne 0x4051f6
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x14]
push eax
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 5
push esi
mov dword [esp + 0x20], 0x1f4
call ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
ja 0x4051c7
mov eax, 0x2710
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x218]
cmp eax, ecx
jbe 0x4051d4
mov eax, ecx
mov edx, dword [esp + 0x210]
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [edx], eax
mov edx, dword [esp + 0x21c]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
xor edi, edi
jmp 0x4051fb
mov edi, 2
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x1fc
ret 0x10
Function at 0x406c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40df81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 8], al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.00406d90
test al, al
jne 0x406d17
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x406d02
mov al, byte [ecx - 1]
cmp al, bl
je 0x406cf8
cmp al, 0xff
je 0x406cf8
dec al
pop esi
mov byte [ecx - 1], al
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.0040a430
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
push ecx
mov ecx, esi
call fcn.00407b50
mov ecx, eax
call fcn.0040a900
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.0040a780
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x406d6e
mov al, byte [ecx - 1]
cmp al, bl
je 0x406d64
cmp al, 0xff
je 0x406d64
dec al
mov byte [ecx - 1], al
jmp 0x406d6e
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x407930
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40e06b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x34]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x14], ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x3c]
push eax
push ebx
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esi + 0x5c]
mov edx, dword [esp + 0x44]
add esi, 0x30
cmp eax, ebx
mov dword [esp + 0x28], edx
je 0x407a2f
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x407a2f
lea ecx, [eax + 0x20]
cmp ecx, edx
jne 0x4079ec
mov dword [esp + 0x40], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x34], 2
je 0x4079df
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call fcn.00409b90
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.00408cf0
jmp 0x407a5a
mov edi, eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
cmp edi, ebx
mov byte [esp + 0x34], 3
je 0x407a5a
mov eax, dword [esp + 0xc]
mov edx, edi
mov dword [edx], eax
mov ecx, dword [esp + 0x10]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 0xc]
mov dword [edx + 8], eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edx, dword [esp + 0x28]
mov dword [edi + 0x1c], edx
jmp 0x407a5a
mov ecx, esi
call fcn.00408cf0
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
lea eax, [ecx + 0x20]
mov dword [esi + 0x1c], eax
cmp ecx, ebx
mov byte [esp + 0x34], 1
je 0x407a5a
lea edx, [esp + 0xc]
push edx
call fcn.00409b90
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebx
mov dword [esi + 0x2c], edx
je 0x407a86
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x407a7d
cmp al, 0xff
je 0x407a7d
dec al
mov byte [ecx], al
jmp 0x407a86
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x40c100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e2c8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40c18f
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]
test eax, eax
je 0x40c18f
push 0
push ebx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CMemFile::CMemFile
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
mov dword [esp + 0x44], 0
call fcn.0040c1b0
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x40], 0xffffffff
call fcn.0040d1fa
mov eax, esi
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x40c896
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x18]
test ebx, ebx
mov dword [esi + 0x108], 0
mov dword [esi + 0x110], 1
jle 0x40c8cd
mov eax, ebx
push edi
shl eax, 4
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi], eax
mov eax, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40c8e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40c8ea
test ebx, ebx
jg 0x40c90f
mov ecx, dword [esi]
mov dword [esi + 0x110], 2
push ecx
call ebp
push edi
push 0
push 0xf001f
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40c92d
mov dword [esi + 0x110], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0
push 0
push 0
push 0
push 4
push 6
push edi
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
push 0x103
lea edx, [esi + 4]
push edi
push edx
mov dword [esi + 0x108], 0x10
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [esi]
add esp, 0xc
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x10c], eax
jne 0x40c97c
mov ecx, dword [esi]
push ecx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8