joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xcc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x42e63c]
test eax, eax
jne 0x415659
mov edi, dword fs:[0x18]
mov ebx, dword [edi + 0x34]
push 0x419ff4
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x42e63c
lock xchg dword [eax], ecx
mov dword [edi + 0x34], ebx
mov edi, dword [ebp + 8]
mov eax, dword [0x42e63c]
push esi
call eax
add esp, 4
movzx eax, al
bt eax, edi
jae 0x41580f
mov ecx, dword [0x42e6c8]
mov ebx, dword fs:[0x18]
xor eax, eax
cmp ecx, dword [ebx + 0x24]
je 0x415814
lea edi, [ebp - 0xd8]
test byte [0x41d04d], 8
je 0x415720
mov eax, dword [0x42e63c]
test eax, eax
jne 0x4156d9
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x419ff4
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x42e63c
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [0x42e63c]
push 0x41d04d
call eax
add esp, 4
test al, 8
je 0x415720
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, eax
mov edx, 0x10624dd3
mul edx
shr edx, 6
imul eax, edx, 0x3e8
sub ecx, eax
lea eax, [ebp - 0xd8]
push ecx
push edx
push str._3u._03u:
push eax
call dbg.sprintf
add esp, 0x10
lea edi, [eax + ebp]
add edi, 0xffffff28
test byte [0x41d05d], 8
je 0x41578d
mov eax, dword [0x42e63c]
test eax, eax
jne 0x41576c
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
push 0x419ff4
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.__wine_dbg_get_channel_flags
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
cmovne ecx, eax
mov eax, 0x42e63c
lock xchg dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x34], eax
mov eax, dword [0x42e63c]
push 0x41d05d
call eax
add esp, 4
test al, 8
je 0x41578d
push dword [ebx + 0x20]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
add edi, eax
push dword [ebx + 0x24]
push str._04x:
push edi
call dbg.sprintf
add esp, 0xc
mov edx, dword [ebp + 8]
cmp edx, 3
ja 0x4157e2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4157e2
add edi, eax
lea eax, [ebp - 0xd8]
sub eax, edi
add eax, 0xc8
mov edx, dword [edx*4 + 0x41a018]
inc esi
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp], edi
mov dword [esp + 4], eax
call dbg.snprintf
add esp, 0x18
lea edi, [ebp - 0xd8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
mov esi, eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x415814
mov eax, 0xffffffff
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x415950
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 1
call sym.__configure_wide_argv
add esp, 4
call sym.__initialize_wide_environment
call sym.___p___argc
mov edi, dword [eax]
call sym.___p___wargv
mov ebx, dword [eax]
call sym.__get_initial_wide_environment
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
xor edx, edx
cmp word [eax + ecx + 0x5c], 2
sete dl
inc edx
push edx
call sym.__set_app_type
add esp, 4
push esi
push ebx
push edi
call dbg.wmain
add esp, 0xc
push eax
call sym._exit
jmp dword [sym.imp.shell32.dll_FindExecutableW]
Function at 0x40e7b4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412857
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

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 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 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403e59
pop dword [ebp - 0x50]
mov eax, 0x403e59
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xa89f1bfb
sub dword [ebp - 0x60], 0x5a4cd6b0
mov dword [ebp - 0x5c], 0x77d7dae1
sub dword [ebp - 0x5c], 0x45a48e9c
mov dword [ebp - 0x58], 0x787a9927
sub dword [ebp - 0x58], 0x2c2e54f9
mov dword [ebp - 0x54], 0x98912930
add dword [ebp - 0x54], 0x676ed6d0
lea eax, [ebp - 0x60]
push eax
mov eax, 0xaf90b3a4
sub eax, 0xaf503318
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x6c514d8e
add dword [ebp - 0x60], 0x8211bc8
mov dword [ebp - 0x5c], 0x320c1bd6
add dword [ebp - 0x5c], 0xf60459f
mov dword [ebp - 0x58], 0x43d5cc0e
sub dword [ebp - 0x58], 0xe0665fa2
mov dword [ebp - 0x54], 0xdbafcd2c
sub dword [ebp - 0x54], 0xdbafcd2c
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x35179
push 0
call eax
mov ecx, 0xbd35e208
add ecx, 0x42ca5f59
xor edi, edi
add edi, eax
mov edx, 0x1e85475c
sub edx, 0x1e44375c
add edx, dword [ebp - 0x50]
mov esi, 0x2612bb8f
add esi, 0xbabc2e11
add dword [ebp - 0x48], eax
mov ebx, dword [edx]
sub dword [ebp - 0x4c], 0xce4e35d6
add ebx, esi
sub dword [ebp - 0x40], edi
mov dword [edi], ebx
xor dword [ebp - 0x2c], ebx
add edi, 0x4f08eb5b
add edi, 0xb0f714a9
add edx, 4
loop 0x403f73
add eax, 0x8f527342
sub eax, 0x8f517aeb
mov ebx, eax
add eax, 0xb90f6db8
sub eax, 0xb90f6db3
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x43ed10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43eda2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43ed94
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43ed8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43ed55
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x1002287
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x1002287
lcall 0x5de5, 0x8b10c483
jmp loc.013d2000
Function at 0x10b0e90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ecx
mov eax, dword [ecx]
test eax, eax
jne 0x10b0ea2
mov eax, 1
pop ecx
ret 8
movzx cx, byte [eax]
mov edx, 0x100
imul cx, dx
movzx dx, byte [eax + 1]
add cx, dx
movzx ecx, cx
sub ecx, 1
push esi
push edi
je 0x10b0f5d
sub ecx, 1
jne 0x10b0f9c
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], esi
test ecx, ecx
je 0x10b0ee9
add eax, 2
cmp eax, ecx
jbe 0x10b0ee9
xor esi, esi
mov dword [esp + 8], esi
mov edi, dword [esp + 0x14]
movzx eax, word [edi]
push ecx
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.010afa20
mov ecx, eax
call fcn.010af3a0
movzx eax, ax
test ax, ax
jl 0x10b0f9c
movzx dx, byte [esi + 4]
mov ecx, 0x100
imul dx, cx
movzx cx, byte [esi + 5]
add dx, cx
movzx edx, dx
movsx ecx, ax
cmp ecx, edx
jg 0x10b0f9c
movzx edx, ax
movzx cx, byte [esi + edx*2 + 6]
lea eax, [esi + edx*2 + 6]
movzx ax, byte [eax + 1]
mov edx, 0x100
imul cx, dx
add cx, ax
mov word [edi], cx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], esi
test ecx, ecx
je 0x10b0f78
add eax, 2
cmp eax, ecx
jbe 0x10b0f78
xor esi, esi
mov dword [esp + 8], esi
mov edi, dword [esp + 0x14]
movzx edx, word [edi]
push ecx
push edx
push ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.010afa20
mov ecx, eax
call fcn.010af3a0
test ax, ax
jge 0x10b0fa7
pop edi
mov eax, 1
pop esi
pop ecx
ret 8
movzx cx, byte [esi + 4]
movzx ax, byte [esi + 5]
mov edx, 0x100
imul cx, dx
add cx, ax
add word [edi], cx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8

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 0x52ac70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf1000]
push edi
or ebp, 0xffffffff
jmp 0x52ac92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52ac99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52ac88
mov eax, 1
add ebx, ebx
jne 0x52acab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52acbc
jne 0x52accc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52accc
dec eax
add ebx, ebx
jne 0x52acc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52aca0
xor ecx, ecx
sub eax, 3
jb 0x52ace4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52ad56
sar eax, 1
mov ebp, eax
jmp 0x52acef
add ebx, ebx
jne 0x52acef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x52acfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x52ad20
inc ecx
add ebx, ebx
jne 0x52ad0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52ad01
jne 0x52ad1d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52ad01
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52ad40
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52ad31
jmp 0x52ac8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52ad40
add edi, ecx
jmp 0x52ac8e
pop esi
mov edi, esi
mov ecx, 0x634
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52ad5e
cmp byte [edi], 7
jne 0x52ad5e
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 eax, ebx
loop 0x52ad63
lea edi, [esi + 0x128000]
mov eax, dword [edi]
or eax, eax
je 0x52add2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12c340]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12c3a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52ad90
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12c3a8]
or eax, eax
je 0x52adcc
mov dword [ebx], eax
add ebx, 4
jmp 0x52adad
call dword [esi + 0x12c3ac]
popal
jmp 0x40d2b6
Function at 0x1001e240
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1001e404
pushal
mov esi, 0x1001100d
lea edi, [esi - 0x1000d]
push edi
or ebp, 0xffffffff
jmp 0x1001e26a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1001e271
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1001e260
mov eax, 1
add ebx, ebx
jne 0x1001e283
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1001e278
jne 0x1001e294
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1001e278
xor ecx, ecx
sub eax, 3
jb 0x1001e2a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001e31a
mov ebp, eax
add ebx, ebx
jne 0x1001e2b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1001e2c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1001e2e4
inc ecx
add ebx, ebx
jne 0x1001e2d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1001e2c5
jne 0x1001e2e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1001e2c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1001e304
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1001e2f5
jmp 0x1001e266
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1001e304
add edi, ecx
jmp 0x1001e266
pop esi
mov edi, esi
mov ecx, 0x6b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1001e322
cmp byte [edi], 4
jne 0x1001e322
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 0x1001e327
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x1001e396
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1001e354
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e040]
or eax, eax
je 0x1001e390
mov dword [ebx], eax
add ebx, 4
jmp 0x1001e371
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1001e3c7
cmp al, 0xef
ja 0x1001e3ba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001e39c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1001e3a9
mov ebp, dword [esi + 0x1e044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x1001e3fb
sub esp, 0xffffff80
jmp 0x10010e07
Function at 0x1000f6b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008bb5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.10080b9f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000f732
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1007eab1
mov eax, dword [eax]
push 0x1016fc60
push eax
call fcn.100715f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10080e2a
test bl, bl
je 0x1000f732
push 0x1016fc60
lea ecx, [esp + 0xc]
call fcn.100811ba
push 0x1016fc6c
lea ecx, [esp + 0xc]
call fcn.100811ba
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000f76e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10080e2a
jmp 0x1000f839
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1000f7f2
lea edx, [esp + 0x7c]
push 0x1016fc68
push edx
call fcn.100715f4
add esp, 8
test eax, eax
je 0x1000f7f2
lea eax, [esp + 0x7c]
push 0x1016fc64
push eax
call fcn.100715f4
add esp, 8
test eax, eax
je 0x1000f7f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000f782
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.10080e2a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10010040
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100100a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x100100b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008bbdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10179660]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x100101e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10010116
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10080e2a
xor eax, eax
jmp 0x1001025f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.10080f67
push esi
lea ecx, [esp + 0xc]
call fcn.100811f6
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1001023d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10010040
test eax, eax
jne 0x1001023d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.10010040
test eax, eax
jne 0x1001023d
lea eax, [esp + 0x14]
push 0x1016fc7c
push eax
call fcn.10072670
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001021c
lea ecx, [esp + 0x14]
push 0x1016fc78
push ecx
call fcn.100725f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001021c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1001021f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.10080f17
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1001012e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10080e2a
xor eax, eax
jmp 0x1001025f
mov byte [esi], 0
push 0x1016fc74
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.10080e2a
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x1001f580
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x1001f5ee
cmp si, 0x69
ja 0x1001f5ee
add esi, 0xffd0
cmp si, 0x11
je 0x1001f5be
push 0x11
call edi
test ax, ax
jge 0x1001f5be
or esi, 0x2000
cmp si, 0x10
je 0x1001f5d3
push 0x10
call edi
test ax, ax
jge 0x1001f5d3
or esi, 0x4000
cmp si, 0x12
je 0x1001f5e8
push 0x12
call edi
test ax, ax
jge 0x1001f5e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1001f5fb
mov esi, 0xbd
jmp 0x1001f5af
cmp si, 0x6e
jne 0x1001f608
mov esi, 0xbe
jmp 0x1001f5af
cmp si, 0x6f
jne 0x1001f5a9
mov esi, 0xbf
jmp 0x1001f5af

Function at 0x10020d50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10189db8]
xor edx, edx
cmp eax, edx
jne 0x10020d76
xor eax, eax
mov byte [eax + 0x10189cb8], al
inc eax
cmp eax, 0x100
jl 0x10020d5e
mov dword [0x10189db8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10189cb8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10020e07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x10020dda
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x10020da8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10020e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10020ed3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x10020eba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret