joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41db03
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x41db19
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x42576c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x41db50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x424e7c]
mov dword [0x425770], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x425770]
call ebx
mov eax, dword [0x42576c]
mov edi, eax
add eax, esi
push eax
push dword [0x425770]
mov dword [0x42576c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x424e7c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x425770]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x41db90
test ebx, ebx
je 0x41dbb1
push 0x14
push 0x425768
call fcn.0041e328
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x41dbb1
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x41ecc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x424368]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x41ee20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x424368]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x41ee66
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x425aa0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x41ee87
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x425aa0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041f260
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ef40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x424368]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret
Function at 0x41f070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x424368]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41f094
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x41f0e4
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x425aa0]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x41f12c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x41f12c
cmp dword [ebp - 8], 0x100000
jge 0x41f100
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x425aa0]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x41f150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x424368]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x41f1b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x424368]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41f1ee
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41f1ee
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x41f1f0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x41f230
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x424368]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x41f610
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x424368]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x41fb89
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4259b8], 0
push ebx
push esi
mov esi, 0x4259c0
jne 0x41fbb5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4259d8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4259b8], 1
push dword [0x4259d8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41fc52
push 0x14
push 8
push dword [0x424e7c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x41fc7c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4259bc]
test eax, eax
je 0x41fbf7
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4259bc], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41fc81
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4259d8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x424e7c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41fc7c
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xd322ed5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data_1
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x568b6a1c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1002b89
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1007008]
je 0x1002ba9
inc eax
cmp eax, 0x12
jb 0x1002b9a
shl eax, 3
cmp edx, dword [eax + 0x1007008]
mov dword [ebp + 8], eax
jne 0x1002d47
mov ecx, dword [0x10078cc]
cmp ecx, 1
je 0x1002d1c
test ecx, ecx
jne 0x1002bdb
cmp dword [0x1007004], 1
je 0x1002d1c
cmp edx, 0xfc
je 0x1002d47
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002c16
push 5
pop ecx
mov esi, 0x10014ec
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c25
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1002c5d
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c3d
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10014e8
push ebx
call fcn.010039b0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c62
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100700c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002c79
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01003720
mov edx, esp
push 6
pop ecx
mov esi, 0x10014cc
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ca5
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002cb1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002cca
mov eax, dword [ebp + 8]
mov esi, 0x10014c8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100700c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ce5
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002cf1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10014a0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010038b6
add esp, 0xc
jmp 0x1002d47
mov ecx, dword [eax + 0x100700c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002d27
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10038b6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1007b80], ebx
push esi
push edi
jne 0x1003936
push 0x1001568
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003971
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100155c
push edi
call esi
test eax, eax
mov dword [0x1007b80], eax
je 0x1003971
push 0x100154c
push edi
call esi
push 0x1001538
push edi
mov dword [0x1007b84], eax
call esi
cmp dword [0x10078d4], 2
mov dword [0x1007b88], eax
jne 0x1003936
push 0x100151c
push edi
call esi
test eax, eax
mov dword [0x1007b90], eax
je 0x1003936
push 0x1001504
push edi
call esi
mov dword [0x1007b8c], eax
mov eax, dword [0x1007b8c]
test eax, eax
je 0x100397b
call eax
test eax, eax
je 0x1003962
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1007b90]
test eax, eax
je 0x1003962
test byte [ebp - 8], 1
jne 0x100397b
cmp dword [0x10078e0], 4
jb 0x1003975
or byte [ebp + 0x12], 0x20
jmp 0x100399a
xor eax, eax
jmp 0x10039aa
or byte [ebp + 0x12], 4
jmp 0x100399a
mov eax, dword [0x1007b84]
test eax, eax
je 0x100399a
call eax
mov ebx, eax
test ebx, ebx
je 0x100399a
mov eax, dword [0x1007b88]
test eax, eax
je 0x100399a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1007b80]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005c94
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003720
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005d29
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10078d4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1005d29
cmp eax, 1
je 0x1005d41
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005d29
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1005cfe
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1005d25
xor eax, eax
inc eax
jmp 0x1005d5d
cmp esi, ebx
jae 0x1005d2d
xor eax, eax
jmp 0x1005d5d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10078d4]
jmp 0x1005d43
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x402fac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x417d34
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov dword [esp + 4], 0x55de58
lea eax, [esi + 0x1c]
mov dword [esp], eax
call fcn.004e32e4
test eax, eax
jne 0x417d84
add esi, 0x20
mov dword [esp + 4], 0x55de62
mov dword [esp], esi
call fcn.004e32e4
test eax, eax
jne 0x417e60
mov esi, 1
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
mov edi, dword [esi + 0x1c]
mov dword [esp + 4], 0x55de69
mov dword [esp], edi
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x417eb4
mov dword [esp], eax
call sub.msvcrt.dll_rewind
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov edi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_rewind
cmp edi, 3
jbe 0x417e94
lea edi, [ebp - 0x29]
mov dword [ebp - 0x29], 0
mov byte [ebp - 0x25], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fread
mov byte [ebp - 0x39], 0
lea eax, [ebp - 0x19]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], edi
lea edi, [ebp - 0x20]
mov dword [esp], edi
call fcn.00509b3c
mov byte [ebp - 0x39], 1
mov dword [esp + 4], 0x55de7f
mov dword [esp], edi
call fcn.004e32e4
test eax, eax
jne 0x417ea4
mov esi, 1
mov dword [esp], edi
call fcn.0050a12c
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, esi
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], 0x55de64
mov dword [esp], esi
call fcn.004e32e4
test eax, eax
je 0x417d72
mov dword [esp + 4], 0x55de66
mov dword [esp], esi
call fcn.004e32e4
test eax, eax
sete al
mov esi, eax
jmp 0x417d77
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
xor esi, esi
jmp 0x417d77
mov eax, dword [esi + 0x20]
mov esi, dword [eax - 0xc]
test esi, esi
setne al
mov esi, eax
jmp 0x417e45
lea eax, [ebp - 0x1a]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x55de6c
lea ebx, [ebp - 0x24]
mov dword [esp], ebx
call fcn.00509af0
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.005088ec
mov dword [esp], 8
call fcn.00538b64
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.005167d8
mov dword [esp + 8], 0x516950
mov dword [esp + 4], 0x572394
mov dword [esp], esi
call fcn.00539374
mov edi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov esi, eax
cmp byte [ebp - 0x39], 0
je 0x417f2e
mov dword [esp], edi
call fcn.0050a12c
mov edi, esi
jmp 0x417f0e

Function at 0x42d1ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 0x10]
test esi, 3
jne 0x42d234
test esi, esi
js 0x42d240
sar esi, 2
test esi, esi
jle 0x42d234
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0xc]
xor edx, edx
xor eax, eax
lea edi, [ebp - 0x10]
mov ebx, dword [ecx]
mov dword [edi], ebx
xor eax, ebx
inc edx
add ecx, 4
cmp edx, esi
jl 0x42d21c
add esp, 0x10
pop ebx
pop esi
pop edi
leave
ret
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
leave
ret
add esi, 3
jmp 0x42d204
Function at 0x464490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x30], eax
mov byte [ebx + 0x194], 0
mov byte [ebx + 0x197], 0
mov byte [ebx + 0x196], 0
mov byte [ebx + 0x198], 0
mov eax, dword [ebx + 0xc8]
cmp byte [eax + 0x59], 0
jne 0x464588
mov dword [ebx + 0xfc], ecx
mov dword [esp + 4], edx
lea eax, [ebx + 0xd0]
mov dword [esp], eax
call fcn.00508d84
mov dword [esp + 4], edi
lea eax, [ebx + 0xd8]
mov dword [esp], eax
call fcn.00508d84
mov dword [esp + 4], esi
lea eax, [ebx + 0xdc]
mov dword [esp], eax
call fcn.00508d84
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xe0], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0xe4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0xe8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0xec], eax
mov al, byte [ebp - 0x2c]
mov byte [ebx + 0xf0], al
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x1bc], eax
mov byte [ebx + 0xf8], 1
mov byte [ebx + 0x199], 0
mov dword [ebp + 8], ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
jmp fcn.00461ff4
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
jmp fcn.00462b14
Function at 0x46ed84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, edx
mov esi, ecx
mov dl, byte [ebp + 8]
mov byte [ebp - 0x2d], dl
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x5670e0
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
test eax, eax
je 0x46ee1c
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fseek
cmp byte [ebp - 0x2d], 0
jne 0x46edfc
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov al, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x18
mov dword [esp + 4], 1
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
jmp 0x46edea
lea eax, [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x56700e
lea esi, [ebp - 0x20]
mov dword [esp], esi
call fcn.00509af0
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [ebp - 0x2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00508920
mov dword [esp], 8
call fcn.00538b64
mov ebx, eax
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005167d8
mov dword [esp + 8], 0x516950
mov dword [esp + 4], 0x572394
mov dword [esp], ebx
call fcn.00539374
dec edx
je 0x46eec1
mov dword [esp], eax
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov dword [esp], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
call fcn.0053905c
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [esp], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
call fcn.0050a12c
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
jmp 0x46ee8a
mov dword [esp], eax
call fcn.00538d08
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov ebx, eax
mov dword [esp + 4], 0x5670e4
mov dword [esp], 0x55a480
call fcn.00536748
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00536748
mov dword [esp], eax
call fcn.00534290
call fcn.00538ed4
xor eax, eax
jmp 0x46edf4

Function at 0x4765ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov byte [eax + 0xcc], 0
mov byte [eax + 0xce], 0
mov byte [eax + 0xcd], 0
mov byte [eax + 0xcf], 0
mov dword [eax + 0xbc], 0
mov edx, dword [eax + 0x50]
cmp byte [edx + 0x3a], 0
jne 0x476668
mov dword [eax + 0x40], ebx
mov byte [eax + 0xcc], 0
mov byte [eax + 0xce], 0
mov byte [eax + 0xcd], 0
mov byte [eax + 0xcf], 0
mov dword [eax + 0xdc], ecx
mov dword [eax + 0xbc], 0
mov dword [ebp + 8], eax
pop eax
pop ebx
leave
jmp fcn.0047399c
pop edx
pop ebx
leave
jmp fcn.00475134