joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035d6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402e04
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00405ec0
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x403637
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402f5a
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403662
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x403698
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403685
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x403688
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
lea ecx, [ebp - 4]
call fcn.00402dc0
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4097ff
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040e5c1
Function at 0x40dd25
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40ddc2
push ebx
push esi
call fcn.0040dcee
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040dc37
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40dd6f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ddc1
push edi
push eax
call fcn.0040e5c1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40dd8f
call fcn.0040c847
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ddc0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040dc37
add esp, 0x20
test eax, eax
jne 0x40ddae
push edi
call fcn.0040c847
jmp 0x40ddb6
push ebx
call fcn.0040c847
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40e0bb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x40e0df
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x40e0d9
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x40e0ca
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040de85
imul edi, dword [eax - 0x52], 0xffffffa5
lea eax, [ebp - 0x58]
push eax
call fcn.0040de95
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0040de4a
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40e173
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040de85
or eax, 0x8d53b1d3
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x40e59d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40e55c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40e57a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40e5d8
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40e5bf
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40e5c8
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40e5d2
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40e5b4
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40e53e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40e625
dec eax
je 0x40e61c
sub eax, 3
je 0x40e613
mov dword [ebp - 4], 0x40
jmp 0x40e642
mov dword [ebp - 4], 4
jmp 0x40e628
mov dword [ebp - 4], 0x20
jmp 0x40e628
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40e674
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40e5f4
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040de85
test byte [esi - 0x58], 0x81
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x40e680
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e5c1
Capabilities:
Inspect section memory permissions

Disassembly:
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
Function at 0x40ed5a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040de63
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040de95
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040de4a
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040de85
sbb al, 0x4e
sbb dword [eax], ebp
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.0040de85
das
sub ebx, ecx
mov edi, 0xe06580
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.0040de95
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040de4a
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x40ef31
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x40ef51
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
jmp 0x40ef6e
mov eax, dword [ebp - 0x3d0]
inc eax
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x3d0], 0x104
jge 0x40efd5
mov eax, dword [ebp - 0x3d0]
invalid
mov esi, 0xfccc0584
Function at 0x40f2c2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x40f2db
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x40f285
call fcn.0040de85
pop ebp
movups xmm7, xmmword [eax]
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
invalid

Function at 0x40f459
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cld
lea eax, [ecx + eax - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040ddf6
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
dec ebp
cld

Function at 0x410030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop eax
sub ecx, eax
shl dword [ecx + 0x30], cl
add byte [eax], al
add byte [ebx + 0x708b0c40], cl
sbb al, 0xad
cmp byte [eax + 0x1c], 0x18
je 0x410049
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0040de85
cmp al, 0x76
scasd eax, dword es:[edi]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x443e10], 1
mov dword [0x443e14], 1
mov dword [0x443e18], 1
mov dword [0x443e04], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x403260
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], edi
mov dword [esp], edx
call sym._fread
mov ebx, eax
cmp edi, eax
je 0x403296
mov dword [esp], esi
call sym._ferror
test eax, eax
jne 0x4032a1
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret 4
mov ecx, esi
call sym._checkErr__systemZio_141_4.part.0
lea esi, [esi]
nop

Function at 0x403ad0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
mov ebx, ecx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp], edx
call sym._fwrite
mov dword [esp], ebx
mov esi, eax
call sym._ferror
test eax, eax
jne 0x403b0b
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret 4
mov ecx, ebx
call sym._checkErr__systemZio_141_4.part.0
lea esi, [esi]
lea esi, [esi]

Function at 0x403ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x2c
mov edi, dword [sym.___acrt_iob_func]
mov dword [esp + 0x1c], edx
test edx, edx
jle 0x403d29
lea esi, [esi]
mov esi, dword [ebp + ebx*4]
mov dword [esp], 1
add ebx, 1
call edi
mov dword [esp], 0
mov ecx, eax
mov edx, esi
call sym._writeWindows__systemZio_205_12
sub esp, 4
cmp dword [esp + 0x1c], ebx
jg 0x403d00
mov dword [esp], 1
call edi
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x42e19c
call sym._fwrite
mov dword [esp], 1
call edi
mov dword [esp], eax
call sym._fflush
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
mov ecx, 0xfa0
push esi
push ebx
xor ebx, ebx
sub esp, 0x3c
call sym._mnewString_4
mov esi, eax
add eax, 8
mov dword [esp + 0x2c], eax
test esi, esi
je 0x403fbb
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esi]
test eax, eax
jg 0x403f19
sub eax, 1
mov dword [esp], 0
mov dword [esp + 4], eax
call sym._raiseIndexError2
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xfa0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fread
mov ebp, eax
cmp eax, 0xfa0
je 0x404000
mov dword [esp], edi
call sym._ferror
test eax, eax
jne 0x404086
test ebp, ebp
js 0x404050
mov ecx, esi
mov edx, ebp
call sym._setLengthStr_8
mov esi, eax
test eax, eax
je 0x404038
mov edx, dword [eax]
mov ecx, ebx
call sym._resizeString_8
lea ecx, [esi + 8]
mov ebx, eax
mov eax, dword [eax]
lea edx, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [esp + 4], ecx
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [esi]
add dword [ebx], eax
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, ebx
xor edx, edx
call sym._resizeString_8
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
call sym._raiseIndexError2
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xfa0
mov dword [esp + 4], 1
mov dword [esp], 8
call sym._fread
mov ebp, eax
cmp eax, 0xfa0
jne 0x403f46
jmp 0x403fb0
mov edx, dword [esi]
mov ecx, ebx
call sym._resizeString_8
mov ebx, eax
mov eax, dword [eax]
lea edx, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call sym._memcpy
mov eax, dword [esi]
add dword [ebx], eax
jmp 0x403f00
add esp, 0x3c
mov ecx, ebx
xor edx, edx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._resizeString_8
mov eax, ebp
mov dword [esp + 0x10], 0x7fffffff
sar eax, 0x1f
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._raiseRangeErrorI
jmp 0x403f5e
mov ecx, edi
call sym._checkErr__systemZio_141_4.part.0
lea esi, [esi]
Function at 0x404090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x7fffffff
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
cmp eax, esi
mov eax, 0
sbb eax, ebp
jb 0x404220
mov ecx, esi
call sym._mnewString_4
mov ebx, eax
test eax, eax
je 0x40425d
mov eax, dword [eax]
test eax, eax
jle 0x404170
mov eax, 0x7fffffff
cmp eax, esi
mov eax, 0
sbb eax, ebp
jb 0x404197
lea eax, [ebx + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._fread
mov dword [esp + 0x2c], eax
cmp esi, eax
je 0x404117
mov dword [esp], edi
call sym._ferror
test eax, eax
jne 0x4042c1
mov dword [esp], edi
call sym._fgetc
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sym._ungetc
mov ecx, dword [esp + 0x28]
test ecx, ecx
jns 0x4041d0
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar ecx, 0x1f
cmp eax, esi
mov edi, ecx
sbb edi, ebp
jge 0x404161
test eax, eax
js 0x404290
mov edx, dword [esp + 0x2c]
mov ecx, ebx
call sym._setLengthStr_8
mov ebx, eax
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
sub eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._raiseIndexError2
mov eax, 0x7fffffff
cmp eax, esi
mov eax, 0
sbb eax, ebp
jae 0x4040e4
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], ebp
call sym._raiseRangeErrorI
jmp 0x4040e4
mov ecx, edi
call sym._readAllBuffer__systemZio_421_4
mov esi, eax
test eax, eax
je 0x404270
mov edx, dword [eax]
mov ecx, ebx
call sym._resizeString_8
lea ecx, [esi + 8]
mov ebx, eax
mov eax, dword [eax]
lea edx, [ebx + eax + 8]
mov eax, dword [esi]
mov dword [esp + 4], ecx
mov dword [esp], edx
add eax, 1
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [esi]
add dword [ebx], eax
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 4], ebp
call sym._raiseRangeErrorI
mov ecx, esi
call sym._mnewString_4
mov ebx, eax
test eax, eax
jne 0x4040c6
mov eax, 0xffffffff
jmp 0x404173
mov ecx, ebx
xor edx, edx
call sym._resizeString_8
add esp, 0x3c
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x10], 0x7fffffff
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._raiseRangeErrorI
jmp 0x404154
mov ecx, edi
call sym._checkErr__systemZio_141_4.part.0
lea esi, [esi]
nop

Function at 0x404a80
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x14
test edx, edx
je 0x404a97
mov dword [esp], edx
call sym._strlen
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call sym._fwrite
mov dword [esp], esi
call sym._fflush
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x404b30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
call dword [0x42d0b4]
mov dword [esp + 8], 0x4b
mov dword [esp + 0xc], eax
mov ebx, eax
mov dword [esp + 4], 1
mov dword [esp], str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
call sym._fwrite
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 1
call sym._exit
lea esi, [esi]
nop

Function at 0x40ea60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov dword [ebp - 0x70], edx
mov edx, dword [0x4424f4]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 0x61], 1
test edx, edx
je 0x40eb22
mov eax, dword [0x4424ec]
mov dword [esp + 4], 0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
mov dword [0x4424ec], eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sym.__setjmp3
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x40eb38
mov eax, dword [ebp - 0x6c]
xor esi, esi
test eax, eax
je 0x40eb03
mov dword [esp], eax
mov edi, 7
call sym._strlen
mov dword [esp], 0x440ec0
mov ecx, 0x42d020
cmp eax, edi
mov ebx, eax
cmovge edi, eax
lea edx, [edi + 9]
call sym._rawNewObj__system_5693_12.constprop.0
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x6c]
sub esp, 4
mov esi, eax
mov dword [eax], ebx
lea eax, [eax + 8]
add ebx, 1
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
mov ecx, esi
call dword [0x4424f4]
mov eax, dword [0x4424ec]
mov byte [ebp - 0x61], 0
mov eax, dword [eax]
mov dword [0x4424ec], eax
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x40eb89
movzx eax, byte [ebp - 0x61]
test al, al
jne 0x40eba0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4424ec]
mov eax, dword [eax]
mov dword [ebp - 0x5c], 0
mov dword [0x4424ec], eax
mov eax, dword [0x4424e8]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x40eb64
add dword [ebx - 8], 8
mov eax, dword [0x4424e8]
test eax, eax
je 0x40eb7c
mov esi, dword [eax - 8]
lea ecx, [eax - 8]
lea edx, [esi - 8]
mov dword [eax - 8], edx
cmp edx, 7
ja 0x40eb7c
mov eax, ecx
call sym._addZCT__system_5310.constprop.0
mov eax, dword [ebp - 0x5c]
mov dword [0x4424e8], ebx
test eax, eax
je 0x40eb22
mov ecx, dword [0x4424e8]
test ecx, ecx
je 0x40ebda
call sym._raiseExceptionAux__system_2868_4
jmp 0x40eb22
mov dword [esp], 2
call dword [0x42d0b4]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov ebx, eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._fwrite
mov dword [esp], ebx
call sym._fflush
jmp 0x40eb2a
call sym._sysFatal__system_2900.constprop.0
nop

Function at 0x4109e0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test ecx, ecx
je 0x410a30
push esi
add ecx, 8
xor eax, eax
push ebx
mov esi, dword [ecx - 8]
lea ebx, [ecx + esi]
test esi, esi
jle 0x410a2b
lea esi, [esi]
nop
movzx edx, byte [ecx]
add ecx, 1
add edx, eax
mov eax, edx
shl eax, 0xa
add eax, edx
mov edx, eax
shr edx, 6
xor eax, edx
cmp ebx, ecx
jne 0x410a00
lea edx, [eax + eax*8]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 0xf
add edx, eax
mov eax, edx
pop ebx
pop esi
ret
mov eax, edx
ret
Function at 0x4186b0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x20
mov edi, dword [esp + 0x30]
test ecx, ecx
je 0x4186d2
mov ecx, dword [ecx]
mov edx, 0x442fa0
call sym._isObj_8
test al, al
je 0x418728
test edi, edi
js 0x4186f0
mov dword [esp + 0x30], edi
mov ecx, dword [ebx + 0x2c]
add esp, 0x20
mov edx, esi
pop ebx
pop esi
pop edi
jmp sym._readBuffer__systemZio_144_12
mov eax, edi
mov dword [esp + 0x10], 0x7fffffff
sar eax, 0x1f
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._raiseRangeErrorI
jmp 0x4186d6
call sym._raiseObjectConversionError
jmp 0x4186d2