joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcf0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00cf01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xcf007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf006a
add dl, dl
jne 0xcf0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf00dc
xor eax, eax
add dl, dl
jne 0xcf0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcf017d
add dl, dl
jne 0xcf00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcf00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcf0075
mov eax, 1
add dl, dl
jne 0xcf00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcf00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf00e1
sub eax, ebx
mov ebx, 1
jne 0xcf0128
mov ecx, 1
add dl, dl
jne 0xcf010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcf0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcf013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcf014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcf0136
cmp eax, 0x7d00
jae 0xcf016d
cmp eax, 0x500
jb 0xcf0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf0075
cmp eax, 0x7f
ja 0xcf0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcf0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcf019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xcf0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1001bbf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1001bbff
pop dword [ebp - 0x24]
mov eax, 0x5d222a79
add eax, 0xb2df9186
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xf3ecbe88
sub dword [ebp - 0x34], 0xa59a793d
mov dword [ebp - 0x30], 0x1e665baf
add dword [ebp - 0x30], 0x13ccf096
mov dword [ebp - 0x2c], 0x85d19493
sub dword [ebp - 0x2c], 0x39855065
mov dword [ebp - 0x28], 0x960e625a
sub dword [ebp - 0x28], 0x960e625a
lea eax, [ebp - 0x34]
push eax
mov eax, 0xf7fa9c94
sub eax, 0xe7f67c60
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x983a5dcf
sub dword [ebp - 0x34], 0x23c7f479
mov dword [ebp - 0x30], 0x156d2288
add dword [ebp - 0x30], 0x2bff3eed
mov dword [ebp - 0x2c], 0xb5bcdb63
sub dword [ebp - 0x2c], 0x524d6ef7
mov dword [ebp - 0x28], 0xcd07dedd
sub dword [ebp - 0x28], 0xcd07dedd
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x91f07c4c
add eax, 0x7e13a400
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x489fe
push 0
call eax
mov ecx, 0xdfc40cc1
add ecx, 0x203c4150
mov edi, eax
mov edx, 0x10057e00
add edx, dword [ebp - 0x24]
mov esi, 0xd307d2d0
add esi, 0x5d200d98
mov ebx, dword [edx]
xor dword [ebp - 0x1c], eax
xor ebx, esi
xor dword [ebp - 8], edx
mov dword [edi], ebx
sub dword [ebp - 0xc], edx
add edi, 4
add edx, 0x572b74fb
sub edx, 0x572b74f7
loop 0x1001bd1b
add eax, 0x31cfc6ff
add eax, 0xce316418
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xef692b88
add ecx, 0x2096d478
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1001bbf0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.1001bbf0
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1001bbf0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x4042a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40430a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e64
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4042f4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404311
lea eax, [ebp - 0x10]
call fcn.004039f4
ret

Function at 0x406b04
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ecx
push ebx
push edx
xor edx, edx
push 0x406ad4
push dword fs:[edx]
mov dword [0x40c7e0], esp
mov dword [0x40c7e4], ebp
mov dword [0x40c7e8], 0x406ba0
mov dword fs:[edx], esp
mov edi, dword [ebp + 8]
mov ecx, 0x96
xor al, al
repne scasb al, byte es:[edi]
mov ecx, edi
sub ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp word [edx], 0x5a4d
jne 0x406ba0
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x406ba0
mov edx, dword [edx + 0x78]
or edx, edx
je 0x406ba0
add edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x20]
add ebx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebx]
add edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ecx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x406b80
add ebx, 4
inc eax
cmp eax, dword [edx + 0x18]
jb 0x406b67
jmp 0x406ba0
shl eax, 1
add eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ax, word [eax]
and eax, 0xffff
shl eax, 2
add eax, dword [edx + 0x1c]
add eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 0xc]
jmp 0x406ba2
xor eax, eax
xor edx, edx
pop dword fs:[edx]
add esp, 4
pop edx
pop ebx
pop ecx
pop edi
pop esi
pop ebp
ret 8

Function at 0x438c8e
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x438a14
add ebx, 0x1a280810
push 0x9c2ee51a
pop esi
call fcn.00438cd7
sub ebx, 0x50c85e72
sub ebx, esi
mov esi, esi
xor dword [edx], edi
sub esi, ebx
or ebx, ebx
add edx, 1
add ebx, ebx
add esi, 1
mov esi, ebx
cmp edx, ecx
jne fcn.00438c8e
add ebx, esi
mov esi, 0x167fab77
sub esi, 1
ret
Function at 0x4fd770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa9000]
push edi
jmp 0x4fd78a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fd791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fd780
mov eax, 1
add ebx, ebx
jne 0x4fd7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fd7b4
jne 0x4fd7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fd7d3
dec eax
add ebx, ebx
jne 0x4fd7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fd798
add ebx, ebx
jne 0x4fd7cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fd825
xor ecx, ecx
sub eax, 3
jb 0x4fd7eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fd85a
sar eax, 1
mov ebp, eax
jmp 0x4fd7f6
add ebx, ebx
jne 0x4fd7f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fd7c4
inc ecx
add ebx, ebx
jne 0x4fd804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fd7c4
add ebx, ebx
jne 0x4fd811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fd806
jne 0x4fd822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fd806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fd844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fd836
jmp 0x4fd786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fd844
add edi, ecx
jmp 0x4fd786
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fd862
cmp byte [edi], 0x11
jne 0x4fd862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4fd867
lea edi, [esi + 0xf6000]
mov eax, dword [edi]
or eax, eax
je 0x4fd8df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x124178]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1242f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fd894
mov ecx, edi
jns 0x4fd8c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1242f8]
or eax, eax
je 0x4fd8d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4fd8b1
call dword [esi + 0x124308]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fd910
cmp al, 0xef
ja 0x4fd903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fd8e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fd8f2
mov ebp, dword [esi + 0x1242fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x4fd944
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x409370
Capabilities:
Check http status code

Disassembly:
sub esp, 0xc
mov ecx, dword [0x96b390]
xor eax, eax
mov dword [esp], eax
add ecx, 0x22051
mov dword [esp + 4], eax
mov word [esp + 8], ax
mov dx, word [ecx]
mov word [esp], dx
mov al, byte [ecx + 2]
lea ecx, [esp]
push ecx
mov byte [esp + 6], al
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp ax, 1
je 0x409539
cmp ax, 2
je 0x409539
cmp ax, 3
je 0x409539
cmp ax, 4
je 0x409539
cmp ax, 5
je 0x409539
cmp ax, 6
je 0x409539
cmp ax, 7
je 0x409539
cmp ax, 8
je 0x409539
cmp ax, 9
je 0x409539
cmp ax, 0xa
je 0x409539
cmp ax, 0xb
je 0x409539
cmp ax, 0xc
je 0x409539
cmp ax, 0xd
je 0x409539
cmp ax, 0xe
je 0x409539
cmp ax, 0xf
je 0x409539
cmp ax, 0x11
je 0x409539
cmp ax, 0x12
je 0x409539
cmp ax, 0x13
je 0x409539
cmp ax, 0x14
je 0x409539
cmp ax, 0x15
je 0x409539
cmp ax, 0x17
je 0x409539
cmp ax, 0x19
je 0x409539
cmp ax, 0x1a
je 0x409539
cmp ax, 0x1b
je 0x409539
cmp ax, 0x1d
je 0x409539
cmp ax, 0x21
je 0x409539
cmp ax, 0x22
je 0x409539
cmp ax, 0x23
je 0x409539
cmp ax, 0x24
je 0x409539
cmp ax, 0x25
je 0x409539
cmp ax, 0x26
je 0x409539
cmp ax, 0x27
je 0x409539
cmp ax, 0x28
je 0x409539
cmp ax, 0x29
je 0x409539
cmp ax, 0x2a
je 0x409539
cmp ax, 0x2c
je 0x409539
cmp ax, 0x2d
je 0x409539
cmp ax, 0x51
je 0x409539
cmp ax, 0x52
je 0x409539
cmp ax, 0x53
je 0x409539
cmp ax, 0x54
je 0x409539
cmp ax, 0x55
je 0x409539
cmp ax, 0x56
je 0x409539
cmp ax, 0x57
je 0x409539
cmp ax, 0xc8
jge 0x409539
mov edx, dword [0x96b390]
xor ax, ax
mov byte [edx + 0x2204f], 0x31
add esp, 0xc
ret
mov eax, dword [0x96b390]
mov byte [eax + 0x2204f], 0x30
xor ax, ax
add esp, 0xc
ret
Function at 0x41dca0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x10], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [0x96b390]
cmp dword [eax + 0x3dc60], 1
jne 0x41dcdf
lea ecx, [esp + 0x10]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x41dcef
lea eax, [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, byte [esp + 0x38]
test al, al
jne 0x41dd28
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
mov edi, str.Standalone
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x88]
mov dl, byte [esp + 0x38]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov al, byte [esp + 0x39]
dec ecx
mov byte [esp + 0x89], dl
mov byte [esp + 0x8a], al
mov cl, byte [esp + ecx + 0x37]
mov byte [esp + 0x88], cl
mov cl, byte [esp + 0x3a]
mov byte [esp + 0x8b], cl
mov eax, dword [esp + 0x88]
push eax
mov dword [0xa4ca0c], eax
call dword [sym.imp.MSVCRT.dll_srand]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
add esp, 4
mov dword [esp + 0x14], 0
mov edx, dword [0x96b330]
mov ecx, 0x14
xor eax, eax
mov edi, 0xa4a27c
rep stosd dword es:[edi], eax
mov cx, word [edx + 0x66]
lea eax, [edx + 0x66]
push eax
push str._sTUCFILELOCKTFNAME
push 0xa4a27c
mov word [0xa4a27c], cx
call esi
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push 0xa4a27c
call ebp
cmp eax, 0xffffffff
jne 0x41de7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0xa4ca08], eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x12c
mov dword [esp + 0x14], eax
jg 0x41de81
call ebx
mov edx, eax
mov ecx, 0x14
push edx
xor eax, eax
lea edi, [esp + 0x8c]
lea edx, [esp + 0x8c]
push 0x427234
push edx
rep stosd dword es:[edi], eax
call esi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x95]
push edx
stosw word es:[edi], ax
mov al, byte [esp + 0x98]
mov byte [esp + 0x29], cl
mov byte [esp + 0x28], al
mov byte [esp + 0x2a], 0x30
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x10
mov dword [0xa4a26c], eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41dda0
mov dword [0xa4c9fc], eax
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc8
ret
Function at 0x421130
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp], eax
push esi
movsx edx, byte [ecx]
mov dword [esp + 8], eax
push edx
mov word [esp + 0x10], ax
lea eax, [esp + 8]
push str._C:_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 4]
xor esi, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
mov eax, 1
je 0x421177
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x1000e412
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
push 0x15
mov edi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x1000e47c
push 0xffffffffffffffff
call fcn.1000d34a
mov ecx, 0x3a4
cmp eax, ecx
mov dword [edi + 0xc], eax
jne 0x1000e47c
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dl, byte [esi]
shr eax, 8
test al, al
mov byte [ebp + 0xe], al
mov byte [ebp + 0xf], dl
jne 0x1000e46c
push ecx
push 1
lea eax, [ebp + 0xf]
push eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.1006f4db
cmp eax, 1
jne 0x1000e46c
movzx eax, word [ebp - 4]
mov dword [esi], eax
xor eax, eax
mov ax, word [esi]
mov ecx, edi
push eax
call fcn.1000d696
pop esi
jmp 0x1000e47f
xor eax, eax
inc eax
pop edi
leave
ret 0x10
Function at 0x10037800
Capabilities:
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp byte [ecx + 0xd], al
je 0x10037887
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx esi, word [0x100760e4]
push edi
xor edi, edi
inc edi
cmp ebx, esi
je 0x10037831
cmp ebx, 0xd
je 0x10037831
cmp ebx, 8
je 0x10037831
cmp ebx, edi
jne 0x10037884
cmp ebx, esi
push 0xb
pop edx
jne 0x1003783c
mov edx, edi
jmp 0x1003784b
cmp ebx, 8
jne 0x10037844
push ebx
jmp 0x1003784a
cmp ebx, edi
jne 0x1003784b
push 0xc
pop edx
lea edx, [edx + edx*4]
lea esi, [ebp - 0xc]
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + 8]
lea edx, [edx*4 + 0x100760d0]
push edx
mov dword [ebp - 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10037882
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x10037882
xor eax, eax
jmp 0x10037884
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10038133
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x54]
cmp eax, ebx
je 0x10038153
mov esi, dword [eax + 0x14]
jmp 0x10038155
xor esi, esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10041971
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jge 0x100381c7
sub eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x1003819b
mov ecx, dword [edi]
call fcn.1001dcd9
test eax, eax
je 0x1003819b
push dword [ebp - 0xc]
mov eax, dword [edi]
push dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
call fcn.1003d88d
test eax, eax
mov dword [ebp - 8], 1
jne 0x1003819e
mov dword [ebp - 8], ebx
cmp esi, ebx
je 0x100381b8
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp - 0x10]
push ecx
push esi
call dword [eax + 0x28]
mov esi, eax
cmp esi, ebx
je 0x100381eb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], ebx
jne 0x100381ce
mov ecx, dword [edi]
call fcn.1001f9db
xor eax, eax
jmp 0x1003828f
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 3
push ecx
push eax
mov ecx, edi
call fcn.100377bf
mov esi, eax
cmp esi, ebx
jne 0x1003828d
cmp dword [ebp - 4], ebx
je 0x1003828d
push dword [ebp - 4]
call fcn.10071c63
mov esi, eax
cmp esi, ebx
je 0x1003827a
mov ecx, dword [edi]
lea eax, [ebp + 8]
push eax
mov byte [edi + 0xd], 1
call fcn.1001fd57
test eax, eax
jne 0x1003827a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1003827a
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1003827a
movzx eax, word [0x100760e4]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
push eax
call esi
push ebx
push 0xd
call esi
mov ecx, dword [edi]
call fcn.1001dcf5
test eax, eax
je 0x10038263
movzx eax, word [0x100760d0]
push ebx
push eax
call esi
movzx eax, word [0x100760f8]
push ebx
push eax
call esi
push ebx
push 1
call esi
cmp dword [ebp - 8], ebx
je 0x10038272
push ebx
push 8
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
xor esi, esi
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x10038287
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8