joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420c20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push ecx
mov esi, edx
mov edi, ecx
call fcn.004209c0
add esp, 4
test al, al
jne 0x420c47
push ecx
mov edx, esi
mov ecx, edi
call fcn.00420910
add esp, 4
cmp dword [0x548c5c], 0
mov bl, 1
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jne 0x420c80
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x548c5c], eax
test eax, eax
je 0x420c91
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x548c5c]
cmp dword [ebp - 8], 1
mov ecx, 0x20106
mov eax, 0x20006
cmove eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 0
mov ecx, esi
call fcn.00402c40
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x420cc0
xor bl, bl
jmp 0x420cf6
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
add eax, eax
push eax
call fcn.00402c40
mov ecx, dword [ebp + 8]
push eax
push 1
push 0
call fcn.00402c40
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x420ced
xor bl, bl
jmp 0x420cf6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x420d04
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push ecx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov esi, edx
call fcn.004209c0
add esp, 4
test al, al
jne 0x420d3d
push ecx
mov edx, esi
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00420910
add esp, 4
cmp dword [0x548c5c], 0
mov bl, 1
mov dword [ebp - 4], 0
mov edi, 0x20006
mov dword [ebp - 8], 0
jne 0x420d7b
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x548c5c], eax
test eax, eax
je 0x420d8c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x548c5c]
cmp dword [ebp - 8], 1
mov eax, 0x20106
mov ecx, esi
cmove edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 0
call fcn.00402c40
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x420dba
xor bl, bl
jmp 0x420de6
mov ecx, dword [ebp + 8]
push 4
push dword [ebp + 0xc]
push 4
push 0
call fcn.00402c40
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x420ddd
xor bl, bl
jmp 0x420de6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
test eax, eax
je 0x420df4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4212a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50573c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x541074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 0x14]
mov dword [ebp - 4], 0
push 0x1388
push eax
mov dword [edi], vtable.CNetResManager.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov byte [ebp - 4], 2
cmp dword [ebp + 8], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
je 0x421347
push 0x70
call fcn.004c8893
mov esi, eax
mov dword [ebp - 0x14], esi
sub esp, 0x14
mov byte [ebp - 4], 3
mov ecx, esp
push dword [ebp + 8]
call fcn.00402d60
mov ecx, esi
call fcn.0043be60
mov byte [ebp - 4], 2
mov dword [edi + 0xc], eax
push 0x3c
call fcn.004c8893
add esp, 4
mov dword [ebp + 8], eax
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00439a30
mov dword [edi + 0x10], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x421780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov ebx, ecx
mov dword [ebp - 4], esi
cmp dword [edi + 0x130], esi
je 0x4217b6
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x4217db
mov eax, dword [ecx]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [eax + 0x14]
mov esi, eax
mov dword [ebp - 4], esi
jmp 0x4217db
push edi
call fcn.004219b0
test al, al
jne 0x4217db
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x4217db
mov eax, dword [ecx]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [eax + 0x14]
mov esi, eax
mov dword [ebp - 4], eax
cmp dword [ebx + 0xc], 0
je 0x421837
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x421837
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x421837
cmp eax, 0xffffffff
je 0x421837
mov esi, dword [ebp + 0xc]
xor edi, edi
nop dword [eax]
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
mov eax, dword [ebp + 8]
push esi
add eax, edi
push eax
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp + 0xc]
cmp edi, esi
jae 0x421828
test eax, eax
jne 0x421800
add dword [ebx + 8], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x425840
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x200], edi
jle 0x42588f
nop dword [eax + eax]
mov eax, dword [esi + 0x1fc]
lea edx, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax + edi*4]
push dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp + 0xb], 0
jne 0x4259ee
inc edi
cmp edi, dword [esi + 0x200]
jl 0x425860
sub ebx, 0x100
je 0x425957
sub ebx, 4
je 0x4258fa
sub ebx, 2
jne 0x42594c
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.004e7c9c
mov ecx, dword [esi + 0x44]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push SHCreateMemStream
push edx
push 0x42c4a0
call dword [eax + 0x18c]
mov esi, eax
test esi, esi
je 0x42594c
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx + 0x15c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x48], 0
je 0x42594c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movups xmmword [ebp - 0x10], xmm0
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0xe8]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xec]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x10], eax
call fcn.00432b50
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x48]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x19c]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x42594c
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4259d5
mov eax, dword [ecx]
mov eax, dword [eax + 0x104]
cmp eax, method.ui::ProgressBar.virtual_260
jne 0x4259f9
cmp byte [ecx + 0x325], 0
je 0x4259d5
cmp byte [ecx + 0x326], 0
jne 0x42598b
jmp 0x4259d5
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx]
mov eax, dword [eax + 0x128]
cmp eax, method.ui::ProgressBar.virtual_296
jne 0x425a01
mov al, byte [ecx + 0x320]
not al
and al, 1
test al, al
je 0x4259d5
mov ecx, dword [esi + 0x48]
push str.Edit
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004e1212
add esp, 8
test eax, eax
je 0x4259d5
mov eax, dword [esi + 0x48]
cmp byte [eax + 0x331], 0
jne 0x42594c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0042a640
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call eax
test al, al
je 0x4259d5
jmp 0x42598b
call eax
jmp 0x4259a7
Function at 0x429f40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 8]
mov ebx, eax
mov esi, dword [ebp + 8]
cmp ebx, ecx
je 0x429f70
cmp esi, dword [edi + 0x48]
je 0x429f70
test esi, esi
je 0x429f70
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x48]
cmp esi, eax
je 0x42a075
cmp ebx, dword [edi + 8]
jne 0x429f8c
test esi, esi
jne 0x429f8c
test eax, eax
je 0x42a075
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x429fe0
xorps xmm0, xmm0
mov dword [esp + 0xc], 0x15
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x14], esi
movups xmmword [esp + 0x20], xmm0
call ebx
mov ecx, dword [edi + 0x48]
lea edx, [esp + 0xc]
mov dword [esp + 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x19c]
push ecx
push 0
push 0
push str.killfocus
push dword [edi + 0x48]
mov ecx, edi
call fcn.0042aca0
mov dword [edi + 0x48], 0
test esi, esi
je 0x42a075
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
cmp eax, method.ui::ProgressBar.virtual_28
jne 0x42a07e
mov eax, dword [esi + 0x1b0]
cmp eax, edi
jne 0x42a075
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x104]
call eax
test al, al
je 0x42a075
mov eax, dword [esi]
mov eax, dword [eax + 0x128]
cmp eax, method.ui::ProgressBar.virtual_296
jne 0x42a087
mov al, byte [esi + 0x320]
not al
and al, 1
test al, al
je 0x42a075
xorps xmm0, xmm0
mov dword [edi + 0x48], esi
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x16
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x14], esi
call ebx
mov ecx, dword [edi + 0x48]
lea edx, [esp + 0xc]
mov dword [esp + 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x19c]
push ecx
push 0
push 0
push str.setfocus
push dword [edi + 0x48]
mov ecx, edi
call fcn.0042aca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call eax
jmp 0x429ffe
mov ecx, esi
call eax
jmp 0x42a02b
Function at 0x431f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 8
push ebx
mov ebx, dword [eax + 0x18]
push esi
lea esi, [eax + 8]
mov dword [ebp - 4], ecx
push edi
jb 0x431f4b
mov esi, dword [esi]
xor edx, edx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x431f67
movzx ecx, byte [esi + edx]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x431f56
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x18]
and ecx, edi
lea esi, [ecx*8]
mov ecx, dword [edx + 0xc]
add ecx, esi
cmp dword [ecx + 4], eax
jne 0x431f9d
cmp dword [ecx], eax
jne 0x431f95
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x431fa5
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x431fa5
cmp dword [ecx], eax
jne 0x431fa8
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [edx + 4]
push eax
push esi
call fcn.00431fc0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4328d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, esi
push edi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4328e0
sub eax, edx
xor ecx, ecx
sar eax, 1
mov edx, 0x811c9dc5
lea edi, [eax + eax]
test edi, edi
je 0x432911
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x432900
pop edi
mov eax, edx
pop esi
ret

Function at 0x432b50
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x432b75
or esi, 1
push 1
call edi
test ax, ax
jns 0x432b81
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x432b8d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x432b99
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x436f50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x436f6e
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x436f6e
and byte [eax + 0xc], 0xf9
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 0x10
Function at 0x4386e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x438762
movd xmm1, dword [ebp + 8]
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x52adac]
call fcn.0044ab10
mov ecx, dword [esi + 4]
mov esi, dword [esi + 0x4c]
cmp dword [esi + 4], 0
je 0x438762
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x438741
test al, 8
jne 0x438741
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x438741
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x438741
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x438757
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x4391b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x4bc]
test edi, edi
jne 0x4391dc
mov ecx, dword [esi + 0x3f4]
test ecx, ecx
je 0x4391d4
call fcn.00425810
mov edi, eax
test edi, edi
je 0x439321
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.dwmapi.dll_DwmIsCompositionEnabled]
test eax, eax
sete al
cmp dword [ebp - 4], 0
je 0x439220
test al, al
je 0x439220
test ebx, 0xc00000
je 0x439220
mov ecx, dword [esi + 4]
call fcn.004a2f90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x4c], 0
jne 0x439321
push 0x30
call fcn.004c8893
add esp, 4
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0044a8f0
mov ecx, dword [esi + 0x4b8]
push dword [esi + 4]
mov dword [esi + 0x4c], eax
movss xmm2, dword [ecx + 4]
mov ecx, eax
call fcn.0044aa10
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x43926d
and byte [eax + 0xc], 0xf9
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
mov ecx, dword [esi + 0x4c]
call fcn.0044ba20
push dword [edi + 0x10]
mov ecx, dword [esi + 0x4c]
push dword [edi + 0xc]
call fcn.0044baf0
mov edx, dword [edi + 4]
mov ebx, dword [esi + 0x4c]
mov ecx, dword [sym.imp.USER32.dll_GetParent]
cmp edx, 0x14
ja 0x4392b7
mov eax, dword [ebx + 4]
test eax, eax
je 0x4392b7
test byte [ebx + 0xc], 2
mov byte [ebx + 0xe], dl
je 0x4392b7
push eax
call ecx
push eax
mov ecx, ebx
call fcn.0044ae60
mov ecx, dword [sym.imp.USER32.dll_GetParent]
movzx eax, byte [edi + 0xb]
mov ebx, dword [esi + 0x4c]
cmp eax, 0xff
ja 0x4392e0
mov edx, dword [ebx + 4]
test edx, edx
je 0x4392e0
test byte [ebx + 0xc], 2
mov byte [ebx + 0xd], al
je 0x4392e0
push edx
call ecx
push eax
mov ecx, ebx
call fcn.0044ae60
mov ebx, dword [esi + 0x4c]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x439305
test byte [ebx + 0xc], 2
mov eax, dword [edi + 8]
mov dword [ebx + 0x20], eax
je 0x439305
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, ebx
call fcn.0044ae60
mov eax, dword [esi + 0x4c]
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
push 0
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
push dword [esi + 4]
mov ecx, dword [esi + 0x4c]
call fcn.0044bba0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4398b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4398c9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x439906
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x439902
nop word [eax + eax]
cmp esi, edx
jae 0x439906
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4398f0
cmp esi, edx
jb 0x43990d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x439a30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5069c6
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x541074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 0x14]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
push 0
push 0
push 1
mov byte [ebp - 4], 1
push 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0x14
push 0x14
push 0
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0x138
mov dword [edi + 0x10], eax
call fcn.004c8893
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0043a780
mov dword [edi + 0x38], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43a060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x43a085
push 0
push 0
push esi
push 0x43a180
push 0
push 0
call fcn.004ea340
add esp, 0x18
mov dword [esi + 8], eax
mov ecx, dword [esi + 0x38]
call fcn.0043ae90
test eax, eax
je 0x43a09b
push dword [ebp + 8]
mov ecx, eax
call fcn.0043b240
mov eax, dword [esi + 4]
pop esi
test eax, eax
je 0x43a0aa
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop ebp
ret 4
Function at 0x43c780
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 8], 0
lea eax, [esi + 8]
push edi
mov edi, ecx
mov dword [ebp - 8], edi
jne 0x43c7a3
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x6c], 8
lea eax, [edi + 0x58]
jb 0x43c7b9
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43c8a5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push 0
push 0
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
lea eax, [esi + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c89e
mov eax, dword [esi + 0x38]
inc eax
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c89e
cmp dword [esi + 0x3c], 8
lea ecx, [esi + 0x28]
jb 0x43c841
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c89e
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c89e
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [esi + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c89e
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [esi + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43c8b7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 8]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
lea ecx, [ecx + 0x34]
call fcn.0043ca30
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 8]
push 0
push 0
push 0
inc dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x43c919
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call eax
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call eax
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43c940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 8], 0
lea eax, [ebx + 8]
push esi
mov esi, ecx
jne 0x43c95e
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 4]
push edi
lea edi, [esi + 0x1c]
push edi
lea eax, [eax + ecx*2]
add eax, 0xa
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x6c], 8
lea eax, [esi + 0x58]
jb 0x43c983
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43c9ed
push 0
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 4
lea eax, [ebx + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c9e6
push 0
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebx + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43c9ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 8
lea eax, [ebx + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x43c9e7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4