joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40313c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043e8
test esi, esi
jne 0x403172
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044d8
jmp 0x403190
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403040
mov edi, eax
test esi, esi
je 0x403190
cmp dword [ebx], 0
je 0x403190
dec esi
jmp 0x403179
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x412020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403790
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403770
xor eax, eax
push ebp
push 0x403769
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403770
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x412020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x412020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404268
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x413044], 0
je 0x4042c9
cmp word [0x413218], 0xd7b2
jne 0x404291
cmp dword [0x413220], 0
jbe 0x404291
mov eax, 0x413214
call dword [0x413230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41202c], 0
jne 0x4042e5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40550c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40573c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40558f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40573c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40558f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405758
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405618
xor eax, eax
push ebp
push 0x405611
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405348
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4055f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405778
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4055f6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405618
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405732
cmp byte [ebp - 0xd], 0
jne 0x40565f
cmp byte [ebp - 0x12], 0
je 0x405732
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405678
dec ebx
cmp byte [ebx], 0x2e
je 0x405687
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405677
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405732
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4056c4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405732
cmp byte [ebp - 0xd], 0
je 0x405732
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405732
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40722c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004047ec
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40724a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40726b
cmp ebx, 3
je 0x40726b
cmp ebx, 0x7b
je 0x40726b
mov eax, esi
call fcn.004071ec
test al, al
jne 0x40726f
xor eax, eax
jmp 0x407271
mov al, 1
pop esi
pop ebx
ret

Function at 0x409a8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409ac5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044d8
jmp 0x409ace
mov eax, ebx
mov edx, esi
call fcn.0040443c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409ad8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409afa
movzx eax, byte [esp]
jmp 0x409afc
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a18c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a004
mov eax, dword [0x412bcc]
cmp byte [eax], 0
je 0x40a208
mov eax, dword [0x412af4]
call fcn.00403200
call fcn.00402eac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004073c8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a250
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a23e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x412ad4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4157f0]
call fcn.004052f0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x4100c8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0040fe20
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004047ec
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x410127
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x412b5c]
mov dl, 1
mov eax, dword [0x40fd44]
call fcn.0040a34c
call fcn.00403e48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10018830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100952e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1008a0d1
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1001acc0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10018884
jmp dword [ecx*4 + 0x100189ec]
mov al, byte [esi]
test al, al
je 0x100188b2
cmp al, 0x20
je 0x1001889e
cmp al, 0xa1
jne 0x100188b2
cmp byte [esi + 1], al
jne 0x100188b2
test al, 0x80
je 0x100188aa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100188b2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10018891
test ecx, ecx
je case.default.0x10018884
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10018884
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100188f8
cmp dl, 0xa1
jne 0x100188ec
cmp byte [eax + 1], 0xa1
jne 0x100188ec
test ecx, ecx
jne 0x100188e4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1001890c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10018926
jmp 0x1001890c
cmp dl, 0x20
jne 0x1001890a
test ecx, ecx
jne 0x10018903
mov edi, eax
mov ecx, 1
jmp 0x1001890c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100188cc
cmp ecx, 1
jne case.default.0x10018884
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10018884
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10018884
mov al, byte [esi]
test al, al
je 0x1001897e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10018964
mov cl, byte [esi + 1]
test cl, cl
je 0x1001897e
cmp al, 0xa1
jne 0x10018954
cmp cl, al
je 0x10018961
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1001af90
inc esi
jmp 0x10018976
cmp al, 0x20
je 0x10018976
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1001afd0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001893d
push 0
lea ecx, [esp + 0x14]
call fcn.1001afd0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10029020
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100189b1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100e7280
call fcn.1001aec0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1008a063
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10022620
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10095beb
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.10089dd8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x100226a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1008742d
mov eax, dword [eax]
push 0x100fc274
push eax
call fcn.1007a964
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1008a063
test bl, bl
je 0x100226a2
push 0x100fc274
lea ecx, [esp + 0xc]
call fcn.1008a3f3
push 0x100ffdf4
lea ecx, [esp + 0xc]
call fcn.1008a3f3
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 0x100226de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1008a063
jmp 0x100227a9
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 0x10022762
lea edx, [esp + 0x7c]
push 0x100ffdf0
push edx
call fcn.1007a964
add esp, 8
test eax, eax
je 0x10022762
lea eax, [esp + 0x7c]
push 0x100ffdec
push eax
call fcn.1007a964
add esp, 8
test eax, eax
je 0x10022762
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 0x100226f2
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.1008a063
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 0x10022fa0
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 0x10023002
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 0x10023010
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x10095c6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x1010eef8]
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 0x10023148
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10023076
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1008a063
xor eax, eax
jmp 0x100231bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1008a1a0
push esi
lea ecx, [esp + 0xc]
call fcn.1008a42f
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 0x1002319d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.10022fa0
test eax, eax
jne 0x1002319d
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 accept
mov ecx, edi
call fcn.10022fa0
test eax, eax
jne 0x1002319d
lea eax, [esp + 0x14]
push 0x100ffe08
push eax
call fcn.1007b720
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002317c
lea ecx, [esp + 0x14]
push 0x100ffe04
push ecx
call fcn.1007b6a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002317c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1002317f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1008a150
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1002308e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1008a063
xor eax, eax
jmp 0x100231bf
mov byte [esi], 0
push 0x100ffe00
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.1008a063
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 0x10034b60
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 0x10034bce
cmp si, 0x69
ja 0x10034bce
add esi, 0xffd0
cmp si, 0x11
je 0x10034b9e
push 0x11
call edi
test ax, ax
jge 0x10034b9e
or esi, 0x2000
cmp si, 0x10
je 0x10034bb3
push 0x10
call edi
test ax, ax
jge 0x10034bb3
or esi, 0x4000
cmp si, 0x12
je 0x10034bc8
push 0x12
call edi
test ax, ax
jge 0x10034bc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x10034bdb
mov esi, 0xbd
jmp 0x10034b8f
cmp si, 0x6e
jne 0x10034be8
mov esi, 0xbe
jmp 0x10034b8f
cmp si, 0x6f
jne 0x10034b89
mov esi, 0xbf
jmp 0x10034b8f

Function at 0x10036040
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10096c41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, dword [esp + 0x160]
push esi
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.10088fa0
mov esi, dword [esp + 0x16c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.10089266
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xc]
push eax
call fcn.1008a0d1
lea ecx, [esp + 0xc]
push str..
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x16c], 0
call fcn.1008a2ac
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.1008a063
test edi, edi
je 0x1003618e
mov edx, dword [0x1010eef8]
mov dword [esp + 0x10], edx
cmp edi, 0xffffffff
mov byte [esp + 0x160], 1
je 0x1003617d
cmp byte [esp + 0x44], 0x2e
je 0x10036162
lea eax, [esp + 0xc]
push 0x100fc274
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1008a2ac
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 2
call fcn.1008a150
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.1008a063
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.1008a3f3
test byte [esp + 0x18], 0x10
mov eax, dword [esi + 8]
je 0x10036148
push 1
jmp 0x1003614a
push 0
push eax
mov ecx, esi
call fcn.100893ab
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.10089115
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100360ee
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.1008a063
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.1008a063
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x100361c0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10096c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
lea ecx, [esp + 8]
call fcn.10088f0d
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], esi
call fcn.10089206
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x44], 1
call fcn.10036040
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
mov ebx, eax
jle 0x1003625d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [esp + 0x28]
cmp dword [eax + esi*4], 0
je 0x1003624c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + esi*4]
push eax
call fcn.100361c0
mov edx, dword [esp + 0x18]
add esp, 4
mov eax, dword [edx + esi*4]
push eax
call edi
jmp 0x10036256
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi*4]
push eax
call ebp
inc esi
cmp esi, ebx
jl 0x10036226
pop edi
pop ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.10089239
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.10088f40
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x10036290
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0x20
jne 0x100362a2
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x1003629a
cmp byte [esi], 0
je 0x100362d1
cmp byte [esi + 1], 0x3a
jne 0x100362bf
mov al, byte [esi + 2]
test al, al
je 0x100362d1
cmp al, 0x5c
jne 0x100362bf
mov al, byte [esi + 3]
test al, al
je 0x100362d1
push esi
call fcn.100361c0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10036630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1011d7f0]
xor edx, edx
cmp eax, edx
jne 0x10036656
xor eax, eax
mov byte [eax + 0x1011d6f0], al
inc eax
cmp eax, 0x100
jl 0x1003663e
mov dword [0x1011d7f0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1011d6f0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x100366e7
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 0x100366ba
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 0x10036688
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10036760
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 0x100367b3
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 0x1003679a
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