joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037b0
Capabilities:
Create thread
Query environment variable

Disassembly:
sub esp, 0x84
mov eax, dword [0x4415f0]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push edi
mov edi, dword [esp + 0x94]
call fcn.00403340
call fcn.004032c0
mov eax, dword [sym.imp.python39.dll_Py_DebugFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python39.dll_Py_InspectFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python39.dll_Py_InteractiveFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python39.dll_Py_OptimizeFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python39.dll_Py_DontWriteBytecodeFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python39.dll_Py_NoUserSiteDirectory]
mov dword [eax], 1
mov eax, dword [sym.imp.python39.dll_Py_IgnoreEnvironmentFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python39.dll_Py_VerboseFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python39.dll_Py_BytesWarningFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python39.dll_Py_UTF8Mode]
mov dword [eax], 0
mov eax, dword [sym.imp.python39.dll_Py_UTF8Mode]
cmp dword [eax], 0
je 0x40386a
mov eax, dword [sym.imp.python39.dll_Py_FileSystemDefaultEncoding]
cmp dword [eax], 0
jne 0x40386a
mov dword [eax], 0x42f998
mov eax, dword [sym.imp.python39.dll_Py_HasFileSystemDefaultEncoding]
mov dword [eax], 1
mov eax, dword [sym.imp.python39.dll_Py_FrozenFlag]
mov dword [0x442634], edi
mov dword [eax], 1
mov eax, dword [sym.imp.python39.dll_Py_NoSiteFlag]
mov dword [eax], 1
push dword [edi]
call dword [sym.imp.python39.dll_Py_SetProgramName]
mov esi, dword [esp + 0x94]
push 1
push edi
push esi
mov dword [0x442638], esi
call fcn.00403400
call fcn.00403010
mov eax, dword [sym.imp.python39.dll_Py_NoSiteFlag]
push 0
push edi
push esi
mov dword [eax], 1
call fcn.00403400
push dword [0x442634]
push esi
call dword [sym.imp.python39.dll_PySys_SetArgv]
call fcn.004142b0
call fcn.00401000
call fcn.00401990
call fcn.004145b0
call fcn.00414950
call fcn.00414a10
call fcn.004149d0
call fcn.00414bd0
call fcn.00414990
call fcn.00414e20
call fcn.00414ec0
call fcn.004168d0
call fcn.00419cb0
call fcn.00419ca0
call fcn.004034e0
call fcn.004172f0
call fcn.00419f00
mov ecx, dword [sym.imp.python39.dll_PyImport_FrozenModules]
mov eax, dword [0x44263c]
mov dword [ecx], eax
call fcn.00401180
call dword [sym.imp.python39.dll__PyWarnings_Init]
call fcn.00419b20
push dword [0x442640]
push 0x42f8c0
call fcn.004036b0
push dword [0x442644]
push str.PYTHONHOME
call fcn.004036b0
push 0x80
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0041b410
add esp, 0x40
lea eax, [esp + 8]
push 0x80
push eax
push str.NUITKA_ONEFILE_PARENT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
pop edi
pop esi
cmp eax, 0x7d
ja 0x4039b3
lea eax, [esp]
push eax
call fcn.0041d12b
add esp, 4
mov dword [0x44264c], eax
push 0
push 0
push 0
push 0x4031b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.__main__
call fcn.00402ff0
push eax
call dword [sym.imp.python39.dll_PyDict_DelItemString]
push str.__main__
call fcn.00402f50
add esp, 0xc
call fcn.00402f60
push eax
call dword [sym.imp.python39.dll_Py_Exit]
int3
Function at 0x40ef10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x40ef1b
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
movzx eax, byte [esi]
shl eax, 7
sub edx, 1
js 0x40ef43
nop dword [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
imul eax, eax, 0xf4243
xor eax, ecx
sub edx, 1
jns 0x40ef30
xor eax, edx
mov ecx, 0xfffffffe
cmp eax, 0xffffffff
pop esi
cmove eax, ecx
ret

Function at 0x416100
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
xor esi, esi
test edi, edi
je 0x4161d0
push ebx
mov ebx, dword [esp + 0x10]
movzx ecx, byte [esi + ebx]
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
inc esi
xor eax, ecx
cmp esi, edi
jb 0x416118
pop ebx
pop edi
not eax
pop esi
ret
Function at 0x418500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp byte [0x442e24], 0
push esi
push edi
jne 0x41855c
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x442680], eax
mov esi, dword [eax]
add eax, 4
mov dword [0x442680], eax
mov ecx, dword [eax]
lea edi, [eax + 4]
push ecx
push edi
mov dword [0x442680], edi
call fcn.00416100
add esp, 8
cmp eax, esi
jne 0x4186bd
mov byte [0x442e24], 1
jmp 0x418562
mov edi, dword [0x442680]
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, 0x42f7bc
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418590
test dl, dl
je 0x41858c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418590
add eax, 2
add ecx, 2
test dl, dl
jne 0x418570
xor eax, eax
jmp 0x418595
sbb eax, eax
or eax, 1
test eax, eax
je 0x418605
cmp byte [0x442e04], 1
je 0x418605
mov esi, dword [sym.imp.python39.dll_PyDict_New]
call esi
mov dword [0x44296c], eax
call esi
mov dword [0x442970], eax
call esi
mov dword [0x442974], eax
call esi
mov dword [0x442978], eax
call esi
mov dword [0x44297c], eax
call esi
mov dword [0x442980], eax
call esi
mov dword [0x442984], eax
call esi
mov dword [0x442988], eax
mov eax, dword [sym.imp.python39.dll__PyRuntime]
mov eax, dword [eax + 0x118]
mov edi, dword [0x442680]
mov byte [0x442e04], 1
mov eax, dword [eax + 8]
add eax, 0x754
mov dword [0x442740], eax
mov ecx, edi
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418630
test dl, dl
je 0x41862c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418630
add eax, 2
add ecx, 2
test dl, dl
jne 0x418610
xor edx, edx
jmp 0x418635
sbb edx, edx
or edx, 1
mov ecx, edi
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418640
sub ecx, esi
mov eax, dword [edi + ecx + 1]
lea esi, [edi + ecx]
add esi, 5
test edx, edx
je 0x4186a5
add esi, eax
mov ecx, ebx
mov eax, esi
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x418680
test dl, dl
je 0x41867c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x418680
add ecx, 2
add eax, 2
test dl, dl
jne 0x418660
xor edx, edx
jmp 0x418685
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418690
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x418657
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push dword [esp + 0x18]
call fcn.004152c0
add esp, 0xc
pop ebx
pop edi
pop esi
ret
push str.Error__corrupted_constants_object
call fcn.0041d8e2
add esp, 4
call fcn.0041d3df
int3

Function at 0x426648
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004262c5
Function at 0x401ec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
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 dword [ebp + 0xc], eax
test eax, eax
jne 0x401ee9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401eff
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ef6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x401f32
nop
cmp esi, ecx
jae 0x401ef6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x401f20
cmp esi, ecx
jae 0x401ef6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dd30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
call fcn.004178e2
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x401fdd
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
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 [ebp + 8], eax
test eax, eax
je 0x4020d3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4020d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4020d3
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402046
nop
cmp esi, ecx
jae 0x4020d3
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402030
cmp esi, ecx
jae 0x4020d3
cmp word [esi], 0
je 0x4020d3
movzx eax, word [esi]
lea ecx, [esi + 2]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x4020e8
mov ebx, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [ebx]
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, edi
or edx, ecx
jge 0x402092
push edi
mov ecx, ebx
call fcn.004025e0
movzx eax, word [esi]
push 0
push 0
push edi
push dword [ebx]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x4020e8
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004026c0
int3
Function at 0x402ac0
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp - 0x38]
push esi
push edi
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0xa0], edx
push eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x10], 0x4e52454b
mov dword [ebp - 0xc], 0x32334c45
mov dword [ebp - 8], 0x6c6c642e
mov byte [ebp - 4], 0
mov dword [ebp - 0x98], 0x50746547
mov dword [ebp - 0x94], 0x65636f72
mov dword [ebp - 0x90], 0x65487373
mov word [ebp - 0x8c], 0x7061
mov byte [ebp - 0x8a], 0
mov dword [ebp - 0x48], 0x4e52454b
mov dword [ebp - 0x44], 0x32334c45
mov dword [ebp - 0x40], 0x6c6c642e
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x64616f4c
mov dword [ebp - 0x34], 0x7262694c
mov dword [ebp - 0x30], 0x41797261
mov byte [ebp - 0x2c], 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x10]
push eax
call ebx
test eax, eax
jne 0x402b84
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
jne 0x402b84
xor edi, edi
jmp 0x402b90
lea ecx, [ebp - 0x98]
push ecx
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], 0x70616548
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x24], 0x6c416552
push eax
mov dword [ebp - 0x20], 0x636f6c
mov dword [ebp - 0x68], 0x4e52454b
mov dword [ebp - 0x64], 0x32334c45
mov dword [ebp - 0x60], 0x6c6c642e
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0x64616f4c
mov dword [ebp - 0x54], 0x7262694c
mov dword [ebp - 0x50], 0x41797261
mov byte [ebp - 0x4c], 0
call ebx
push eax
call esi
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x10]
push eax
call ebx
test eax, eax
jne 0x402c06
lea eax, [ebp - 0x10]
push eax
call dword [ebp - 0x9c]
test eax, eax
jne 0x402c06
xor ebx, ebx
jmp 0x402c0f
lea ecx, [ebp - 0x28]
push ecx
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x1c], 0x70616548
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x18], 0x6f6c6c41
push eax
mov word [ebp - 0x14], 0x63
mov dword [ebp - 0x88], 0x4e52454b
mov dword [ebp - 0x84], 0x32334c45
mov dword [ebp - 0x80], 0x6c6c642e
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0x64616f4c
mov dword [ebp - 0x74], 0x7262694c
mov dword [ebp - 0x70], 0x41797261
mov byte [ebp - 0x6c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x402c95
lea eax, [ebp - 0x10]
push eax
call dword [ebp - 0x9c]
test eax, eax
jne 0x402c95
xor esi, esi
jmp 0x402c9e
lea ecx, [ebp - 0x1c]
push ecx
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0xa4]
push dword [ebp - 0xa0]
test eax, eax
je 0x402cbd
push eax
push 0
call edi
push eax
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call edi
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402cd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp - 0x34]
push esi
push edi
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 8], ecx
push eax
mov dword [ebp - 0x24], 0x4e52454b
mov dword [ebp - 0x20], 0x32334c45
mov dword [ebp - 0x1c], 0x6c6c642e
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x74], 0x50746547
mov dword [ebp - 0x70], 0x65636f72
mov dword [ebp - 0x6c], 0x65487373
mov word [ebp - 0x68], 0x7061
mov byte [ebp - 0x66], 0
mov dword [ebp - 0x44], 0x4e52454b
mov dword [ebp - 0x40], 0x32334c45
mov dword [ebp - 0x3c], 0x6c6c642e
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x64616f4c
mov dword [ebp - 0x30], 0x7262694c
mov dword [ebp - 0x2c], 0x41797261
mov byte [ebp - 0x28], 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
jne 0x402d79
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
jne 0x402d79
xor edi, edi
jmp 0x402d82
lea ecx, [ebp - 0x74]
push ecx
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], 0x70616548
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x10], 0x65657246
push eax
mov byte [ebp - 0xc], 0
mov dword [ebp - 0x64], 0x4e52454b
mov dword [ebp - 0x60], 0x32334c45
mov dword [ebp - 0x5c], 0x6c6c642e
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x54], 0x64616f4c
mov dword [ebp - 0x50], 0x7262694c
mov dword [ebp - 0x4c], 0x41797261
mov byte [ebp - 0x48], 0
call ebx
push eax
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
jne 0x402dfd
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 4]
test eax, eax
jne 0x402dfd
push dword [ebp - 8]
xor esi, esi
push esi
call edi
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
push eax
call esi
push dword [ebp - 8]
mov esi, eax
push 0
call edi
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0xc], edx
push eax
mov dword [ebp - 0x1c], 0x4e52454b
mov dword [ebp - 0x18], 0x32334c45
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x4c], 0x74726956
mov dword [ebp - 0x48], 0x416c6175
mov dword [ebp - 0x44], 0x636f6c6c
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0x4e52454b
mov dword [ebp - 0x38], 0x32334c45
mov dword [ebp - 0x34], 0x6c6c642e
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x64616f4c
mov dword [ebp - 0x28], 0x7262694c
mov dword [ebp - 0x24], 0x41797261
mov byte [ebp - 0x20], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x402ec6
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jne 0x402ec6
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x402ed2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call edi
mov edx, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [eax]
mov esi, dword [eax + 4]
xor eax, eax
mov dword [ebp - 8], esi
movzx edi, word [ecx + 0x14]
add edi, 0x28
cmp ax, word [ecx + 6]
jae 0x402f60
add edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x402f1f
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x38]
test esi, esi
jle 0x402f49
mov eax, dword [edi - 4]
add eax, dword [ebp - 8]
push 4
push 0x1000
push esi
push eax
call edx
push esi
push 0
push eax
mov dword [edi - 8], eax
call fcn.0054ed50
jmp 0x402f46
push 4
push 0x1000
push eax
mov eax, dword [edi - 4]
add eax, esi
push eax
call edx
push dword [edi]
mov ecx, dword [edi + 4]
mov esi, eax
add ecx, 0x5cd8d0
push ecx
push esi
call fcn.0054e7d0
mov dword [edi - 8], esi
add esp, 0xc
mov eax, dword [ebp + 8]
inc ebx
mov edx, dword [ebp - 4]
add edi, 0x28
mov esi, dword [ebp - 8]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x402ef0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], 0x4e52454b
mov ebx, ecx
mov dword [ebp - 0x10], 0x32334c45
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], 0
mov dword [ebp - 0x20], 0x74726956
mov dword [ebp - 0x1c], 0x466c6175
mov dword [ebp - 0x18], 0x656572
mov dword [ebp - 0x40], 0x4e52454b
mov dword [ebp - 0x3c], 0x32334c45
mov dword [ebp - 0x38], 0x6c6c642e
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x64616f4c
mov dword [ebp - 0x2c], 0x7262694c
mov dword [ebp - 0x28], 0x41797261
mov byte [ebp - 0x24], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
call edi
test eax, eax
jne 0x403017
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 4]
test eax, eax
jne 0x403017
mov dword [ebp - 0x78], eax
jmp 0x403021
lea ecx, [ebp - 0x20]
push ecx
push eax
call esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x70], 0x74726956
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x6c], 0x506c6175
push eax
mov dword [ebp - 0x68], 0x65746f72
mov word [ebp - 0x64], 0x7463
mov byte [ebp - 0x62], 0
mov dword [ebp - 0x60], 0x4e52454b
mov dword [ebp - 0x5c], 0x32334c45
mov dword [ebp - 0x58], 0x6c6c642e
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x50], 0x64616f4c
mov dword [ebp - 0x4c], 0x7262694c
mov dword [ebp - 0x48], 0x41797261
mov byte [ebp - 0x44], 0
call edi
push eax
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
call edi
test eax, eax
jne 0x40309c
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 4]
test eax, eax
jne 0x40309c
mov dword [ebp - 0x7c], eax
jmp 0x4030a6
lea ecx, [ebp - 0x70]
push ecx
push eax
call esi
mov dword [ebp - 0x7c], eax
mov edi, dword [ebx]
xor eax, eax
mov dword [ebp - 4], 0
movzx esi, word [edi + 0x14]
add esi, 0x28
cmp ax, word [edi + 6]
jae 0x40315c
add esi, edi
mov ebx, dword [esi + 0x14]
mov edx, dword [esi]
test ebx, 0x2000000
je 0x4030df
push 0x4000
push edx
push dword [esi - 8]
call dword [ebp - 0x78]
jmp 0x403141
mov ecx, ebx
mov eax, ebx
shr eax, 0x1e
shr ecx, 0x1d
and eax, 1
and ecx, 1
lea ecx, [eax + ecx*2]
mov eax, ebx
shr eax, 0x1f
lea eax, [eax + ecx*2]
mov ecx, dword [eax*4 + 0x5ae90c]
mov dword [ebp - 0x74], ecx
or dword [ebp - 0x74], 0x200
test ebx, 0x4000000
mov eax, dword [ebp - 0x74]
cmove eax, ecx
mov ecx, edx
test edx, edx
jne 0x403132
test bl, 0x40
je 0x403127
mov edx, dword [edi + 0x20]
jmp 0x40312e
test bl, bl
jns 0x403141
mov edx, dword [edi + 0x24]
test edx, edx
je 0x403141
lea edx, [ebp - 0x84]
push edx
push eax
push ecx
push dword [esi - 8]
call dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
add esi, 0x28
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
mov edi, dword [eax]
movzx eax, word [edi + 6]
cmp ecx, eax
jl 0x4030c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop word [eax + eax]
push 0
mov edi, esi
call dword [sym.imp.KERNEL32.dll_Sleep]
movsx eax, byte [ebx + 0x5cd8c0]
mov ecx, 0x68f7
cdq
idiv ecx
push 0
add dl, 2
xor byte [esi + 0x5cd8d0], dl
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xcccccccd
lea ecx, [ebx + 1]
mul esi
xor ebx, ebx
inc esi
shr edx, 2
lea eax, [edx + edx*4]
cmp edi, eax
cmovne ebx, ecx
cmp esi, 0x110000
jl 0x403c20
pop edi
pop esi
pop ebx
ret

Function at 0x404040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00413a25

Function at 0x406bc2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x406c07
call fcn.00424cc8
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x406c04
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406c4e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x406c2a
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x57d9c8]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x406c4b
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x57d9c8]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc