joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4159b0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x469644]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x21c]
test edi, edi
je 0x415a7a
mov al, byte [edi]
test al, al
je 0x415a7a
push esi
mov esi, edi
mov ecx, edi
jmp 0x4159f0
cmp al, 0x2f
je 0x4159f8
cmp al, 0x5c
jne 0x4159fa
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4159f0
cmp esi, edi
je 0x415a27
sub esi, edi
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00438980
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + esi + 0x20], 0
call fcn.004159b0
add esp, 0x14
lea edx, [esp + 0x110]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x415a32
mov eax, edi
mov edx, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415a40
lea edi, [esp + 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x415a51
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x114]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
mov ecx, dword [esp + 0x210]
pop edi
pop ebx
xor ecx, esp
call fcn.004366ef
add esp, 0x20c
ret
Function at 0x4163b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [esi + 0x18], 0
je 0x41646c
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
add eax, edi
cmp eax, ecx
jb 0x41644b
add ecx, ecx
mov ebp, ecx
cmp ecx, eax
ja 0x4163d8
mov ebp, eax
push 0
push ebp
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x41640d
push ebp
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x416419
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, 0x300
pop ebx
pop ecx
ret 8
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
push ecx
push edx
push edi
call fcn.0043dfc0
mov eax, dword [esi + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x18]
mov dword [esi + 0x20], ebp
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x14]
add eax, dword [esi + 0x18]
push edi
push edx
push eax
call fcn.0043dfc0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esi]
test eax, eax
je 0x416499
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop ecx
ret 8

Function at 0x41bce3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41bd2a
call fcn.00428073
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41bd2a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41bd46
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041b85d
mov esi, eax
test edi, edi
je 0x41bd44
test ebx, ebx
je 0x41bd44
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d710
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44e032
call fcn.00439455
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41d735
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41d77b
lea ecx, [ebp - 0x10]
call fcn.004027b0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041bde8
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401300
mov eax, esi
call fcn.0043952d
ret 8

Function at 0x41e4e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41e507
cmp dword [edi + 0x54], 0
jne 0x41e507
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00428073
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041e4a4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421a23
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x421a4e
call fcn.00428073
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x421a71
push eax
push dword [esi + 4]
call fcn.004219a9
push esi
push eax
mov ecx, 0x46cc74
call fcn.00421637
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x422470
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x44e391
call fcn.00439455
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00422430
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004027b0
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x4224d6
push eax
push dword [esi + 8]
call fcn.004219a9
push dword [esi + 0xc]
mov ecx, 0x46cc74
push eax
call fcn.00421637
mov eax, esi
call fcn.0043952d
ret 0x18
Function at 0x425d8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x425dd4
call fcn.00428073
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x425dd4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x425e17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x425e00
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 0x425e00
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x425e14
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

Function at 0x4366ef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x469644]
jne 0x4366f9
repz ret
jmp fcn.0043deae
Function at 0x44ac08
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043e867
and dword [ebp - 4], 0
cmp dword [0x46da98], 0
mov ebx, eax
jne 0x44acb9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44ad6a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4587b0
push edi
call esi
test eax, eax
je 0x44ad6a
push eax
call fcn.0043e7f5
mov dword [esp], 0x4587a0
push edi
mov dword [0x46da98], eax
call esi
push eax
call fcn.0043e7f5
mov dword [esp], 0x45878c
push edi
mov dword [0x46da9c], eax
call esi
push eax
call fcn.0043e7f5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46daa0], eax
call esi
push eax
call fcn.0043e7f5
pop ecx
mov dword [0x46daa8], eax
test eax, eax
je 0x44acb9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043e7f5
pop ecx
mov dword [0x46daa4], eax
mov eax, dword [0x46daa4]
cmp eax, ebx
je 0x44ad11
cmp dword [0x46daa8], ebx
je 0x44ad11
push eax
call fcn.0043e870
push dword [0x46daa8]
mov esi, eax
call fcn.0043e870
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44ad11
test edi, edi
je 0x44ad11
call esi
test eax, eax
je 0x44ad08
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44ad08
test byte [ebp - 0xc], 1
jne 0x44ad11
or dword [ebp + 0x10], 0x200000
jmp 0x44ad4a
mov eax, dword [0x46da9c]
cmp eax, ebx
je 0x44ad4a
push eax
call fcn.0043e870
pop ecx
test eax, eax
je 0x44ad4a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44ad4a
mov eax, dword [0x46daa0]
cmp eax, ebx
je 0x44ad4a
push eax
call fcn.0043e870
pop ecx
test eax, eax
je 0x44ad4a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46da98]
call fcn.0043e870
pop ecx
test eax, eax
je 0x44ad6a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44ad6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d68
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401da7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401da7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401da7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401da7
cmp dword [ecx + 0x74], 0xe
jbe 0x401da7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406d8c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00406c02

Function at 0x40f1c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f1ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f1ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403a10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x461763
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.0044e83c
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x403a61
mov eax, dword [esi + 0x1c]
push eax
call fcn.00417eb0
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 0x403d10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x460b33
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.0041c798
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 0x403e20
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041cbed
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 0x403dbd
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
jmp 0x403dd8
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.0041ceb4
test ebp, ebp
je 0x403dfe
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0041cf39
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.0041c8ac
jmp 0x403e32
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 0x4066a0
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 0x4067a6
push 0x400
call fcn.00417eb5
mov esi, eax
add esp, 4
test esi, esi
je 0x4067b7
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 0x4067aa
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 0x4067aa
push edi
xor ebx, ebx
xor edi, edi
cmp dword [esi], ebx
jbe 0x406798
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 0x406792
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x406766
mov edx, dword [esp + 0x10]
pop ebp
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x4067aa
mov ebx, 1
pop ebp
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
jmp 0x4067aa
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4067b7
push esi
call fcn.00417eb0
add esp, 4
mov ecx, dword [esp + 0x1c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00432f66
add esp, 0x18
ret
Function at 0x4067d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push edi
call fcn.0041c517
mov edi, dword [eax + 0xc]
push 0x46bf60
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40680a
mov ecx, dword [esp + 0x10]
push eax
push eax
push 0x46c334
call fcn.0041f061
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 0x40682a
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.0043b2c0
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 0x40688b
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 0x40688d
xor esi, esi
push edi
mov dword [0x481c20], 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 0x4068c0
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.0041c517
mov eax, dword [eax + 0xc]
push 0x46c280
push 0x85
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x406916
push eax
push eax
push 0x46c334
mov ecx, ebx
call fcn.0041f061
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00432f66
add esp, 8
ret
push ebp
call fcn.0041c517
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.0041c517
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.0043b2c0
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.00432f66
add esp, 8
ret
Function at 0x406a60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4623a0
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.00408910
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 0x406b0d
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 0x406b31
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 0x406b55
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 0x406b83
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.00432f66
add esp, 0x21c
ret 0x10

Function at 0x408110
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 0x408129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408160
lea ebx, [ebx]
cmp esi, eax
jae 0x408164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408150
cmp esi, eax
jb 0x40816a
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