joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa6d8bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00a08a80
mov eax, dword [0xae4064]
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.00a74052
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0xa6d8fe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0xa6da5a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00a09120
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 + 0xaea578]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00a71be9
mov ecx, dword [esi*4 + 0xaea578]
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 0xa6da53
cmp eax, dword [edi + ecx + 0x24]
jne 0xa6da53
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 0xa6da53
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a71be9
add esp, 0x14
test edx, edx
jl 0xa6da53
jg 0xa6d9c9
test eax, eax
jb 0xa6da53
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0xa6da53
jl 0xa6d9e3
cmp dword [ebp - 0x1008], eax
ja 0xa6da53
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0xa6da01
test ebx, ebx
je 0xa6da3a
cmp ecx, edi
jae 0xa6da3a
mov al, byte [ecx]
cmp al, 0xd
jne 0xa6da1b
lea eax, [edi - 1]
cmp ecx, eax
jae 0xa6da27
cmp byte [ecx + 1], 0xa
jne 0xa6da27
inc ecx
jmp 0xa6da27
movzx eax, al
movsx eax, byte [eax + 0xae4d88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0xa6da01
cmp edx, ebx
jne 0xa6da01
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0xa6da58
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00a0828c
leave
ret
Function at 0xa7113c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xae4064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0xacc768
push esi
call fcn.00a6dc5d
pop ecx
pop ecx
test eax, eax
jne 0xa7116a
xor al, al
jmp 0xa711e7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00a70e73
mov edx, eax
add esp, 0x10
test edx, edx
jne 0xa711a4
push dword [ebp - 0x210]
call fcn.00a5f897
xor al, al
jmp 0xa711e5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0xa711aa
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0xa711ca
push edx
call fcn.00a71072
pop ecx
test al, al
je 0xa71195
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0xa711d8
mov bl, 1
push dword [ebp - 0x210]
call fcn.00a5f897
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00a0828c
leave
ret

Function at 0xa727ee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0xacd25c
push str.FlsAlloc
push 0x1e
call fcn.00a7261b
mov esi, eax
add esp, 0x10
test esi, esi
je 0xa72822
push dword [ebp + 8]
mov ecx, esi
call dword [0xa9f4d0]
call esi
jmp 0xa72828
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0xa7286c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0xacd280
push str.FlsGetValue
push 0x20
call fcn.00a7261b
mov esi, eax
add esp, 0x10
test esi, esi
je 0xa728a3
push dword [ebp + 8]
mov ecx, esi
call dword [0xa9f4d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0xa75502
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0xa7559f
push ebx
push esi
call fcn.00a754cb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00a75414
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0xa7554c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xa7559e
push edi
push eax
call fcn.00a67c46
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0xa7556c
call fcn.00a67be5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xa7559d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00a75414
add esp, 0x20
test eax, eax
jne 0xa7558b
push edi
call fcn.00a67be5
jmp 0xa75593
push ebx
call fcn.00a67be5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0xa755a2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0xa755b3
pop esi
ret
push ebx
push edi
push esi
call fcn.00a754cb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00a67c46
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0xa755db
push ebx
push esi
push edi
call fcn.00a5af20
add esp, 0xc
push 0
call fcn.00a67be5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0xa7599f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a755f0
Function at 0xa7b590
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 + 0xaea578]
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 0xa7b5d0
cmp byte [ebx], 0xa
jne 0xa7b5d0
or byte [eax + edi + 0x28], 4
jmp 0xa7b5d5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0xa7b6d3
mov al, byte [edx]
cmp al, 0x1a
je 0xa7b6b5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0xa7b604
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0xa7b629
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0xa7b633
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 0xa7b5e6
jmp 0xa7b6d3
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 0xa7b6b0
cmp dword [ebp - 0xc], 0
je 0xa7b6b0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0xaea578]
test byte [eax + edi + 0x28], 0x48
je 0xa7b68a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xa7b675
mov byte [esi], dl
jmp 0xa7b686
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xaea578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xa7b6d3
cmp byte [ebp - 1], 0xa
jne 0xa7b699
cmp esi, ebx
jne 0xa7b699
mov byte [esi], 0xa
jmp 0xa7b6d2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00a71c07
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xa7b6d3
mov byte [esi], 0xd
jmp 0xa7b6d2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0xaea578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa7b6cf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa7b6d3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa7b6dc
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 + 0xaea578]
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 0xa7b71f
cmp word [esi], dx
jne 0xa7b71f
or byte [edi + eax + 0x28], 4
jmp 0xa7b724
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 0xa7b85d
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 0xa7b83d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0xa7b766
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xa7b79c
cmp eax, edx
jae 0xa7b7a8
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 0xa7b73e
jmp 0xa7b85d
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 0xa7b839
cmp dword [ebp - 0x14], 0
je 0xa7b839
mov eax, dword [ebx*4 + 0xaea578]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0xa7b811
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0xa7b857
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0xaea578]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0xaea578]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0xaea578]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0xa7b85a
pop ebx
cmp word [ebp - 4], bx
jne 0xa7b822
cmp esi, dword [ebp + 0xc]
jne 0xa7b822
mov word [esi], bx
jmp 0xa7b85a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00a71c07
add esp, 0x10
cmp word [ebp - 4], bx
je 0xa7b85d
push 0xd
jmp 0xa7b856
mov ecx, dword [ebx*4 + 0xaea578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa7b854
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa7b85d
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 0xa7c07e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a7beef
Function at 0xa7d0fa
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a7d076
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xa7d272
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xa7d272
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xa7d221
jg 0xa7d153
test eax, eax
je 0xa7d217
push 1
push 0x1000
call fcn.00a66ebe
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xa7d179
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0xa7d20e
push 0x8000
push ebx
call fcn.00a6557d
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0xa7d1a5
jg 0xa7d1a0
cmp ecx, 0x1000
jb 0xa7d1a5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00a7c976
add esp, 0x10
cmp eax, 0xffffffff
je 0xa7d1ea
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0xa7d1a0
jl 0xa7d1d1
test ecx, ecx
jne 0xa7d192
push dword [ebp - 0xc]
push ebx
call fcn.00a6557d
push esi
call fcn.00a67be5
add esp, 0xc
xor edi, edi
jmp 0xa7d283
cmp byte [edi + 0x24], 0
je 0xa7d201
cmp dword [edi + 0x20], 5
jne 0xa7d201
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xa7d20c
mov edi, dword [edi + 0x18]
jmp 0xa7d20e
xor edi, edi
push esi
call fcn.00a67be5
pop ecx
jmp 0xa7d283
test ecx, ecx
jg 0xa7d1e3
jl 0xa7d221
test eax, eax
jae 0xa7d1e3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a71c07
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xa7d244
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa7d1e3
jmp 0xa7d27b
push ebx
call fcn.00a76429
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xa7d1e3
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0xa7d283
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa7d280
mov edi, dword [edi + 0x18]
jmp 0xa7d283
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00a71c07
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0xa8307f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x29a010c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x29a010d6
pop dword [ebp - 0x38]
mov eax, 0x5c949d8d
add eax, 0xcd0b7349
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x88305add
add dword [ebp - 0x48], 0xc621ea6e
mov dword [ebp - 0x44], 0x8eb0d21f
add dword [ebp - 0x44], 0xa3827a26
mov dword [ebp - 0x40], 0x1e2c8036
sub dword [ebp - 0x40], 0xd1e03c08
mov dword [ebp - 0x3c], 0x42411674
sub dword [ebp - 0x3c], 0x42411674
lea eax, [ebp - 0x48]
push eax
mov eax, 0xa41e5137
sub eax, 0x7a7d10ab
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xb44d4c49
add dword [ebp - 0x48], 0xc0251d0d
mov dword [ebp - 0x44], 0x728b7cb3
sub dword [ebp - 0x44], 0x311f1b3e
mov dword [ebp - 0x40], 0x1d70359
add dword [ebp - 0x40], 0x61986913
mov dword [ebp - 0x3c], 0x8bd9332a
sub dword [ebp - 0x3c], 0x8bd9332a
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x68c1ae26
add eax, 0xc0df921e
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x39758
push 0
call eax
mov ecx, 0x4510
mov edi, eax
mov esi, 0x29a23000
add esi, dword [ebp - 0x38]
mov ebx, 0x5f24e04f
sub ebx, 0xbbda517
mov dword [ebp - 0x30], 0x4673f6ad
mov edx, dword [esi]
sub dword [ebp - 0x28], edi
add edx, ebx
add dword [ebp - 0x2c], 0x346d154f
mov dword [edi], edx
xor dword [ebp - 0x30], esi
add edi, 4
add esi, 4
loop 0x29a011ec
add eax, 0x10713
mov ebx, eax
add eax, 0x552e63f0
add eax, 0xaad19c15
mov ecx, 0x230496c4
add ecx, 0x69b693c
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x411702
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x411711
pop dword [ebp - 0x24]
mov eax, 0x411711
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x4efa5
push 0
mov eax, 0xaef837dc
sub eax, 0xaeb1d71c
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x9d7f09be
sub ecx, 0x9d7ea797
xor ebx, ebx
add ebx, eax
mov esi, 0x4ae800
add esi, dword [ebp - 0x24]
mov edi, 0x408aa848
add edi, 0x27669b4c
mov dword [ebp - 0x1c], 0xc4eeacb4
mov edx, dword [esi]
sub dword [ebp - 8], ecx
sub edx, edi
mov dword [ebx], edx
xor dword [ebp - 4], edi
add ebx, 0x42303803
add ebx, 0xbdcfc801
add esi, 4
loop 0x411767
add eax, 0x17b6f
xor ebx, ebx
add ebx, eax
add eax, 0xa722263f
add eax, 0x58ddd9c6
mov ecx, 0xf84f2f3f
sub ecx, 0xf80f2f3f
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x404837
Capabilities:
Get disk information

Disassembly:
mov eax, 0x429b10
call fcn.00428650
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401f1f
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x40490d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x404873
mov eax, ebx
add eax, eax
push eax
call fcn.00405733
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x404906
cmp ebx, dword [ebp - 0x18]
ja 0x404906
lea ecx, [ebp - 0x2c]
call fcn.00402679
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x4048ee
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4048e3
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00405733
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.00405733
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401d25
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x4048b1
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00402153
push esi
call fcn.00402153
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x40490f
push esi
call fcn.00402153
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405733
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x405742
pop dword [ebp - 0x48]
mov eax, 0xb737d540
add eax, 0x49088202
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x36e6e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x3e80
mov edx, eax
mov ebx, 0x7ff7cd24
sub ebx, 0x7fb41524
add ebx, dword [ebp - 0x48]
mov esi, 0xae13ead3
add esi, 0xa0369e74
sub dword [ebp - 8], 0x9528b2
mov edi, dword [ebx]
sub dword [ebp - 0x18], ecx
sub edi, esi
add dword [ebp - 0x44], edi
mov dword [edx], edi
xor dword [ebp - 0x24], esi
add edx, 4
add ebx, 4
loop 0x405796
add eax, 0xecd3
xor ebx, ebx
add ebx, eax
add eax, 0x21afd884
add eax, 0xde502781
mov ecx, 0xda0896a5
sub ecx, 0xd9c896a5
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x10001ebc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002f130]
jne 0x10001ec6
repz ret
jmp fcn.1000216d

Function at 0x10002729
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]
xor esi, esi
mov dword [0x1002f110], 0
mov byte [0x1002f114], 0
mov dword [0x1002f104], 0x7e8
mov dword [0x1002f10c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1002f108], 0x126
mov eax, dword [0x1002f10c]
add eax, 1
mov dword [0x1002f10c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000276e
xor eax, eax
mov dword [0x1002f10c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1002f118], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x1002f110]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1002f118], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x1002f110], edx
mov dword [0x1002f104], 0x1c92
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x1002f114], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x1002f114]
mov esi, dword [0x1002f110]
mov byte [ebx + esi], cl
mov esi, dword [0x1002f10c]
add esi, 1
mov dword [0x1002f10c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x100027ad
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002a91
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 [0x1002f104], 0xa6f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10002b75
mov eax, dword [0x1002f104]
mov ecx, dword [ebp - 0x34]
add eax, 0xffffff6a
mov dword [0x1002f104], eax
mov eax, esp
mov dword [eax + 0xc], 0x40
mov dword [eax + 8], 0x1000
mov dword [eax + 4], 0x6000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.1000313b
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x1002f104], 0xefb
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x54], ecx
mov ecx, dword [0x1002f104]
add ecx, 0x1cd0
mov dword [0x1002f104], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x34], ecx
add ecx, 0x1be1
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x10002b64
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10004546]
mov dh, byte [eax + 0x10004517]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x10002b75
lea eax, [ebp - 0x24]
mov dword [0x1002f108], 0x24b7
mov dword [ebp - 0x44], eax
call fcn.10002675
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.10002500
mov dword [0x1002f108], 0x1689
cmp eax, 0
mov dword [ebp - 0x34], eax
je 0x10002b6d
jmp 0x10002ab8