joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1121d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x11a16ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x274], ecx
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x23
mov dword [ebp - 0x5c], eax
push 1
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x270]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1121dca
xor al, al
jmp 0x1121f7a
call fcn.01122470
movzx eax, al
test eax, eax
jne 0x1121dfa
push 0x105
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1121dfa
xor al, al
jmp 0x1121f7a
push 0xffffffffffffffff
push 0x114ea6c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.01122570
add esp, 0x10
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.010ed370
add esp, 8
mov ecx, eax
call fcn.00f84c40
push eax
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.01122500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.00f84e90
cmp dword [ebp - 0x60], 0
jbe 0x1121ea1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp + eax*2 - 0x272]
cmp ecx, 0x5c
je 0x1121ea1
push 0xffffffffffffffff
push 0x114eb0c
mov edx, 0x105
sub edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
lea ecx, [ebp + eax*2 - 0x270]
push ecx
call fcn.01122500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x274]
add edx, 0x20
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.010ed370
add esp, 8
mov ecx, eax
call fcn.00f84c40
push eax
mov ecx, 0x105
sub ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x60]
lea eax, [ebp + edx*2 - 0x270]
push eax
call fcn.01122500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
call fcn.00f84e90
cmp dword [ebp - 0x60], 0
jbe 0x1121f2a
mov ecx, dword [ebp - 0x60]
movzx edx, word [ebp + ecx*2 - 0x272]
cmp edx, 0x5c
je 0x1121f2a
push 0xffffffffffffffff
push 0x114ebbc
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.01122500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x104
jb 0x1121f37
xor al, al
jmp 0x1121f7a
mov ecx, dword [ebp + 8]
call fcn.01118b20
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0111a380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.01118f80
lea ecx, [ebp - 0x58]
call fcn.01040ca0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x274]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x274]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010c8a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1122000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x11a16ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0x1122026
xor al, al
jmp 0x112223c
lea ecx, [ebp - 0x218]
call fcn.00f850e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.01119310
movzx ecx, al
test ecx, ecx
je 0x11220a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.00f86550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.010ed370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.00f8fd10
lea ecx, [ebp - 0x3c]
call fcn.00f84e90
lea ecx, [ebp - 0x20]
call fcn.01040ca0
lea ecx, [ebp - 0x218]
call fcn.00f84c40
mov dword [ebp - 0x1fc], eax
jmp 0x1122108
push 0x114ec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.01118e60
mov ecx, eax
call fcn.00f8b350
push eax
call fcn.00f8e3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.01040ca0
lea ecx, [ebp - 0x58]
call fcn.01040ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0x1122108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.00f84e90
mov al, byte [ebp - 0x232]
jmp 0x112223c
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
and eax, 4
jne 0x1122131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0x112219b
xor edx, edx
je 0x112217e
lea eax, [ebp - 0x224]
push eax
push str._remove_or_unknown_drive
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.010f4170
mov ecx, eax
call fcn.010ef550
push eax
call fcn.00f816a0
add esp, 8
push eax
call fcn.00f816a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.010f4580
jmp 0x1122131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.00f84e90
mov al, byte [ebp - 0x233]
jmp 0x112223c
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x11221da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.00f84e90
mov al, byte [ebp - 0x234]
jmp 0x112223c
xor edx, edx
je 0x1122217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.010f4170
mov ecx, eax
call fcn.010ef550
push eax
call fcn.00f816a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.010f4580
jmp 0x11221da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.00f84e90
mov al, byte [ebp - 0x235]
jmp 0x112223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010c8a41
mov esp, ebp
pop ebp
ret 8
Function at 0x1122250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x11a16ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.011189b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.0110b8e0
lea ecx, [ebp - 0x144]
call fcn.010eda50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x1122328
xor ecx, ecx
je 0x11222fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.010f4170
mov ecx, eax
call fcn.010ef550
push eax
call fcn.00f816a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.010f4580
jmp 0x11222b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.01122400
lea ecx, [ebp - 0x144]
call fcn.011224d0
lea ecx, [ebp - 0x140]
call fcn.0110f370
mov eax, dword [ebp + 8]
jmp 0x11223e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0x1122338
jmp 0x1122388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010c7a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.010eda10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0x112228b
lea ecx, [ebp - 0x144]
call fcn.010eda50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0111a380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.01118f80
lea ecx, [ebp - 0xe4]
call fcn.01040ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.01122400
lea ecx, [ebp - 0x144]
call fcn.011224d0
lea ecx, [ebp - 0x140]
call fcn.0110f370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010c8a41
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1123a6c
call fcn.010caeef
mov dword [eax], esi
call fcn.010caedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.010c8cab
mov eax, esi
jmp 0x1123ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0x1123a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1123a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010caf02
pop ecx
call fcn.010caedc
mov eax, dword [eax]
jmp 0x1123ac1
test al, 0x10
jne 0x1123abf
test al, 1
je 0x1123abf
test byte [ebp + 0xc], 2
je 0x1123abf
call fcn.010caeef
mov dword [eax], 5
call fcn.010caedc
mov dword [eax], 0xd
jmp 0x1123a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000682c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x10006847
call fcn.100067f1
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 4], esp
je 0x1000687d
push 0x92
push 0x4044b97
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100068b1
push 0x92
push 0x4044b97
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x100068c5
mov esp, ebp
pop ebp
ret 8
Function at 0x1000795a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [0x100409c5]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1000799d
push 0x2b
push 0x4044b2d
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x1003f31c]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.10001043
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.10020930
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100079f0
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10007a26
push 0x84
push 0x4044b2d
push 6
call fcn.1001fa1c
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x10007a42
push eax
mov ebx, eax
call fcn.100014fd
inc eax
push eax
call fcn.1001fa04
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10007a47
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10007a58
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c343
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x1000c378
push 0x12
push 0x403a290
push 6
call fcn.1001fa1c
add esp, 0xc
jmp 0x1000c37d
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c6bd
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
jmp 0x1000c6d2
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esi]
mov dword [esp + 0x18], edi
mov edi, dword [esi + 8]
mov dword [esp + 0x14], edi
mov edi, dword [esi + 0x10]
mov esi, dword [esi + 0x18]
mov dword [esp + 0xc], esi
xor edx, edx
mov dword [esp + 0x1c], edi
mov esi, 0x20
lea edi, [edx + ecx]
xor edi, dword [esp + 0x18]
mov ebx, ecx
shl ebx, 4
add edi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, dword [esp + 0x14]
sub edx, 0x61c88647
xor edi, ebx
add eax, edi
lea edi, [edx + eax]
xor edi, dword [esp + 0x1c]
mov ebx, eax
shl ebx, 4
add edi, ebx
mov ebx, eax
shr ebx, 5
add ebx, dword [esp + 0xc]
dec esi
xor edi, ebx
add ecx, edi
test esi, esi
ja 0x1000c704
mov edx, dword [esp + 0x20]
pop edi
pop esi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x10013420
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x1001345e
push dword [0x10040941]
push 0x3ee8cbd1
call fcn.10013581
mov dword [ebp - 4], eax
mov ebx, dword [0x1004092d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [0x10040985]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.10001043
mov dword [ebp - 8], eax
mov ebx, dword [0x1004092d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 2
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [0x100408f1]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.10001043
mov dword [ebp - 0xc], eax
push dword [0x100408e9]
push 0x52d1ad88
call fcn.10013581
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x10
pushal
xor edx, edx
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edi, [ecx + edx]
xor edi, dword [ebp - 4]
mov ebx, ecx
shl ebx, 4
add edi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, dword [ebp - 8]
sub edx, 0x61c88647
xor edi, ebx
add eax, edi
lea edi, [eax + edx]
xor edi, dword [ebp - 0xc]
mov ebx, eax
shl ebx, 4
add edi, ebx
mov ebx, eax
shr ebx, 5
add ebx, dword [ebp - 0x10]
dec esi
xor edi, ebx
add ecx, edi
test esi, esi
ja 0x10013517
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [edx + 4], ecx
popal
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
jmp 0x1001357b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001361e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x10013647
push dword [0x100408f9]
call fcn.10006b3a
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x4093ac
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10013694
push 0x111
push 0x4037384
push 6
call fcn.1001fa1c
add esp, 0xc
push 1
mov eax, 0x1003f94f
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x4093ac
call fcn.1000bbc8
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100136bf
push ebx
call fcn.1001fa0a
add esp, 4
push 0x80000301
push 0
push 0x89d6f
push 1
mov ebx, 0x198
call fcn.10021080
add esp, 0x10
mov dword [ebp - 0xc], eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x4093ad
call fcn.1000bbc8
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10013703
push ebx
call fcn.1001fa0a
add esp, 4
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0x4093ac
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10013740
push 0x1be
push 0x4037384
push 6
call fcn.1001fa1c
add esp, 0xc
push dword [ebp - 4]
call fcn.10006d4d
jmp 0x10013758
mov esp, ebp
pop ebp
ret

Function at 0x100137de
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
jmp 0x10013823
push ebx
push edi
push esi
push ecx
push dword [0x10040941]
push 0x50b8c44c
call fcn.10013581
mov dword [ebp - 4], eax
mov ebx, dword [0x1004093d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
mov ebx, dword [0x1004093d]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 2
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
push dword [0x100408e9]
push 0x1ce85cf5
call fcn.10013581
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x18], 0x8dde6e40
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edi, [ecx + edx]
xor edi, dword [ebp - 0xc]
mov ebx, ecx
shl ebx, 4
add edi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, dword [ebp - 0x10]
add edx, 0x61c88647
xor edi, ebx
sub eax, edi
lea edi, [eax + edx]
xor edi, dword [ebp - 4]
mov ebx, eax
shl ebx, 4
add edi, ebx
mov ebx, eax
shr ebx, 5
add ebx, dword [ebp - 8]
dec esi
xor edi, ebx
sub ecx, edi
test esi, esi
ja 0x100138ad
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c663
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 0
jne 0x1001c6a7
push 0
mov ebx, 0x108
call fcn.10023460
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1001c6a1
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.1001c73b
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x1001c6ed
push 0xb6
push 0x4044d45
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1001c721
push 0xb6
push 0x4044d45
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
mov eax, 0
sete al
jmp 0x1001c735
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001d71f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x1001d748
push dword [0x100408f9]
call fcn.10006b3a
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x49338f
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001d795
push 0x118
push 0x4039d40
push 6
call fcn.1001fa1c
add esp, 0xc
push 0xa0000101
push 0
push 0x10040376
push 1
mov ebx, 0x198
call fcn.10021080
add esp, 0x10
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0xc]
push eax
push 0x49338f
call fcn.1000bbc8
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1001d7d9
push ebx
call fcn.1001fa0a
add esp, 4
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push 0x49338f
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001d816
push 0x197
push 0x4039d40
push 6
call fcn.1001fa1c
add esp, 0xc
push dword [ebp - 4]
call fcn.10006d4d
jmp 0x1001d82e
mov esp, ebp
pop ebp
ret

Function at 0x10020490
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100204f9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.1001fde0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x10021160
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1002117e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10021173
pop esi
ret
Function at 0x10022140
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.1002d42e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x100221aa
push esi
lea edi, [eax + 0x400]
call fcn.1002d43c
push edi
call fcn.1002d42e
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x1002217a
push esi
xor edi, edi
call dword [0x10040f8c]
add esp, 4
test eax, eax
je 0x100221c6
push eax
push esi
call fcn.10024a50
add esp, 8
mov edi, eax
push esi
call fcn.1002d43c
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10022550
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x10022591.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x10022591.2
jmp dword [eax*4 + 0x1002261c]
mov word [esp + 0x48], di
jmp 0x100225ca
mov word [esp + 0x48], 2
jmp 0x100225ca
mov word [esp + 0x48], 3
jmp 0x100225ca
mov word [esp + 0x48], 4
jmp 0x100225ca
mov word [esp + 0x48], 7
jmp 0x100225ca
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x10022614
cmp dword [esp + 0x70], edi
je 0x10022600
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret