joyce8/EMBER2024-capa huggingface dataset:
Function at 0x779550
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x76e015
lea edi, [esi - 0x36d015]
push edi
jmp 0x77956a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x779571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x779560
mov eax, 1
add ebx, ebx
jne 0x779583
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x779594
jne 0x7795b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7795b3
dec eax
add ebx, ebx
jne 0x7795a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x779578
add ebx, ebx
jne 0x7795af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x779605
xor ecx, ecx
sub eax, 3
jb 0x7795cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x77963a
sar eax, 1
mov ebp, eax
jmp 0x7795d6
add ebx, ebx
jne 0x7795d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7795a4
inc ecx
add ebx, ebx
jne 0x7795e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7795a4
add ebx, ebx
jne 0x7795f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7795e6
jne 0x779602
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7795e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x779624
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x779616
jmp 0x779566
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x779624
add edi, ecx
jmp 0x779566
pop esi
mov edi, esi
mov ecx, 0xf0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x779642
cmp byte [edi], 0
jne 0x779642
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x779647
lea edi, [esi + 0x377000]
mov eax, dword [edi]
or eax, eax
je 0x7796b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a0b50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3a0bf0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x779674
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3a0bf4]
or eax, eax
je 0x7796b0
mov dword [ebx], eax
add ebx, 4
jmp 0x779691
call dword [esi + 0x3a0c04]
mov ebp, dword [esi + 0x3a0bf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7796ea
sub esp, 0xffffff80
jmp 0x4021d1
Function at 0x1008ee40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
sub esp, 0xc
mov eax, dword [0x1014d6a8]
mov edi, 0xb3bfa809
mov eax, dword [eax - 0x79c55354]
add eax, edi
mov esi, esp
mov ecx, esi
call eax
mov eax, dword [0x1014d6a8]
add edi, dword [eax - 0x79c55350]
push 0x10125268
push esi
call edi
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x18], ecx
mov eax, dword [0x1015cac0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1014d6b0]
mov ecx, dword [0x1014d6b4]
cmp dword [ecx - 0x3cdaf5e0], 0xa
jl 0x1008eeb2
mov edx, dword [eax - 0x3cdaf5e0]
lea esi, [edx + 1]
imul esi, edx
and esi, 1
je 0x1008eeb2
nop dword [eax + eax]
jmp 0x1008eeb0
mov edi, dword [ebp + 8]
push eax
mov edx, esp
push eax
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x14], edx
mov dword [edx], edi
cmp dword [ecx - 0x3cdaf5e0], 0xa
jl 0x1008eeff
mov edx, dword [eax - 0x3cdaf5e0]
lea esi, [edx + 1]
imul esi, edx
and esi, 1
je 0x1008eeff
nop dword [eax + eax]
mov edx, dword [ebp - 0x14]
mov dword [edx], edi
cmp dword [ecx - 0x3cdaf5e0], 0xa
jl 0x1008eeff
mov esi, dword [eax - 0x3cdaf5e0]
lea edx, [esi + 1]
imul edx, esi
and edx, 1
jne 0x1008eee0
mov eax, dword [0x1014d6b8]
mov edx, 0x16079cef
add edx, dword [eax - 0x3cdaf5e0]
sub esp, 8
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
mov byte [esp], al
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
call edx
mov eax, dword [0x1014d6b4]
cmp dword [eax - 0x3cdaf5e0], 0xa
jl 0x1008efed
mov eax, dword [0x1014d6b0]
mov eax, dword [eax - 0x3cdaf5e0]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x1008efed
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
nop
sub esp, 8
movzx eax, byte [edi]
mov byte [esp], al
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov ecx, ebx
call esi
sub esp, 8
movzx eax, byte [edi]
mov byte [esp], al
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov ecx, ebx
call esi
mov eax, dword [0x1014d6b4]
cmp dword [eax - 0x3cdaf5e0], 0xa
jl 0x1008efac
mov eax, dword [0x1014d6b0]
mov eax, dword [eax - 0x3cdaf5e0]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x1008ef60
sub esp, 8
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
mov byte [esp], al
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x18]
call dword [ebp - 0x20]
mov eax, dword [0x1014d6b4]
cmp dword [eax - 0x3cdaf5e0], 0xa
jl 0x1008efed
mov eax, dword [0x1014d6b0]
mov eax, dword [eax - 0x3cdaf5e0]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x1008ef60
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dd3a1
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x100e12f2
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x100e1315
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x100e1303
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x100f4ad7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.100fa40b
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 0x100f4b16
sub eax, 1
je 0x100f4b11
sub eax, 1
je 0x100f4b0d
xor eax, eax
leave
ret
push 3
jmp 0x100f4b18
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x10104320
Capabilities:
Parse pe header

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

Function at 0x1010685f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011db9c
push 0x1011db94
push str.FlsAlloc
push 0x1e
call fcn.10106dbb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10106893
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10106899
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101068dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1011dbac
push 0x1011dba4
push str.FlsGetValue
push 0x20
call fcn.10106dbb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10106914
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1010ace9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100f51e0
mov eax, dword [0x1015cac0]
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.10109b18
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1010ad2b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1010ae87
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100dd3b0
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 + 0x10161cd0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1010aa90
mov ecx, dword [esi*4 + 0x10161cd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1010ae80
cmp eax, dword [edi + ecx + 0x24]
jne 0x1010ae80
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010ae80
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1010aa90
add esp, 0x14
test edx, edx
jl 0x1010ae80
jg 0x1010adf6
test eax, eax
jb 0x1010ae80
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1010ae80
jl 0x1010ae10
cmp dword [ebp - 0x1008], eax
ja 0x1010ae80
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1010ae2e
test ebx, ebx
je 0x1010ae67
cmp ecx, edi
jae 0x1010ae67
mov al, byte [ecx]
cmp al, 0xd
jne 0x1010ae48
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1010ae54
cmp byte [ecx + 1], 0xa
jne 0x1010ae54
inc ecx
jmp 0x1010ae54
movzx eax, al
movsx eax, byte [eax + 0x1015d490]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1010ae2e
cmp edx, ebx
jne 0x1010ae2e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1010ae85
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100dd3a1
leave
ret
Function at 0x1010b7b5
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 0x1010b852
push ebx
push esi
call fcn.1010b8a3
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.101046db
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1010b7ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010b851
push edi
push eax
call fcn.10104611
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1010b81f
call fcn.101045d7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1010b850
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101046db
add esp, 0x20
test eax, eax
jne 0x1010b83e
push edi
call fcn.101045d7
jmp 0x1010b846
push ebx
call fcn.101045d7
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 0x1010b855
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1010b866
pop esi
ret
push ebx
push edi
push esi
call fcn.1010b8a3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10104611
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1010b88e
push ebx
push esi
push edi
call fcn.100f76b0
add esp, 0xc
push 0
call fcn.101045d7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1010b8da
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010b8e5
Function at 0x1010caa4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1010caaf
Function at 0x1010d51b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x10161cd0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1010d55b
cmp byte [ebx], 0xa
jne 0x1010d55b
or byte [eax + edi + 0x28], 4
jmp 0x1010d560
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1010d65e
mov al, byte [edx]
cmp al, 0x1a
je 0x1010d640
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1010d58f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1010d5b4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1010d5be
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1010d571
jmp 0x1010d65e
push 0
lea eax, [ebp - 0xc]
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 0x1010d63b
cmp dword [ebp - 0xc], 0
je 0x1010d63b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10161cd0]
test byte [eax + edi + 0x28], 0x48
je 0x1010d615
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1010d600
mov byte [esi], dl
jmp 0x1010d611
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10161cd0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1010d65e
cmp byte [ebp - 1], 0xa
jne 0x1010d624
cmp esi, ebx
jne 0x1010d624
mov byte [esi], 0xa
jmp 0x1010d65d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1010aa32
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1010d65e
mov byte [esi], 0xd
jmp 0x1010d65d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10161cd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010d65a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1010d65e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010d667
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10161cd0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1010d6aa
cmp word [esi], dx
jne 0x1010d6aa
or byte [edi + eax + 0x28], 4
jmp 0x1010d6af
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1010d7e8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1010d7c8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1010d6f1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1010d727
cmp eax, edx
jae 0x1010d733
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1010d6c9
jmp 0x1010d7e8
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 0x1010d7c4
cmp dword [ebp - 0x14], 0
je 0x1010d7c4
mov eax, dword [ebx*4 + 0x10161cd0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1010d79c
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1010d7e2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10161cd0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10161cd0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10161cd0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1010d7e5
pop ebx
cmp word [ebp - 4], bx
jne 0x1010d7ad
cmp esi, dword [ebp + 0xc]
jne 0x1010d7ad
mov word [esi], bx
jmp 0x1010d7e5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1010aa32
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1010d7e8
push 0xd
jmp 0x1010d7e1
mov ecx, dword [ebx*4 + 0x10161cd0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010d7df
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1010d7e8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10115b54
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]
push dword [ebp + 0xc]
push ebx
call fcn.10115cf7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10115ccc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10115ccc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10115c7b
jg 0x10115bad
test eax, eax
je 0x10115c71
push 1
push 0x1000
call fcn.101076e9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10115bd3
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10115c68
push 0x8000
push ebx
call fcn.10115a4e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10115bff
jg 0x10115bfa
cmp ecx, 0x1000
jb 0x10115bff
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1010bfee
add esp, 0x10
cmp eax, 0xffffffff
je 0x10115c44
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 0x10115bfa
jl 0x10115c2b
test ecx, ecx
jne 0x10115bec
push dword [ebp - 0xc]
push ebx
call fcn.10115a4e
push esi
call fcn.101045d7
add esp, 0xc
xor edi, edi
jmp 0x10115cdd
cmp byte [edi + 0x24], 0
je 0x10115c5b
cmp dword [edi + 0x20], 5
jne 0x10115c5b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10115c66
mov edi, dword [edi + 0x18]
jmp 0x10115c68
xor edi, edi
push esi
call fcn.101045d7
pop ecx
jmp 0x10115cdd
test ecx, ecx
jg 0x10115c3d
jl 0x10115c7b
test eax, eax
jae 0x10115c3d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1010aa32
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10115c9e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10115c3d
jmp 0x10115cd5
push ebx
call fcn.10111d38
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10115c3d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10115cdd
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10115cda
mov edi, dword [edi + 0x18]
jmp 0x10115cdd
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1010aa32
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x40a690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov al, byte [0x4114c4]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x14]
lea ecx, [esp + 8]
push edx
mov dword [esp + 0x124], 1
call fcn.0040a258
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [esp + 0x128]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0040a24c
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x401100
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40a6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x5c
push 0x2f
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::Replace_1
push 0x410048
push 0x410044
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Replace
push 0x410040
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
test esi, esi
jg 0x401179
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc esi
lea ecx, [esp + 0x1c]
push esi
push 0x410048
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jle 0x4011bc
lea eax, [esi + 1]
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov edx, dword [esp + 8]
push 0
push edx
call edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
jmp 0x401180
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4015c0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2808
call fcn.0040a010
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push 0
mov dword [ebp - 4], 0
call fcn.004017c0
mov ebx, dword [ebp + 0xc]
push 0x4114c4
mov ecx, ebx
call fcn.0040a258
mov ecx, esi
call fcn.00401780
push 0
push 0
push 0
push 0
push str.myie
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 4], eax
jne 0x401650
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xc9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0
push 0x80000000
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
mov dword [esi + 8], eax
jne 0x401694
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xca
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dl, byte [0x4114c4]
mov ecx, 0xa00
xor eax, eax
lea edi, [ebp - 0x2817]
mov byte [ebp - 0x2818], dl
mov byte [ebp - 4], 1
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [esi + 0xc], 1
je 0x401745
mov edx, dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2818]
push 0x2800
push ecx
push edx
call edi
test eax, eax
je 0x401753
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401745
mov byte [ebp + eax - 0x2818], 0
lea eax, [ebp - 0x2818]
push eax
lea ecx, [ebp + 0xc]
push ebx
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4016ba
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00401780
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8