joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fdc4
Capabilities:
Create thread

Disassembly:
push 0x5c
mov eax, 0x44df40
call fcn.0041bc3d
cmp byte [0x48e005], 0
jne 0x43fe41
xor esi, esi
lea eax, [ebp - 0x48]
push eax
push esi
push 0x48dc10
push 0x402fc1
push esi
push esi
mov dword [0x48df70], esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], esi
call fcn.00446190
or dword [ebp - 4], 0xffffffff
mov dword [0x48df70], eax
jmp 0x43fe1a
cmp dword [ebp - 0x48], 0
je 0x43fe38
push esi
push esi
push 0x502
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x48df70], 0
je 0x43fe47
call fcn.0041bb8f
ret
lea ecx, [ebp - 0x2c]
call fcn.0040207b
mov dword [ebp - 4], 2
call fcn.00406f11
test al, al
lea eax, [ebp - 0x44]
je 0x43fe87
push 0x2b
push 0x13
push eax
call fcn.0043f473
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ac3
lea ecx, [ebp - 0x44]
call fcn.00402204
lea ecx, [ebp - 0x2c]
call fcn.00444fff
jmp 0x43fea2
push 0x29
push 0x11
push eax
call fcn.0043f473
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401ac3
lea ecx, [ebp - 0x44]
call fcn.00402204
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040546d
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x68]
call fcn.00404a1f
push 0x463524
lea eax, [ebp - 0x68]
push eax
call fcn.0041ec4e
int3

Function at 0x43fecd
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00421c9f
cmp byte [0x48e005], 0
mov esi, eax
jne 0x43ff2a
cmp dword [0x48df6c], 0
jne 0x43ff2a
cmp word [0x48e00e], 3
push edi
mov edi, 0x48e008
jne 0x43ff0e
mov ecx, edi
call fcn.004021b2
test al, 1
je 0x43ff0e
mov eax, dword [0x48dd20]
shr eax, 9
test al, 1
je 0x43ff29
push 0x48df74
xor eax, eax
push eax
push edi
push 0x4057d1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x48df78], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x43fff4
Capabilities:
Check mutex on windows

Disassembly:
push 0x64
mov eax, 0x44dfd0
call fcn.0041bbd1
mov eax, dword [0x48dd20]
shr eax, 0xe
test al, 1
je 0x440097
push 0x48dc28
lea ecx, [ebp - 0x28]
call fcn.00405542
and dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0x45da18
call fcn.00401a84
push 0x45d9e8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401a84
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.00409ea6
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004024eb
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004024eb
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x48df7c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x44009d
lea ecx, [ebp - 0x28]
call fcn.004024eb
call fcn.0041bb80
ret
push 0x2e
push 0x29
lea eax, [ebp - 0x70]
push eax
call fcn.0043f473
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00444fff
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040546d
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x50]
call fcn.00404a1f
push 0x463524
lea eax, [ebp - 0x50]
push eax
call fcn.0041ec4e
int3

Function at 0x440507
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x467040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x48dc50], 0
push esi
mov esi, 0x48dc40
jne 0x440622
push ebx
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.00402214
cmp dword [0x48dc54], 7
mov eax, esi
cmova eax, dword [0x48dc40]
xor ebx, ebx
push ebx
push eax
call fcn.00426938
pop ecx
pop ecx
test eax, eax
je 0x440580
push 0x456ef0
mov ecx, esi
call fcn.00402214
mov ecx, esi
call fcn.0040854b
cmp dword [0x48dc50], ebx
je 0x4405a5
cmp dword [0x48dc54], 7
mov eax, esi
push ebx
cmova eax, dword [0x48dc40]
push eax
call fcn.00426938
pop ecx
pop ecx
test eax, eax
je 0x4405b8
push str.TEMP
call fcn.004272d3
pop ecx
push eax
mov ecx, esi
call fcn.00402214
cmp dword [0x48dc50], ebx
je 0x4405dd
cmp dword [0x48dc54], 7
mov eax, esi
push ebx
cmova eax, dword [0x48dc40]
push eax
call fcn.00426938
pop ecx
pop ecx
test eax, eax
je 0x4405f0
push 0x45da10
call fcn.004272d3
pop ecx
push eax
mov ecx, esi
call fcn.00402214
cmp dword [0x48dc50], ebx
je 0x440615
cmp dword [0x48dc54], 7
mov eax, esi
push ebx
cmova eax, dword [0x48dc40]
push eax
call fcn.00426938
pop ecx
pop ecx
test eax, eax
je 0x440621
push 0x48dc10
mov ecx, esi
call fcn.00405578
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b293
leave
ret
Function at 0x444343
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x467040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [esi + 0xc], 0x201
jne 0x444434
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041cfc0
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x44b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x244], eax
xor eax, eax
push 7
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
lea edi, [ebp - 0x234]
pop ecx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x238], 5
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_HideCaret]
mov eax, dword [ebx + 0xb8]
pop edi
cmp eax, dword [ebx + 0xbc]
je 0x444437
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x444437
and dword [eax], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b293
leave
ret 0xc
Function at 0x449c60
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x449c7d
mov eax, dword [esi]
test eax, eax
je 0x449da1
cmp word [eax], 0
je 0x449da1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x449da1
test al, 0x10
jne 0x449da1
cmp dword [esi + 0x14], 7
jbe 0x449caf
mov esi, dword [esi]
push 0x45da38
push esi
call fcn.00421653
mov esi, eax
add esp, 8
test esi, esi
je 0x449da1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.00428ccb
push 2
push 0
push esi
call fcn.0042834c
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00428ccb
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00429202
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x449d98
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.00427935
add esp, 0x10
test eax, eax
je 0x449d98
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x449d98
cmp dword [esp + 0x20], 0x48535844
jne 0x449d98
cmp dword [esp + 0x24], 0x28
jne 0x449d98
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.00421a91
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4926fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401db6
mov eax, dword [0x692350]
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.00405eb1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492740
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49289c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406014
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 + 0x695fc0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403279
mov ecx, dword [esi*4 + 0x695fc0]
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 0x492895
cmp eax, dword [edi + ecx + 0x24]
jne 0x492895
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 0x492895
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403279
add esp, 0x14
test edx, edx
jl 0x492895
jg 0x49280b
test eax, eax
jb 0x492895
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x492895
jl 0x492825
cmp dword [ebp - 0x1008], eax
ja 0x492895
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492843
test ebx, ebx
je 0x49287c
cmp ecx, edi
jae 0x49287c
mov al, byte [ecx]
cmp al, 0xd
jne 0x49285d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x492869
cmp byte [ecx + 1], 0xa
jne 0x492869
inc ecx
jmp 0x492869
movzx eax, al
movsx eax, byte [eax + 0x692eb8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492843
cmp edx, ebx
jne 0x492843
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49289a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x498fd1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x692350]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49901c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499493
test al, al
jne 0x499016
sub edx, 2
cmp edx, edi
jne 0x498ffc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49903e
lea eax, [edi + 2]
cmp edx, eax
je 0x49903e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00498bca
add esp, 0x10
jmp 0x499138
push esi
lea ecx, [ebp - 0x255]
call fcn.00499493
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499081
push dword [ebp - 0x25c]
jmp 0x49902e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4990be
cmp word [ebp - 0x226], 0
je 0x4990df
cmp word [ebp - 0x226], ax
jne 0x4990be
cmp word [ebp - 0x224], 0
je 0x4990df
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00498bca
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49912b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499098
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499113
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499138
push 0x4985b2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040556a
add esp, 0x10
jmp 0x499108
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x4a11fc
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 + 0x695fc0]
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 0x4a123c
cmp byte [ebx], 0xa
jne 0x4a123c
or byte [eax + edi + 0x28], 4
jmp 0x4a1241
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a133f
mov al, byte [edx]
cmp al, 0x1a
je 0x4a1321
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a1270
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a1295
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a129f
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 0x4a1252
jmp 0x4a133f
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 0x4a131c
cmp dword [ebp - 0xc], 0
je 0x4a131c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x695fc0]
test byte [eax + edi + 0x28], 0x48
je 0x4a12f6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a12e1
mov byte [esi], dl
jmp 0x4a12f2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x695fc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a133f
cmp byte [ebp - 1], 0xa
jne 0x4a1305
cmp esi, ebx
jne 0x4a1305
mov byte [esi], 0xa
jmp 0x4a133e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a133f
mov byte [esi], 0xd
jmp 0x4a133e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x695fc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a133b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a133f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a139b
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 + 0x695fc0]
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 0x4a13de
cmp word [esi], dx
jne 0x4a13de
or byte [edi + eax + 0x28], 4
jmp 0x4a13e3
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 0x4a1536
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 0x4a1516
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a1425
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a145b
cmp eax, edx
jae 0x4a1467
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 0x4a13fd
jmp 0x4a1536
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 0x4a1512
cmp dword [ebp - 0x14], 0
je 0x4a1512
mov eax, dword [ebx*4 + 0x695fc0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a14ea
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a14b3
mov word [esi], cx
jmp 0x4a14e6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x695fc0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x695fc0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x695fc0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a1536
pop ebx
cmp word [ebp - 4], bx
jne 0x4a14fb
cmp esi, dword [ebp + 0xc]
jne 0x4a14fb
mov word [esi], bx
jmp 0x4a1533
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a1536
push 0xd
jmp 0x4a152f
mov ecx, dword [ebx*4 + 0x695fc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a152d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a1536
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x40fb18e6
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2955003f
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x41d821
Capabilities:
Check os version
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call fcn.0041d8a0
mov esi, eax
pop ecx
test esi, esi
je 0x41d896
mov ecx, dword [0x78d03c]
cmp ecx, 0xffffffff
jne 0x41d851
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
sbb ecx, ecx
inc ecx
mov dword [0x78d03c], ecx
test ecx, ecx
je 0x41d878
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41d896
mov eax, dword [ebp - 4]
shr eax, 0x13
and eax, 1
push eax
jmp 0x41d886
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x41d896
push 1
push str.filesystem::readonly
push dword [ebp + 8]
call fcn.0040dd23
add esp, 0xc
push esi
call fcn.00441dce
pop ecx
pop esi
leave
ret

Function at 0x420dbd
Capabilities:
Connect socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x78e580]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0x98]
push esi
mov esi, dword [esp + 0x98]
push edi
mov edi, dword [esp + 0xa8]
push edi
push esi
mov dword [esp + 0x18], eax
call fcn.00420330
pop ecx
pop ecx
test eax, eax
je 0x420eab
push edi
push 0x80
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00427240
add esp, 0x10
test eax, eax
je 0x420eab
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x1c], 0
je 0x420e34
push dword [eax + 0x1c]
call fcn.004760d1
pop ecx
push ebp
call fcn.00475e17
pop ecx
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x1c], eax
push ebp
call fcn.004169a7
pop ecx
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x420f12
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 4
je 0x420e41
cmp ebx, 0x2733
jne 0x420eef
push 0x10
push esi
call fcn.00420000
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
test byte [eax + 0x20], 2
je 0x420ec6
push edi
push dword [esp + 0x14]
push 4
push esi
call fcn.00420da0
add esp, 0x10
test eax, eax
je 0x420eab
push edi
push esi
call fcn.004205b0
pop ecx
pop ecx
test eax, eax
jne 0x420f12
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b5ec4
add esp, 0x88
ret
push str.Connection_in_progress
call fcn.00451b5b
pop ecx
push eax
push 0x14
call fcn.00408f70
push eax
push edi
call fcn.004418d8
mov eax, dword [esi + 0xc]
add esp, 0x10
or dword [eax + 0x20], 0x100
jmp 0x420eab
push ebx
call fcn.00408e81
push ebx
mov esi, eax
call fcn.00422bca
pop ecx
pop ecx
push eax
push esi
call fcn.00408f70
push eax
push edi
call fcn.004418d8
add esp, 0x10
jmp 0x420eab
push 0x10
push esi
call fcn.00420000
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
or dword [eax + 0x20], 0x10
mov eax, dword [esi + 0xc]
or dword [eax + 0x20], 0x20
xor eax, eax
inc eax
jmp 0x420ead
Function at 0x43024f
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x78e580]
xor eax, esp
mov dword [esp + 0x190], eax
push 0x78f6fc
call fcn.0044196b
pop ecx
test eax, eax
je 0x430324
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x43029c
push str.Windows_Sockets_could_not_be_initialized
push 4
push str.GLib_GIO
call fcn.0044512e
add esp, 0xc
jmp 0x43029a
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.ws2_32.dll
call esi
push str.iphlpapi.dll
mov edi, eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test edi, edi
je 0x4302e4
push str.InetNtopW
push edi
call ebx
push str.InetPtonW
push edi
mov dword [0x78f6f4], eax
call ebx
push edi
mov dword [0x78f6f0], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4302f2
and dword [0x78f6f4], 0
and dword [0x78f6f0], 0
test esi, esi
je 0x43030c
push str.if_nametoindex
push esi
call ebx
push esi
mov dword [0x78f6f8], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x430313
and dword [0x78f6f8], 0
push 1
push 0x78f6fc
call fcn.004419e4
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b5ec4
add esp, 0x194
ret