joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ff40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov esi, 1
mov dword [ebp - 0x10], 0
push 1
push 0x50dc30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ffc3
mov eax, 0x51eb851f
imul esi
sar edx, 5
imul ecx, edx, 0xffffff9c
add ecx, esi
jne 0x40ffc3
cmp esi, 0x15f90
jl 0x40ffba
cmp esi, 0x1d4c0
jge 0x40ff97
mov eax, 0x32
jmp 0x40ffbc
cmp esi, 0x2bf20
jge 0x40ffa6
mov eax, 0x64
jmp 0x40ffbc
mov eax, 0x1482
cmp esi, 0x57d78
jl 0x40ffbc
mov eax, 0xfa
jmp 0x40ffbc
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ffd3
inc esi
cmp esi, 0x57e40
jl 0x40ff58
mov eax, dword [ebp - 4]
test eax, eax
je 0x40ffed
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0043a240
add esp, 4
mov eax, dword [0x50dc34]
test eax, eax
jne 0x410023
cmp dword [0x50acc0], 1
je 0x410104
xor edi, edi
xor esi, esi
call fcn.0040fef0
mov dword [0x50dc34], 1
cmp dword [0x50acc0], 1
je 0x4100ec
mov dword [0x50dc30], 0
push dword [0x50dc2c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x410079
mov eax, dword [ebp + 8]
mov dword [eax], esi
cmp dword [0x50acc0], 1
je 0x41005c
xor eax, eax
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push 1
push 2
call fcn.0047f5e0
push 1
push 0x16
mov dword [esi + 0x64], eax
call fcn.0047f5e0
add esp, 0x10
mov dword [esi + 0x68], eax
jmp 0x410050
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00431e20
add esp, 0xc
test eax, eax
je 0x4100a0
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x50ac1c]
mov dword [eax + edx - 4], ecx
mov esi, dword [edx + 0x50ac18]
mov dword [eax + edx - 8], esi
mov edi, dword [edx + 0x50ac14]
mov dword [eax + edx - 0xc], edi
mov ecx, dword [edx + 0x50ac10]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x4100a8
push dword [ebp - 0x10]
push dword [0x50dc2c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [ebp - 0x10]
jmp 0x410042
push esi
push 2
call fcn.0047f5e0
push edi
push 0x16
call fcn.0047f5e0
add esp, 0x10
jmp 0x410023
push 1
push 2
call fcn.0047f5e0
mov esi, eax
push 1
push 0x16
call fcn.0047f5e0
mov edi, eax
add esp, 0x10
jmp 0x410007
Function at 0x432c10
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x433a60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp eax, 0xfffffffa
mov dword [ebp - 8], esi
mov esi, ecx
mov dword [ebp - 4], eax
lea ecx, [eax + 5]
jg 0x433a78
mov ecx, eax
mov eax, 0xfb93e673
mov dword [ebp - 0x10], ebx
mov ebx, edx
mul ecx
shr edx, 9
mov dword [ebp - 0xc], edi
imul edi, edx, 0xfffffdf7
lea edx, [ecx + edi]
lea eax, [ecx + edi + 0x69]
mov ecx, dword [0x50acc0]
mov dword [ebx], eax
cmp ecx, 2
jge 0x433ad3
lea edi, [edx*4 + 0x1a4]
lea edx, [edi*8]
sub edx, edi
mov edi, dword [edx + 0x50e4c4]
test edi, edi
jne 0x433b5c
mov dword [edx + 0x50e4c4], 1
mov eax, dword [ebx]
jmp 0x433b5c
lea eax, [edx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x50e4c4]
push ecx
call fcn.00410180
add esp, 4
test eax, eax
jne 0x433b54
mov edx, dword [ebx]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
cmp dword [edx + 0x50e4c0], 0
je 0x433bcc
mov dword [edx + 0x50e4c4], 0
mov edx, dword [ebx]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x50e4c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebx]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x50e4c4]
push ecx
call fcn.00410180
add esp, 4
mov ecx, dword [0x50acc0]
mov eax, dword [ebx]
cmp ecx, 1
je 0x433bad
mov edx, dword [ebp + 0x14]
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
mov ecx, dword [eax + 0x50e4d8]
xor eax, eax
mov dword [esi], ecx
test ecx, ecx
je 0x433ba5
mov ebx, dword [ebp - 4]
cmp ebx, dword [ecx + 0x108]
jbe 0x433b94
mov eax, ecx
mov ecx, dword [ecx + 0x28]
test ecx, ecx
mov dword [esi], ecx
jne 0x433b81
mov dword [edx], eax
xor eax, eax
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [edx], 0
jmp 0x433b96
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x50e4d0]
push eax
call fcn.00410130
add esp, 4
mov eax, dword [ebx]
jmp 0x433b61
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
mov ecx, dword [ebx]
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x50e4c0], edx
mov dword [ecx + 0x50e4c4], 0
jmp 0x433b1b
Function at 0x435640
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x43a240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
call fcn.00439fe0
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [0x518340], 0
jne 0x43a269
test ebx, ebx
je 0x43a261
mov eax, dword [ebx]
jmp 0x43a263
xor eax, eax
push eax
call fcn.0047e260
test ebx, ebx
je 0x43a271
mov eax, dword [ebx]
jmp 0x43a273
xor eax, eax
push eax
call fcn.004d2950
add esp, 4
jmp 0x43a259
Function at 0x43a860
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x7c]
test esi, esi
mov dword [ebp - 0xc], edi
je 0x43aa1c
mov edx, dword [0x50acc0]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x5129a8]
jge 0x43a8af
mov eax, dword [ebx]
test eax, eax
jne 0x43a8f0
mov dword [edi + 0x5129a8], 1
jmp 0x43a8f0
push ebx
call fcn.00410180
add esp, 4
test eax, eax
jne 0x43a8ea
cmp dword [edi + 0x5129a4], 0
je 0x43a9fc
mov dword [edi + 0x5129a8], 0
push 0xffffffffffffffff
push dword [edi + 0x5129a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.00410180
add esp, 4
mov edx, dword [0x50acc0]
cmp edx, 1
je 0x43a9e8
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x43a95f
mov eax, dword [0x50acc0]
cmp eax, 1
je 0x43a944
cmp eax, 2
jge 0x43a91f
mov dword [edi + 0x5129a8], 0
jmp 0x43a935
mov dword [edi + 0x5129a8], 0
push dword [edi + 0x5129a4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x5129b8]
push dword [edi + 0x5129b4]
call fcn.00410160
add esp, 8
mov eax, dword [0x50acc0]
jmp 0x43a90e
mov edx, dword [esi]
test edx, edx
je 0x43a96b
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x43a976
mov dword [eax], edx
jmp 0x43a97c
mov dword [edi + 0x5129a0], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x50acc0]
cmp eax, 1
je 0x43a9cd
cmp eax, 2
jge 0x43a9a1
mov dword [edi + 0x5129a8], 0
jmp 0x43a9b7
mov dword [edi + 0x5129a8], 0
push dword [edi + 0x5129a4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00431ee0
push esi
call fcn.00431ee0
add esp, 8
jmp 0x43a935
push dword [edi + 0x5129b8]
push dword [edi + 0x5129b4]
call fcn.00410160
add esp, 8
mov eax, dword [0x50acc0]
jmp 0x43a990
lea eax, [edi + 0x5129b4]
push eax
call fcn.00410130
add esp, 4
jmp 0x43a8f9
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x5129a4], eax
mov dword [edi + 0x5129a8], 0
jmp 0x43a8d3
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4447f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x4447fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], edi
mov edi, edx
mov dword [ebp - 4], esi
mov esi, ecx
mov dword [eax], 0
call fcn.0040c0e0
cmp eax, 1
jle 0x444831
mov eax, dword [ebp + 0x24]
cmp dword [eax + 0x20], 0xfffffffc
je 0x4449e8
cmp dword [0x518340], 0
je 0x4448e9
cmp dword [ebp + 0x20], 2
je 0x44484a
cmp dword [ebp + 0x20], 1
jne 0x444859
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x444869
cmp dword [ebp + 0x20], 0xfffffffa
je 0x4449bc
cmp dword [ebp + 0x20], 0
je 0x4449c9
mov dword [ebp - 0x14], eax
xor edx, edx
cmp dword [ebp + 0x18], 0
je 0x44489d
cmp dword [ebp + 0x1c], 0
je 0x44489d
push dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
call fcn.004d2700
push dword [ebp - 0x14]
call fcn.004d2870
mov edx, dword [ebp - 0x18]
add esp, 8
test edx, edx
je 0x4448e9
push dword [ebp - 0x14]
push esi
push edi
call fcn.004d27a0
mov ebx, eax
add esp, 0xc
mov eax, dword [ebp + 0x14]
cmp ebx, 0xffffffff
mov dword [eax], ebx
je 0x44484a
push 0
push dword [ebp - 0x14]
push 2
push 0x4ee450
call fcn.004d2760
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov byte [ebx + edi], 0xa
mov ebx, dword [ebp - 8]
inc dword [eax]
mov eax, 1
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0x24], 0
mov dword [eax], 0
je 0x44490d
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 0x148]
test eax, eax
jne 0x444912
mov eax, 0x20000
cmp esi, eax
jbe 0x44498e
cmp dword [ebp + 0x20], 0
je 0x44498e
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x444930
mov eax, dword [ebp + 0x24]
mov edx, dword [eax + 0x148]
test edx, edx
jne 0x444935
mov edx, 0x20000
mov dword [ebp - 0x14], ebx
mov ebx, edx
push 0
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44497c
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
add edi, ecx
sub esi, ecx
add dword [edx], ecx
cmp dword [ebp + 0x24], 0
je 0x444971
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 0x148]
test ecx, ecx
jne 0x444976
mov ecx, 0x20000
cmp esi, ecx
ja 0x44497c
mov ebx, esi
test esi, esi
je 0x4449a5
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x18]
jne 0x4449a5
test eax, eax
jne 0x44493a
jmp 0x4449a5
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
test eax, eax
mov eax, 0
mov ebx, dword [ebp - 8]
setne al
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], ebx
mov edx, 1
jmp 0x44487e
call fcn.004d2990
mov dword [ebp - 0x14], eax
cmp dword [0x518340], 0
je 0x4448a1
mov edx, 1
jmp 0x444878
mov eax, 1
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x447f10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x4d2910
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0x28f
mov esp, ebp
pop ebp
jmp fcn.0040b430
Function at 0xf40550
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf4055a
pushal
call 0xf40560
pop ebp
sub ebp, 0x10
sub ebp, 0xb40550
jmp 0xf40576
mov eax, 0xb40550
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b8
mov edx, 0x709bf01e
xor byte [eax], dl
inc eax
dec ecx
jne 0xf4058d
jmp 0xf405a0
xchg ebp, eax
rcl dword [ebp + 0x1e1e2297], cl
push ds
lahf
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x5dca70
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004adeab
mov eax, dword [0x65d240]
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 + 0x6704d0]
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 0x5dcc48
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 0x5dcb97
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x5dcb97
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 0x5dcb75
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 0x5dcaf9
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 0x5dcc01
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 0x5dcc68
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 0x5dcc43
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 0x5dcc68
jmp 0x5dcad2
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.004af350
mov esp, ebp
pop ebp
ret
Function at 0x5dcd00
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004adeab
mov eax, dword [0x65d240]
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 + 0x6704d0]
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 - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x5dceeb
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x5dce36
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x5dce36
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x5dce12
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x5dcd89
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5dcea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
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 0x5dcf0b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x5dcee6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x5dcf0b
jmp 0x5dcd62
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]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af350
mov esp, ebp
pop ebp
ret
Function at 0xd12b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0xd50a0
push edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
dec dword [esi + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi]
call fcn.000d11ad
test eax, eax
jne 0xd1323
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xd1340
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0xd1323
cmp dword [ebp - 0x10], 4
jne 0xd1323
cmp dword [ebp - 8], 1
jne 0xd1323
cmp dword [esi + 0xc], ebx
je 0xd136e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0xd133b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
leave
ret 4
lea eax, [ebp + 8]
push eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], ebx
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
je 0xd1323
mov eax, dword [esi + 4]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
mov dword [eax + 8], ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
jmp 0xd1323
Function at 0xd25d1
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
xor edi, edi
inc ebx
cmp eax, edi
jne 0xd2d32
mov eax, dword [esi + 0x30]
cmp eax, edi
jne 0xd303e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp eax, edi
je 0xd2616
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
cmp dword [esi + 0x34], edi
jne 0xd32d7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
test byte [esi + 0x38], bl
jne 0xd32c4
push ebx
lea ecx, [esi + 0x20]
push ecx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.000d2d61
test eax, eax
jne 0xd25ec
jmp 0xd32bd
shl eax, 0xa
push eax
jmp 0xd2610
xor eax, eax
jmp 0xd262b
push 4
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0xd25ec
jmp 0xd32bd
push ebx
push edi
push ebx
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
jmp 0xd261f
Function at 0x43e000
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
shr ecx, 5
mov eax, edx
xor eax, dword [esp + 4]
inc ecx
cmp edx, ecx
jb 0x43e02f
push ebx
push edi
movzx edi, byte [esi + edx - 1]
mov ebx, eax
shl ebx, 5
add edi, ebx
mov ebx, eax
shr ebx, 2
add edi, ebx
sub edx, ecx
xor eax, edi
cmp edx, ecx
jae 0x43e012
pop edi
pop ebx
ret

Function at 0x43e160
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [eax + 0xc]
mov ebx, dword [esi + 0x30]
mov eax, edi
shr eax, 5
inc eax
xor ebx, edi
mov dword [esp + 0xc], esi
mov ecx, edi
cmp edi, eax
jb 0x43e19f
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + ecx - 1]
mov ebp, ebx
shl ebp, 5
add edx, ebp
mov ebp, ebx
shr ebp, 2
add edx, ebp
sub ecx, eax
xor ebx, edx
cmp ecx, eax
jae 0x43e180
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
dec eax
and eax, ebx
mov ebp, dword [ecx + eax*4]
test ebp, ebp
je 0x43e21b
nop
cmp ebx, dword [ebp + 8]
jne 0x43e214
cmp edi, dword [ebp + 0xc]
jne 0x43e214
mov esi, dword [esp + 0x18]
mov ecx, edi
lea edx, [ebp + 0x10]
cmp edi, 4
jb 0x43e1dc
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x43e210
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x43e1c8
test ecx, ecx
je 0x43e2b8
mov al, byte [edx]
cmp al, byte [esi]
jne 0x43e210
cmp ecx, 1
jbe 0x43e2b8
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x43e210
cmp ecx, 2
jbe 0x43e2b8
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x43e2b8
mov esi, dword [esp + 0xc]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x43e1b0
mov eax, dword [esi + 0x20]
cmp dword [esi + 0x1c], eax
jb 0x43e23b
cmp eax, 0x3ffffffe
jg 0x43e23b
lea edx, [eax + eax]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0043e030
add esp, 8
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x14]
dec ecx
and ecx, ebx
lea ebp, [edx + ecx*4]
mov ecx, dword [eax + 0xc]
lea edx, [edi + 0x11]
push edx
push 4
push 0
push eax
mov dword [esp + 0x24], ecx
call fcn.00451d90
add esp, 0x10
mov esi, eax
test ebp, ebp
jne 0x43e270
mov ebp, dword [esp + 0x14]
add ebp, 0x3c
mov eax, dword [esp + 0x14]
mov cl, byte [eax + 0x34]
mov eax, dword [esp + 0x18]
and cl, 3
mov byte [esi + 5], cl
mov byte [esi + 4], 4
mov edx, dword [ebp]
push edi
push eax
lea ecx, [esi + 0x10]
mov dword [esi], edx
mov dword [ebp], esi
push ecx
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
mov byte [esi + 6], 0
call fcn.004a9e30
mov eax, dword [esp + 0x18]
add esp, 0xc
mov byte [esi + edi + 0x10], 0
inc dword [eax + 0x1c]
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0xc]
mov al, byte [ebp + 5]
mov cl, byte [edx + 0x34]
xor al, 3
xor cl, 3
test al, cl
jne 0x43e2ce
mov byte [ebp + 5], al
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret