joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bb8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x40f094], 0
jne 0x408c39
cmp dword [0x40f0b4], 0
jne 0x408be8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x40f0b4], eax
test eax, eax
jne 0x408be8
push str.GetEnvironmentStrings_failed
call fcn.004083ac
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x40f0b4]
jmp 0x408bfc
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00402c00
pop ecx
mov edi, eax
test eax, eax
jne 0x408bf4
lea edi, [ebp + 1]
push edi
call fcn.004018f4
pop ecx
mov ebx, eax
mov dword [0x40f098], ebx
test ebx, ebx
jne 0x408c26
xor eax, eax
jmp 0x408cfc
push edi
mov edx, dword [0x40f0b4]
push edx
push ebx
call fcn.00402ab0
add esp, 0xc
jmp 0x408c59
xor esi, esi
mov ebx, dword [0x40f094]
jmp 0x408c53
push eax
call fcn.00402c00
pop ecx
test eax, eax
jne 0x408c4f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x408c43
lea ebx, [esi + 4]
push 4
mov dword [0x40f09c], ebx
inc ebx
push ebx
call fcn.00401458
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x408c7c
xor eax, eax
jmp 0x408cfc
cmp dword [0x40f094], 0
jne 0x408cad
xor esi, esi
mov ebx, dword [0x40f098]
mov eax, dword [esp]
mov ebp, eax
jmp 0x408c9e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00402c00
pop ecx
mov edi, eax
test eax, eax
jne 0x408c94
jmp 0x408cde
xor esi, esi
mov ebx, dword [0x40f094]
mov eax, dword [esp]
mov edi, eax
jmp 0x408cd8
push eax
call fcn.00402c00
pop ecx
test eax, eax
je 0x408ccd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x408cd1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x408cbc
mov eax, dword [0x40f094]
test eax, eax
je 0x408cee
push eax
call fcn.00401904
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x40f094], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10005cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a6dd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10070068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov eax, 0x7fffffff
mov ecx, dword [ebp + 0x18]
sub eax, ecx
mov dword [ebp - 0x1c], ecx
cmp eax, 1
jb 0x10005ea8
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
lea edx, [ecx + 1]
mov esi, 0xf
cmovae eax, dword [ebp + 8]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], edx
movups xmmword [ebp - 0x3c], xmm0
cmp edx, esi
jbe 0x10005d9d
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x10005d5d
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.10035454
add esp, 4
test eax, eax
je 0x10005eb2
mov ecx, dword [ebp - 0x1c]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x20]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10005d97
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x10005d7e
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x10005ead
jmp 0x10005d3b
test eax, eax
je 0x10005d95
push eax
call fcn.10035454
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov edx, dword [ebp - 0x20]
mov edi, eax
jmp 0x10005d97
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], edi
push ecx
push eax
push edi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], esi
call fcn.10036be0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov word [edi + eax], 0xa
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x10005deb
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005de1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005eb2
push ecx
push edx
call fcn.10035423
add esp, 8
movups xmm1, xmmword [ebp - 0x3c]
lea esi, [ebp + 8]
movq xmm0, qword [ebp - 0x2c]
movq qword [ebp + 0x18], xmm0
mov edi, dword [ebp + 0x1c]
cmp edi, 0x10
movd edx, xmm1
movups xmmword [ebp + 8], xmm1
cmovae esi, edx
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005e15
sub ecx, dword [ebp - 0x18]
je 0x10005e61
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005e30
push 0
lea eax, [ebp - 0x14]
sub ecx, edx
push eax
push ecx
push esi
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x10005e5b
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005e50
sub eax, edx
jne 0x10005e27
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
cmp edi, 0x10
jb 0x10005e8d
lea ecx, [edi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10005e83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005eb2
push ecx
push edx
call fcn.10035423
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10035415
mov esp, ebp
pop ebp
ret
call fcn.10001230
call fcn.10001160
call fcn.1003a33a
int3
Function at 0x10006a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10006a52
jl 0x10006a45
test ecx, ecx
jne 0x10006a52
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10006b12
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10008210
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10006abe
jg 0x10006a7d
test esi, esi
je 0x10006abe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10006a95
mov eax, dword [esp + 0x10]
jl 0x10006a8f
cmp eax, esi
jae 0x10006a95
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10036be0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10006adf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10006afb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10006a64
jl 0x10006afb
test ecx, ecx
jne 0x10006a64
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10006b56
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10006b56
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10036be0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10006bc7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10006b7c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10006bb2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1003ba92
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10006bc7
cmp edi, eax
ja 0x10006b90
test edi, edi
je 0x10006bc7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1003ba92
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008730
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a920
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10070068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10035454
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1001d56e
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x20], ecx
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x10072bd0]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [0x10072bd4]
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a320
Capabilities:
Create thread

Disassembly:
mov ecx, 0x1b58
call fcn.1001d170
jmp fcn.10002360
Function at 0x1000be50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ac15
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x10070068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub dword [ebp + 0xc], 1
jne 0x1000c01f
push 0x1b58
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
mov dword [ebp - 0x26c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 1
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
cmp ebx, 0xffffffff
je 0x1000c01f
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1000c018
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1000c018
nop dword [eax + eax]
push 0xc
mov edx, 0x10070bac
lea ecx, [ebp - 0x40]
call fcn.10002070
mov dword [ebp - 4], 0
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push 0xc
cmovae esi, dword [ebp - 0x40]
mov edx, 0x10070bbc
call fcn.10002070
mov byte [ebp - 4], 1
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
push esi
cmovae edi, dword [ebp - 0x28]
push eax
call fcn.1003bfb2
add esp, 0x10
test eax, eax
jne 0x1000bf51
mov ecx, dword [ebp - 0x264]
lea edx, [eax + 1]
call fcn.1000a650
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.1003bfb2
add esp, 8
test eax, eax
jne 0x1000bf72
mov ecx, dword [ebp - 0x264]
xor edx, edx
call fcn.1000a650
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1000bfb0
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000bfa6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c042
push ecx
push edx
call fcn.10035423
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x1000c001
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000bff7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c042
push ecx
push edx
call fcn.10035423
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1000bef0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10035415
mov esp, ebp
pop ebp
ret 0xc
call fcn.1003a33a
int3
Function at 0x10034dcb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1004241e
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x10034e0a
sub eax, 1
je 0x10034e05
sub eax, 1
je 0x10034e01
xor eax, eax
leave
ret
push 3
jmp 0x10034e0c
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100459a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100459e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100459e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100459e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100459e1
cmp dword [ecx + 0x74], 0xe
jbe 0x100459e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1004a2ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10036540
mov eax, dword [0x10070068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10048696
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004a330
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004a48c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10059b90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10072788]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10049e77
mov ecx, dword [esi*4 + 0x10072788]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1004a485
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004a485
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004a485
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10049e77
add esp, 0x14
test edx, edx
jl 0x1004a485
jg 0x1004a3fb
test eax, eax
jb 0x1004a485
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004a485
jl 0x1004a415
cmp dword [ebp - 0x1008], eax
ja 0x1004a485
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004a433
test ebx, ebx
je 0x1004a46c
cmp ecx, edi
jae 0x1004a46c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004a44d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004a459
cmp byte [ecx + 1], 0xa
jne 0x1004a459
inc ecx
jmp 0x1004a459
movzx eax, al
movsx eax, byte [eax + 0x100702d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004a433
cmp edx, ebx
jne 0x1004a433
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004a48a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10035415
leave
ret
Function at 0x1004a652
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 + 0x10072788]
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 0x1004a692
cmp byte [ebx], 0xa
jne 0x1004a692
or byte [edi + eax + 0x28], 4
jmp 0x1004a697
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 0x1004a796
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004a779
inc eax
cmp dl, 0xd
je 0x1004a6c3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004a6e9
cmp eax, ecx
jae 0x1004a6f7
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 0x1004a6ab
jmp 0x1004a796
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 0x1004a774
cmp dword [ebp - 0x10], 0
je 0x1004a774
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10072788]
test byte [eax + edi + 0x28], 0x48
je 0x1004a74e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004a739
mov byte [esi], dl
jmp 0x1004a74a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10072788]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004a796
cmp byte [ebp - 1], 0xa
jne 0x1004a75d
cmp esi, ebx
jne 0x1004a75d
mov byte [esi], 0xa
jmp 0x1004a795
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10049e95
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004a796
mov byte [esi], 0xd
jmp 0x1004a795
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10072788]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004a793
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004a796
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004a79f
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 + 0x10072788]
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 0x1004a7e5
cmp word [ebx], dx
jne 0x1004a7e5
or byte [eax + edi + 0x28], 4
jmp 0x1004a7ea
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 0x1004a94d
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 0x1004a92d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004a82b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004a861
cmp eax, edx
jae 0x1004a86f
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 0x1004a806
jmp 0x1004a94d
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 0x1004a928
cmp dword [ebp - 0x18], 0
je 0x1004a928
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10072788]
test byte [eax + edi + 0x28], 0x48
je 0x1004a8fe
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 0x1004a8c2
mov word [esi], cx
jmp 0x1004a8f9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10072788]
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 + 0x10072788]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10072788]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004a94d
pop eax
cmp word [ebp - 4], ax
jne 0x1004a90e
cmp esi, ebx
jne 0x1004a90e
mov word [esi], ax
jmp 0x1004a94a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10049e95
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004a94d
push 0xd
pop eax
jmp 0x1004a909
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10072788]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1004a947
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004a94d
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 0x1004b40c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10061ca8
push 0x10061ca0
push str.FlsAlloc
push 0x1f
call fcn.1004b277
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004b440
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005d214]
call esi
jmp 0x1004b446
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004b48a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10061cb8
push 0x10061cb0
push str.FlsGetValue
push 0x21
call fcn.1004b277
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004b4c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005d214]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004b4c9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10061cc0
push 0x10061cb8
push str.FlsSetValue
push 0x22
call fcn.1004b277
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004b503
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005d214]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]