joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1031684
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor ebx, ebx
mov dword [ebp - 8], ecx
cmp byte [ecx + 0x10], bl
jne 0x10317a0
push ebx
push 0x20019
push 0x1007458
mov byte [ecx + 0x10], 1
push 0x80000002
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.01026829
test eax, eax
je 0x10316d1
lea ecx, [ebp - 0x34]
call fcn.010267b6
jmp 0x10317a0
push esi
push edi
xor edi, edi
mov esi, 0x104
jmp 0x1031772
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
mov eax, edi
push eax
push dword [ebp - 0x34]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x103178e
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x103170f
cmp word [ecx], bx
setne al
cmp al, bl
je 0x103176a
cmp dword [ebp - 4], ebx
je 0x103176a
lea ecx, [ebp - 0x28]
call fcn.0102994e
mov eax, dword [ebp - 0x1c]
push 0x2e
pop ecx
cmp cx, word [eax]
push 0xffffffffffffffff
lea ecx, [ebp - 0x28]
jne 0x1031733
add eax, 2
push eax
call fcn.0102a151
mov ecx, dword [ebp - 0x28]
xor eax, eax
cmp ecx, ebx
je 0x1031748
cmp word [ecx], bx
setne al
cmp al, bl
je 0x1031762
push ecx
call fcn.0102abb4
cmp eax, 0xffffffff
jne 0x1031762
push dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
call fcn.01031357
lea ecx, [ebp - 0x28]
call fcn.0102a0ff
lea ecx, [ebp - 0x1c]
call fcn.0102a0ff
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.0102994e
push esi
lea ecx, [ebp - 0x1c]
call fcn.0102a109
test eax, eax
jge 0x10316df
lea ecx, [ebp - 0x1c]
call fcn.0102a0ff
lea ecx, [ebp - 0x34]
call fcn.010267b6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4051db
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x246be54]
mov ecx, dword [0x246b8e4]
sub esp, 0xc04
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4052af
mov edi, ecx
mov ebx, eax
cmp dword [0x246be54], 0x959
jne 0x40529f
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x404d4c
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call fcn.00404fb7
add edi, 8
dec ebx
jne 0x405203
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b08c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441e78]
jne 0x40b096
repz ret
jmp fcn.0040dd2c

Function at 0x40c0ee
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441e78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407707
and dword [ebp - 0x14], 0
cmp dword [0x4593e4], 0
mov dword [ebp - 0x18], eax
jne 0x40c1a1
push 0x402cbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c249
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402cb0
push ebx
call edi
test eax, eax
je 0x40c249
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402ca0
push ebx
mov dword [0x4593e4], eax
call edi
push eax
call esi
push 0x402c8c
push ebx
mov dword [0x4593e8], eax
call edi
push eax
call esi
push 0x402c70
push ebx
mov dword [0x4593ec], eax
call edi
push eax
call esi
mov dword [0x4593f4], eax
test eax, eax
je 0x40c1a1
push 0x402c58
push ebx
call edi
push eax
call esi
mov dword [0x4593f0], eax
mov eax, dword [0x4593f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c1fa
cmp dword [0x4593f4], ecx
je 0x40c1fa
push eax
call esi
push dword [0x4593f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c1fa
test ebx, ebx
je 0x40c1fa
call edi
test eax, eax
je 0x40c1f1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c1f1
test byte [ebp - 8], 1
jne 0x40c1fa
or dword [ebp + 0x10], 0x200000
jmp 0x40c22d
mov eax, dword [0x4593e8]
cmp eax, dword [ebp - 0x18]
je 0x40c22d
push eax
call esi
test eax, eax
je 0x40c22d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c22d
mov eax, dword [0x4593ec]
cmp eax, dword [ebp - 0x18]
je 0x40c22d
push eax
call esi
test eax, eax
je 0x40c22d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4593e4]
call esi
test eax, eax
je 0x40c249
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c24b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b08c
leave
ret
Function at 0x401ba0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401beb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401be4
test esi, esi
je 0x401be4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401bc0
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401dd0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ef8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e5e
cmp eax, 4
jne 0x401e80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e6e
cmp edx, 4
je 0x401e6e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401dd0

Function at 0x403c88
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], ecx
call sym.__getch
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0xd
jne 0x403cab
mov dword [esp], 0x405109
call sym._system
lea eax, [ebp - 0xa]
mov ecx, eax
call fcn.00403d64
lea eax, [ebp - 0xa]
mov ecx, eax
call method.Info.Info__
nop
leave
ret
Function at 0x4019e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
mov dword [ebp - 0x620], 0
call fcn.0040daf0
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.0040daf0
add esp, 0x18
lea edx, [ebp - 0x414]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea eax, [ebp - 0x414]
push eax
push str._sxgyscrashes_s
lea edx, [ebp - 0x20c]
call fcn.004043f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
lea edx, [ebp - 0x20c]
push edx
push str._scrashes__s.txt
lea edx, [ebp - 0x61c]
call fcn.004043f0
add esp, 0xc
push esi
lea ecx, [ebp - 0x61c]
call fcn.00408320
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret
Function at 0x402190
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423daa
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x42e0b0]
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
xor edi, edi
push 0x48
mov dword [ebp - 0x48], edi
call fcn.0040b5cc
add esp, 4
cmp eax, edi
je 0x4022d4
mov dword [ebp - 0x4c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x4c]
mov al, 1
mov byte [ecx + 0x44], al
mov edx, dword [ebp - 0x4c]
mov byte [edx + 0x45], al
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.004011b0
lea esi, [ebp - 0x2c]
lea ebx, [ebp - 0x50]
call fcn.004017c0
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], esi
jb 0x40222b
mov edx, dword [eax]
jmp 0x40222d
mov edx, eax
cmp edx, edi
jne 0x402235
xor eax, eax
jmp 0x40224f
mov eax, edx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402240
sub eax, ebx
sar eax, 1
push edx
push 0x4365e4
mov ebx, eax
call fcn.00408270
cmp dword [ebp - 0x18], esi
jb 0x40226d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040b2be
add esp, 4
mov eax, dword [ebp - 0x40]
cmp eax, edi
je 0x40228a
mov edi, dword [ebp - 0x3c]
call fcn.00403bf0
mov eax, dword [ebp - 0x40]
push eax
call fcn.0040b2be
add esp, 4
xor edi, edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x30]
lea esi, [ebp - 0x50]
call fcn.00403970
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0040b2be
add esp, 4
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.0040b2c9
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x30], edi
call fcn.0040b4c8
push 0x42c2ec
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], vtable.std::bad_alloc.0
call fcn.0040db6a
int3
Function at 0x4030e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
je 0x403188
mov eax, dword [edi + 8]
test eax, eax
je 0x403105
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40311a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
push esi
lea esi, [ebp - 0x14]
mov dword [edi + 0xc], 0
call fcn.00401000
mov ecx, dword [ebp + 8]
push ecx
push 0x6278
push 0
push 4
add eax, 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
pop esi
test eax, eax
je 0x40315e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 4]
test eax, eax
je 0x403188
push 0x6278
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x403190
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov dword [edi + 0xc], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x406be0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor esi, esi
push ecx
lea edx, [ebp - 0x218]
or eax, 0x2001f
push edx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.00406b20
mov ebx, eax
cmp ebx, esi
je 0x406c58
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x406c43
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x218]
push esi
push esi
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push esi
push eax
mov dword [ebp - 0x21c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x406cdc
lea esp, [esp]
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00406be0
mov ebx, eax
cmp ebx, esi
jne 0x406c32
lea edx, [ebp - 0x228]
push edx
mov edx, dword [ebp - 0x218]
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x21c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x406c90
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x406cf3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], esi
mov ebx, dword [ebp - 0x220]
mov eax, edi
mov dword [ebp - 0x214], esi
call fcn.00406da0
mov edi, eax
mov eax, dword [ebp - 0x218]
cmp eax, esi
je 0x406d19
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret 4
Function at 0x407940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423ca6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, edi
jne 0x4079c0
call fcn.00405d30
mov edi, eax
jmp 0x407ad9
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x4079df
call fcn.00405d30
jmp 0x407ad0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x4079fb
call fcn.00405d30
jmp 0x407ad0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x407a1c
mov edi, 0x8007000e
jmp 0x407ad2
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x407a31
cmp eax, 0xffffffff
jbe 0x407a3b
push 0x80070216
call fcn.004083f0
cmp eax, 0x400
jbe 0x407a6d
lea ecx, [ebp - 0x418]
push ecx
call fcn.00405d00
jmp 0x407a79
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, edi
jne 0x407a91
mov edi, 0x8007000e
jmp 0x407ad2
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x407aaf
call fcn.00405d30
jmp 0x407ad0
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004077a0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x407af2
lea eax, [ebp - 0x418]
call fcn.00405cf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407957
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423ca6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x42e0b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, edi
jne 0x4079c0
call fcn.00405d30
mov edi, eax
jmp 0x407ad9
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x4079df
call fcn.00405d30
jmp 0x407ad0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x4079fb
call fcn.00405d30
jmp 0x407ad0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x407a1c
mov edi, 0x8007000e
jmp 0x407ad2
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x407a31
cmp eax, 0xffffffff
jbe 0x407a3b
push 0x80070216
call fcn.004083f0
cmp eax, 0x400
jbe 0x407a6d
lea ecx, [ebp - 0x418]
push ecx
call fcn.00405d00
jmp 0x407a79
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, edi
jne 0x407a91
mov edi, 0x8007000e
jmp 0x407ad2
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x407aaf
call fcn.00405d30
jmp 0x407ad0
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004077a0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x407af2
lea eax, [ebp - 0x418]
call fcn.00405cf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b2c9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x42f36c
call fcn.0040b09b
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x407f04
test esi, esi
jne 0x407f04
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x407ee8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407ee2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407ee2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x407ed1
cmp esi, eax
jae 0x407ed5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407ec3
cmp esi, eax
jb 0x407ed9
xor eax, eax
jmp 0x407ee2
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x407f0d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x42f36c
call fcn.0040b09b
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x407e75
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407f38
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407f6a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x407f66
cmp esi, eax
jae 0x407f6a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407f58
cmp esi, eax
jb 0x407f70
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret