joyce8/EMBER2024-capa huggingface dataset:
Function at 0x602ee0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x602ef5
add esp, 0xfffffff0
call fcn.00404714
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00404380
movzx edx, si
mov eax, dword [ebp - 8]
call fcn.0040a998
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x602f23
call fcn.0040f878
and si, 0xf
cmp si, 2
jne 0x602f39
mov esi, 8
mov edi, 1
jmp 0x602f43
mov esi, 2
mov edi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x602f7c
mov eax, ebx
call fcn.00603040
mov ecx, dword [0x633574]
mov dl, 1
mov eax, dword [0x602d20]
call fcn.00600964
call fcn.00404c64
push 0
push 0
push 0
push edi
mov eax, dword [ebx + 0x14]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x602fb0
mov eax, ebx
call fcn.00603040
mov ecx, dword [0x6339dc]
mov dl, 1
mov eax, dword [0x602d84]
call fcn.00600964
call fcn.00404c64
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
cmp eax, 0xffffffff
jne 0x602fe4
push esi
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, ebx
call fcn.00603040
mov ecx, dword [0x633820]
mov dl, 1
mov eax, dword [0x602d84]
call fcn.00600964
call fcn.00404c64
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.00420b30
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x603006
call fcn.0040476c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

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

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x6031ba
push ebx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x6031b2
test al, 0x10
je 0x6031b6
xor eax, eax
jmp 0x6031bc
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x603304
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x6033ab
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.0040579c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x603395
lea eax, [ebp - 4]
mov edx, edi
call fcn.00405a2c
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.0040579c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x603395
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x6033bc
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x603395
cmp dword [ebp - 0xc], 0x34
jne 0x603395
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6033b2
lea eax, [ebp - 4]
call fcn.0040530c
ret
Function at 0x60378c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp - 8], 0
jbe 0x603840
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x603840
xor eax, eax
push ebp
push 0x603839
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [ebp - 8]
call fcn.004031c8
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x10
je 0x603803
sub eax, 0x10
je 0x603803
sub eax, 0x20
je 0x603803
sub eax, 0x40
jne 0x603816
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x603840
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_VirtualProtect
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6055b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x60578d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.00403a40
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x632e04], eax
mov eax, dword [ebp - 0xc]
mov dword [0x632e08], eax
mov eax, dword [ebp - 0x24]
mov dword [0x632e0c], eax
mov eax, dword [0x633bb4]
cmp dword [eax], 2
sete byte [0x6327b0]
push 0x605798
call sub.KERNEL32.DLL_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.006031c0
cmp byte [0x6327b0], 0
jne 0x60563c
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00603304
test al, al
je 0x60563c
mov eax, dword [ebp - 0x4c]
mov dword [0x63b280], eax
jmp 0x605643
xor eax, eax
mov dword [0x63b280], eax
call fcn.006052f0
and eax, 0x7f
cmp eax, 0x12
ja case.0x605654.0
jmp dword [eax*4 + 0x60565b]
mov byte [0x63279c], 1
jmp case.0x605654.0
mov byte [0x6327a0], 1
jmp case.0x605654.0
mov byte [0x6327a4], 1
jmp case.0x605654.0
mov byte [0x6327a8], 1
jmp case.0x605654.0
mov byte [0x6327ac], 1
jmp case.0x605654.0
mov byte [0x6327b4], 1
mov byte [0x6327b8], 1
jmp case.0x605654.0
mov byte [0x6327b4], 1
mov byte [0x6327bc], 1
jmp case.0x605654.0
mov byte [0x6327b4], 1
mov byte [0x6327bc], 1
mov byte [0x6327c0], 1
jmp case.0x605654.0
mov byte [0x6327c4], 1
jmp case.0x605654.0
mov byte [0x6327c8], 1
jmp case.0x605654.0
mov byte [0x6327cc], 1
jmp case.0x605654.0
mov byte [0x6327d0], 1
jmp case.0x605654.0
mov byte [0x6327d4], 1
jmp case.0x605654.0
mov byte [0x6327d8], 1
jmp case.0x605654.0
mov byte [0x6327dc], 1
jmp case.0x605654.0
mov byte [0x6327e0], 1
jmp case.0x605654.0
mov byte [0x6327e4], 1
jmp case.0x605654.0
mov byte [0x6327e8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x605794
lea eax, [ebp - 4]
call fcn.0040530c
ret

Function at 0x607480
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x6074bf
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x6074bf
cmp dword [eax + 0x3c], 0
je 0x6074bf
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x6074bd
cmp dword [esi], 0x4550
je 0x6074bf
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x6074c4
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x607503
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x607503
cmp dword [eax + 0x3c], 0
je 0x607503
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0x108
push esi
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x607501
cmp dword [esi], 0x4550
je 0x607503
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x610354
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040578c
xor eax, eax
push ebp
push 0x610493
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040530c
mov eax, pe_nt_image_headers32
call fcn.0040b1b0
mov esi, eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040579c
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x610478
lea eax, [ebp - 0x418]
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x610478
lea eax, [ebp - 8]
mov edx, 0x6104ac
call fcn.004053a4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.0040579c
push eax
lea eax, [ebp - 0x418]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x610471
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
lea eax, [ebp - 8]
push eax
movzx eax, bx
mov dword [ebp - 0x428], eax
mov byte [ebp - 0x424], 0
shr ebx, 0x10
movzx eax, bx
mov dword [ebp - 0x420], eax
mov byte [ebp - 0x41c], 0
lea edx, [ebp - 0x428]
mov ecx, 1
mov eax, 0x6104d0
call fcn.0040b68c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.0040579c
push eax
lea eax, [ebp - 0x418]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x610471
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.0040af48
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040b19c
mov eax, esi
call fcn.0040b1fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61049a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405330
ret

Function at 0x619a2c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [ebx + 0x4dc]
mov eax, dword [eax]
push eax
mov eax, dword [eax]
call dword [eax + 0x40]
cmp byte [eax + 0x93], 0
je 0x619a5c
mov edx, 0x619b20
mov eax, dword [ebx + 0x3a8]
call fcn.005c3878
pop esi
pop ebx
ret
mov eax, dword [ebx + 0x4dc]
mov eax, dword [eax]
push eax
mov eax, dword [eax]
call dword [eax + 0x40]
cmp word [eax + 0x72], 1
jg 0x619a96
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [ebx + 0x4ac]
cmp eax, 0x2710
jae 0x619a96
mov edx, 0x619b5c
mov eax, dword [ebx + 0x3a8]
call fcn.005c3878
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [ebx + 0x4a8]
cmp eax, 0x12c
jae 0x619abb
mov edx, 0x619b80
mov eax, dword [ebx + 0x3a8]
call fcn.005c3878
pop esi
pop ebx
ret
mov eax, dword [ebx + 0x3a8]
mov eax, dword [eax + 0x300]
call fcn.005bd598
mov edx, dword [ebx + 0x3a8]
mov edx, dword [edx + 0x300]
cmp eax, dword [edx + 0x274]
jle 0x619afc
push 0x10
push 0x619ba8
push 0x619bb0
mov eax, ebx
call fcn.0046bfcc
push eax
call sub.user32.dll_MessageBoxA
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [ebx + 0x4a8], eax
mov edx, esi
mov eax, dword [ebx + 0x3a8]
call fcn.005c35d4
pop esi
pop ebx
ret
Function at 0x4acbe8
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4c03a0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
or dword [ebp - 0x7c], 0xffffffff
push ebx
xor ebx, ebx
push esi
lea esi, [ebp - 0x74]
mov dword [ebp - 0x80], ebx
cmp eax, ebx
jne 0x4acc42
call fcn.004a28d5
mov dword [eax], ebx
call fcn.004a28c2
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004a436d
add esp, 0x14
or eax, 0xffffffff
jmp 0x4accf4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4accd7
lea eax, [ebp - 0x74]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
cmp edi, 0x104
jle 0x4acc95
lea ebx, [edi + 1]
push 1
push ebx
call fcn.004a72ba
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4accd5
mov dword [ebp - 0x80], 1
test edi, edi
je 0x4accd5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4accd7
mov al, byte [esi]
cmp al, 0x5c
je 0x4acca3
cmp al, 0x2f
jne 0x4acca8
cmp al, byte [esi + 1]
je 0x4accd0
mov byte [ebp - 0x78], 0x3d
movzx eax, byte [esi]
push eax
call fcn.004ad034
pop ecx
mov byte [ebp - 0x77], al
push esi
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 0x76], 0x3a
mov byte [ebp - 0x75], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4accd7
mov dword [ebp - 0x7c], ebx
jmp 0x4acce4
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a28e8
pop ecx
pop edi
cmp dword [ebp - 0x80], ebx
je 0x4accf1
push esi
call fcn.0049e37d
pop ecx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x94]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e626
add ebp, 0x98
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4046b8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x4046d6
xor eax, eax
inc eax
jmp 0x404761
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40475e
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40475e
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x4046ce
cmp dword [edi], 0x4550
jne 0x40475e
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x40475e
movzx eax, word [esi + 0x46]
test ax, ax
je 0x40475e
mov edi, eax
imul edi, edi, 0x28
push edi
mov dword [esi + 0x140], edi
call fcn.0042292b
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x40473a
push 3
jmp 0x404760
movzx ecx, word [esi + 0x54]
push dword [ebp + 0xc]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x404761
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x40621b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x406229
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4062e4
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
add edx, 8
sub edi, 8
dec esi
jne 0x406247
pop ebx
test edi, edi
je 0x4062fd
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
inc edx
dec edi
jne 0x4062e8
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x406303
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + str.jyW8hFRdhzCttOrc4c5AiYucni6tshVn5bC3kQVOydfSVb8]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x41f5c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41f5d0
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x41f68b
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ee90]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ee90]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ee90]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ee90]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ee90]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ee90]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ee90]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x43ee90]
add edx, 8
sub edi, 8
dec esi
jne 0x41f5ee
pop ebx
test edi, edi
je 0x41f6a4
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x43ee90]
inc edx
dec edi
jne 0x41f68f
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x41f6aa
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x43ee90]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x43ee90]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x41f88a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4476f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [0x459fe8]
test eax, eax
jne 0x41f8cd
mov eax, 0x200
jmp 0x41fa56
mov ecx, dword [ebp - 0x38]
xor eax, eax
push ebx
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x41f8e4
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x41f8ed
or dword [ebp - 0x3c], 2
test cl, 4
je 0x41f8f6
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x41f901
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x41f90a
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x41f917
or dword [ebp - 0x3c], 0x40000000
jmp 0x41f91e
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x41f931
or dword [ebp - 0x3c], 0x800000
push ebx
push esi
call dword [0x45a0d0]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x41f9d6
push ebx
push ebx
push ebx
push esi
call dword [0x459ef4]
push ebx
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x45a014]
push ebx
push ebx
push 0x24
push esi
call dword [0x459ef4]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x45a014]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x41f9d6
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x41f9d6
push ebx
push ebx
push eax
push esi
call dword [0x459ef4]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x45a014]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x41f9cf
cmp eax, 0x454e
je 0x41f9cf
cmp eax, 0x454c
je 0x41f9cf
cmp eax, 0x4550
jne 0x41f9d6
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x41f9e2
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x41f9ee
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp edi, ebx
je 0x41fa27
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041f7f5
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.0041f7f5
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.0041f7f5
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x54]
cmp esi, ebx
pop ebx
je 0x41fa54
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.0041f819
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004228ea
leave
ret
Function at 0x4206fa
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x420727
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.00422870
mov ecx, dword [ebp + 0xc]
mov eax, ecx
movzx edx, word [eax*8 + 0x43ee42]
mov dword [esi + 0x6af98], edx
movzx edx, word [eax*8 + 0x43ee40]
mov dword [esi + 0x6af9c], edx
movzx edx, word [eax*8 + str.incorrect_header_check]
mov dword [esi + 0x6afa0], edx
movzx eax, word [eax*8 + 0x43ee46]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ecx, 2
jg 0x42078d
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x420799
cmp ecx, 8
jl 0x420799
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x420800
cmp eax, 0xffffffff
je 0x420800
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4207db
push esi
call fcn.0041ece6
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x4207e3
jmp 0x420810
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret