joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015ec3
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 + 0x1002c8d8]
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 0x10015f09
cmp word [ebx], dx
jne 0x10015f09
or byte [eax + edi + 0x28], 4
jmp 0x10015f0e
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 0x10016071
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 0x10016051
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10015f4f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10015f85
cmp eax, edx
jae 0x10015f93
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 0x10015f2a
jmp 0x10016071
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 0x1001604c
cmp dword [ebp - 0x18], 0
je 0x1001604c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002c8d8]
test byte [eax + edi + 0x28], 0x48
je 0x10016022
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 0x10015fe6
mov word [esi], cx
jmp 0x1001601d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002c8d8]
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 + 0x1002c8d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002c8d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10016071
pop eax
cmp word [ebp - 4], ax
jne 0x10016032
cmp esi, ebx
jne 0x10016032
mov word [esi], ax
jmp 0x1001606e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100168fc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10016071
push 0xd
pop eax
jmp 0x1001602d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002c8d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001606b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10016071
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 0x10019e3f
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 0x10019edc
push ebx
push esi
call fcn.10019e08
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.10018bdd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10019e89
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10019edb
push edi
push eax
call fcn.100172e8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10019ea9
call fcn.10014802
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10019eda
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10018bdd
add esp, 0x20
test eax, eax
jne 0x10019ec8
push edi
call fcn.10014802
jmp 0x10019ed0
push ebx
call fcn.10014802
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 0x1001c58d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001203b
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 0x1001c5fc
cmp esi, dword [ebp - 4]
je 0x1001c5f7
cmp dword [ebp + 0xc], 0
je 0x1001c5f7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001c5d4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001c0df
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001c5fe
xor eax, eax
inc eax
jmp 0x1001c5fe
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001c663
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002b080]
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.1001203b
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.1001203b
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 0x1001c6da
cmp word [ecx], dx
je 0x1001c6da
mov eax, dword [0x10024a34]
push edi
dec eax
push eax
push 0x10024920
call fcn.1001c602
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001c74d
cmp word [eax], dx
je 0x1001c74d
mov eax, dword [edi]
test eax, eax
je 0x1001c6fe
cmp word [eax], dx
je 0x1001c6fe
lea eax, [ebp - 0x10]
push eax
call fcn.1001bfe5
jmp 0x1001c707
lea eax, [ebp - 0x10]
push eax
call fcn.1001c080
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001c777
mov eax, dword [0x1002491c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10024610
call fcn.1001c602
add esp, 0xc
test al, al
je 0x1001c777
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001c742
cmp word [eax], di
je 0x1001c742
lea eax, [ebp - 0x10]
push eax
call fcn.1001bfe5
pop ecx
jmp 0x1001c779
lea eax, [ebp - 0x10]
push eax
call fcn.1001c080
jmp 0x1001c73f
mov eax, dword [edi]
test eax, eax
je 0x1001c764
cmp word [eax], dx
je 0x1001c764
lea eax, [ebp - 0x10]
push eax
call fcn.1001bf9a
pop ecx
jmp 0x1001c777
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 0x1001c842
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001c487
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001c842
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001c842
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001c842
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001c7cf
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100153b7
test ebx, ebx
je 0x1001c83d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100153b7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001c842
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 0x1001c842
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001e2da
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001c844
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008faa
leave
ret
Function at 0x1001e801
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.1001e77d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001e970
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001e970
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001e925
jg 0x1001e85d
test eax, eax
je 0x1001e91b
push 1
push 0x1000
call fcn.10014d80
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001e880
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001e912
push 0x8000
push ebx
call fcn.1001e6ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001e8a9
jg 0x1001e8a4
cmp ecx, 0x1000
jb 0x1001e8a9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100145e6
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001e8ee
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 0x1001e8a4
jl 0x1001e8d5
test ecx, ecx
jne 0x1001e896
push dword [ebp - 0xc]
push ebx
call fcn.1001e6ae
push esi
call fcn.10014802
add esp, 0xc
xor ebx, ebx
jmp 0x1001e97e
cmp byte [edi + 0x24], 0
je 0x1001e905
cmp dword [edi + 0x20], 5
jne 0x1001e905
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001e910
mov ebx, dword [edi + 0x18]
jmp 0x1001e912
xor ebx, ebx
push esi
call fcn.10014802
pop ecx
jmp 0x1001e97e
test ecx, ecx
jg 0x1001e8e7
jl 0x1001e925
test eax, eax
jae 0x1001e8e7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100168fc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001e945
cmp byte [edi + 0x1c], 0
je 0x1001e8e7
jmp 0x1001e976
push ebx
call fcn.1001a42c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001e8e7
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 0x1001e97e
cmp byte [edi + 0x1c], 0
je 0x1001e97b
mov ebx, dword [edi + 0x18]
jmp 0x1001e97e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100168fc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001fc80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001fcad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001fcad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x479717b4
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, str._v_z
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x254b05ca
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x112f0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.112f01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x112f007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112f006a
add dl, dl
jne 0x112f0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112f00dc
xor eax, eax
add dl, dl
jne 0x112f0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112f017d
add dl, dl
jne 0x112f00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112f00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112f00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112f00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x112f00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x112f0075
mov eax, 1
add dl, dl
jne 0x112f00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x112f00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x112f00e1
sub eax, ebx
mov ebx, 1
jne 0x112f0128
mov ecx, 1
add dl, dl
jne 0x112f010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x112f0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x112f0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x112f0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x112f013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x112f014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x112f0136
cmp eax, 0x7d00
jae 0x112f016d
cmp eax, 0x500
jb 0x112f0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x112f0075
cmp eax, 0x7f
ja 0x112f0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x112f0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x112f019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x112f0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x10006807
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10006816
pop dword [ebp - 0x48]
mov eax, 0x8b69542c
sub eax, 0x7b68ec16
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x371ba
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x8481e958
add ecx, 0x7b7e5374
xor edi, edi
add edi, eax
mov ebx, 0x10024400
add ebx, dword [ebp - 0x48]
mov edx, 0x6350c662
xor dword [ebp - 8], 0x3b00bfd6
mov esi, dword [ebx]
add dword [ebp - 0x24], 0xe8490a3b
xor esi, edx
add dword [ebp - 4], 0x9e35f0e6
mov dword [edi], esi
sub dword [ebp - 0x40], 0x822c92db
add edi, 0x350943fc
add edi, 0xcaf6bc08
add ebx, 4
loop 0x10006866
add eax, 0xa23d430
sub eax, 0xa22ee2d
xor ebx, ebx
add ebx, eax
add eax, 0xe14cedba
add eax, 0x1eb3124b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x1000d40f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x10015406
call fcn.10013c9a
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x1000d630
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.10006807
add esp, 0x10
test eax, eax
js 0x1000d62a
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x1000d4b3
push edi
call fcn.100081d8
pop ecx
test al, al
je 0x1000d4b3
mov eax, edi
call fcn.10013eb0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000d4c5
push edi
lea ecx, [ebp - 0x424]
call fcn.10006807
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.10006807
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000d62a
push 0x60
push ebx
push eax
call fcn.1000e9b2
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x1000d51d
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.1000e9b2
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x1000d51d
call fcn.100037d1
mov ebx, eax
jmp 0x1000d5f9
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1000d544
call fcn.100037d1
jmp 0x1000d5ec
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x1000d53a
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x1000d577
mov ebx, 0x8007000e
jmp 0x1000d5ee
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10006807
jmp 0x1000d59d
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000d570
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.10006807
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.10006807
mov ebx, eax
test edi, edi
je 0x1000d5f9
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000d612
lea ecx, [ebp - 0x418]
call fcn.1000cc05
or dword [ebp - 4], 0xffffffff
jmp 0x1000d622
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d618
mov eax, ebx
jmp 0x1000d65e
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1000d645
lea ecx, [ebp - 0x418]
call fcn.1000cc05
or dword [ebp - 4], 0xffffffff
jmp 0x1000d655
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d64b
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.10013be7
ret 0x10
Function at 0x1000f1e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x10017bc0
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f269
push str.file:__
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f269
push dword [ebp + 0xc]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f269
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000f26c
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1000f265
add eax, 0xfffffffd
cmp eax, 1
ja 0x1000f26c
mov esi, edi
jmp 0x1000f26c
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.10006807
add esp, 0x10
pop edi
pop esi
leave
ret 0x20
Function at 0x40eda0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, eax
mov eax, dword [esp + 0x20]
push esi
mov esi, dword [eax]
test esi, esi
je 0x40eddf
test ebx, ebx
je 0x40eddf
mov cl, byte [esi + edi]
mov ebp, dword [esp + 0x18]
xor cl, byte [ebp]
mov eax, dword [esp + 0x1c]
mov byte [eax], cl
add eax, 1
add ebp, 1
add esi, 1
sub ebx, 1
and esi, 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
jne 0x40edb2
cmp ebx, 0x10
jb 0x40ee5d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, edx
sub eax, edi
mov dword [esp + 0xc], eax
mov eax, ebx
shr eax, 4
mov ebp, ecx
mov dword [esp + 0x10], eax
shl eax, 4
add ecx, eax
sub ebp, edi
add edx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
push edx
push edi
push edi
call fcn.0040e830
add esp, 0xc
cmp esi, 0x10
jae 0x40ee49
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
add ecx, 1
mov edx, dword [esp + 0xc]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
sub ecx, 1
mov dword [eax + ebp - 4], edx
jne 0x40ee34
add dword [esp + 0xc], 0x10
sub ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x10], 1
jne 0x40ee10
test ebx, ebx
je 0x40eea0
mov eax, dword [esp + 0x20]
push eax
push edi
push edi
call fcn.0040e830
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + edi]
sub ebp, edi
sub ecx, edi
add esi, ebx
mov dl, byte [eax + ebp]
xor dl, byte [eax]
sub ebx, 1
mov byte [eax + ecx], dl
add eax, 1
test ebx, ebx
jne 0x40ee81
mov eax, dword [esp + 0x24]
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x24]
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x412670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1058
push 4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1058]
push ecx
call fcn.00411ea0
add esp, 0xc
test eax, eax
je 0x41269b
mov ax, 1
jmp 0x412752
push 8
push 1
lea edx, [ebp - 8]
push edx
call fcn.00411030
add esp, 0xc
mov eax, 1
test eax, eax
je 0x4126fa
movzx ecx, word [ebp + 0xc]
cmp ecx, 8
jge 0x4126bf
jmp 0x4126fa
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x1058]
push eax
call fcn.00411120
add esp, 8
push 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.00411070
add esp, 0xc
movzx eax, word [ebp + 0xc]
sub eax, 8
mov word [ebp + 0xc], ax
mov ecx, dword [ebp + 0x10]
add ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x4126ab
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1058]
push eax
call fcn.00411120
add esp, 8
mov word [ebp - 0xc], 0
jmp 0x412721
mov cx, word [ebp - 0xc]
add cx, 1
mov word [ebp - 0xc], cx
movzx edx, word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
cmp edx, eax
jge 0x41274f
movzx ecx, word [ebp - 0xc]
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx + ecx]
movzx ecx, word [ebp - 0xc]
movzx edx, byte [ebp + ecx - 8]
xor eax, edx
movzx ecx, word [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov byte [edx + ecx], al
jmp 0x412715
xor ax, ax
mov esp, ebp
pop ebp
ret

Function at 0x412950
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret