joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50001508
Capabilities:
Get file version info

Disassembly:
mov eax, 0x5001551c
call fcn.50009970
sub esp, 0x128
mov al, byte [ebp + 0xb]
push ebx
push esi
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.500019f1
mov esi, 0x50020378
push esi
call fcn.50009d4b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.50001975
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x5000160f
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x500015f9
push edi
push ebx
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x5001b104
push edi
call sub.VERSION.dll_VerQueryValueW
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp + 8]
push 0x5001b0b8
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x134]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.50009d68
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x134]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x500015f2
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.50009d4b
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.50001975
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.500022b6
pop ecx
pop ecx
pop edi
test al, al
jne 0x5000160f
push 1
pop esi
jmp 0x50001611
xor esi, esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.500019f1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x500040f0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x50022838
push 8
mov eax, edx
pop esi
test al, 1
je 0x5000410a
shr eax, 1
xor eax, 0xedb88320
jmp 0x5000410c
shr eax, 1
dec esi
jne 0x500040fd
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x50022c38
jl 0x500040f8
mov dword [0x50022c38], 1
pop esi
ret

Function at 0x50004129
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x50022c38], 0
push esi
mov esi, dword [esp + 8]
jne 0x5000413c
call fcn.500040f0
xor eax, eax
cmp dword [esp + 0x10], eax
jle 0x50004169
mov ecx, dword [esp + 0xc]
mov edx, esi
and edx, 0xff
movzx ecx, byte [eax + ecx]
xor ecx, edx
shr esi, 8
mov ecx, dword [ecx*4 + 0x50022838]
xor esi, ecx
inc eax
cmp eax, dword [esp + 0x10]
jl 0x50004144
mov eax, esi
pop esi
ret
Function at 0x50004182
Capabilities:
Delete file

Disassembly:
push esi
push edi
push 0x5001b144
push dword [esp + 0x10]
call fcn.5000ac78
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x500041c9
push 2
push 0
push esi
call fcn.5000ab8e
push esi
call fcn.5000aa0b
push esi
mov edi, eax
call fcn.5000a98e
push 0x5001b13c
push dword [esp + 0x24]
call fcn.5000ac78
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x500041cd
xor al, al
jmp 0x50004221
push 0
push 0
push esi
call fcn.5000ab8e
add esp, 0xc
test edi, edi
jle 0x5000420e
push ebx
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ
push ebx
call fcn.50009cd0
cmp edi, eax
pop ecx
jae 0x500041f3
mov eax, edi
jmp 0x500041fa
push ebx
call fcn.50009cd0
pop ecx
push esi
push eax
push 1
push ebx
call fcn.5000a855
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x500041e4
pop ebx
push esi
call fcn.5000a98e
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop edi
pop esi
ret

Function at 0x50004251
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
mov word [ebp - 0x410], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x618], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x616]
push 0x25
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push edi
call fcn.50009dd7
pop ecx
test eax, eax
pop ecx
jne 0x500042cb
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.500094fd
add esp, 0xc
push 1
pop eax
jmp 0x50004377
xor esi, esi
mov eax, edi
push 0x25
push eax
call fcn.50009dd7
pop ecx
cmp eax, ebx
pop ecx
je 0x500042e3
add eax, 2
inc esi
jmp 0x500042cf
mov eax, esi
push 2
cdq
pop ecx
idiv ecx
cmp edx, 1
je 0x5000433b
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.500094fd
lea eax, [ebp - 0x208]
push 0x25
push eax
call fcn.50009dd7
lea edi, [eax + 2]
push 0x25
push edi
mov word [eax], bx
call fcn.50009dd7
add esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x410]
and word [ebx], 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x5000433f
xor eax, eax
jmp 0x50004377
add ebx, 2
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push str._s_s_s
push eax
call fcn.50009d68
push dword [ebp + 0x10]
lea eax, [ebp - 0x618]
push dword [ebp + 0xc]
push eax
call fcn.50004251
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5000437c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.50004251
add esp, 0xc
test eax, eax
je 0x5000446c
push 0x5c
push dword [ebp + 8]
call fcn.50009dd7
pop ecx
test eax, eax
pop ecx
je 0x50004470
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.50009e00
cmp byte [ebp + 0xc], 1
pop ecx
pop ecx
mov ebx, eax
jne 0x500043f0
and word [ebx], 0
lea eax, [ebp - 0x208]
push eax
call fcn.50004224
test al, al
pop ecx
jne 0x50004470
mov word [ebx], 0x5c
lea edi, [ebp - 0x208]
test edi, edi
je 0x50004470
push 0x5c
push edi
call fcn.50009dd7
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x5000445c
cmp byte [ebp + 0xc], al
jne 0x50004470
xor edi, edi
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x50004447
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5000446c
test esi, esi
je 0x50004450
mov word [esi], 0x5c
cmp byte [ebp + 0xc], 1
jne 0x5000440c
cmp esi, ebx
je 0x50004470
jmp 0x5000440c
cmp word [esi - 2], 0x3a
lea edi, [esi + 2]
je 0x5000440c
and word [esi], 0
jmp 0x50004427
xor eax, eax
jmp 0x50004473
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5000448f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x410]
push 0x5001b14c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.500094fd
add esp, 0xc
mov al, 1
pop edi
leave
ret
Function at 0x500045bb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
xor esi, esi
mov byte [ebp - 0xf], 0x65
cmp dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x10], 0x25
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x6d
mov byte [ebp - 7], 0x3c
mov byte [ebp - 8], 0x7c
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x59
mov byte [ebp - 3], 0x73
mov byte [ebp - 4], 0x4b
mov byte [ebp - 2], 0x24
mov byte [ebp - 1], 0x5e
je 0x50004625
push 0x5001b144
push dword [ebp + 8]
call fcn.5000ac78
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x5000462d
or eax, 0xffffffff
jmp 0x500046e3
push 2
push esi
push ebx
call fcn.5000ab8e
add esp, 0xc
mov esi, 0x2c8
push 1
push 0xfffffd38
push ebx
call fcn.5000ab8e
add esp, 0xc
test eax, eax
jne 0x500046d9
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.50009540
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.5000ac8b
add esp, 0x1c
cmp eax, esi
jne 0x500046d9
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.500133b8
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.50013360
lea eax, [ebp - 0x2dc]
push eax
call fcn.500044f9
add esp, 0x1c
test al, al
je 0x500046d9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x500046bd
test dword [ebp - 0x2d8], eax
je 0x500046c0
inc dword [ebp - 0x14]
mov eax, 0xfffffd38
push 1
sub eax, dword [ebp - 0x18]
push eax
push ebx
call fcn.5000ab8e
add esp, 0xc
jmp 0x5000463e
push ebx
call fcn.5000a98e
mov eax, dword [ebp - 0x14]
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x500046e7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
xor esi, esi
push esi
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
call fcn.500045bb
pop ecx
cmp eax, esi
pop ecx
jle 0x50004767
cmp dword [ebp + 0xc], eax
jge 0x50004767
sub eax, dword [ebp + 0xc]
push 0x5001b144
push dword [ebp + 8]
mov byte [ebp - 0xf], 0x65
dec eax
mov byte [ebp - 0x10], 0x25
mov dword [ebp + 0xc], eax
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x6d
mov byte [ebp - 7], 0x3c
mov byte [ebp - 8], 0x7c
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x59
mov byte [ebp - 3], 0x73
mov byte [ebp - 4], 0x4b
mov byte [ebp - 2], 0x24
mov byte [ebp - 1], 0x5e
call fcn.5000ac78
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x5000476e
xor al, al
jmp 0x50004833
push 2
push esi
push ebx
call fcn.5000ab8e
add esp, 0xc
mov esi, 0x2c8
push 1
push 0xfffffd38
push ebx
call fcn.5000ab8e
add esp, 0xc
test eax, eax
jne 0x50004825
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.50009540
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.5000ac8b
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.500133b8
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.50013360
lea eax, [ebp - 0x2dc]
push eax
call fcn.500044f9
add esp, 0x38
test al, al
je 0x50004825
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x5000480c
inc dword [ebp - 0x14]
mov eax, 0xfffffd38
sub eax, dword [ebp - 0x18]
push 1
push eax
push ebx
call fcn.5000ab8e
add esp, 0xc
jmp 0x5000477f
lea eax, [ebp - 0x2dc]
push esi
push eax
push dword [ebp + 0x10]
call fcn.50009990
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x50004829
and byte [ebp + 0xf], 0
push ebx
call fcn.5000a98e
mov al, byte [ebp + 0xf]
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x50004fc3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x5000504b
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.50009990
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x5000500e
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x50005030
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x5000511b
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.50005120
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x50005096
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x500050aa
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x50004fcf
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x5000511b
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp ecx, edi
jae 0x500050ea
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x500050cf
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.50009540
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x5000511b
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x5000511b
sub edi, ecx
sub eax, ecx
add edi, 0x102
cmp edi, eax
jbe 0x50005104
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.50009540
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5000d7d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5001b990
cmp edx, dword [eax]
je 0x5000d7f9
add eax, 8
inc ecx
cmp eax, 0x5001ba20
jl 0x5000d7ea
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5001b990]
jne 0x5000d927
mov eax, dword [0x50022c6c]
cmp eax, 1
je 0x5000d901
test eax, eax
jne 0x5000d82a
cmp dword [0x50022c70], 1
je 0x5000d901
cmp edx, 0xfc
je 0x5000d927
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5000d861
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.5000f1c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.50009cd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5000d8a4
lea eax, [ebp - 0x1a4]
push eax
call fcn.50009cd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x50019b4c
push edi
call fcn.50010810
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.5000f1c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.5000f1d0
lea eax, [ebp - 0xa0]
push 0x50019b2c
push eax
call fcn.5000f1d0
push dword [esi + 0x5001b994]
lea eax, [ebp - 0xa0]
push eax
call fcn.5000f1d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.50010f07
add esp, 0x2c
pop edi
jmp 0x5000d927
lea eax, [ebp + 8]
lea esi, [esi + 0x5001b994]
push 0
push eax
push dword [esi]
call fcn.50009cd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x50014331
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
je 0x5001433f
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ecx]
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, ecx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x500150c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.5000deeb
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x500150ec
test byte [esp + 8], 2
je 0x500150ec
call fcn.5000df5e
mov dword [eax], 0xd
call fcn.5000df67
mov dword [eax], 5
jmp 0x500150c5
xor eax, eax
ret
Function at 0x402f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40315d
cmp dword [esi + 0x20], 0
je 0x40315d
cmp dword [esi + 0x24], 0
je 0x40315d
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40315d
cmp dword [ecx], esi
jne 0x40315d
mov eax, dword [ecx + 4]
cmp eax, 0x2a
je 0x402ff3
cmp eax, 0x39
je 0x402ff3
cmp eax, 0x45
je 0x402ff3
cmp eax, 0x49
je 0x402ff3
cmp eax, 0x5b
je 0x402ff3
cmp eax, 0x67
je 0x402ff3
cmp eax, 0x71
je 0x402ff3
cmp eax, 0x29a
jne 0x40315d
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 8]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], eax
test edx, edx
jns 0x403028
neg edx
mov dword [ecx + 0x18], edx
cmp edx, 2
jne 0x403038
mov dword [ecx + 4], 0x39
xor eax, eax
jmp 0x403051
push edi
mov edi, 0x2a
test edx, edx
mov eax, 0x71
cmovne eax, edi
mov dword [ecx + 4], eax
mov eax, 1
pop edi
mov dword [esi + 0x30], eax
lea eax, [ecx + 0x94]
mov dword [ecx + 0xb18], eax
lea eax, [ecx + 0x988]
mov dword [ecx + 0xb24], eax
lea eax, [ecx + 0xa7c]
mov dword [ecx + 0xb30], eax
xor eax, eax
mov dword [ecx + 0x28], 0
mov dword [ecx + 0xb20], 0x4f4544
mov dword [ecx + 0xb2c], 0x4f456c
mov dword [ecx + 0xb38], 0x4f4558
mov word [ecx + 0x16b8], ax
mov dword [ecx + 0x16bc], eax
call fcn.00405460
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.004ac800
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4f410a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4f4108]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4f410c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x4f410e]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x40ac80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0x400000
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [0x52a14c], 0
mov esi, eax
je 0x40accc
call fcn.00417350
mov dword [0x52a14c], 0
push dword [ebp + 0x10]
mov edx, esi
push ecx
mov ecx, edi
call fcn.00416fe0
add esp, 8
mov dword [0x52a14c], eax
xor ecx, ecx
mov edx, 4
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x40cd80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40cdae
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 8]
push 0x10
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebp
ret 4
Function at 0x414b20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x414b2b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x414be7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f6d40]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f6d40]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f6d40]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f6d40]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f6d40]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f6d40]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f6d40]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f6d40]
sub edi, 1
jne 0x414b40
pop edi
test esi, esi
je 0x414c0a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f6d40]
sub esi, 1
jne 0x414bf0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x415450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x415498
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41548a
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.004ac280
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4154d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x41550b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415506
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x415538
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x41551c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.004ac280
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x41554c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x415543
cmp byte [esi + 8], 0
je 0x415543
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret