joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d797
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x500
mov eax, dword [esp + 0x504]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov ebp, edx
xor ecx, ecx
mov dword [esp + 0x14], ebp
mov byte [eax], bl
mov word [esp + 0x118], cx
jmp 0x41d9b8
cmp dword [edi], 0xc
jb 0x41d9c5
cmp dword [edi], ebp
ja 0x41d9c5
test dword [edi + 4], 0x20000000
je 0x41d9b0
cmp dword [edi], 0xc
jbe 0x41d9b0
test byte [edi + 4], 1
je 0x41d9b0
test cx, cx
jne 0x41d8d0
lea ecx, [esp + 0x322]
call fcn.004318a9
mov esi, eax
call fcn.0042f837
cmp al, 4
push 3
pop ebp
push 2
pop eax
cmovb ebp, eax
add esi, 0x1d2
mov ecx, esi
call fcn.00418988
test eax, eax
js 0x41d8b0
push 0x14
lea ecx, [esp + 0x24]
push ecx
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x41d8b0
cmp word [esp + eax*2 + 0x1e], bx
je 0x41d858
cmp eax, 0x14
jge 0x41d8b0
xor ecx, ecx
mov word [esp + eax*2 + 0x20], cx
push 2
pop eax
cmp ebp, eax
jne 0x41d873
lea edx, [esp + 0x58]
mov ecx, 0xcf
call fcn.0041c8a9
lea edx, [esp + 0x58]
jmp 0x41d896
cmp ebp, 3
jne 0x41d892
lea edx, [esp + 0xc8]
mov ecx, 0xd0
call fcn.0041c8a9
lea edx, [esp + 0xc8]
jmp 0x41d896
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x11c]
call fcn.00419668
test eax, eax
setne al
test al, al
jne 0x41d8ba
xor eax, eax
mov word [esp + 0x118], ax
mov ecx, 0x1ee
lea eax, [esp + 0x322]
mov byte [eax], bl
inc eax
dec ecx
jne 0x41d8c6
mov ebp, dword [esp + 0x14]
mov eax, dword [edi]
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
lea edx, [esp + 0x50]
xor ecx, ecx
call fcn.00429b5f
test al, al
je 0x41d9c3
lea edx, [esp + 0x80]
mov esi, ebx
mov cl, byte [esp + esi + 0x48]
call fcn.00433943
inc esi
push 4
pop ecx
add edx, ecx
cmp esi, 0x10
jb 0x41d8f6
xor eax, eax
mov word [edx], ax
lea eax, [esp + 0x10]
push eax
push 1
push ebx
lea eax, [esp + 0x124]
mov dword [esp + 0x28], ecx
mov ecx, 0x80000001
push eax
push ecx
mov dword [esp + 0x24], ecx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d99e
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [esp + 0x10]
cmove esi, dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 4
jne 0x41d99e
cmp dword [edi + 8], ebx
je 0x41d9c3
call fcn.0040b424
mov ecx, dword [edi + 8]
add ecx, dword [esp + 0x18]
cmp ecx, eax
ja 0x41d9c3
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x11c]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov eax, dword [esp + 0x514]
mov cx, word [esp + 0x118]
mov byte [eax], 1
sub ebp, dword [edi]
add edi, dword [edi]
mov dword [esp + 0x14], ebp
cmp ebp, 0xc
jae 0x41d7c3
jmp 0x41d9c5
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x500
ret 4
Function at 0x41fbd8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
cmp dword [esp + 4], 0
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, edx
mov bl, byte [edi + 0x100]
mov bh, byte [edi + 0x101]
mov eax, ecx
jbe 0x41fc37
sub eax, ebp
mov dword [esp + 0x14], eax
push esi
inc bl
movzx esi, bl
mov dl, byte [esi + edi]
add bh, dl
movzx ecx, bh
mov al, byte [ecx + edi]
mov byte [esi + edi], al
mov byte [ecx + edi], dl
movzx ecx, byte [esi + edi]
movzx eax, dl
add ecx, eax
and ecx, 0xff
mov al, byte [ecx + edi]
mov ecx, dword [esp + 0x18]
xor al, byte [ecx + ebp]
mov byte [ebp], al
inc ebp
dec dword [esp + 0x14]
jne 0x41fbfd
pop esi
mov byte [edi + 0x100], bl
mov byte [edi + 0x101], bh
pop edi
pop ebp
pop ebx
ret 8

Function at 0x41fc49
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x41fc73
push ebx
mov ebx, dword [esp + 0x14]
sub ecx, edx
mov al, byte [ecx + edx]
xor al, byte [esi + ebx]
inc esi
mov byte [edx], al
xor eax, eax
cmp esi, dword [esp + 0x18]
cmove esi, eax
inc edx
dec edi
jne 0x41fc5c
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x41fc78
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edx
mov dword [esp + 0xc], eax
mov ebp, ecx
mov esi, eax
test edi, edi
je 0x41fd5a
lea eax, [esp + 0x14]
sub ebp, eax
push ebx
push 3
xor bl, bl
lea ecx, [esp + 0x1c]
pop edx
test edi, edi
je 0x41fcb0
mov al, byte [ecx + ebp]
dec edi
inc bl
mov byte [ecx], al
jmp 0x41fcb3
mov byte [ecx], 0
inc ecx
dec edx
jne 0x41fca2
movzx ecx, byte [esp + 0x18]
movzx edx, byte [esp + 0x19]
mov eax, ecx
shr eax, 2
and ecx, 3
mov bh, byte [eax + 0x408c90]
shl ecx, 4
mov eax, edx
shr eax, 4
or eax, ecx
mov cl, byte [esp + 0x1a]
mov ch, byte [eax + 0x408c90]
add ebp, 3
cmp bl, 1
jbe 0x41fd01
movzx eax, cl
and edx, 0xf
shl edx, 2
shr eax, 6
or eax, edx
mov dl, byte [eax + 0x408c90]
jmp 0x41fd03
mov dl, 0x3d
cmp bl, 2
jbe 0x41fd16
movzx eax, cl
and eax, 0x3f
mov cl, byte [eax + 0x408c90]
jmp 0x41fd18
mov cl, 0x3d
cmp byte [esp + 0x1c], 0
je 0x41fd3f
movzx eax, bh
mov word [esi], ax
movzx eax, ch
mov word [esi + 2], ax
movzx eax, dl
mov word [esi + 4], ax
movzx eax, cl
mov word [esi + 6], ax
add esi, 8
jmp 0x41fd4d
mov byte [esi], bh
mov byte [esi + 1], ch
mov byte [esi + 2], dl
mov byte [esi + 3], cl
add esi, 4
test edi, edi
jne 0x41fc99
mov eax, dword [esp + 0x10]
pop ebx
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x41fe47
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [ecx]
mov byte [edx], al
mov eax, dword [esp + 4]
cmp eax, 1
jbe 0x41fe6a
push esi
lea esi, [edx + 1]
sub ecx, edx
lea edx, [eax - 1]
mov al, byte [ecx + esi]
xor al, byte [esi - 1]
mov byte [esi], al
inc esi
dec edx
jne 0x41fe5d
pop esi
ret 4
Function at 0x41fe6d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
push edi
mov edi, dword [esp + 0xc]
cmp ecx, esi
je 0x41fe85
push edi
push ecx
push esi
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
lea ecx, [edi - 1]
test ecx, ecx
je 0x41fe96
mov al, byte [ecx + esi - 1]
xor byte [ecx + esi], al
dec ecx
jne 0x41fe8c
pop edi
pop esi
ret 4
Function at 0x421330
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x890
push ebp
push 0x2a
mov ebp, edx
lea edx, [esp + 0x2c]
pop ecx
call fcn.0041c8a9
lea eax, [esp + 0x74]
push eax
push ecx
xor ecx, ecx
call fcn.00419536
test al, al
je 0x4214d4
lea eax, [esp + 0x28]
lea edx, [esp + 0x74]
push eax
mov ecx, edx
call fcn.00419668
test eax, eax
je 0x4214d4
push 0x2b
lea edx, [esp + 0x2c]
pop ecx
call fcn.0041c8a9
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x78]
lea ecx, [esp + 0x488]
call fcn.00419668
test eax, eax
je 0x4214d4
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4214d4
push ebx
push esi
push edi
push 0x2c
lea edx, [esp + 0x58]
pop ecx
call fcn.0041c8a9
lea edx, [esp + 0x68]
push 0x2d
pop ecx
call fcn.0041c8a9
lea edx, [esp + 0x10]
push 0x2e
pop ecx
call fcn.0041c8a9
xor ecx, ecx
mov esi, ecx
mov bl, cl
movzx eax, bl
push eax
lea eax, [esp + 0x58]
push eax
push ecx
lea eax, [esp + 0x28]
push 0xb
push eax
call fcn.00418a50
add esp, 0x14
test eax, eax
jne 0x4214c7
lea eax, [esp + 0x490]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4214c7
lea eax, [esp + 0x490]
push eax
push 0x104
lea eax, [esp + 0x290]
push eax
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4214b9
cmp word [esp + 0x288], 0
lea eax, [esp + 0x288]
je 0x421479
xor edx, edx
cmp word [eax], 0x2f
jne 0x421471
push 0x5c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], dx
jne 0x421465
cmp edi, 1
jne 0x4214a6
lea eax, [esp + 0x288]
push eax
lea edx, [esp + 0x84]
lea ecx, [esp + 0x69c]
call fcn.00419668
test eax, eax
je 0x4214b9
lea ecx, [esp + 0x698]
jmp 0x4214ad
lea ecx, [esp + 0x288]
mov edx, ebp
inc esi
call fcn.004214de
test al, al
je 0x4214c7
inc bl
push 0
pop ecx
cmp bl, 0xfa
jb 0x4213df
xor eax, eax
cmp eax, esi
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
jmp 0x4214d6
xor al, al
pop ebp
add esp, 0x890
ret

Function at 0x421755
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4217b2
cmp esi, 0xffffffff
je 0x4217b2
test edi, edi
je 0x4217b2
cmp byte [esi + 4], 0
je 0x42177f
mov ecx, dword [esi]
push 2
push 0
push 0
call fcn.0040c2fc
mov eax, dword [esi]
mov esi, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4217a1
cmp dword [ebp - 4], esi
jne 0x4217a1
mov eax, esi
jmp 0x4217c2
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4217bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x4217bf
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4217bf
mov dword [eax], 0x57
or eax, 0xffffffff
pop edi
pop esi
leave
ret 8
Function at 0x421c53
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
add eax, 0x426
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x421c77
xor al, al
jmp 0x421d70
mov ecx, dword [esi + 8]
push dword [esp + 0xc]
add ecx, 0x21e
mov edx, edi
call fcn.004189ac
test eax, eax
jne 0x421c70
mov eax, dword [esi + 8]
mov ecx, 0x7fffffff
mov dword [eax + 0x630], ecx
mov eax, dword [esi + 8]
push ebx
mov dword [eax + 0x634], ecx
mov eax, dword [esi + 8]
xor ebx, ebx
mov dword [eax + 0x638], ebx
mov eax, dword [esi + 8]
xor ecx, ecx
mov dword [eax + 0x63c], ebx
mov eax, dword [esi + 8]
push 0x408cf2
mov dword [eax + 0x640], ebx
mov eax, dword [esi + 8]
mov dword [eax + 0x644], 1
mov eax, dword [esi + 8]
mov dword [eax + 0x648], ebx
mov eax, dword [esi + 8]
mov word [eax + 0x650], cx
mov eax, dword [esi + 8]
mov byte [eax + 0x652], bl
mov eax, dword [esi + 8]
add eax, 0x752
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 8]
push 3
push 0x408cf0
add eax, 0x852
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esi + 8]
push esi
lea eax, [ecx + 0x630]
push eax
push 0x421950
push 0x421919
push 0x421903
push 0x4218f6
push 0x4218e0
push 0x4218ca
push fcn.00421885
push 0x4215a5
push 0x42159c
lea eax, [esi + 0xc]
push 0x41c905
push eax
call dword [ecx + 4]
mov ecx, dword [esi + 8]
add esp, 0x34
mov dword [ecx], eax
mov ecx, dword [esi + 8]
xor eax, eax
cmp dword [ecx], ebx
pop ebx
setne al
pop edi
pop esi
ret 8

Function at 0x422443
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x448
and dword [esp + 8], 0
cmp byte [0x440b84], 1
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
ja 0x422466
xor al, al
jmp 0x422513
lea ecx, [esp + 0x160]
call fcn.004318a9
lea eax, [esp + 0x1c]
push eax
mov edx, esi
lea ecx, [esp + 0x164]
call fcn.004223a2
mov esi, dword [esp + 0x45c]
test esi, esi
jne 0x4224ad
lea eax, [esp + 0x1c]
push eax
push 0x4410b8
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
neg eax
sbb al, al
inc al
jmp 0x422500
and dword [esp + 0x58], 0
lea eax, [esp + 0x1f0]
push eax
lea ecx, [esp + 0x5c]
call fcn.0041ff15
lea ecx, [esp + 0x58]
push esi
push ebx
call fcn.0041ff75
cmp esi, 0xc800
jbe 0x422520
push 3
pop ebp
mov edi, ebx
push esi
push edi
push ebp
lea eax, [esp + 0x28]
push eax
mov edx, 0x4410b8
call fcn.0040cf33
mov byte [esp + 0x17], al
cmp edi, ebx
je 0x422500
mov ecx, edi
call fcn.00430e28
mov al, byte [esp + 0x17]
mov edx, 0x1ee
lea ecx, [esp + 0x160]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x42250c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x448
ret 4
xor eax, eax
cmp esi, 4
setne al
push 2
pop edi
mov edx, edi
xor ecx, ecx
sub edx, eax
call fcn.004279a3
movzx ebp, byte [eax + 0x408d5c]
cmp ebp, 1
jne 0x4224d9
lea eax, [esp + 0x18]
push eax
push esi
push ebx
lea ecx, [esp + 0x35c]
mov dword [esp + 0x35c], edi
call fcn.0042003b
mov edi, eax
test edi, edi
je 0x42256f
mov esi, dword [esp + 0x18]
cmp esi, 0xffffffff
jbe 0x4224db
mov ecx, edi
call fcn.00430e28
xor al, al
jmp 0x422500
Function at 0x426f05
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x670
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x80]
mov esi, edx
call fcn.004318a9
mov eax, dword [esp + 0x26a]
mov edi, dword [esp + 0x684]
xor eax, 0xff119933
mov edx, edi
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00430e63
mov ebp, eax
test ebp, ebp
je 0x4270bc
push edi
push ebp
lea ecx, [esp + 0x88]
call fcn.00431bdf
lea ecx, [esp + 0x232]
call fcn.00418988
xor ebx, ebx
test eax, eax
js 0x426fb5
push 0x14
lea ecx, [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x23e]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x426fb5
cmp word [esp + eax*2 + 0x1a], bx
je 0x426f96
cmp eax, 0x14
jge 0x426fb5
xor ecx, ecx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
push eax
mov edx, str.C:UsersAdministratorAppDataLocalLow
lea ecx, [esp + 0x274]
call fcn.00419668
test eax, eax
setne al
test al, al
jne 0x426fbf
xor eax, eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x44]
push 0x68
pop ecx
call fcn.0041c8a9
xor eax, eax
inc eax
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], eax
push dword [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x64]
push 0x14
push eax
call fcn.00434140
add esp, 0x14
cmp eax, 0xffffffff
je 0x4270af
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x274]
lea ecx, [esp + 0x47c]
call fcn.00419668
test eax, eax
je 0x4270af
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0000000
lea eax, [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42706b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x4270af
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x3e8
jb 0x426fe4
jmp 0x4270af
push ebx
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427089
mov byte [esp + 0x13], 1
cmp dword [esp + 0x14], edi
je 0x42708d
mov byte [esp + 0x13], bl
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
test al, al
jne 0x4270af
lea ecx, [esp + 0x478]
call fcn.0040c62c
mov ecx, ebp
call fcn.00430e28
mov al, byte [esp + 0x13]
jmp 0x4270c0
xor ebx, ebx
mov al, bl
mov edx, 0x1ee
lea ecx, [esp + 0x80]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x4270cc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret 4
Function at 0x4270df
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x8cc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x88]
mov dword [esp + 0x1c], edx
call fcn.004318a9
lea ecx, [esp + 0x23a]
call fcn.00418988
xor ebx, ebx
test eax, eax
js 0x427159
push 0x14
lea ecx, [esp + 0x3c]
push ecx
push eax
lea eax, [esp + 0x246]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x427159
cmp word [esp + eax*2 + 0x36], bx
je 0x42713a
cmp eax, 0x14
jge 0x427159
xor ecx, ecx
mov word [esp + eax*2 + 0x38], cx
lea eax, [esp + 0x38]
push eax
mov edx, str.C:UsersAdministratorAppDataLocalLow
lea ecx, [esp + 0x27c]
call fcn.00419668
test eax, eax
setne al
test al, al
jne 0x427163
xor eax, eax
mov word [esp + 0x278], ax
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [esp + 0x272]
push 0x69
lea edx, [esp + 0x2c]
pop ecx
call fcn.0041c8a9
xor esi, 0xff119933
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x68]
push 0x14
push eax
call fcn.00434140
add esp, 0x10
cmp eax, 0xffffffff
je 0x427335
lea eax, [esp + 0x60]
push eax
lea edx, [esp + 0x27c]
lea ecx, [esp + 0x484]
call fcn.00419668
test eax, eax
je 0x427335
lea eax, [esp + 0x688]
push eax
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov edi, ebx
cmp ebp, 0xffffffff
je 0x427337
or dword [esp + 0x18], 0xffffffff
lea eax, [esp + 0x6b4]
push eax
lea edx, [esp + 0x27c]
lea ecx, [esp + 0x484]
call fcn.00419668
test eax, eax
je 0x4272f1
push 0x80
push 3
push 3
push 0x80000000
lea eax, [esp + 0x490]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040c239
test al, al
je 0x4272f1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b], bl
call fcn.0040c29b
test al, al
je 0x42731c
mov esi, dword [esp + 0x20]
mov eax, esi
or eax, dword [esp + 0x24]
je 0x42731c
cmp dword [esp + 0x24], ebx
ja 0x42731c
jb 0x42727c
cmp esi, 0xa00000
ja 0x42731c
lea ecx, [esi + 2]
test ecx, ecx
je 0x4272cb
call fcn.00430dfe
mov ebx, eax
test ebx, ebx
je 0x4272c9
test esi, esi
jns 0x42729f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4272aa
push esi
push ebx
lea ecx, [esp + 0x20]
call fcn.0040c31b
cmp eax, esi
jne 0x427313
push esi
push ebx
lea ecx, [esp + 0x90]
call fcn.00431bdf
mov eax, dword [esp + 0x1c]
mov edi, ebx
mov dword [eax], esi
mov byte [esp + 0x17], 1
xor ebx, ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esp + 0x18], 0xffffffff
cmp byte [esp + 0x17], 0
je 0x4272ed
lea ecx, [esp + 0x480]
call fcn.0040c62c
test edi, edi
jne 0x427323
lea ecx, [esp + 0x18]
call fcn.0040c226
lea eax, [esp + 0x688]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4271eb
jmp 0x42732c
mov ecx, ebx
call fcn.00430e28
jmp 0x4272c9
mov byte [esp + 0x17], 1
jmp 0x4272cb
lea ecx, [esp + 0x18]
call fcn.0040c226
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x427337
mov edi, ebx
mov edx, 0x1ee
lea ecx, [esp + 0x88]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x427343
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8cc
ret
Function at 0x4277d8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
xor edx, edx
mov dword [0x4411b0], ecx
inc edx
mov ecx, 0x4411b0
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
add ecx, 4
imul eax, eax, 0x6c078965
add eax, edx
mov dword [ecx], eax
inc edx
cmp ecx, 0x441b6c
jl 0x4277e6
mov dword [0x441004], edx
ret

Function at 0x42780a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [0x441004]
cmp esi, 0x270
jl 0x4278cf
xor esi, esi
push ebx
mov edx, esi
mov ebx, 0x7fffffff
mov ecx, dword [edx*4 + 0x4411b4]
xor ecx, dword [edx*4 + 0x4411b0]
and ecx, ebx
xor ecx, dword [edx*4 + 0x4411b0]
mov eax, ecx
and eax, 1
shr ecx, 1
xor ecx, dword [eax*4 + 0x4403c8]
xor ecx, dword [edx*4 + 0x4417e4]
inc edx
mov dword [edx*4 + 0x4411ac], ecx
cmp edx, 0xe3
jl 0x427827
cmp edx, 0x26f
jge 0x4278a0
push edi
lea edi, [edx*4 + 0x4411b0]
mov ecx, dword [edi]
xor ecx, dword [edi + 4]
and ecx, ebx
xor ecx, dword [edi]
mov eax, ecx
and eax, 1
shr ecx, 1
mov eax, dword [eax*4 + 0x4403c8]
xor eax, dword [edi - 0x38c]
xor eax, ecx
mov dword [edi], eax
add edi, 4
cmp edi, 0x441b6c
jl 0x427873
pop edi
mov ecx, dword [0x4411b0]
xor ecx, dword [0x441b6c]
and ecx, ebx
xor ecx, dword [0x441b6c]
pop ebx
mov eax, ecx
and eax, 1
shr ecx, 1
xor ecx, dword [eax*4 + 0x4403c8]
xor ecx, dword [0x4417e0]
mov dword [0x441b6c], ecx
mov ecx, dword [esi*4 + 0x4411b0]
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
inc esi
mov eax, ecx
shr eax, 0x12
mov dword [0x441004], esi
xor eax, ecx
pop esi
ret

Function at 0x4284df
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x18
mov al, byte [esp + 0x1c]
push ebx
push ebp
push esi
mov si, word [esp + 0x30]
push edi
mov edi, ecx
mov word [esp + 0x12], si
mov byte [esp + 0x14], al
test edx, edx
jne 0x428508
push 5
pop ebp
mov word [esp + 0x10], bp
jmp 0x428521
push 0x15
pop ebp
push 0x10
push edx
lea eax, [esp + 0x1d]
push eax
mov word [esp + 0x1c], bp
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
xor ebx, ebx
push ebx
push ebp
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebp
sete al
test al, al
je 0x428555
test si, si
je 0x428552
mov edx, dword [esp + 0x30]
movzx eax, si
push eax
mov ecx, edi
call fcn.0040e26f
test al, al
je 0x428555
xor ebx, ebx
inc ebx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x18
ret 0xc
Function at 0x4285bd
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push esi
push 4
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x42860e
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x428601
cmp dword [ebp - 0x10], ebx
jne 0x4285f6
inc esi
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4285f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x428796
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push ebp
push esi
mov esi, dword [esp + 0x68]
xor eax, eax
xor ebp, ebp
push edi
mov edi, edx
mov word [esp + 0xc], ax
test esi, esi
jne 0x4287c8
push 0x44
lea eax, [esp + 0x24]
push ebp
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
mov dword [esp + 0x20], 0x44
lea eax, [esp + 0x10]
push eax
test esi, esi
lea eax, [esp + 0x24]
cmovne eax, esi
push eax
push dword [esp + 0x70]
lea eax, [esp + 0x18]
push ebp
push 0x4000000
push ebp
push ebp
push ebp
test edi, edi
cmovne eax, edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42882d
cmp dword [esp + 0x70], ebp
je 0x428815
push 0x10
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x78]
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
jmp 0x428827
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
mov eax, dword [esp + 0x18]
jmp 0x42882f
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x58
ret 0xc
Function at 0x42888d
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push ebx
push edi
push 0x408e04
mov dword [esp + 0xc], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x42898a
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408e10
push ebx
call esi
mov dword [esp + 0x14], eax
push 0x408e28
push ebx
call esi
mov ebp, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x428981
test ebp, ebp
je 0x428981
mov esi, dword [esp + 0x10]
push edi
push esi
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], edi
call eax
neg eax
sbb eax, eax
and dword [esp + 0x14], eax
xor eax, eax
push 0x44
mov word [esp + 0x14], ax
lea eax, [esp + 0x2c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
push edi
push eax
neg eax
sbb eax, eax
and eax, 0x400
or eax, 0x4000000
cmp dword [esp + 0x84], edi
push eax
push edi
push edi
push edi
lea eax, [esp + 0x30]
cmovne eax, dword [esp + 0x94]
push eax
push edi
push esi
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x5c], edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x428974
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x14], 0
je 0x428981
push dword [esp + 0x14]
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0x5c
ret 0x14

Function at 0x428994
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push edx
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4289bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x4289bd
xor eax, eax
leave
ret 4