joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e8606
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 + 0x10191be8]
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 0x100e864c
cmp word [ebx], dx
jne 0x100e864c
or byte [eax + edi + 0x28], 4
jmp 0x100e8651
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 0x100e87b4
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 0x100e8794
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100e8692
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100e86c8
cmp eax, edx
jae 0x100e86d6
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 0x100e866d
jmp 0x100e87b4
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 0x100e878f
cmp dword [ebp - 0x18], 0
je 0x100e878f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10191be8]
test byte [eax + edi + 0x28], 0x48
je 0x100e8765
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 0x100e8729
mov word [esi], cx
jmp 0x100e8760
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10191be8]
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 + 0x10191be8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10191be8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100e87b4
pop eax
cmp word [ebp - 4], ax
jne 0x100e8775
cmp esi, ebx
jne 0x100e8775
mov word [esi], ax
jmp 0x100e87b1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100e8203
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100e87b4
push 0xd
pop eax
jmp 0x100e8770
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10191be8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100e87ae
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100e87b4
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 0x100e940c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10128270
push 0x10128268
push str.FlsAlloc
push 0x1f
call fcn.100e92d4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100e9440
push dword [ebp + 8]
mov ecx, esi
call dword [0x10104284]
call esi
jmp 0x100e9446
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100e948a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10128280
push 0x10128278
push str.FlsGetValue
push 0x21
call fcn.100e92d4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100e94c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x10104284]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100e94c9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10128288
push 0x10128280
push str.FlsSetValue
push 0x22
call fcn.100e92d4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100e9503
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10104284]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100ed933
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 0x100ed9d0
push ebx
push esi
call fcn.100ed8fc
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.100ec7b1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100ed97d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ed9cf
push edi
push eax
call fcn.100e5f68
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100ed99d
call fcn.100e5f2e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ed9ce
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100ec7b1
add esp, 0x20
test eax, eax
jne 0x100ed9bc
push edi
call fcn.100e5f2e
jmp 0x100ed9c4
push ebx
call fcn.100e5f2e
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 0x100efaeb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100e4275
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100efb5a
cmp esi, dword [ebp - 4]
je 0x100efb55
cmp dword [ebp + 0xc], 0
je 0x100efb55
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100efb32
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100ef63d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100efb5c
xor eax, eax
inc eax
jmp 0x100efb5c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100efbc1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1018f074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100e4275
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100e4275
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100efc38
cmp word [ecx], dx
je 0x100efc38
mov eax, dword [0x1012c0e4]
push edi
dec eax
push eax
push 0x1012bfd0
call fcn.100efb60
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100efcab
cmp word [eax], dx
je 0x100efcab
mov eax, dword [edi]
test eax, eax
je 0x100efc5c
cmp word [eax], dx
je 0x100efc5c
lea eax, [ebp - 0x10]
push eax
call fcn.100ef543
jmp 0x100efc65
lea eax, [ebp - 0x10]
push eax
call fcn.100ef5de
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100efcd5
mov eax, dword [0x1012bfcc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1012bcc0
call fcn.100efb60
add esp, 0xc
test al, al
je 0x100efcd5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100efca0
cmp word [eax], di
je 0x100efca0
lea eax, [ebp - 0x10]
push eax
call fcn.100ef543
pop ecx
jmp 0x100efcd7
lea eax, [ebp - 0x10]
push eax
call fcn.100ef5de
jmp 0x100efc9d
mov eax, dword [edi]
test eax, eax
je 0x100efcc2
cmp word [eax], dx
je 0x100efcc2
lea eax, [ebp - 0x10]
push eax
call fcn.100ef4f8
pop ecx
jmp 0x100efcd5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100efda0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100ef9e5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100efda0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100efda0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100efda0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100efd2d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100e9609
test ebx, ebx
je 0x100efd9b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100e9609
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100efda0
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100efda0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100eb234
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100efda2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d0b93
leave
ret
Function at 0x100f4131
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.100f40ad
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100f42a0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100f42a0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100f4255
jg 0x100f418d
test eax, eax
je 0x100f424b
push 1
push 0x1000
call fcn.100e7f5d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100f41b0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100f4242
push 0x8000
push ebx
call fcn.100f3fde
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100f41d9
jg 0x100f41d4
cmp ecx, 0x1000
jb 0x100f41d9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100e7d41
add esp, 0x10
cmp eax, 0xffffffff
je 0x100f421e
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 0x100f41d4
jl 0x100f4205
test ecx, ecx
jne 0x100f41c6
push dword [ebp - 0xc]
push ebx
call fcn.100f3fde
push esi
call fcn.100e5f2e
add esp, 0xc
xor ebx, ebx
jmp 0x100f42ae
cmp byte [edi + 0x24], 0
je 0x100f4235
cmp dword [edi + 0x20], 5
jne 0x100f4235
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100f4240
mov ebx, dword [edi + 0x18]
jmp 0x100f4242
xor ebx, ebx
push esi
call fcn.100e5f2e
pop ecx
jmp 0x100f42ae
test ecx, ecx
jg 0x100f4217
jl 0x100f4255
test eax, eax
jae 0x100f4217
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100e8203
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100f4275
cmp byte [edi + 0x1c], 0
je 0x100f4217
jmp 0x100f42a6
push ebx
call fcn.100f1b92
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100f4217
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 0x100f42ae
cmp byte [edi + 0x1c], 0
je 0x100f42ab
mov ebx, dword [edi + 0x18]
jmp 0x100f42ae
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100e8203
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100f7630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, 1
push esi
push edi
mov ecx, 0x3020100
mov edx, dword [ebx + 0x118]
mov dword [ebx + 0x120], 0x3020100
add ecx, 0x4040404
mov dword [ebx + eax*4 + 0x120], ecx
inc eax
cmp eax, edx
jbe 0x100f7651
xor esi, esi
xor edi, edi
cmp dword [esp + 0x14], esi
je 0x100f76ad
push ebp
mov ebp, dword [esp + 0x14]
movzx eax, byte [esi + ebp]
mov edx, dword [esp + 0x1c]
or edi, eax
mov ebx, edx
mov cl, byte [eax + edx + 0x120]
mov byte [esi + ebp], cl
mov byte [edx + 0x11f], cl
nop
mov cl, byte [eax + ebx + 0x11f]
mov edx, eax
sub eax, 1
mov byte [edx + ebx + 0x120], cl
jns 0x100f7690
inc esi
cmp esi, dword [esp + 0x18]
jb 0x100f7672
pop ebp
mov eax, dword [esp + 0x18]
shr edi, 2
mov dword [eax + 0x118], edi
pop edi
pop esi
pop ebx
ret
Function at 0x100feb20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100feb4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100feb4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x40b9c0
push 0x80000002
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40105a
push 0x40b9e4
push 0x40b9e8
call fcn.00401264
push eax
call fcn.00401134
push 0x40ba00
call fcn.0040127b
add esp, 0x10
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push 0x40ba40
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401099
push 0x40b9e4
push 0x40ba50
call fcn.00401264
push eax
call fcn.00401134
push 0x40ba68
call fcn.0040127b
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x4010b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x4010c2
repz ret
jmp fcn.004014b6
Function at 0x407503
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403ebb
and dword [ebp - 0x14], 0
cmp dword [0x40eb1c], 0
mov dword [ebp - 0x18], eax
jne 0x4075b6
push 0x40b0b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40765e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b0a4
push ebx
call edi
test eax, eax
je 0x40765e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40b094
push ebx
mov dword [0x40eb1c], eax
call edi
push eax
call esi
push 0x40b080
push ebx
mov dword [0x40eb20], eax
call edi
push eax
call esi
push 0x40b064
push ebx
mov dword [0x40eb24], eax
call edi
push eax
call esi
mov dword [0x40eb2c], eax
test eax, eax
je 0x4075b6
push 0x40b04c
push ebx
call edi
push eax
call esi
mov dword [0x40eb28], eax
mov eax, dword [0x40eb28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40760f
cmp dword [0x40eb2c], ecx
je 0x40760f
push eax
call esi
push dword [0x40eb2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40760f
test ebx, ebx
je 0x40760f
call edi
test eax, eax
je 0x407606
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407606
test byte [ebp - 8], 1
jne 0x40760f
or dword [ebp + 0x10], 0x200000
jmp 0x407642
mov eax, dword [0x40eb20]
cmp eax, dword [ebp - 0x18]
je 0x407642
push eax
call esi
test eax, eax
je 0x407642
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407642
mov eax, dword [0x40eb24]
cmp eax, dword [ebp - 0x18]
je 0x407642
push eax
call esi
test eax, eax
je 0x407642
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40eb1c]
call esi
test eax, eax
je 0x40765e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407660
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010b8
leave
ret
Function at 0x10003280
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1005200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.xxxxxxxx
mov edx, 0x1004e978
call fcn.10002e50
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
add esp, 4
test esi, esi
je 0x100032d4
lea eax, [ebp - 8]
push eax
push 0x40
push 8
push esi
call edi
lea eax, [ebp - 8]
mov dword [esi], 0x472f0000
push eax
push dword [ebp - 8]
mov dword [esi + 4], 0x441b0000
push 8
push esi
call edi
push ebx
push str.xxxxxxxxxx____x
mov edx, 0x1004e984
call fcn.10002e50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10003320
lea eax, [ebp - 8]
push eax
push 0x40
push 0xf
push ebx
call edi
mov esi, 0x1004e9a4
mov ecx, ebx
sub esi, ebx
mov edx, 0xf
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x10003306
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0xf
push ebx
call edi
push str.xxxxxxx
mov edx, 0x1004e9b4
call fcn.10002e50
add esp, 4
mov esi, eax
pop ebx
test esi, esi
je 0x10003360
lea eax, [ebp - 8]
push eax
push 0x40
push 7
push esi
call edi
lea eax, [ebp - 8]
mov dword [esi], 0xff449dd9
push eax
push dword [ebp - 8]
mov word [esi + 4], 0
push 7
push esi
mov byte [esi + 6], 0x8d
call edi
push str.xxxxxxxxxx
mov edx, 0x1004e9bc
call fcn.10002e50
mov esi, eax
add esp, 4
test esi, esi
je 0x100033a2
lea eax, [ebp - 8]
push eax
push 0x40
push 0xa
push esi
call edi
lea eax, [ebp - 8]
mov dword [esi], 0x90909090
push eax
push dword [ebp - 8]
mov dword [esi + 4], 0x838b9090
push 0xa
push esi
mov word [esi + 8], 0x7d54
call edi
push str.xxxxxxxxxxxxx
mov edx, 0x1004e9c8
call fcn.10002e50
mov esi, eax
add esp, 4
test esi, esi
je 0x100033ee
lea eax, [ebp - 8]
push eax
push 0x40
push 6
lea ecx, [esi + 6]
push esi
mov dword [0x100cbe70], ecx
call edi
mov eax, 0x10002be0
mov byte [esi + 5], 0x90
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 6
push esi
call edi
push str.xxxxxxxxxxxx
mov edx, 0x1004e9e8
call fcn.10002e50
mov esi, eax
add esp, 4
test esi, esi
je 0x1000343f
lea eax, [ebp - 8]
push eax
push 0x40
push 7
lea ecx, [esi + 7]
push esi
mov dword [0x100cbe60], ecx
call edi
mov eax, 0x9090
mov word [esi + 5], ax
mov eax, 0x10002c20
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 7
push esi
call edi
push str.xxxxxxxx
mov edx, 0x1004ea08
call fcn.10002e50
mov esi, eax
add esp, 4
test esi, esi
je 0x1000348b
lea eax, [ebp - 8]
push eax
push 0x40
push 6
lea ecx, [esi + 6]
push esi
mov dword [0x100cbe6c], ecx
call edi
mov eax, 0x10002c00
mov byte [esi + 5], 0x90
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 6
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10047d31
mov esp, ebp
pop ebp
ret
Function at 0x100066f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1000673c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1000671f
cmp edi, 2
jb 0x1000671f
cmp byte [esi], cl
jne 0x1000671f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1004a658]
test edi, edi
jne 0x10006705
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000676b
cmp cl, 0x23
jne 0x10006752
cmp byte [esi], cl
jne 0x10006752
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1004a658]
test cl, cl
jne 0x10006743
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10006850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10006864
mov dword [ebx], 0
mov edx, 0x1004ed4c
call fcn.10006780
mov esi, eax
test esi, esi
je 0x10006952
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10006948
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10006948
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x10006948
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10006948
mov eax, dword [0x100cbe88]
test eax, eax
je 0x100068dc
inc dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10006948
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x1000692d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100cbe88]
add esp, 4
test eax, eax
je 0x1000691a
dec dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x1000693f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret