joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4920f7
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x507644]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x492128
xor eax, eax
jmp 0x4922b1
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x52a840]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x492164
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004965b7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x49223f
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x49227d
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4921c8
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4921b9
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x492199
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x492208
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x492211
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x49218a
jmp 0x492213
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4922ac
cmp dword [ebp - 0x6c], edi
je 0x49227d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x492272
call fcn.00488942
mov dword [eax], 9
call fcn.0048894b
mov dword [eax], esi
jmp 0x4922a7
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x492267
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x492213
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x492213
push dword [ebp - 0x6c]
call fcn.00488954
pop ecx
jmp 0x4922a7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x492295
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x492295
xor eax, eax
jmp 0x4922af
call fcn.00488942
mov dword [eax], 0x1c
call fcn.0048894b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4922af
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00490539
add ebp, 0x3a0
leave
ret
Function at 0x49242c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x492600
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x52a840]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x492600
test cl, 0x48
je 0x492497
cmp byte [eax + 5], 0xa
je 0x492497
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4924e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4924d1
call fcn.00488942
mov dword [eax], 9
call fcn.0048894b
mov dword [eax], esi
jmp 0x4924e1
cmp eax, 0x6d
je 0x492600
push eax
call fcn.00488954
pop ecx
or eax, 0xffffffff
jmp 0x492602
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4925fb
test eax, eax
je 0x492510
cmp byte [ebx], 0xa
jne 0x492510
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x492519
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4925f5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4925e5
cmp al, 0xd
je 0x49254b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4925d7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x492565
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x492560
add dword [ebp + 0x10], 2
jmp 0x4925b9
mov dword [ebp + 0x10], eax
jmp 0x4925d3
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49258d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4925d3
cmp dword [ebp - 0xc], 0
je 0x4925d3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4925ae
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4925b9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4925d6
cmp ebx, dword [ebp + 0xc]
jne 0x4925be
cmp byte [ebp - 1], 0xa
jne 0x4925be
mov byte [ebx], 0xa
jmp 0x4925d6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004935c8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4925d7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x49252f
jmp 0x4925f5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4925f5
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x492602
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x494342
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x526cd0], ebx
push esi
push edi
jne 0x4943c2
push 0x4ea1d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4943fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ea1cc
push edi
call esi
test eax, eax
mov dword [0x526cd0], eax
je 0x4943fd
push 0x4ea1bc
push edi
call esi
push 0x4ea1a8
push edi
mov dword [0x526cd4], eax
call esi
cmp dword [0x5268f8], 2
mov dword [0x526cd8], eax
jne 0x4943c2
push 0x4ea18c
push edi
call esi
test eax, eax
mov dword [0x526ce0], eax
je 0x4943c2
push 0x4ea174
push edi
call esi
mov dword [0x526cdc], eax
mov eax, dword [0x526cdc]
test eax, eax
je 0x494407
call eax
test eax, eax
je 0x4943ee
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x526ce0]
test eax, eax
je 0x4943ee
test byte [ebp - 8], 1
jne 0x494407
cmp dword [0x526904], 4
jb 0x494401
or byte [ebp + 0x12], 0x20
jmp 0x494426
xor eax, eax
jmp 0x494436
or byte [ebp + 0x12], 4
jmp 0x494426
mov eax, dword [0x526cd4]
test eax, eax
je 0x494426
call eax
mov ebx, eax
test ebx, ebx
je 0x494426
mov eax, dword [0x526cd8]
test eax, eax
je 0x494426
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x526cd0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49451a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x494548
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x49454f
cmp ebx, dword [eax + 4]
jae 0x49454f
xor eax, eax
jmp 0x49473f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x494560
xor eax, eax
inc eax
jmp 0x49473e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x494576
cmp ecx, edx
jae 0x4946bb
cmp dword [eax + 4], 0
je 0x49457f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x494567
cmp dword [ebp + 8], 0
je 0x4945a1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4946bb
cmp eax, esi
jae 0x4946bb
mov eax, dword [0x526ce8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4945c6
cmp dword [esi*4 + 0x526cf0], edi
je 0x4946bf
inc esi
cmp esi, eax
jl 0x4945b4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49473b
cmp dword [ebp - 8], 0x1000000
jne 0x49473b
test byte [ebp - 0xc], 0xcc
je 0x494644
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x49473b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x49473b
cmp word [eax + 0x18], 0x10b
jne 0x49473b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x49473b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x494644
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x494644
test byte [ecx + 0x27], 0x80
jne 0x4946bb
push 1
push 0x526d30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x494558
mov ecx, dword [0x526ce8]
test ecx, ecx
mov edx, ecx
jle 0x494678
lea eax, [ecx*4 + 0x526cec]
cmp dword [eax], edi
je 0x494678
dec edx
sub eax, 4
test edx, edx
jg 0x49466c
test edx, edx
jne 0x4946a9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x494685
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x49469d
lea eax, [edx*4 + 0x526cf0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x49468b
cmp ecx, 0x10
jge 0x4946a9
inc ecx
mov dword [0x526ce8], ecx
push 0
push 0x526d30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x494558
xor eax, eax
jmp 0x49473e
test esi, esi
jle 0x494558
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x526d30
call ebx
test eax, eax
jne 0x494558
cmp dword [esi*4 + 0x526cf0], edi
je 0x494715
mov eax, dword [0x526ce8]
lea esi, [eax - 1]
test esi, esi
jl 0x494703
cmp dword [esi*4 + 0x526cf0], edi
je 0x4946ff
dec esi
jns 0x4946f3
test esi, esi
jge 0x494713
cmp eax, 0x10
jge 0x49470e
inc eax
mov dword [0x526ce8], eax
lea esi, [eax - 1]
jmp 0x494715
je 0x49472d
xor ecx, ecx
test esi, esi
jl 0x49472d
lea eax, [ecx*4 + 0x526cf0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x49471b
push 0
push 0x526d30
call ebx
jmp 0x494558
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x496e8f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00487d30
mov eax, dword [0x507644]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004935c8
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x496fc2
push 2
push esi
push dword [ebp + 8]
call fcn.004935c8
add esp, 0xc
cmp eax, ebx
je 0x496fc2
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x496f62
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00489660
push 0x8000
push dword [ebp + 8]
call fcn.00496fd0
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x496f18
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004920f7
add esp, 0xc
cmp eax, 0xffffffff
je 0x496f38
sub edi, eax
test edi, edi
jg 0x496f10
jmp 0x496f50
call fcn.0048894b
cmp dword [eax], 5
jne 0x496f4d
call fcn.00488942
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00496fd0
pop ecx
pop ecx
jmp 0x496faa
jge 0x496faa
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004935c8
push dword [ebp + 8]
call fcn.00495ffc
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x496faa
call fcn.00488942
mov dword [eax], 0xd
call fcn.0048894b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004935c8
add esp, 0xc
mov eax, esi
pop edi
jmp 0x496fc4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00490539
leave
ret

Function at 0x49b843
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49b87b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004998e7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004998bf
jmp 0x49b887
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49cf31
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49cf73
call fcn.004a28b3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49cf73
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49cf6a
xor eax, eax
jmp 0x49cf7b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049cf81
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a2de3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a2e11
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a2e2f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a2d49
jmp 0x4a2e2f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a2e2f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a2d49
test edi, edi
mov eax, edi
jne 0x4a2e19
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0xa791b0
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.00a79140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a79140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a79140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a79140
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 0xa79bfa
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 0xa79c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa8b87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa79c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa79c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x163428ce
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x54321a53
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x405830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x676db2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x71a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], al
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], al
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0xf
mov byte [edi + 0x4c], al
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 0xf
mov byte [edi + 0x64], al
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], 0xf
mov byte [edi + 0x7c], al
lea esi, [edi + 0x94]
mov byte [ebp - 4], 5
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0042e951
add esp, 4
cmp dword [ebp + 8], 0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
setne al
mov byte [edi], al
mov eax, edi
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 0x40c220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c279
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c279
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40c26a
cmp esi, edx
jae 0x40c279
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40c258
cmp esi, edx
jae 0x40c279
cmp word [esi], 0
je 0x40c279
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40d4b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6774e2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x71a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.00429100
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x40d548
push eax
push esi
call fcn.0042952c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.0040d470
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040d410
int3
Function at 0x4113b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x676f40
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x71a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042e951
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00429425
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6780d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x71a06c]
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
mov dword [ebp - 0x3c], ecx
push 0x10
push str.B873F776C2D3EB99
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00407210
mov dword [ebp - 4], 0
call fcn.0041a9d0
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
mov edx, 0x811c9dc5
cmovae esi, ebx
mov dword [ebp - 0x2c], eax
mov edi, dword [eax + 4]
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jbe 0x418625
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp - 0x18]
jb 0x418610
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x2c]
and eax, edx
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 0x30], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x34], eax
cmp edx, edi
jne 0x41864a
mov eax, edi
jmp 0x41864e
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x418683
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 8]
push eax
call fcn.0041a190
test al, al
je 0x41866d
mov esi, dword [esi]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
jmp 0x418642
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041a190
test al, al
mov ecx, edi
cmove ecx, esi
jmp 0x418685
mov ecx, edi
cmp ecx, edi
je 0x4186c7
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0041b130
mov eax, dword [ebp - 0x38]
mov esi, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
cmp esi, edi
je 0x4186c4
mov ebx, dword [ebp - 0x3c]
nop dword [eax]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x418717
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
add esi, 0x28
cmp esi, edi
jne 0x4186b0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4186f6
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4186ec
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418712
push ecx
push ebx
call fcn.0042e920
add esp, 8
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.0042e2d5
mov esp, ebp
pop ebp
ret
call fcn.0050d76e
call fcn.00428ee7
int3