joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef40
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit

Function at 0x40f000
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40f08f
cmp al, 9
je 0x40f080
cmp al, 0x20
je 0x40f080
mov dword [ebp - 0x6c], 0
xor esi, esi
lea esi, [esi]
cmp al, 0x5c
je 0x40f0e8
cmp al, 0x22
je 0x40f0f8
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40f08f
cmp al, 9
sete dl
cmp al, 0x20
sete cl
or dl, cl
je 0x40f040
test esi, 1
jne 0x40f040
lea esi, [esi]
nop
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x40f080
cmp al, 0x20
je 0x40f080
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x40f0aa
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40f057
and dword [ebp - 0x6c], 1
jne 0x40f050
xor esi, 1
jmp 0x40f057
Function at 0x4ee3c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc7000]
push edi
or ebp, 0xffffffff
jmp 0x4ee3e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ee3e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee3d8
mov eax, 1
add ebx, ebx
jne 0x4ee3fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ee40c
jne 0x4ee42b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee42b
dec eax
add ebx, ebx
jne 0x4ee418
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ee3f0
add ebx, ebx
jne 0x4ee427
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ee47d
xor ecx, ecx
sub eax, 3
jb 0x4ee443
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ee4b2
sar eax, 1
mov ebp, eax
jmp 0x4ee44e
add ebx, ebx
jne 0x4ee44e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee41c
inc ecx
add ebx, ebx
jne 0x4ee45c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ee41c
add ebx, ebx
jne 0x4ee469
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ee45e
jne 0x4ee47a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ee45e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ee49c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ee48e
jmp 0x4ee3de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ee49c
add edi, ecx
jmp 0x4ee3de
pop esi
mov edi, esi
mov ecx, 0x866
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ee4ba
cmp byte [edi], 0xa
jne 0x4ee4ba
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 al, bl
loop 0x4ee4bf
lea edi, [esi + 0xec000]
mov eax, dword [edi]
or eax, eax
je 0x4ee537
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xee7cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xee920]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ee4ec
mov ecx, edi
jns 0x4ee51b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xee924]
or eax, eax
je 0x4ee531
mov dword [ebx], eax
add ebx, 4
jmp 0x4ee509
call dword [esi + 0xee934]
mov ebp, dword [esi + 0xee928]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ee56b
sub esp, 0xffffff80
jmp 0x465d14
Function at 0x4058e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push ecx
push eax
call fcn.004062a0
add esp, 8
lea eax, [ebp - 0x18]
cmp dword [ebp - 4], 8
cmovae eax, dword [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 4]
mov dword [ebx], eax
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x405951
mov ecx, dword [ebp - 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405947
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405957
push edx
push ecx
call fcn.00451338
add esp, 8
mov esp, ebp
pop ebp
ret 0x10
call fcn.0046c98c
int3

Function at 0x405960
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov esi, dword [ebp + 8]
jb 0x405978
mov eax, dword [edi]
push eax
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [ebp + 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test esi, esi
je 0x405997
mov ecx, 1
test ebx, ebx
jne 0x40599c
mov ecx, 2
mov esi, dword [edi + 0x1c]
add eax, ecx
mov edx, dword [edi + 0x18]
cmp eax, esi
jb 0x4059c1
add esi, esi
push edx
mov dword [edi + 0x1c], esi
call fcn.004515e9
push esi
call fcn.004515e0
add esp, 8
mov dword [edi + 0x18], eax
jmp 0x40596b
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4059c6
mov ecx, dword [ebp + 0x14]
sub eax, esi
push eax
push edx
call fcn.00404cf0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4059e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a45b
mov eax, dword fs:[0]
push eax
mov eax, 0x203c
call fcn.00451c30
mov eax, dword [0x4b571c]
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 esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2014], eax
mov eax, dword [ebp + 0x14]
push 0x2000
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.00468a50
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x405a4a
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x2020], 0
mov dword [ebp - 0x201c], 0xf
mov byte [ebp - 0x2030], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a70
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2030]
call fcn.00404cf0
lea eax, [ebp - 0x2030]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2048]
push eax
call fcn.004062a0
add esp, 8
lea eax, [ebp - 0x2048]
cmp dword [ebp - 0x2034], 8
cmovae eax, dword [ebp - 0x2048]
push eax
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2014]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x2034]
cmp edx, 8
jb 0x405b12
mov ecx, dword [ebp - 0x2048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405b08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bd0
push edx
push ecx
call fcn.00451338
add esp, 8
mov edx, dword [ebp - 0x201c]
xor eax, eax
mov dword [ebp - 0x2038], 0
mov dword [ebp - 0x2034], 7
mov word [ebp - 0x2048], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x405b6c
mov ecx, dword [ebp - 0x2030]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405b62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405bd5
push edx
push ecx
call fcn.00451338
add esp, 8
lea edx, [ebp - 0x2010]
mov dword [ebp - 0x2020], 0
mov dword [ebp - 0x201c], 0xf
lea esi, [edx + 2]
mov byte [ebp - 0x2030], 0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x405b90
mov ecx, dword [ebp - 0x2018]
lea eax, [ebp - 0x2010]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00404660
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.004512f7
mov esp, ebp
pop ebp
ret 0x10
call fcn.0046c98c
call fcn.0046c98c
int3
Function at 0x407fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a6a3
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4b571c]
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 edi, ecx
mov eax, dword [edi + 8]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4081c2
cmp eax, 0xffffffff
je 0x4081c2
mov esi, dword [edi + 0xc]
push esi
mov dword [ebp - 0x14], esi
call fcn.0044fa61
add esp, 4
test eax, eax
je 0x408043
push eax
call fcn.0044ff21
add esp, 4
push 0x10c
lea eax, [ebp - 0x138]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
call fcn.00468a50
lea eax, [ebp - 0x128]
mov dword [ebp - 0x130], 0
add esp, 0xc
mov dword [ebp - method.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x12c], 0xfa
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x138]
push edx
push ebx
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0x10], 0
je 0x408178
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
jbe 0x408178
test eax, eax
je 0x4080da
push 0
push 0
push eax
push dword [ebp - 0x134]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebx + 8]
movzx eax, word [edi + eax*2 + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x4080ff
mov dword [ebp - 0x14], 7
jmp 0x408121
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
and ecx, 0xfff0
movzx eax, ax
or ecx, eax
push ecx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
jbe 0x408144
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x134]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push dword [ebp - 0x14]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebp - 0x130]
cmp eax, ecx
jbe 0x40819a
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x134]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x40819a
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x130]
push dword [ebp - 0x134]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x138]
call fcn.00407cb0
push esi
mov dword [ebp - 4], 2
call fcn.0044fa86
add esp, 4
test eax, eax
je 0x4081c2
push eax
call fcn.0044ff21
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.004512f7
mov esp, ebp
pop ebp
ret 4
Function at 0x409c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ab70
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x4b571c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.00471be0
add esp, 0x10
cmp eax, esi
jne 0x409ce7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041d020
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push str.Failed_writing_to_file
push eax
call fcn.00408440
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00471686
push dword [eax]
push esi
call fcn.00422670
int3
Function at 0x41c420
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4b571c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
push edi
cmp dword [ebx + 0x14], 0x10
jb 0x41c443
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c5cd
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x41c5ef
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov esi, 0x492f78
mov edx, edi
lea eax, [esi + 1]
mov dword [ebp - 0x120], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x41c476
sub esi, dword [ebp - 0x120]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x120], ebx
jb 0x41c497
mov eax, dword [ebx]
mov dword [ebp - 0x120], eax
test esi, esi
je 0x41c516
cmp ecx, edx
jae 0x41c516
push 0x100
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00468a50
xor edx, edx
lea eax, [esi + 0x492f78]
add esp, 0xc
mov ecx, 0x492f78
cmp eax, ecx
cmovb esi, edx
test esi, esi
je 0x41c4e3
nop dword [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
inc edx
mov byte [ebp + eax - 0x11c], 1
cmp edx, esi
jne 0x41c4d0
mov esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x124]
add eax, esi
lea edx, [esi + edi]
cmp eax, edx
jae 0x41c516
nop dword [eax + eax]
movzx ecx, byte [eax]
cmp byte [ebp + ecx - 0x11c], 0
jne 0x41c5e0
inc eax
cmp eax, edx
jb 0x41c500
or eax, 0xffffffff
cmp eax, 0xffffffff
mov dword [ebp - 0xc], 0
mov esi, edi
mov dword [ebp - 8], 0xf
cmovne esi, eax
mov byte [ebp - 0x1c], 0
cmp edi, esi
mov eax, esi
mov ecx, ebx
cmovb eax, edi
cmp dword [ebx + 0x14], 0x10
jb 0x41c544
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404cf0
cmp dword [ebp - 0xc], 0
je 0x41c583
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c583
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.0047300d
add esp, 4
test eax, eax
jne 0x41c5e7
mov edx, dword [ebp - 8]
lea ecx, [esi + 1]
mov dword [ebp - 0x124], ecx
cmp edx, 0x10
jb 0x41c5c2
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c5b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c602
push edx
push ecx
call fcn.00451338
mov ecx, dword [ebp - 0x124]
add esp, 8
mov edi, dword [ebx + 0x10]
cmp ecx, edi
jb 0x41c466
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004512f7
mov esp, ebp
pop ebp
ret
sub eax, esi
jmp 0x41c519
lea ecx, [ebp - 0x1c]
call fcn.00404ac0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004512f7
mov esp, ebp
pop ebp
ret
call fcn.0046c98c
int3
Function at 0x41cb00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b571c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0x10
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
jb 0x41cb2d
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x41cb49
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x41cb38
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
mov eax, dword [ecx + esi]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x41cb82
cmp eax, edi
jne 0x41cb7a
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x41cb8a
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x41cb8a
cmp eax, edi
jne 0x41cb8d
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.0041b1b0
push 0x28
push edi
call fcn.00451338
mov eax, dword [ebp - 0xc]
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
mov dword [eax], esi
pop esi
pop ebx
call fcn.004512f7
mov esp, ebp
pop ebp
ret 8
Function at 0x41d140
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
mov dword [ebp - 4], ebx
jb 0x41d15f
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x41d181
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x41d170
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
mov ebx, dword [ebx + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 8], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
cmp edx, ebx
jne 0x41d1a9
mov eax, ebx
jmp 0x41d1ad
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x41d219
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x41d1bb
mov edx, dword [edi]
mov edi, dword [esi + 0x1c]
lea ecx, [esi + 8]
mov dword [ebp - 0x10], edi
cmp edi, 0x10
mov edi, dword [ebp + 0xc]
jb 0x41d1cf
mov ecx, dword [esi + 8]
push dword [ebp - 4]
mov eax, dword [esi + 0x18]
push edx
push eax
push ecx
mov dword [ebp - 0x14], eax
call fcn.00405710
add esp, 0x10
test al, al
jne 0x41d1f1
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x41d1a1
cmp dword [ebp - 0x10], 0x10
lea eax, [esi + 8]
jb 0x41d1fc
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x41d204
mov edi, dword [edi]
push dword [ebp - 0x14]
push eax
push dword [ebp - 4]
push edi
call fcn.00405710
add esp, 0x10
test al, al
cmovne ebx, esi
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4219e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4219ee
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x4223d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bd30
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4b571c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004216e0
mov edi, eax
lea esi, [edi + 0x30]
push esi
call fcn.0044fa61
add esp, 4
test eax, eax
je 0x422415
push eax
call fcn.0044ff21
add esp, 4
mov ebx, dword [edi + 0x110]
mov dword [edi + 0x110], 0
test ebx, ebx
je 0x42243b
mov ecx, ebx
call fcn.004069e0
push 0x64
push ebx
call fcn.00451338
add esp, 8
push esi
mov dword [ebp - 4], 0
call fcn.0044fa86
add esp, 4
test eax, eax
je 0x422458
push eax
call fcn.0044ff21
add esp, 4
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0041c960
lea esi, [edi + 0x60]
push esi
call fcn.0044fa61
add esp, 4
test eax, eax
je 0x42247f
push eax
call fcn.0044ff21
add esp, 4
mov dword [edi + 0x108], 0
mov ebx, dword [edi + 0x10c]
mov dword [edi + 0x10c], 0
test ebx, ebx
je 0x4224be
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x4224be
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x4224be
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push esi
mov dword [ebp - 4], 1
call fcn.0044fa86
add esp, 4
test eax, eax
je 0x4224db
push eax
call fcn.0044ff21
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fd10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cf46
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4b571c]
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 + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.00468a50
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x42fdcc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x42fdcc
call fcn.0042d790
mov esi, eax
jmp 0x42feb9
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x42fdef
call fcn.0042d790
jmp 0x42feac
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x42fe0d
call fcn.0042d790
jmp 0x42feac
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x42fe2e
mov esi, 0x8007000e
jmp 0x42feae
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.0042d5c0
jmp 0x42fe58
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x42fe6f
mov esi, 0x8007000e
jmp 0x42feae
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x42fe8f
call fcn.0042d790
jmp 0x42feac
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.0042fb70
mov esi, eax
test edi, edi
je 0x42feb9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x42fed2
lea ecx, [ebp - 0x420]
call fcn.0042e3c0
mov eax, esi
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.004512f7
mov esp, ebp
pop ebp
ret 0x10