joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f9ecb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f9ee6
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124bf10b]
pop edx
test eax, eax
je 0x5f9fb8
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f9fa7
test dword [ebp - 0x2a8], 1
jne 0x5f9fa7
and dword [ebp - 0x2a8], 0x100
jne 0x5f9fa7
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2d39]
pop edx
pop esi
test eax, eax
je 0x5f9f4a
jmp 0x5f9fa7
cmp word [esi], 0x5a4d
jne 0x5f9fa7
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f9fa7
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2ed9]
pop edx
test eax, eax
je 0x5f9fa7
lea eax, [ebp - 0x28c]
push eax
call fcn.005f9e27
test eax, eax
jne 0x5f9fa0
jmp 0x5f9fa7
mov eax, esi
jmp 0x5f9fb8
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f9ee6
pop esi
leave
ret 4
Function at 0x401dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
mov eax, dword [0x97ffc0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x84]
push 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
call fcn.00461e10
push 0x461dd0
push 0x4613b0
push 0
mov dword [esp + 0x28], eax
call fcn.00462320
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0x18]
push edi
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], esi
call fcn.004056d0
push dword [ebp + 0x178]
push str.inputs:__u_n
push edi
call fcn.00401010
push dword [ebp + 0x180]
push str.outputs:__u_n
push edi
call fcn.00401010
push dword [ebp + 0x17c]
push str.uniforms:__u_n
push edi
call fcn.00401010
mov eax, dword [ebp + 0x188]
add esp, 0x3c
test eax, eax
je 0x401e90
push eax
push str.scratch:__u_n
push edi
call fcn.00401010
add esp, 0xc
mov eax, dword [ebp + 0x190]
test eax, eax
je 0x401ea9
push eax
push str.constants:__u_n
push edi
call fcn.00401010
add esp, 0xc
mov edi, 0x12
push ebx
mov ebx, 1
mov dword [esp + 0x10], edi
nop dword [eax + eax]
cmp ebx, 0x8000
je 0x401f99
cmp ebx, 4
je 0x401f1b
cmp ebx, 8
je 0x401f1b
mov esi, dword [ebp + 4]
cmp dword [esi], 0
je 0x401f99
test esi, esi
je 0x401f99
nop word [eax + eax]
mov eax, dword [esi + 0x10]
and eax, ebx
test eax, 0x3ffff
je 0x401f0a
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00406850
add esp, 8
mov esi, dword [esi]
cmp dword [esi], 0
je 0x401f99
test esi, esi
jne 0x401ef0
jmp 0x401f99
xor edi, edi
nop dword [eax]
push 0x40
lea eax, [esp + 0x40]
push 0
push eax
call fcn.004f05c0
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [eax], 0
je 0x401f6a
test eax, eax
je 0x401f6a
nop dword [eax]
mov ecx, dword [eax + 0x10]
and ecx, ebx
test ecx, 0x3ffff
je 0x401f5f
cmp dword [eax + 0x2c], edi
jne 0x401f5f
mov ecx, dword [eax + 0x14]
shr ecx, 3
and ecx, 3
mov dword [esp + ecx*4 + 0x3c], eax
mov eax, dword [eax]
cmp dword [eax], 0
je 0x401f6a
test eax, eax
jne 0x401f40
xor esi, esi
nop dword [eax]
mov eax, dword [esp + esi*4 + 0x3c]
test eax, eax
je 0x401f86
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00406850
add esp, 8
inc esi
cmp esi, 0x10
jb 0x401f70
inc edi
cmp edi, 0x80
jb 0x401f20
mov edi, dword [esp + 0x10]
rol ebx, 1
sub edi, 1
mov dword [esp + 0x10], edi
jne 0x401ec0
mov esi, dword [ebp + 0x168]
xor eax, eax
pop ebx
cmp dword [esi], eax
cmove esi, eax
test esi, esi
je 0x401fd9
nop word [eax + eax]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00403750
mov esi, dword [esi]
add esp, 8
cmp dword [esi], 0
je 0x401fd9
test esi, esi
jne 0x401fc0
push 0
push dword [esp + 0x1c]
call fcn.00461640
push 0
push dword [esp + 0x28]
call fcn.004623b0
mov ecx, dword [esp + 0x88]
add esp, 0x10
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004eee65
add esp, 0x70
ret
Function at 0x44cf30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
movzx eax, byte [eax + 0x44d097]
push esi
push edi
jmp dword [eax*4 + 0x44d080]

Function at 0x460fe0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
push ebx
call fcn.004ff237
mov ebp, eax
add esp, 4
test ebp, ebp
jle 0x46102a
lea ecx, [ebp + 1]
push esi
push ecx
call fcn.004f7760
push 0
push 0
push ebx
mov esi, eax
call fcn.004feba5
push ebx
push ebp
push 1
push esi
call fcn.004fe779
mov byte [esi + ebp], 0
add esp, 0x20
mov eax, dword [edi + 4]
mov dword [eax], esi
mov eax, dword [edi + 8]
pop esi
mov dword [eax], ebp
lea eax, [edi + 0xc]
push eax
call fcn.004ff267
push ebx
call fcn.004f36c4
add esp, 8
pop edi
pop ebp
pop ebx
ret

Function at 0x461040
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x97ffc0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
mov esi, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
push 0x104
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x102
ja 0x4610f3
push edi
lea edi, [esi + 0xc]
push edi
push 0
push 0x53976c
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4610d9
push 0x539778
push edi
call fcn.004f37ab
mov ecx, eax
add esp, 8
test ecx, ecx
setne al
test ecx, ecx
je 0x4610c1
mov dword [esi], ecx
mov ecx, dword [esp + 0x11c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x120]
mov dword [esi + 8], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004eee65
add esp, 0x108
ret
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004eee65
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.004eee65
add esp, 0x108
ret
Function at 0x465050
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp byte [0x980b98], 0
jne 0x46507a
push 0x980b98
push 0x464ed0
push 0x980b9c
call fcn.00464e70
add esp, 0xc
mov byte [0x980b98], 1
push 0x980ba0
call fcn.0046aef0
add esp, 4
cmp byte [0x980b94], 0
je 0x4650c5
mov ecx, dword [0x9835f8]
mov eax, dword fs:[0x2c]
push 0x7fff
mov eax, dword [eax + ecx*4]
lea esi, [eax + 0x18]
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
xor ecx, ecx
cmp eax, 0x7ffd
cmova esi, ecx
jmp 0x465150
mov eax, dword [0x980bb8]
test eax, eax
jne 0x4650fc
push 0x461dd0
push 0x4613b0
push eax
call fcn.00461500
add esp, 0xc
mov dword [0x980bb8], eax
test eax, eax
je 0x465150
push 0x464f80
call fcn.004f00fa
mov eax, dword [0x980bb8]
add esp, 4
push edi
mov edi, dword [esp + 0xc]
push edi
push eax
call fcn.00461af0
add esp, 8
test eax, eax
je 0x465114
mov esi, dword [eax + 8]
jmp 0x46514f
push ebx
push edi
push dword [0x980bb8]
call fcn.00460830
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46514e
push edi
call fcn.00465010
push eax
push dword [0x980bb8]
call fcn.00460830
mov esi, eax
push esi
push ebx
push dword [0x980bb8]
call fcn.00461770
add esp, 0x18
pop ebx
pop edi
cmp byte [0x980b98], 0
jne 0x465177
push 0x980b98
push 0x464ed0
push 0x980b9c
call fcn.00464e70
add esp, 0xc
mov byte [0x980b98], 1
push 0x980ba0
call fcn.0046af00
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x465190
Capabilities:
Print debug messages

Disassembly:
cmp dword [0x980b90], 0
jne 0x4651a8
push 2
call fcn.004f3434
add esp, 4
mov dword [0x980b90], eax
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
je 0x4651f1
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4651f1
push 1
call fcn.004f3434
push eax
call fcn.004f6f18
push dword [0x980b90]
push esi
call fcn.004f72bf
push dword [0x980b90]
call fcn.004f6f18
add esp, 0x14
pop esi
ret
push 2
call fcn.004f3434
mov ecx, dword [0x980b90]
add esp, 4
cmp ecx, eax
je 0x46521a
push ecx
push esi
call fcn.004f72bf
push dword [0x980b90]
call fcn.004f6f18
add esp, 0xc
pop esi
ret
Function at 0x4810a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1e8
push ebx
push ebp
push esi
push edi
push 0x40
lea eax, [esp + 0x4c]
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
mov dword [esp + 0x24], 7
push 0
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 3
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], 5
mov dword [esp + 0x50], 0
call fcn.004f05c0
push 0x40
lea eax, [esp + 0xd0]
mov dword [esp + 0x98], 3
xorps xmm0, xmm0
mov dword [esp + 0xa0], 0
push 0
push eax
mov dword [esp + 0xb0], 8
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 3
movlpd qword [esp + 0xc0], xmm0
mov dword [esp + 0xc8], 1
mov dword [esp + 0xd0], 8
mov dword [esp + 0xd4], 0
call fcn.004f05c0
push 0x40
lea eax, [esp + 0x154]
mov dword [esp + 0x11c], 3
xorps xmm0, xmm0
mov dword [esp + 0x124], 0
push 0
push eax
mov dword [esp + 0x134], 9
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 3
movlpd qword [esp + 0x144], xmm0
mov dword [esp + 0x14c], 1
mov dword [esp + 0x154], 7
mov dword [esp + 0x158], 0
call fcn.004f05c0
push 0x40
xorps xmm0, xmm0
mov dword [esp + 0x1a0], 3
lea eax, [esp + 0x1d8]
mov dword [esp + 0x1a8], 0
push 0
push eax
mov dword [esp + 0x1b8], 9
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 3
movlpd qword [esp + 0x1c8], xmm0
mov dword [esp + 0x1d0], 4
movlpd qword [esp + 0x1d8], xmm0
call fcn.004f05c0
mov eax, dword [esp + 0x22c]
lea edi, [esp + 0x50]
add esp, 0x30
mov dword [esp + 0x1f0], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
lea ebx, [eax + 0x28]
push dword [ebx + 0x1c]
push 2
push ebx
call fcn.0048b570
add esp, 0xc
test al, al
je 0x481333
mov esi, dword [edi + 0x68]
push 5
push 0
push esi
push ebx
call fcn.0048b5f0
add esp, 0x10
test al, al
je 0x481333
xor ebp, ebp
test esi, esi
je 0x48130d
mov esi, edi
nop word [eax + eax]
mov edi, dword [esi - 8]
xor eax, eax
test edi, edi
push 1
sete al
push eax
push ebx
call fcn.0048b570
add esp, 0xc
test al, al
je 0x481333
test edi, edi
jne 0x4812d2
push 8
jmp 0x4812ee
push 3
push edi
push ebx
call fcn.0048b570
add esp, 0xc
test al, al
je 0x481333
cmp edi, 1
je 0x4812ec
cmp edi, 2
jne 0x481300
push 5
push dword [esi + 4]
push dword [esi]
push ebx
call fcn.0048b5f0
add esp, 0x10
test al, al
je 0x481333
mov edi, dword [esp + 0x14]
inc ebp
add esi, 0x10
cmp ebp, dword [edi + 0x68]
jb 0x4812b0
mov ebp, dword [esp + 0x10]
add edi, 0x78
inc ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
cmp ebp, 4
jb 0x481273
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1e8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1e8
ret
Function at 0x4d56a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x16c
mov eax, dword [0x97ffc0]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x180]
push ebx
mov ebx, dword [esp + 0x180]
push esi
mov esi, dword [esp + 0x178]
push edi
push 0xff
mov dword [esp + 0x18], eax
lea eax, [esp + 0x79]
push 0
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x80], 0
call fcn.004f05c0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d56f5
push esi
sub ecx, edx
lea eax, [esp + 0x78]
push ecx
push str._Z_zu_s
push eax
call fcn.004d5250
lea esi, [esp + 0x84]
xor edi, edi
add esp, 0x10
add esi, eax
cmp dword [esp + 0x184], edi
jbe 0x4d58db
mov ecx, 1
mov dword [esp + 0xc], ecx
push ebp
mov eax, dword [ebx + edi*4]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
cmp ebp, 6
jne 0x4d5795
mov ebx, dword [esp + 0x14]
mov byte [esi], 0x50
inc esi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x1c]
cmp eax, 8
ja case.0x4d5754.1
jmp dword [eax*4 + 0x4d5908]
mov eax, 1
jmp 0x4d5775
mov eax, 2
jmp 0x4d5775
mov eax, 3
jmp 0x4d5775
mov eax, 4
push eax
push str.U3AS_d
push esi
call fcn.004d5250
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add esi, eax
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax + 4]
mov ebp, dword [eax]
test dword [esp + 0x184], ecx
je 0x4d57a2
mov byte [esi], 0x4b
inc esi
movzx edx, byte [ebx + 0x11]
movzx eax, byte [ebx + 0x10]
imul edx, eax
cmp edx, 1
jbe 0x4d57f0
xor ecx, ecx
test edi, edi
je 0x4d57df
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 6
jne 0x4d57cf
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
cmp ebx, eax
je 0x4d5891
inc ecx
cmp ecx, edi
jb 0x4d57c0
push edx
push str.Dv_d_
push esi
call fcn.004d5250
add esp, 0xc
add esi, eax
cmp ebp, 8
je 0x4d58a8
cmp ebp, 0xd
je 0x4d58a1
movsx eax, byte [ebx + 4]
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0x967c1c
mov dword [esp + 0x20], 0x54754c
mov dword [esp + 0x24], 0x545140
mov dword [esp + 0x28], 0x967c20
mov dword [esp + 0x2c], str.dhcsml
mov dword [esp + 0x30], 0x967c28
mov dword [esp + 0x34], 0x967c2c
mov dword [esp + 0x38], 0x545150
mov dword [esp + 0x3c], 0x967c30
mov dword [esp + 0x40], 0x967c34
mov dword [esp + 0x44], 0x967c38
mov dword [esp + 0x48], 0x547558
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x6c], 0
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov eax, dword [esp + eax*4 + 0x1c]
jmp 0x4d58ad
push 0x967bf4
push esi
call fcn.004d5250
add esp, 8
jmp 0x4d58bc
mov eax, str.9ocl_event
jmp 0x4d58ad
mov eax, str.11ocl_sampler
push eax
push 0x51158c
push esi
call fcn.004d5250
add esp, 0xc
mov ecx, dword [esp + 0x10]
inc edi
mov ebx, dword [esp + 0x14]
add esi, eax
rol ecx, 1
mov dword [esp + 0x10], ecx
cmp edi, dword [esp + 0x188]
jb 0x4d5734
pop ebp
lea eax, [esp + 0x74]
push eax
call fcn.005022d8
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x170]
pop esi
pop ebx
xor ecx, esp
call fcn.004eee65
add esp, 0x16c
ret
Function at 0x4e66a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
push edi
mov byte [esp + 0x10], al
lea eax, [esp + 0x40]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x50], 0
call fcn.00412190
mov ebx, eax
mov dword [esp + 0x50], 1
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x28], ebx
push eax
push ebp
push esi
call fcn.00412190
mov edi, eax
mov dword [esp + 0x60], 2
push 1
lea eax, [esp + 0x64]
mov dword [esp + 0x3c], edi
push eax
push ebp
push esi
call fcn.00412190
push ebx
mov ebx, dword [esp + 0x68]
mov esi, eax
push 0x9a
push ebx
mov dword [esp + 0x58], esi
call fcn.0041d8d0
push edi
push 0x9a
push ebx
mov dword [esp + 0x68], eax
call fcn.0041d8d0
add esp, 0x48
mov dword [esp + 0x24], eax
push esi
push 0x9a
push ebx
call fcn.0041d8d0
add esp, 0xc
mov dword [esp + 0x28], eax
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x2c], 0
je 0x4e67d2
push 1
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 3
push eax
push ebp
push ebx
call fcn.00412190
movsd xmm0, qword [0x9683f8]
mov edi, eax
add esp, 0x10
movzx esi, byte [edi + 0x11]
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.00406d20
push esi
push 1
push dword [ebx + 0x10]
mov ebp, eax
mov dword [esp + 0x58], edx
call fcn.00409c50
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4e67ba
mov eax, dword [esp + 0x40]
push esi
mov dword [esi + 0x30], ebp
push ebx
mov dword [esi + 0x34], eax
call fcn.0041dcb0
add esp, 8
add esi, 0x18
push esi
push edi
push 0xed
push ebx
call fcn.0041d920
mov dword [esp + 0x3c], eax
add esp, 0x10
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push eax
push edi
push 0xd4
push ebx
call fcn.0041d920
push dword [esp + 0x34]
mov esi, eax
push edi
push 0xd4
push ebx
call fcn.0041d920
push esi
push eax
push 0x125
push ebx
call fcn.0041d920
push eax
push ebx
call fcn.0041e090
mov esi, eax
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.004e56d0
add esp, 0x40
mov dword [esp + 0x40], eax
push esi
push ebx
call fcn.0041e030
push dword [esp + 0x30]
mov ebp, eax
push dword [esp + 0x30]
push 0xd4
push ebx
call fcn.0041d920
push edi
push dword [esp + 0x40]
mov esi, eax
push 0xd4
push ebx
call fcn.0041d920
push esi
push eax
push 0x125
push ebx
call fcn.0041d920
push eax
push ebx
call fcn.0041e090
add esp, 0x40
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004e5a10
push esi
mov esi, dword [esp + 0x40]
mov ebx, eax
push esi
call fcn.0041e030
mov edi, eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004e5d50
push edi
mov edi, dword [esp + 0x50]
mov esi, eax
push edi
call fcn.0041df70
push esi
push ebx
push edi
call fcn.0041dd80
push ebp
push edi
mov esi, eax
call fcn.0041df70
push esi
push dword [esp + 0x78]
push edi
call fcn.0041dd80
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4f0440
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4f047f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f047f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f047f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4f047f
cmp dword [ecx + 0x74], 0xe
jbe 0x4f047f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4fd18e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x983bd0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4fd1d0
cmp byte [ebx], 0xa
jne 0x4fd1d0
or byte [edi + eax + 0x28], 4
jmp 0x4fd1d5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4fd2d8
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4fd2b3
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4fd204
mov eax, dword [ebp - 8]
jmp 0x4fd224
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4fd240
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4fd21e
add eax, 2
mov cl, 0xa
jmp 0x4fd221
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4fd1e6
jmp 0x4fd2d8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fd2ae
cmp dword [ebp - 0x10], 0
je 0x4fd2ae
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x983bd0]
test byte [eax + edi + 0x28], 0x48
je 0x4fd28d
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4fd27d
mov byte [esi], 0xa
jmp 0x4fd2d7
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x983bd0]
mov byte [eax + edi + 0x2a], cl
jmp 0x4fd2d7
cmp byte [ebp - 1], 0xa
jne 0x4fd297
cmp esi, ebx
je 0x4fd278
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00507ddb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4fd2d8
mov byte [esi], 0xd
jmp 0x4fd2d7
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x983bd0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4fd2d5
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4fd2d8
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4fd2e1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x983bd0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4fd325
push 0xa
pop esi
cmp word [ebx], si
jne 0x4fd325
or byte [eax + edi + 0x28], 4
jmp 0x4fd32a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4fd495
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4fd46d
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4fd377
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4fd3a1
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4fd3c0
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4fd38e
push ebx
add eax, 4
pop edx
jmp 0x4fd396
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4fd33c
jmp 0x4fd495
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fd468
cmp dword [ebp - 0x14], 0
je 0x4fd468
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x983bd0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4fd444
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4fd40c
mov word [esi], ax
jmp 0x4fd492
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x983bd0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x983bd0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x983bd0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4fd492
cmp word [ebp - 4], ax
jne 0x4fd44e
cmp esi, ebx
je 0x4fd404
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00507ddb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4fd495
push 0xd
pop eax
jmp 0x4fd404
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x983bd0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4fd48f
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4fd495
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret