joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a70
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.004043fc
test esi, esi
jne 0x402aa6
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.004044ec
jmp 0x402ac4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402924
mov edi, eax
test esi, esi
je 0x402ac4
cmp dword [ebx], 0
je 0x402ac4
dec esi
jmp 0x402aad
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034dc
Capabilities:
Query or enumerate registry value

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

Function at 0x4041fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x437044], 0
je 0x40425d
cmp word [0x437218], 0xd7b2
jne 0x404225
cmp dword [0x437220], 0
jbe 0x404225
mov eax, 0x437214
call dword [0x437230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x435070
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 0x404284
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x435030], 0
jne 0x404279
push 0
push 0x435068
push 0x435070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4043b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402708
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x437045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404378
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405690
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 0x4058c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405713
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4058c0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405713
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4058dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40579c
xor eax, eax
push ebp
push 0x405795
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004054d8
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 0x40577a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4058fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40577a
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 0x40579c
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 0x4058b6
cmp byte [ebp - 0xd], 0
jne 0x4057e3
cmp byte [ebp - 0x12], 0
je 0x4058b6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4057fc
dec ebx
cmp byte [ebx], 0x2e
je 0x40580b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4057fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4058b6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405848
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 0x4058b6
cmp byte [ebp - 0xd], 0
je 0x4058b6
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 0x4058b6
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 0x405f58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405fbe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040466c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fa8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fc5
lea eax, [ebp - 0x10]
call fcn.004043fc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004048bc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407e15
test al, 0x10
jne 0x407e19
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a8e0
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 0x40a919
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044ec
jmp 0x40a922
mov eax, ebx
mov edx, esi
call fcn.00404450
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a92c
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 0x40a94d
mov al, byte [esp]
jmp 0x40a94f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40afd4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ae4c
mov eax, dword [0x436034]
cmp byte [eax], 0
je 0x40b050
mov eax, dword [0x435db8]
call fcn.00402e14
call fcn.00402850
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.0040804c
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 0x40b098
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b086
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x435d58]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x437660]
call fcn.0040549c
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 0x40bda8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40be0c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040466c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407a7c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be13
lea eax, [ebp - 0xc]
call fcn.004043fc
ret

Function at 0x4186dc
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.00418508
dec esi
jne 0x4186fe
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x428ee8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x428ef0
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4290e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4290f8
mov eax, esi
call fcn.00426d74
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404450
lea ecx, [ebp - 0x10]
mov edx, 0x42910c
mov eax, esi
call fcn.00426d74
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404450
lea ecx, [ebp - 0x14]
mov edx, 0x429124
mov eax, esi
call fcn.00426d74
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404450
lea ecx, [ebp - 0x18]
mov edx, 0x429140
mov eax, esi
call fcn.00426d74
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404450
lea ecx, [ebp - 0x1c]
mov edx, 0x42915c
mov eax, esi
call fcn.00426d74
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404450
lea ecx, [ebp - 0x24]
mov edx, 0x429174
mov eax, esi
call fcn.00426d74
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040769c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00407a7c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x42918c
mov eax, esi
call fcn.00426d74
mov eax, dword [ebp - 0x28]
call fcn.0041f9e8
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x42919c
mov eax, esi
call fcn.00426d74
mov eax, dword [ebp - 0x2c]
call fcn.0041f9e8
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4291b4
mov eax, esi
call fcn.00426d74
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00407a7c
inc eax
je 0x429085
lea ecx, [ebp - 0x34]
mov edx, 0x4291b4
mov eax, esi
call fcn.00426d74
mov eax, dword [ebp - 0x34]
call fcn.00407a40
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00408f18
fstp qword [ebp - 0x3c]
wait
call fcn.0040927c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4290a0
lea ecx, [ebp - 0x40]
mov edx, 0x4291b4
mov eax, esi
call fcn.00426d74
mov eax, dword [ebp - 0x40]
call fcn.0041f9e8
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4291c4
mov eax, esi
call fcn.00426d74
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4290e9
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404420
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404420
ret
Function at 0x42fe74
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x42fece
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0042fe64
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0041e638
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0041e238
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fed5
lea eax, [ebp - 4]
call fcn.004043fc
ret
Function at 0x433220
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4333fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x4333d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ef4
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 0x101
mov word [ebp - 0x30], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, edi
call fcn.004048bc
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, ebx
call fcn.004048bc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x4333b0
xor eax, eax
push ebp
push 0x4333a9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004043fc
push 0
lea eax, [ebp - 0xc]
push eax
push 0xff
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0xc], 0
jbe 0x433366
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x170], 0
lea eax, [ebp - 0x174]
lea edx, [ebp - 0x170]
mov ecx, pe_nt_image_headers32
call fcn.0040466c
mov edx, dword [ebp - 0x174]
lea eax, [ebp - 0x10]
call fcn.004046c4
test bl, bl
je 0x433370
cmp dword [ebp - 0xc], 0
jne 0x433310
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
mov dword [esi], eax
push esi
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4333b0
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4333d9
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404450
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x43340c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4334b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x105
mov eax, ebx
call fcn.00402708
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x433498
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
je 0x433482
lea eax, [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00403144
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
call fcn.00404660
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x4334cc
call fcn.00404708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43349f
mov eax, dword [ebp - 4]
call fcn.00402728
ret
Function at 0x1008a746
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027900
push 0x100278f8
push 0x100252a8
push 0x1e
call fcn.1008a610
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008a77a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009e188]
call esi
jmp 0x1008a780
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1008a7c4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027910
push 0x10027908
push 0x100252cc
push 0x20
call fcn.1008a610
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008a7fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1009e188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1008df86
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 0x1008e023
push ebx
push esi
call fcn.1008df4f
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.1008cd25
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008dfd0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008e022
push edi
push eax
call fcn.1008830b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008dff0
call fcn.100884e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008e021
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1008cd25
add esp, 0x20
test eax, eax
jne 0x1008e00f
push edi
call fcn.100884e0
jmp 0x1008e017
push ebx
call fcn.100884e0
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 0xc1a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c1a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc1a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1a06a
add dl, dl
jne 0xc1a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1a0dc
xor eax, eax
add dl, dl
jne 0xc1a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc1a17d
add dl, dl
jne 0xc1a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc1a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc1a075
mov eax, 1
add dl, dl
jne 0xc1a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc1a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc1a0e1
sub eax, ebx
mov ebx, 1
jne 0xc1a128
mov ecx, 1
add dl, dl
jne 0xc1a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc1a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc1a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc1a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc1a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc1a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc1a136
cmp eax, 0x7d00
jae 0xc1a16d
cmp eax, 0x500
jb 0xc1a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc1a075
cmp eax, 0x7f
ja 0xc1a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc1a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc1a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc1a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4016e0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xf0000000
push 0x18
push 0
push 0
push 0x40a7a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
pop ebp
ret

Function at 0x401700
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov byte [ebp - 0x20], 8
mov byte [ebp - 0x1f], 2
mov dword [ebp - 0x1c], 0x6801
cmp dword [ebp + 0x18], 0x10
jae 0x401746
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x2c], ecx
jmp 0x40174d
mov dword [ebp - 0x2c], 0x10
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [0x40a7a0]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4017d6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 1
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x21], al
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, byte [ebp - 0x21]
mov esp, ebp
pop ebp
ret