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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5237a4]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
push 0x60
lea ecx, [esp + 0x14]
call fcn.00404090
mov ebp, eax
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, 0x17
mov esi, str.eqetewiwwhzkxmcswktokjvknlrkxfytgallrtzqfioyzadtsbbgnkicrxwlzccwbixuuieeonimqdnxswdjjkmrjqzldq
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, 0x5e79
mov byte [ebp + 0x5e], 0
push 0
call edi
push 0x2244
call fcn.004fcdbc
add esp, 4
push 0
push 0
push 0
push 0x403550
push 0
push 0
call ebx
sub esi, 1
jne 0x405134
push 0x70
call fcn.004f8ad7
movups xmm0, xmmword [str.jsonchulzrihvnewxsprnpzexgbkuepdtbduvqhlibffyihosovgetkezctjahmnigpnbwssjmvtfwvhhbnoqbpqqpkabjnu]
mov edi, eax
push 0x70
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x5144b8]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x5144c8]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x5144d8]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [0x5144e8]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [0x5144f8]
movups xmmword [edi + 0x50], xmm0
mov byte [edi + 0x60], 0
call fcn.004f8ad7
movups xmm0, xmmword [str.jsonchulzrihvnewxsprnpzexgbkuepdtbduvqhlibffyihosovgetkezctjahmnigpnbwssjmvtfwvhhbnoqbpqqpkabjnu]
mov esi, eax
push 0x70
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x5144b8]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [0x5144c8]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x5144d8]
movups xmmword [esi + 0x30], xmm0
movups xmm0, xmmword [0x5144e8]
movups xmmword [esi + 0x40], xmm0
movups xmm0, xmmword [0x5144f8]
movups xmmword [esi + 0x50], xmm0
mov byte [esi + 0x60], 0
call fcn.004f8ad7
movups xmm0, xmmword [str.jsonchulzrihvnewxsprnpzexgbkuepdtbduvqhlibffyihosovgetkezctjahmnigpnbwssjmvtfwvhhbnoqbpqqpkabjnu]
push 0x70
push eax
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x5144b8]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x5144c8]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x5144d8]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [0x5144e8]
movups xmmword [eax + 0x40], xmm0
movups xmm0, xmmword [0x5144f8]
movups xmmword [eax + 0x50], xmm0
mov byte [eax + 0x60], 0
call fcn.004f8b07
push 0x70
push esi
call fcn.004f8b07
push 0x70
push edi
call fcn.004f8b07
push 0x60
push ebp
call fcn.004f8b07
mov edx, dword [esp + 0x74]
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
cmp edx, 0x10
jb 0x40529c
mov ecx, dword [esp + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405292
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4052b2
push edx
push ecx
call fcn.004f8b07
add esp, 8
mov ecx, dword [esp + 0x18]
mov eax, 0x88f9
xor ecx, esp
call fcn.004f8b1a
add esp, 0x1c
ret 0x20
call fcn.004fccff
int3
Function at 0x405400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513c30
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5237a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40547e
mov ebx, dword [ebp + 0x14]
mov eax, esi
xor edx, edx
div ebx
shr edx, 2
mov eax, dword [ebp + 8]
movsx eax, byte [edx + eax]
imul ecx, eax, 0xae0
mov eax, 0xf2b9d649
imul ecx
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
shl al, 6
add al, cl
mov ecx, dword [ebp + 0xc]
xor byte [esi + ecx], al
inc esi
cmp esi, edi
jb 0x405443
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513c50
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5237a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0x1cfc
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
mov dword [ebp - 0x40], 0x1b40
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 4
mov dword [ebp - 0x40], 0x30b
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 6
mov dword [ebp - 0x40], 0x28f
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 8
mov dword [ebp - 0x40], 0x1918
mov dword [ebp - 4], 0xffffffff
imul eax, dword [ebp + 0x10], 0x101c
cdq
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edx
push eax
call fcn.004f8b30
mov edi, eax
mov esi, edx
mov ebx, 0x19c
mov eax, dword [ebp + 0x28]
mul ebx
mov ecx, eax
mov eax, dword [ebp + 0x24]
mul ebx
add ecx, edx
sub edi, eax
sbb esi, ecx
add edi, dword [ebp + 0x2c]
adc esi, dword [ebp + 0x30]
push esi
push edi
mov ecx, 0x5247c8
call fcn.00403100
mov dword [ebp - 0x24], 0x2222e5f
mov dword [ebp - 0x20], 0xc607b277
mov dword [ebp - 0x1c], 0xed863a31
mov word [ebp - 0x18], 0xa124
mov byte [ebp - 0x16], 0x3d
xor eax, eax
mov cl, 0x15
sub cl, byte [ebp + eax - 0x24]
xor cl, 0xc8
rol cl, 1
add cl, al
not cl
xor cl, al
add cl, 0x47
xor cl, 0xef
add cl, al
xor cl, al
add cl, 0x7e
xor cl, al
sub cl, 0x59
rol cl, 3
mov byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0xf
jb 0x405750
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 5
mov eax, dword [str.kerne]
mov dword [ebp - 0x3c], eax
mov al, byte [0x514acc]
mov byte [ebp - 0x38], al
mov byte [ebp - 0x37], 0
push 7
push str.l32.dll
lea ecx, [ebp - 0x3c]
call fcn.00404140
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x524680], eax
lea ecx, [ebp - 0x44]
push ecx
push 0x40
push dword [ebp + 0xc]
push dword [ebp - 0x48]
call eax
push dword [ebp + 0x60]
push dword [ebp + 0x5c]
push 0
push dword [ebp + 0x54]
call fcn.004f8b70
mov esi, eax
mov edi, edx
xor esi, dword [ebp + 0x78]
xor edi, 0
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x405852
inc edx
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
cmp edx, 0x1000
jb 0x405848
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405872
jmp 0x405848
push edx
push ecx
call fcn.004f8b07
add esp, 8
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f8b1a
mov esp, ebp
pop ebp
ret
call fcn.004fccff
int3
Function at 0x50858f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00508405

Function at 0x8d4710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x74e015
lea edi, [esi - 0x34d015]
push edi
jmp 0x8d472a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8d4731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d4720
mov eax, 1
add ebx, ebx
jne 0x8d4743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8d4754
jne 0x8d4773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d4773
dec eax
add ebx, ebx
jne 0x8d4760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8d4738
add ebx, ebx
jne 0x8d476f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8d47c5
xor ecx, ecx
sub eax, 3
jb 0x8d478b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8d47fa
sar eax, 1
mov ebp, eax
jmp 0x8d4796
add ebx, ebx
jne 0x8d4796
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d4764
inc ecx
add ebx, ebx
jne 0x8d47a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d4764
add ebx, ebx
jne 0x8d47b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8d47a6
jne 0x8d47c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8d47a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8d47e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8d47d6
jmp 0x8d4726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8d47e4
add edi, ecx
jmp 0x8d4726
pop esi
mov edi, esi
mov ecx, 0x45caa0
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x8d481f
cmp byte [edi], 0x2f
jne 0x8d4804
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x8d4802
lea edi, [esi + 0x4d2000]
mov eax, dword [edi]
or eax, eax
je 0x8d4867
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d4200]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d4280]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8d4825
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4d4288]
or eax, eax
je 0x8d4861
mov dword [ebx], eax
add ebx, 4
jmp 0x8d4842
call dword [esi + 0x4d4284]
mov ebp, dword [esi + 0x4d428c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8d489b
sub esp, 0xffffff80
jmp 0x45a3b0
Function at 0x10001fa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor ebx, ebx
cmp eax, ebx
je 0x100025a7
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.10001dae
mov edx, 0xf7fb33b
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.10001dae
xlatb
mov edi, 0x8b662781
inc edi
push es
cmp ax, bx
jbe 0x10002008
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x10002002
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10001ff3
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.10001dae
das
mov edi, 0x458d1e9b
test al, 0x50
call fcn.10001dbe
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10001d73
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1000209c
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
invalid
Function at 0x100024a0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10002485
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100024a3
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10002501
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100024e8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100024f1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100024fb
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100024dd
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10002467
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000254e
dec eax
je 0x10002545
sub eax, 3
je 0x1000253c
mov dword [ebp - 4], 0x40
jmp 0x1000256b
mov dword [ebp - 4], 4
jmp 0x10002551
mov dword [ebp - 4], 0x20
jmp 0x10002551
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000259d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000251d
invalid
invalid
invalid

Function at 0x10002ac0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
wait
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
invalid
Function at 0x10003750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x10003e54
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x10003929
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
invalid
invalid
scasb al, byte es:[edi]
clc
invalid
invalid

Function at 0x10009798
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100097a2
repz ret
jmp fcn.10009aee
Function at 0x408d51
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408d8f
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408d96
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
add edx, 0x40c6a8
add eax, ebx
mov dword [esp + 4], str._s_S.dll
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x408f64
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43a424], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
jne 0x408fa1
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408f7e
mov dword [ecx*4 + 0x43a420], eax
inc ecx
cmp ecx, 0x100
jne 0x408f77
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408fc4
inc edx
mov cl, byte [edx - 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x43a420]
jmp 0x408fab
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x1001e0b
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1001e68
call fcn.01001e84
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1001e5a
cmp ecx, 0xffffffff
je 0x1001e5a
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1001e53
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x1001e53
cmp edx, 0x10000000
jae 0x1001e53
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1005401
mov dword [ebp - 4], 0xfffffffe
call fcn.01001bf9
ret 4
Function at 0x401571
Capabilities:
Get disk information via ioctl

Disassembly:
push ebx
xor ebx, ebx
push eax
push 0
lea eax, [esp + 4]
push eax
push 0xc
push dword [esp + 0x1c]
push 0
push 0
push 0x2d1080
push dword [esp + 0x28]
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
je 0x40159c
mov bl, 1
jmp 0x4015a7
push str.GetDriveNumber:_DeviceIoControl_failed
call fcn.0040134f
pop eax
pop ecx
mov eax, ebx
pop ebx
ret
Function at 0x402560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edx, 0x17
mov ebp, esp
push ebx
sub esp, 0x14
lea ebx, [ebp + 0xc]
mov dword [esp + 8], edx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], str.Mingw_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 8], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x4025c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov ebx, eax
test edi, edi
mov dword [ebp - 8], esi
mov esi, edx
jne 0x4025e7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
mov eax, 0x1c
mov dword [esp + 8], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402695
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
setne dl
cmp eax, 4
setne al
movzx eax, al
test eax, edx
jne 0x40266e
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
setne dl
cmp eax, 4
setne al
movzx eax, al
test eax, edx
je 0x4025da
lea eax, [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x4025da
lea eax, [ebp - 0x3c]
mov ecx, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x402620
mov dword [esp + 8], ebx
mov ebx, 0x1c
mov dword [esp + 4], ebx
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402560
nop
Function at 0x40105b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4012c8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
jmp loc.00460596
Function at 0x10001b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10001b81
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10001b42
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18

Function at 0x10002124
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x1000a7d0
push str.FlsAlloc
push 0x1f
call fcn.1000205f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10002158
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000a104]
call esi
jmp 0x1000215e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100021a2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x1000a7f4
push str.FlsGetValue
push 0x21
call fcn.1000205f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100021d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000a104]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100021e1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x1000a808
push str.FlsSetValue
push 0x22
call fcn.1000205f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000221b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000a104]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x10004086
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100040c5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100040c5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100040c5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100040c5
cmp dword [ecx + 0x74], 0xe
jbe 0x100040c5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret