joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe4a250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xe5e808
push 0xe4e288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xe4a329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xe4a329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00e4d1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xe4a329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xe4a329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xe4a32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00e4a351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xe4ad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xe4ad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xe4ad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xe4ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xe4ad94
push eax
push esi
call fcn.00e4d20b
add esp, 8
pop esi
ret 0x10

Function at 0xe4ada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xe4ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xe4ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xe63320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e4cdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xe4adda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xe4ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xe4aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xe4aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xe63320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e4cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xe4aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xe4ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xe4b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xe4b131
push esi
call fcn.00e4e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00e3d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xe4b131
push 0
push ebp
call fcn.00e3d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00e3d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xe4b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00e3d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xe4b121
push 0xe63918
push edi
call fcn.00e4c3f0
push eax
push ebx
push esi
call fcn.00e4af60
push 0xe638f8
push edi
call fcn.00e4c3f0
push eax
push ebx
push esi
call fcn.00e4af60
push 0xe638d8
push edi
call fcn.00e4c3f0
push eax
push ebx
push esi
call fcn.00e4af60
push 0xe638c0
push edi
call fcn.00e4c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00e4af60
push 0xe638a0
push edi
call fcn.00e4c3f0
push eax
push ebx
push esi
call fcn.00e4af60
push 0xe63888
push edi
call fcn.00e4c3f0
push eax
push ebx
push esi
call fcn.00e4af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xe4c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e4c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e4c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e4c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e4c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe4cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe4cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe5e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe4cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe4cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x438ef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438f12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438f19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438f08
mov eax, 1
add ebx, ebx
jne 0x438f2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438f20
jne 0x438f3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438f20
xor ecx, ecx
sub eax, 3
jb 0x438f50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438fc2
mov ebp, eax
add ebx, ebx
jne 0x438f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x438f68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x438f8c
inc ecx
add ebx, ebx
jne 0x438f78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x438f6d
jne 0x438f89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438f6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x438fac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x438f9d
jmp 0x438f0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x438fac
add edi, ecx
jmp 0x438f0e
pop esi
mov edi, esi
mov ecx, 0x803
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x438fca
cmp byte [edi], 0xc
jne 0x438fca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x438fcf
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x43903e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3bc28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3bcc8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x438ffc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3bccc]
or eax, eax
je 0x439038
mov dword [ebx], eax
add ebx, 4
jmp 0x439019
call dword [esi + 0x3bcd0]
popal
jmp 0x40109c
Function at 0x4043e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x1c]
push 0x124
push 0
push eax
mov dword [esp + 0x20], edi
call fcn.0055ed60
add esp, 0xc
mov dword [esp + 0x18], 0x128
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, eax
mov ecx, 0x103
mov dl, byte [esp + ecx + 0x3c]
cmp dl, 0x5c
je 0x40445b
cmp dl, 0x2f
je 0x40445b
sub ecx, 1
jns 0x404442
lea eax, [esp + 0x3c]
jmp 0x404461
lea eax, [esp + 0x3d]
add eax, ecx
test esi, esi
je 0x4044e3
push dword [esp + 0x10]
push eax
call fcn.00562045
add esp, 8
test eax, eax
jne 0x4044a5
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x404498
mov ecx, 0x4a
lea esi, [esp + 0x18]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x128
mov edi, dword [esp + 0x14]
jmp 0x4044a5
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, ebx
call fcn.004045a0
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov esi, eax
mov ecx, 0x103
nop dword [eax + eax]
mov dl, byte [esp + ecx + 0x3c]
cmp dl, 0x5c
je 0x4044d9
cmp dl, 0x2f
je 0x4044d9
sub ecx, 1
jns 0x4044c0
lea eax, [esp + 0x3c]
jmp 0x4044df
lea eax, [esp + 0x3d]
add eax, ecx
test esi, esi
jne 0x404465
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret

Function at 0x406230
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d368
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61de38]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov edx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004043e0
mov edi, dword [ebp - 0x18]
mov esi, edi
mov ebx, dword [ebp - 0x14]
cmp esi, ebx
je 0x4062b7
nop word [eax + eax]
push dword [esi + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4062ad
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add esi, 0x128
cmp esi, ebx
jne 0x406290
test edi, edi
je 0x4062fd
mov ecx, dword [ebp - 0x10]
mov eax, 0xdd67c8a7
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x128
mov eax, edi
cmp ecx, 0x1000
jb 0x4062f3
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40630f
push ecx
push edi
call fcn.0055c9a5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00561e63
int3
Function at 0x406350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x406378
pop edi
pop ebp
pop ebx
ret
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40638e
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406385
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4063c2
nop dword [eax + eax]
cmp esi, ecx
jae 0x406385
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4063b0
cmp esi, ecx
jae 0x406385
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x4064c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
mov ebp, ecx
push edi
call fcn.0042b6cf
mov ebx, eax
test ebx, ebx
jne 0x4064db
pop edi
pop ebp
pop ebx
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4065c1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4065c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4065c1
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x406546
nop
cmp esi, ecx
jae 0x4065c1
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x406530
cmp esi, ecx
jae 0x4065c1
movzx eax, word [esi]
test ax, ax
je 0x4065c1
push 0
push 0
push 0
push 0
push eax
lea ebx, [esi + 2]
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x4065ca
mov eax, dword [ebp]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x40658e
push edi
mov ecx, ebp
call fcn.00403b00
mov eax, dword [ebp]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp]
cmp edi, dword [eax - 8]
jg 0x4065ca
mov dword [eax - 0xc], edi
mov eax, dword [ebp]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebp
pop ebx
ret 4
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0x80070057
call fcn.00402d70
int3
Function at 0x406800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
xor dl, dl
push ebx
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x406909
test eax, 0xffff0000
jne 0x406909
movzx edi, ax
push edi
call fcn.0042b6cf
mov ebx, eax
test ebx, ebx
je 0x406907
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x406907
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406907
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406907
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x406898
cmp esi, ecx
jae 0x406907
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x406882
cmp esi, ecx
jae 0x406907
movzx eax, word [esi]
test ax, ax
je 0x406907
push 0
push 0
push 0
push 0
push eax
lea ebx, [esi + 2]
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x406912
mov edx, dword [ebp]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4068e0
push edi
mov ecx, ebp
call fcn.00403b00
mov edx, dword [ebp]
movzx eax, word [esi]
push 0
push 0
push edi
push edx
push eax
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp]
cmp edi, dword [eax - 8]
jg 0x406912
mov dword [eax - 0xc], edi
mov eax, dword [ebp]
mov byte [edi + eax], 0
mov dl, 1
pop edi
pop esi
pop ebp
mov al, dl
pop ebx
ret 4
push 0x80070057
call fcn.00402d70
int3
Function at 0x406920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, ecx
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x406a0e
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406a0e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406a0e
push dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x406997
cmp esi, ecx
jae 0x406a0e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x406981
cmp esi, ecx
jae 0x406a0e
movzx eax, word [esi]
test ax, ax
je 0x406a0e
push 0
push 0
push 0
push 0
push eax
lea ebp, [esi + 2]
push ebp
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x406a17
mov eax, dword [ebx]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x4069dd
push edi
mov ecx, ebx
call fcn.00403b00
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
push ebp
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebx]
cmp edi, dword [ecx - 8]
jg 0x406a17
mov dword [ecx - 0xc], edi
mov eax, 1
mov ecx, dword [ebx]
mov byte [edi + ecx], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
push 0x80070057
call fcn.00402d70
int3
Function at 0x406fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push 0x5ebf8c
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x407000
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4070c3
test esi, esi
je 0x4070c3
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0xc]
push 0
push eax
push 0x20
push edi
push esi
call ebx
test eax, eax
jne 0x40702a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4070c3
cmp dword [esp + 0xc], 0
je 0x4070c3
push 0
lea eax, [esp + 0x10]
push eax
push 0x20
lea eax, [edi + 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x407051
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4070c3
cmp dword [esp + 0xc], 0
je 0x4070c3
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [edi + 0x40]
push eax
push esi
call ebx
test eax, eax
jne 0x407074
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4070c3
cmp dword [esp + 0xc], 0
je 0x4070c3
push 4
lea eax, [edi + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.00412940
test eax, eax
je 0x4070bf
push 4
lea eax, [edi + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.00412940
test eax, eax
je 0x4070bf
push 4
lea eax, [edi + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.00412940
test eax, eax
je 0x4070bf
mov esi, dword [esp + 0x10]
mov edi, 1
jmp 0x4070c5
mov esi, dword [esp + 0x10]
xor edi, edi
test esi, esi
je 0x4070d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407860
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov ebx, edx
push edi
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x4078ad
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push eax
call ebp
test eax, eax
jne 0x4078c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0055c6fa
add esp, 0x2c
ret
cmp dword [esp + 0x14], 0
je 0x4078ad
mov eax, dword [ebx]
mov dword [esp + 0x18], 0
test eax, eax
je 0x4078ad
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea ecx, [esp + 0x24]
push ecx
push eax
call ebp
test eax, eax
je 0x4078a4
cmp dword [esp + 0x14], 0
je 0x4078ad
push dword [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.0041a8fe
xor edi, edi
add esp, 4
mov ebp, eax
cmp dword [esp + 0x18], edi
jbe 0x407995
mov ecx, dword [ebx]
test ecx, ecx
je 0x4078ad
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4078a4
cmp dword [esp + 0x14], 0
je 0x4078ad
mov eax, dword [esp + 0x10]
cmp eax, 0x1c
ja 0x40798e
push eax
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.0055e7e0
mov ecx, dword [esi + 4]
add esp, 0xc
cmp dword [esi + 8], ecx
je 0x407981
movups xmm0, xmmword [esp + 0x1c]
mov eax, dword [esp + 0x34]
movups xmmword [ecx], xmm0
movq xmm0, qword [esp + 0x2c]
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
add dword [esi + 4], 0x1c
jmp 0x40798e
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.004079c0
inc edi
cmp edi, dword [esp + 0x18]
jb 0x407915
cmp dword [esp + 0x10], 0x1c
jne 0x4078ad
mov ecx, dword [esp + 0x38]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055c6fa
add esp, 0x2c
ret