joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100029e3
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.1000109a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x10002b42
lea eax, [esp + 0x28]
mov dword [0x1007a374], 0x142d
mov dword [esp + 0x20], eax
call fcn.100022a0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
jne 0x10002b3a
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.100026a2
lea ecx, [0x100024f3]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x70], 0x120c00
mov edx, dword [0x1007a360]
mov dword [esp + 0x44], edx
mov edx, dword [0x1007a364]
mov dword [esp + 0x6c], edx
mov edx, dword [0x1007a368]
mov dword [esp + 0x40], edx
mov edx, dword [0x1007a36c]
mov dword [esp + 0x78], edx
mov edx, dword [0x1007a370]
mov dword [esp + 0x60], edx
mov dword [0x1007a374], 0xca7
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10002abd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10002adb
mov dword [0x1007a378], 0xfffff8b4
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10002a9a
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x48], esi
mov dword [0x1007a374], 0x2489
mov dword [0x1007a378], 0xae5
mov esi, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10002552
mov dword [0x1007a378], 0x74c
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10002b4c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1007a37c], 0
mov dword [0x1007a380], 0
mov dword [0x1007a38c], 0
mov ebx, dword [0x1007a378]
add ebx, 0xffffeb05
mov dword [0x1007a374], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10002cdf
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1007a374], 0x1641
add ecx, 1
mov edi, edx
add edi, 1
mov dword [0x1007a378], 0xf08
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1007a37c], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1007a380], edx
mov dword [0x1007a374], 0x160e
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1007a384], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1007a384]
mov edx, dword [0x1007a380]
mov byte [ebx + edx], cl
mov edx, dword [0x1007a37c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1007a380]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1007a38c], ecx
mov dword [0x1007a374], 0x2a72
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov edx, dword [0x1007a378]
add edx, 0xfffff0cb
mov dword [0x1007a378], edx
mov dl, cl
add dl, byte [0x1007a391]
mov byte [0x1007a390], dl
mov byte [0x1007a391], ch
mov byte [0x1007a392], cl
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov dword [0x1007a374], 0x138b
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x10002cdf
mov eax, dword [0x1007a37c]
mov ecx, dword [0x1007a380]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jmp 0x10002bb7
mov dword [0x1007a378], 0x232
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002eee
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x1007a378], 0x2446
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x1007a380], 0
mov byte [0x1007a384], 0
mov dword [0x1007a37c], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1007a374]
add eax, 0xcff
mov dword [0x1007a378], eax
mov eax, dword [0x1007a37c]
add eax, 1
mov dword [0x1007a37c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10002f33
mov dword [0x1007a374], 0x1e5b
mov dword [0x1007a37c], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x10002f83
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1007a388], 0
mov dword [0x1007a378], 0x1a8e
mov edx, dword [0x1007a380]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x1007a388], edi
mov dword [0x1007a374], 0x1721
mov eax, edi
cdq
idiv ecx
mov dword [0x1007a380], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1007a384], cl
mov dword [0x1007a374], 0x1c4e
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x1007a384]
mov edx, dword [0x1007a380]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x1007a378], 0x257f
mov edx, dword [0x1007a37c]
add edx, 1
mov dword [0x1007a37c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10002f83
mov dword [0x1007a374], 0x1a3f
mov dword [0x1007a378], 0x213
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x469644]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp]
push eax
lea edx, [esp + 0xc]
mov byte [esp + 4], 0x4b
mov byte [esp + 5], 0x9e
mov byte [esp + 6], 0x2e
mov byte [esp + 7], 0x61
mov byte [esp + 8], 0x4e
mov byte [esp + 9], 0x39
mov byte [esp + 0xa], 0x11
mov byte [esp + 0xb], 0x24
mov byte [esp + 0xc], 0xb
mov byte [esp + 0xd], 0x17
mov byte [esp + 0xe], 0x5d
mov byte [esp + 0xf], 0x66
mov byte [esp + 0x10], 0x48
mov byte [esp + 0x11], 0x29
mov byte [esp + 0x12], 0x12
mov byte [esp + 0x13], 0xc
call fcn.0040c080
mov ecx, dword [esp + 0x14]
add esp, 4
xor ecx, esp
call fcn.004366ef
add esp, 0x14
ret

Function at 0x40c080
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x68
mov eax, dword [0x469644]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov edi, dword [esp + 0x74]
mov esi, edx
call fcn.0040c190
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [edi]
mov dword [0x46db18], eax
mov eax, dword [edi + 4]
mov dword [0x46db1c], ecx
mov edi, 0x46db18
mov ecx, 0x46e048
mov dword [0x46db20], edx
mov dword [0x46db24], eax
call fcn.0040c8e0
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + str.91__]
movzx edx, byte [ecx + 0x46e047]
movzx ecx, byte [eax + 0x46aa79]
mov byte [esp + eax + 8], dl
movzx edx, byte [ecx + 0x46e047]
movzx ecx, byte [eax + 0x46aa7a]
mov byte [esp + eax + 9], dl
movzx edx, byte [ecx + 0x46e047]
movzx ecx, byte [eax + 0x46aa7b]
mov byte [esp + eax + 0xa], dl
movzx edx, byte [ecx + 0x46e047]
mov byte [esp + eax + 0xb], dl
add eax, 4
cmp eax, 0x38
jl 0x40c0d0
push 0x38
lea eax, [esp + 0xc]
push eax
push 0x46e048
call fcn.0043dfc0
add esp, 0xc
xor edi, edi
mov esi, 0x46dc60
jmp 0x40c140
mov eax, edi
call fcn.0040c950
push 0x38
push 0x46e048
push esi
call fcn.0043dfc0
add esi, 0x38
add esp, 0xc
inc edi
cmp esi, 0x46dfe0
jl 0x40c140
call fcn.0040c210
call fcn.0040c4b0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
mov eax, 0x46db28
call fcn.004366ef
add esp, 0x68
ret
Function at 0x40c210
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
sub esp, 0x68
mov eax, dword [0x469644]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
mov ebp, dword [0x46e174]
xor ebx, ebx
test ebp, ebp
jle 0x40c491
push esi
push edi
mov dword [0x46db14], 0x46e088
mov dword [0x46db10], 0x46e0a8
xor esi, esi
jmp 0x40c250
movzx ecx, byte [esi + 0x46dbf9]
movzx eax, byte [esi + 0x46dbf8]
movzx edx, byte [esi + 0x46dbfa]
mov byte [0x46e0c9], cl
movzx ecx, byte [esi + 0x46dbfc]
mov byte [0x46e0c8], al
movzx eax, byte [esi + 0x46dbfb]
mov byte [0x46e0cc], cl
movzx ecx, byte [esi + 0x46dbff]
mov byte [0x46e0ca], dl
movzx edx, byte [esi + 0x46dbfd]
mov byte [0x46e0cb], al
movzx eax, byte [esi + 0x46dbfe]
mov byte [0x46e0cf], cl
mov edi, 0x46e0c8
mov ecx, 0x46e088
mov byte [0x46e0cd], dl
mov byte [0x46e0ce], al
call fcn.0040c8e0
test ebx, ebx
jne 0x40c2d7
mov edi, 0x46db20
mov ecx, 0x46e118
call fcn.0040c8e0
xor eax, eax
lea esp, [esp]
movzx edx, byte [eax + 0x46e118]
movzx ecx, byte [eax + 0x46e119]
xor byte [eax + 0x46e088], dl
xor byte [eax + 0x46e089], cl
movzx edx, byte [eax + 0x46e11a]
movzx ecx, byte [eax + 0x46e11b]
xor byte [eax + 0x46e08a], dl
xor byte [eax + 0x46e08b], cl
add eax, 4
cmp eax, 0x40
jl 0x40c2e0
xor eax, eax
mov edi, edi
movzx edx, byte [eax + 0x46a9f8]
movzx ecx, byte [edx + 0x46e087]
movzx edx, byte [eax + 0x46a9f9]
mov byte [esp + eax + 0x10], cl
movzx ecx, byte [edx + 0x46e087]
movzx edx, byte [eax + 0x46a9fa]
mov byte [esp + eax + 0x11], cl
movzx ecx, byte [edx + 0x46e087]
movzx edx, byte [eax + 0x46a9fb]
mov byte [esp + eax + 0x12], cl
movzx ecx, byte [edx + 0x46e087]
mov byte [esp + eax + 0x13], cl
add eax, 4
cmp eax, 0x40
jl 0x40c320
push 0x40
lea edx, [esp + 0x14]
push edx
push 0x46e088
call fcn.0043dfc0
add esp, 0xc
call fcn.0040c5a0
xor eax, eax
jmp 0x40c390
movzx ecx, byte [eax + 0x46aa38]
movzx edx, byte [ecx + 0x46e087]
movzx ecx, byte [eax + 0x46aa39]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 0x46e087]
movzx ecx, byte [eax + 0x46aa3a]
mov byte [esp + eax + 0x11], dl
movzx edx, byte [ecx + 0x46e087]
movzx ecx, byte [eax + 0x46aa3b]
mov byte [esp + eax + 0x12], dl
movzx edx, byte [ecx + 0x46e087]
mov byte [esp + eax + 0x13], dl
add eax, 4
cmp eax, 0x40
jl 0x40c390
push 0x40
lea eax, [esp + 0x14]
push eax
push 0x46e088
call fcn.0043dfc0
add esp, 0xc
xor eax, eax
jmp 0x40c400
mov cl, byte [eax + 0x46e088]
mov byte [eax + 0x46e118], cl
inc eax
cmp eax, 0x40
jl 0x40c400
call fcn.0040cb90
movzx edx, byte [0x46e16c]
movzx eax, byte [0x46e16d]
movzx ecx, byte [0x46e16e]
mov byte [esi + 0x46db90], dl
movzx edx, byte [0x46e16f]
mov byte [esi + 0x46db91], al
movzx eax, byte [0x46e170]
mov byte [esi + 0x46db92], cl
movzx ecx, byte [0x46e171]
mov byte [esi + 0x46db93], dl
movzx edx, byte [0x46e172]
mov byte [esi + 0x46db94], al
movzx eax, byte [0x46e173]
inc ebx
mov byte [esi + 0x46db95], cl
mov byte [esi + 0x46db96], dl
mov byte [esi + 0x46db97], al
lea esi, [ebx*8]
cmp esi, ebp
jl 0x40c250
pop edi
pop esi
mov ecx, dword [esp + 0x6c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004366ef
add esp, 0x68
ret
Function at 0x40c4b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [0x46e174]
xor eax, eax
mov ecx, 0x46db28
test ebp, ebp
jle 0x40c59b
push ebx
push esi
push edi
mov edi, 0x46db91
mov edi, edi
movzx edx, byte [edi - 1]
mov esi, edx
shr esi, 2
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
cmp ebp, 2
jle 0x40c52a
movzx esi, byte [edi]
and edx, 3
mov ebx, esi
shr ebx, 4
shl edx, 4
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [edi + 1]
and esi, 0xf
mov ebx, edx
add esi, esi
shr ebx, 6
add esi, esi
or ebx, esi
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], bl
inc ecx
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x40c581
mov esi, ebp
sub esi, 1
je 0x40c56b
sub esi, 1
jne 0x40c582
movzx esi, byte [edi]
and edx, 3
shl edx, 4
mov ebx, esi
shr ebx, 4
or edx, ebx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
movzx edx, byte [edi + 1]
and esi, 0xf
add esi, esi
shr edx, 6
inc ecx
add esi, esi
or edx, esi
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x40c57d
and edx, 3
shl edx, 4
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
sub ebp, 3
add edi, 3
add eax, 4
test ebp, ebp
jg 0x40c4d0
pop edi
pop esi
pop ebx
mov byte [ecx], 0
pop ebp
ret
mov byte [ecx], al
pop ebp
ret
Function at 0x40d130
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x469644]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov esi, ecx
push 0xff
lea ecx, [esp + 0x14]
push ecx
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.0043752a
mov byte [eax + 1], 0
mov eax, esi
add esp, 8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40d184
lea edi, [esp + 0x10]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40d192
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x10]
push eax
push 0x400
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004366ef
add esp, 0x108
ret

Function at 0x40d770
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x469644]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x40d7ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x28], ebx
cmp esi, ebx
je 0x40d884
push ebx
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d884
lea ecx, [esp + 0x18]
push ecx
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40d879
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40d879
push 0
lea edx, [esp + 0x20]
push edx
push edi
push eax
push ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
je 0x40d879
lea eax, [esp + 0xc]
push eax
push 1
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x40d869
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
add eax, 0x28
push eax
push 0x4588b0
push 0
push 0
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
jl 0x40d869
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d879
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004366ef
mov esp, ebp
pop ebp
ret 4
Function at 0x40f4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f51c
mov eax, dword [esp + 8]
cmp eax, 1
je 0x40f4fa
cmp eax, 2
jne 0x40f50c
mov eax, dword [esp]
test esi, esi
je 0x40f518
test eax, eax
je 0x40f515
cmp byte [eax + esi - 1], 0
je 0x40f518
mov eax, 0xd
pop ecx
ret 4
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4

Function at 0x4100b0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fd38
mov eax, dword fs:[0]
push eax
sub esp, 0x668
push esi
mov eax, dword [0x469644]
xor eax, esp
push eax
lea eax, [esp + 0x670]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.004251f9
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x410127
push eax
push 0x45abe4
push 0x45abf4
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0042629a
add esp, 4
push str.Soft.xuniJ
mov ecx, esi
call fcn.0042676d
call fcn.00410280
call fcn.004102e0
lea edx, [esp + 0x14]
push edx
call fcn.0040db80
lea ecx, [esp + 0x14]
mov dword [esp + 0x678], 0
call fcn.0041e2ab
cmp eax, 1
jne 0x4101a3
lea eax, [esp + 0x174]
push eax
call fcn.00410990
lea ecx, [esp + 0x174]
mov byte [esp + 0x678], 1
mov dword [esi + 0x20], ecx
call fcn.0041e2ab
lea edx, [esp + 0x174]
push edx
mov byte [esp + 0x67c], 0
call fcn.004101d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x678], 0xffffffff
call fcn.0040dd30
xor eax, eax
mov ecx, dword [esp + 0x670]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413990
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x413997
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x413a74
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ccc0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x45ccc0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x45ccc0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ccc0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ccc0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ccc0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ccc0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ccc0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4139b0
pop edi
test edx, edx
je 0x413a9b
jmp 0x413a80
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x45ccc0]
inc ecx
sub edx, 1
jne 0x413a80
not eax
pop esi
ret

Function at 0x4141e0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x414212
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414208
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x414225
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
push esi
add eax, ecx
push eax
push edx
call fcn.0043dfc0
add dword [edi + 0x18], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x414240
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x414273
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41426d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x41429f
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x414285
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0043dfc0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4142b6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4142b0
cmp byte [esi + 8], 0
je 0x4142b0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4143f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x414435
cmp byte [esi + 1], 0
je 0x41443d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x414451
cmp byte [esi + 1], 0
je 0x414443
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x41445a
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x41440e
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x41445a
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x41446e
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0043733c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x414489
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0
cmp edi, eax
jbe 0x41459c
jmp 0x4144ac
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4144bd
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4144d6
mov ebp, 0x404
cmp byte [esi], 0
je 0x4144fb
cmp byte [esi + 1], 0
je 0x41459c
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4144fe
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x414526
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414520
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x41454c
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x414537
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0043dfc0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x41459c
lea eax, [ebp - 3]
test eax, eax
jle 0x41458e
lea esp, [esp]
dec eax
cmp byte [eax + ebx], 0x50
jne 0x41457c
cmp byte [eax + ebx + 1], 0x4b
jne 0x41457c
cmp byte [eax + ebx + 2], 5
jne 0x41457c
cmp byte [eax + ebx + 3], 6
je 0x414582
test eax, eax
jg 0x414560
jmp 0x41458e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x41459c
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4144a0
push ebx
call fcn.00437541
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret