joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bf6f7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ea418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004bafaa
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004bafaa
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4bf76e
cmp word [ecx], dx
je 0x4bf76e
mov eax, dword [0x4ce8dc]
push edi
dec eax
push eax
push 0x4ce7c8
call fcn.004bf8e7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4bf7e1
cmp word [eax], dx
je 0x4bf7e1
mov eax, dword [edi]
test eax, eax
je 0x4bf792
cmp word [eax], dx
je 0x4bf792
lea eax, [ebp - 0x10]
push eax
call fcn.004bf948
jmp 0x4bf79b
lea eax, [ebp - 0x10]
push eax
call fcn.004bfc43
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4bf80b
mov eax, dword [0x4ce7c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4ce4b8
call fcn.004bf8e7
add esp, 0xc
test al, al
je 0x4bf80b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4bf7d6
cmp word [eax], di
je 0x4bf7d6
lea eax, [ebp - 0x10]
push eax
call fcn.004bf948
pop ecx
jmp 0x4bf80d
lea eax, [ebp - 0x10]
push eax
call fcn.004bfc43
jmp 0x4bf7d3
mov eax, dword [edi]
test eax, eax
je 0x4bf7f8
cmp word [eax], dx
je 0x4bf7f8
lea eax, [ebp - 0x10]
push eax
call fcn.004bfd85
pop ecx
jmp 0x4bf80b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4bf8d6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004bfe77
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4bf8d6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4bf8d6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4bf8d6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4bf863
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004bba6c
test ebx, ebx
je 0x4bf8d1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004bba6c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4bf8d6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4bf8d6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004b387f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4bf8d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004961ed
leave
ret
Function at 0x4bff7d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004bafaa
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4bffec
cmp esi, dword [ebp - 4]
je 0x4bffe7
cmp dword [ebp + 0xc], 0
je 0x4bffe7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bffc4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004c0046
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4bffee
xor eax, eax
inc eax
jmp 0x4bffee
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4c0395
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ea418]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4c03e0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004c050b
test al, al
jne 0x4c03da
sub edx, 2
cmp edx, edi
jne 0x4c03c0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4c0402
lea eax, [edi + 2]
cmp edx, eax
je 0x4c0402
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004c02e1
add esp, 0x10
jmp 0x4c04fc
push esi
lea ecx, [ebp - 0x255]
call fcn.004c050b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c0445
push dword [ebp - 0x25c]
jmp 0x4c03f2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4c0482
cmp word [ebp - 0x226], 0
je 0x4c04a3
cmp word [ebp - 0x226], ax
jne 0x4c0482
cmp word [ebp - 0x224], 0
je 0x4c04a3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004c02e1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4c04ef
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4c045c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4c04d7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4c04fc
push 0x4c0530
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004b7260
add esp, 0x10
jmp 0x4c04cc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004961ed
leave
ret
Function at 0x4c1547
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4c15e4
push ebx
push esi
call fcn.004c1635
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004c144b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c1591
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c15e3
push edi
push eax
call fcn.00460010
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4c15b1
call fcn.00460060
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c15e2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004c144b
add esp, 0x20
test eax, eax
jne 0x4c15d0
push edi
call fcn.00460060
jmp 0x4c15d8
push ebx
call fcn.00460060
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4c15e7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4c15f8
pop esi
ret
push ebx
push edi
push esi
call fcn.004c1635
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00460010
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c1620
push ebx
push esi
push edi
call fcn.0049d740
add esp, 0xc
push 0
call fcn.00460060
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4c1677
Capabilities:
Set environment variable

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

Function at 0x4c3b8c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ea418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4c3bcf
call fcn.004ae6fa
mov dword [eax], 0xf
call fcn.004ae6e7
mov dword [eax], 0xd
call fcn.004af7c0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004961ed
leave
ret
test eax, eax
jne 0x4c3bd6
inc eax
jmp 0x4c3bc3
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4c3bc1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4c3bc3
Function at 0x5ba6d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x105000]
push edi
or ebp, 0xffffffff
jmp 0x5ba6f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5ba6f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ba6e8
mov eax, 1
add ebx, ebx
jne 0x5ba70b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5ba71c
jne 0x5ba73b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ba73b
dec eax
add ebx, ebx
jne 0x5ba728
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5ba700
add ebx, ebx
jne 0x5ba737
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5ba78d
xor ecx, ecx
sub eax, 3
jb 0x5ba753
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5ba7c2
sar eax, 1
mov ebp, eax
jmp 0x5ba75e
add ebx, ebx
jne 0x5ba75e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ba72c
inc ecx
add ebx, ebx
jne 0x5ba76c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ba72c
add ebx, ebx
jne 0x5ba779
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5ba76e
jne 0x5ba78a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5ba76e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5ba7ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5ba79e
jmp 0x5ba6ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5ba7ac
add edi, ecx
jmp 0x5ba6ee
pop esi
mov edi, esi
mov ecx, 0x5df1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5ba7ca
cmp byte [edi], 0x1e
jne 0x5ba7ca
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 0x5ba7cf
lea edi, [esi + 0x1b7000]
mov eax, dword [edi]
or eax, eax
je 0x5ba847
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1bd390]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1bd4d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5ba7fc
mov ecx, edi
jns 0x5ba82b
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 + 0x1bd4d4]
or eax, eax
je 0x5ba841
mov dword [ebx], eax
add ebx, 4
jmp 0x5ba819
call dword [esi + 0x1bd4e4]
mov ebp, dword [esi + 0x1bd4d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x5ba87b
sub esp, 0xffffff80
jmp 0x49c26f

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 0x1001d3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1006e288]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
push 0x40
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001d445
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x100
mov esi, eax
lea eax, [ebp - 0x104]
push eax
push 0x400
push esi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1001d425
push esi
push str.error_code__08x
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1001cd70
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push str.VirtualProtect:__s_n
push 2
call fcn.1002d93f
add esp, 4
push eax
call fcn.10005bc0
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10022ad9
mov esp, ebp
pop ebp
ret

Function at 0x10034f3c
Capabilities:
Read file on windows

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

Function at 0x100389c7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10038644
Function at 0x403150
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x403166
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x403181
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push esi
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x401045
cmp dword [ebp - 0x110], 6
ja 0x40103e
jne 0x401045
cmp dword [ebp - 0x10c], 2
jb 0x401045
mov esi, 0x1100
jmp 0x401048
push 8
pop esi
push 0x104
lea eax, [ebp - 0x33c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x33c]
jmp 0x40107d
lea ecx, [eax - 2]
cmp word [ecx], 0x5c
je 0x401087
mov eax, ecx
lea ecx, [ebp - 0x33c]
cmp eax, ecx
ja 0x401072
push str.Tsu.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push 0
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x4010b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str._TsuMainW_8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4010a7
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
jmp 0x4010ad
Function at 0x1000b570
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008438b
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.10078f04
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000b5f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10076d4a
mov eax, dword [eax]
push 0x100a3cb0
push eax
call fcn.10068f74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1007918f
test bl, bl
je 0x1000b5f2
push 0x100a3cb0
lea ecx, [esp + 0xc]
call fcn.1007951f
push 0x100a3cbc
lea ecx, [esp + 0xc]
call fcn.1007951f
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 0x1000b62e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1007918f
jmp 0x1000b6f9
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 0x1000b6b2
lea edx, [esp + 0x7c]
push 0x100a3cb8
push edx
call fcn.10068f74
add esp, 8
test eax, eax
je 0x1000b6b2
lea eax, [esp + 0x7c]
push 0x100a3cb4
push eax
call fcn.10068f74
add esp, 8
test eax, eax
je 0x1000b6b2
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 0x1000b642
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.1007918f
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 0x1000bef0
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 0x1000bf52
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 0x1000bf60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008440b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100af878]
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 0x1000c098
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1000bfc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1007918f
xor eax, eax
jmp 0x1000c10f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.100792cc
push esi
lea ecx, [esp + 0xc]
call fcn.1007955b
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 0x1000c0ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.1000bef0
test eax, eax
jne 0x1000c0ed
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.1000bef0
test eax, eax
jne 0x1000c0ed
lea eax, [esp + 0x14]
push 0x100a3ccc
push eax
call fcn.1006a0c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000c0cc
lea ecx, [esp + 0x14]
push 0x100a3cc8
push ecx
call fcn.1006a040
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000c0cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1000c0cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1007927c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1000bfde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1007918f
xor eax, eax
jmp 0x1000c10f
mov byte [esi], 0
push 0x100a3cc4
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.1007918f
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 0x1001b110
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 0x1001b17e
cmp si, 0x69
ja 0x1001b17e
add esi, 0xffd0
cmp si, 0x11
je 0x1001b14e
push 0x11
call edi
test ax, ax
jge 0x1001b14e
or esi, 0x2000
cmp si, 0x10
je 0x1001b163
push 0x10
call edi
test ax, ax
jge 0x1001b163
or esi, 0x4000
cmp si, 0x12
je 0x1001b178
push 0x12
call edi
test ax, ax
jge 0x1001b178
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1001b18b
mov esi, 0xbd
jmp 0x1001b13f
cmp si, 0x6e
jne 0x1001b198
mov esi, 0xbe
jmp 0x1001b13f
cmp si, 0x6f
jne 0x1001b139
mov esi, 0xbf
jmp 0x1001b13f

Function at 0x1001c970
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100c0070]
xor edx, edx
cmp eax, edx
jne 0x1001c996
xor eax, eax
mov byte [eax + 0x100bff70], al
inc eax
cmp eax, 0x100
jl 0x1001c97e
mov dword [0x100c0070], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100bff70
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1001ca27
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 0x1001c9fa
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 0x1001c9c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1001caa0
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 0x1001caf3
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 0x1001cada
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