joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459100
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x459130
push esi
call fcn.0045cf60
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x459129
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4591b3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x45919f
mov eax, dword [esi + 8]
test eax, eax
je 0x459154
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45919b
cmp eax, 2
je 0x45919f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x459147
cmp eax, 3
je 0x45917a
cmp eax, 1
jne 0x459147
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x459147
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x459147
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004591e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4591d3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004591e0
add esp, 4
pop esi
ret
Function at 0x45bff0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.0045de50
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.0045de00
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x45c034
push edi
call fcn.0045de60
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.0045c130
mov dword [esi + 4], fcn.0045c280
mov dword [esi + 8], fcn.0045c330
mov dword [esi + 0xc], fcn.0045c3e0
mov dword [esi + 0x10], 0x45c490
mov dword [esi + 0x14], 0x45c500
mov dword [esi + 0x18], 0x45c570
mov dword [esi + 0x1c], 0x45c6f0
mov dword [esi + 0x20], 0x45c8e0
mov dword [esi + 0x24], fcn.0045cad0
mov dword [esi + 0x28], 0x45cbd0
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x45c096
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
cmp eax, ebx
je 0x45c126
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x45c126
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x45c0ef
cmp al, 0x4d
jne 0x45c113
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x47c5ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47c610
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x48def4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47c603
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x47c612
xor eax, eax
pop esi
leave
ret 4
Function at 0x1028a2c7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x102a70cc], 0x1938
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x1028a38c
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.1028a713
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
mov dword [0x102a70cc], 0x2cd
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x28], ecx
mov dword [0x102a70d0], 0x2226
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x1c], ecx
add ecx, 0x1f36
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x1028a383
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1028c163]
mov dh, byte [eax + 0x1028c134]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
je 0x1028a3c0
jmp 0x1028a38c
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [0x102a70d0], 0x14f9
mov dword [ebp - 0x44], eax
call fcn.1028a148
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.10289cbb
mov ecx, dword [0x102a70cc]
add ecx, 0xfffffb5f
mov dword [0x102a70d0], ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
je 0x1028a3b8
jmp 0x1028a2ee
Function at 0x1028a410
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102a70cc], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1028a481
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1028a4f8
jmp 0x1028a51a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
jne 0x1028a51a
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x1028a4ae
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
jl 0x1028a481
mov eax, dword [ebp - 0x20]
mov dword [0x102a70d0], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1028a51a
mov dword [0x102a70d0], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1028a51a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1028a446
jmp 0x1028a51a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1028a51a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1028a45e
xor eax, eax
mov dword [0x102a70d0], 0x1864
mov dword [ebp - 0x18], eax
jmp 0x1028a479
Function at 0x1028a52e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov ecx, dword [0x102a70d0]
add ecx, 0x77c
mov dword [0x102a70d0], ecx
mov dword [ebp - 0x10], eax
call fcn.1028ae96
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x102a70d0], 0x10e8
mov edi, dword [0x102a70cc]
add edi, 0xfffffe9f
mov dword [0x102a70d0], edi
mov esi, dword [eax + esi + 0x78]
mov dword [0x102a70cc], 0x171d
mov ebx, edx
add ebx, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ecx
je 0x1028a6a4
jmp 0x1028a5dc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
xor esi, esi
add ecx, 0x77c
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + edx*4]
mov dword [0x102a70d0], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], esi
jmp 0x1028a5f6
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
jmp 0x1028a5ae
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x1028a648
mov al, byte [ebp - 0x4d]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x4c]
add edx, 1
mov ah, byte [ebp - 0x4e]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x48], edx
jne 0x1028a5f6
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x1028a681
jmp 0x1028a651
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], eax
jb 0x1028a5ae
jmp 0x1028a6a4
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x102a70cc], 0xfffff748
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1028ac80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102a70d8], 0
mov byte [0x102a70dc], 0
mov dword [0x102a70d4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1028ada4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
add ecx, 0xfffff6b9
mov dword [0x102a70e0], 0
mov edi, dword [0x102a70d8]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x102a70e0], esi
mov dword [0x102a70d0], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x102a70d8], edx
mov dword [0x102a70cc], ecx
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebx + ecx]
mov byte [0x102a70dc], cl
mov dword [0x102a70d0], 0xe30
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x28]
mov byte [ebx + edx], cl
mov ecx, dword [0x102a70d0]
add ecx, 0xfffffd81
mov dword [0x102a70cc], ecx
mov cl, byte [0x102a70dc]
mov edx, dword [0x102a70d8]
mov byte [ebx + edx], cl
mov edx, dword [0x102a70d4]
add edx, 1
mov dword [0x102a70d4], edx
cmp edx, 0x100
mov dword [ebp - 0x30], edx
jl 0x1028add6
jmp 0x1028ade9
mov eax, 0x1fdd
xor ecx, ecx
mov dword [0x102a70d4], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1028acc0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102a70cc], 0x1fdd
mov eax, dword [0x102a70d4]
add eax, 1
mov dword [0x102a70d4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1028ada4
jmp 0x1028ad88
mov eax, dword [0x102a70cc]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1028acc0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1028b014
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 [0x102a70d4], 0
mov dword [0x102a70d8], 0
mov dword [0x102a70e4], 0
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 0x1028b171
jmp 0x1028b086
mov eax, dword [0x102a70d4]
mov ecx, dword [0x102a70d8]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, ecx
add edi, 1
add eax, 1
mov dword [0x102a70cc], 0x1e8a
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102a70d4], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x102a70d8], edx
mov dword [0x102a70cc], 0x40c5
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x102a70dc], cl
mov dword [0x102a70d0], 0x471
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x102a70dc]
mov edx, dword [0x102a70d8]
mov byte [ebx + edx], cl
mov edx, dword [0x102a70d4]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102a70d8]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x102a70e4], ecx
mov dword [0x102a70cc], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov dword [0x102a70d0], 0xbad
mov dword [0x102a70cc], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x2c], edi
jne 0x1028b06f
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1028b179
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x102a70cc], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1028a817
lea ecx, [0x1028ab34]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x64], edx
mov dword [esp + 0x7c], 0x15a000
mov edx, dword [0x102a70b8]
mov dword [esp + 0x70], edx
mov edx, dword [0x102a70bc]
mov dword [esp + 0x4c], edx
mov edx, dword [0x102a70c0]
mov dword [esp + 0x60], edx
mov edx, dword [0x102a70c4]
mov dword [esp + 0x30], edx
mov edx, dword [0x102a70c8]
mov dword [esp + 0x68], edx
mov dword [0x102a70cc], 0x212d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1028b21b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1028b23e
jmp 0x1028b22a
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x1028b205
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1028b21b
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [0x102a70d0], 0x1fcc
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x34], edx
call fcn.1028a410
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x1028b2a5
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1028a2c7
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x102a70cc], 0x1ed4
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x409e20
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x200
lea eax, [esp]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x409ecb
push ebx
push esi
lea ecx, [esp + 8]
push edi
push ecx
lea edx, [esp + 0x110]
push 0x40e244
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x40e23c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x210]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test eax, eax
pop ebx
je 0x409eb5
lea eax, [esp + 0x100]
lea ecx, [esp]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret
lea edx, [esp]
lea eax, [esp + 0x100]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4022e6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402325
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402325
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402325
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402325
cmp dword [ecx + 0x74], 0xe
jbe 0x402325
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401370
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
fldz
push esi
fstp dword [esp + 8]
xor eax, eax
xor esi, esi
mov dword [esp + 4], esi
mov word [esp + 0xc], ax
dec dword [0x423930]
fld dword [esp + 8]
fld1
push edi
fsub st(1), st(0)
mov edi, 1
fxch st(1)
fstp dword [esp + 0xc]
add dword [esp + 0x10], edi
mov ecx, dword [0x423930]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fld dword [esp + 0xc]
mov dx, word [esp + 0x10]
mov ecx, dword [esp + 8]
movsx eax, dx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
faddp st(1)
fisub dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
jp 0x401435
add dword [esp + 8], edi
mov edx, dword [esp + 8]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fadd qword [0x423890]
mov eax, dword [0x425f9c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
jne 0x401435
fadd qword [0x423928]
fstp qword [0x423928]
fld qword [0x423928]
mov ecx, dword [esp + 8]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmulp st(1)
call fcn.0040b5b0
mov dword [esp + 8], eax
jmp 0x401437
fstp st(0)
fld dword [esp + 0xc]
mov dword [esp + 0x28], 0x44
fsubr qword [0x41f3c0]
mov dword [esp + 0x2c], esi
fsub qword [0x41f3b8]
fstp qword [0x425fd0]
fld dword [0x425470]
mov dx, word [0x42543c]
fsub qword [0x41f3b0]
movsx eax, dx
mov dword [esp + 0x14], eax
fadd qword [0x41f3a8]
fild dword [esp + 0x14]
faddp st(1)
call fcn.0040b5b0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x74]
mov word [0x42543c], ax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push 8
push esi
xor ecx, ecx
push esi
mov word [esp + 0x76], cx
mov ecx, dword [esp + 0x90]
push esi
push ecx
push edx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], esi
mov word [esp + 0x80], di
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
add esp, 0x64
ret
Function at 0x4014e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
fldz
push ebx
push ebp
fstp qword [esp + 0x10]
fldz
push esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], 0
fstp dword [esp + 0x14]
push edi
call fcn.0040b6aa
mov ebx, dword [esp + 0x28]
push edi
mov esi, eax
push ebx
push esi
call fcn.0040b780
fld dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
add esp, 0x10
add edi, esi
mov ecx, esi
fadd qword [0x4255f0]
fsubp st(1)
fstp dword [esp + 0x14]
dec dword [esp + 0x10]
fld dword [0x4231b4]
mov edx, dword [esp + 0x10]
fsub qword [0x41f3d8]
inc dword [esp + 0x10]
sub edx, 0x62c27c68
mov dword [esp + 0x28], edx
fsub qword [0x41f3d0]
fild dword [esp + 0x28]
fcompp
fnstsw ax
fld dword [0x4231b4]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [0x4231b4]
test ah, 1
jne 0x40159d
fld qword [0x4255d0]
fsubr qword [0x41f3c8]
fstp dword [0x423a3c]
fsubr qword [0x4255d0]
fstp qword [0x4255d0]
jmp 0x40159f
fstp st(0)
mov edx, dword [esp + 0x10]
mov eax, dword [0x427924]
mov ebp, 0x48744f40
sub ebp, edx
add ebp, dword [esp + 0x10]
sub ebx, 0x423004
mov dword [esp + 0x28], ebp
fild dword [esp + 0x28]
add eax, ebx
fmul qword [esp + 0x18]
fstp qword [esp + 0x18]
cmp esi, edi
je 0x4015da
nop
mov dl, byte [eax]
xor byte [ecx], dl
inc ecx
inc eax
cmp ecx, edi
jne 0x4015d0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x402ea0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
xor eax, eax
mov word [esp + 8], ax
xor ecx, ecx
push 0x2e
mov word [esp + 8], cx
push 0x424640
mov dword [esp + 0xc], eax
call fcn.004014e0
add esp, 8
lea edx, [esp + 0xc]
push edx
mov ebx, eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402f75
dec dword [esp + 8]
movzx eax, word [esp + 8]
movzx ecx, word [esp + 8]
mov edx, dword [esp + 4]
push esi
push edi
sub eax, ecx
sub eax, edx
push 0x34
mov word [0x4247a4], ax
inc dword [esp + 0x10]
push 0x4238a8
call fcn.004014e0
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f20
sub eax, edi
push eax
mov eax, dword [esp + 0x18]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
fldz
push 0x34
fst dword [esp + 0x14]
push 0
fstp dword [esp + 0x18]
push esi
call fcn.0040baf0
push esi
call fcn.0040bb6a
mov cx, word [0x425474]
movzx edx, word [0x42473c]
movsx eax, cx
add esp, 0x10
imul edx, eax
pop edi
mov word [0x42473c], dx
pop esi
fldz
push 0x2e
push 0
fst dword [esp + 0x10]
fstp dword [esp + 0x10]
push ebx
call fcn.0040baf0
push ebx
call fcn.0040bb6a
mov ax, word [0x425474]
movzx ecx, word [0x42473c]
mov edx, dword [esp + 0x1c]
cwde
imul ecx, eax
add esp, 0x10
push edx
mov word [0x42473c], cx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0xc
ret

Function at 0x403a00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
fldz
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
push 3
mov dword [esp + 0x14], 0
fstp qword [esp + 0x14]
push 0x425fe8
call fcn.004014e0
mov ebx, dword [esp + 0x24]
mov edi, eax
push edi
push ebx
call fcn.0040c311
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x403ad8
or esi, 0xffffffff
add dword [esp + 0xc], esi
mov eax, dword [0x42318c]
mov ecx, dword [esp + 0xc]
add eax, 0xbd910be2
add ecx, eax
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
push 0x3e8
fadd qword [0x426018]
fstp qword [0x426018]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc word [0x423a6c]
mov dx, word [0x423a6c]
mov cx, word [0x4231d4]
movsx eax, dx
movsx edx, cx
add edx, eax
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fadd qword [0x424788]
mov ax, word [0x425fac]
movsx ecx, ax
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fmulp st(1)
call fcn.0040b5b0
push edi
mov word [0x425fac], ax
add word [0x4231d4], si
push ebx
call fcn.0040c311
mov esi, eax
add esp, 8
test esi, esi
je 0x403af0
push esi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call fcn.0040c539
push esi
call fcn.0040beb7
add esp, 0x14
fldz
xor eax, eax
mov word [edi], ax
fst dword [esp + 0x10]
fstp dword [esp + 0x10]
push edi
mov byte [edi + 2], al
call fcn.0040bb6a
mov ax, word [0x425474]
movzx ecx, word [0x42473c]
add esp, 4
cwde
imul ecx, eax
pop edi
pop esi
mov word [0x42473c], cx
pop ebx
add esp, 0xc
ret