joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d4dd
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4acb59
call fcn.00452ffc
sub esp, 0x110
mov eax, dword [0x4d0954]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x49d598
push ebx
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov ebx, 0xff
jmp 0x49d561
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402009
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.0049d4dd
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402342
cmp byte [ebp - 0x11], 0
jne 0x49d576
push ebx
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x49d525
cmp esi, 0x103
pop edi
pop ebx
je 0x49d588
cmp esi, 0x3f2
jne 0x49d598
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
call fcn.00450999
leave
ret 8

Function at 0x49de79
Capabilities:
Get thread local storage value

Disassembly:
push dword [ecx]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x49de96
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 8]
jge 0x49de96
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
jmp 0x49de98
xor eax, eax
ret 4

Function at 0x49e013
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x49e047
call fcn.00469f3f
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x49e0af
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x49e0dd
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x49e178
cmp dword [esp + 0x14], ebx
je 0x49e178
jmp 0x49e11a
push 0x10
call fcn.0049dd3e
cmp eax, ebx
je 0x49e0f3
mov ecx, eax
call fcn.0049dfe0
mov esi, eax
jmp 0x49e0f5
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x49e131
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.kernel32.dll_LocalAlloc]
jmp 0x49e141
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.kernel32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x49e14d
call fcn.00469f3f
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.00453190
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x49e77f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4d0954]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004535f8
mov esi, eax
test esi, esi
pop ecx
je 0x49e81d
push esi
call dword [sym.imp.kernel32.dll_lstrlen]
add eax, esi
je 0x49e813
push ebx
push edi
mov edi, 0x80000000
and byte [eax], 0
push eax
push esi
call fcn.00454647
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x49e811
push 0x105
lea eax, [ebp - 0x10c]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegEnumKeyA]
test eax, eax
jne 0x49e7ee
inc ebx
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
jne 0x49e811
push esi
push edi
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.00452059
test eax, eax
pop ecx
pop ecx
jne 0x49e7b5
pop edi
pop ebx
push esi
call fcn.00450a60
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.00450999
leave
ret 4
Function at 0x4e448c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x4e44f8
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x4e4541
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00507850
add esp, 8
test eax, eax
jne 0x4e453f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4e4543
jmp 0x4e44ef
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4fa77a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4fa78a
xor eax, eax
jmp 0x4fa953
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4fa90b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x521bbc]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x4fa793
cmp dword [ebp + 0x10], 0
je 0x4fa94d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x521bbc]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x4fa911
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x403370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x814
push 0
push 0x40d910
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
xor eax, eax
mov dword [0x40e130], 0
mov word [0x40e13c], ax
mov byte [0x40d50a], al
mov byte [0x40d50c], al
mov word [0x40e140], ax
mov dword [0x40e134], eax
mov byte [0x40d50b], al
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [0x40e15c]
call esi
test eax, eax
je 0x4033e5
cmp dword [ebp - 0xc], 0
ja 0x4033c7
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00407427
mov esp, ebp
pop ebp
ret
Function at 0x405cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov ecx, 4
push esi
push edi
mov dword [ebp - 8], ebx
mov esi, dword [ebx]
movzx eax, byte [ebx + 0x10]
mov dword [ebp - 4], ecx
mov byte [esi], al
movzx eax, byte [ebx + 0x12]
mov byte [esi + 2], al
movzx eax, byte [ebx + 0x13]
mov byte [esi + 3], al
mov al, byte [ebx + 0x14]
test al, al
je 0x405d0a
movzx eax, al
push eax
mov eax, dword [ebx + 0xc]
push dword [eax + 0x808]
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [ebx + 0x14]
add esp, 0xc
add ax, 4
movzx ecx, ax
mov dword [ebp - 4], ecx
movzx eax, cx
or edx, 0xffffffff
mov dword [ebp - 0xc], eax
mov edi, esi
test eax, eax
je 0x405d45
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, eax
xor edx, dword [ecx*4 + 0x40e5a0]
sub ebx, 1
jne 0x405d20
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
not edx
add ecx, 4
mov dword [eax + esi], edx
mov edx, dword [ebx]
mov dword [ebp - 4], ecx
add edx, 0x2fd
je 0x405d99
test esi, esi
je 0x405d99
movzx ebx, cx
lea eax, [edx + 1]
add ebx, esi
mov cl, 1
mov dword [ebp - 0xc], ebx
cmp esi, ebx
jae 0x405d91
nop
mov bl, byte [esi]
test bl, bl
jne 0x405d7a
mov byte [edx], cl
jmp 0x405d86
mov byte [eax], bl
inc cl
inc eax
cmp cl, 0xff
jne 0x405d8b
mov byte [edx], cl
mov edx, eax
mov cl, 1
inc eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x405d70
mov ebx, dword [ebp - 8]
mov byte [edx], cl
mov ecx, dword [ebp - 4]
pop edi
lea eax, [ecx + 1]
mov word [ebx + 6], ax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40e130]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], 0
mov ebx, edx
mov dword [0x40e58c], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test al, 0x20
jne 0x406f7d
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [esi + ecx]
push eax
push dword [0x40e15c]
call edi
cmp eax, 1
jne 0x406fb2
mov ecx, dword [ebp - 0xc]
inc esi
cmp esi, ebx
jl 0x406f57
mov eax, dword [0x40e130]
xor esi, esi
mov dword [0x40e58c], 1
test al, 0x20
jne 0x406fbf
nop dword [eax]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
add eax, esi
push eax
push dword [0x40e15c]
call edi
cmp eax, 1
jne 0x406fb2
inc esi
cmp esi, eax
jl 0x406f90
jmp 0x406fbf
push str.Error:_Command_processing_failed_n
call fcn.00401080
add esp, 4
mov dword [0x40e58c], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407427
mov esp, ebp
pop ebp
ret

Function at 0x407050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, ecx
mov dword [0x40e58c], 1
xor esi, esi
mov dword [ebp - 0xc], eax
test byte [0x40e130], 0x20
push edi
mov edi, edx
je 0x40709b
cmp dword [ebp + 8], esi
jne 0x40709b
pop edi
mov dword [0x40e58c], esi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407427
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 8]
add eax, esi
push ecx
push 1
push eax
push dword [0x40e15c]
call ebx
cmp eax, 1
jne 0x4070c6
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, edi
jl 0x4070a2
xor eax, eax
jmp 0x4070d8
push str.Error:_Command_processing_failed_n
call fcn.00401080
add esp, 4
mov eax, 1
mov dword [0x40e58c], 0
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407427
mov esp, ebp
pop ebp
ret
Function at 0x407100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x40d118]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x40e588]
push edi
mov dword [ebp - 0x14], ecx
xor edi, edi
mov byte [ebp - 0xd], al
nop dword [eax]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [0x40e15c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
je 0x4071a9
cmp byte [0x40e13e], 0
je 0x407187
movzx eax, byte [ebp - 5]
push eax
push str.0x_02X_n
call fcn.00401080
mov al, byte [0x40e59c]
add esp, 8
inc al
mov byte [0x40e59c], al
cmp al, 8
jb 0x407187
mov byte [0x40e13e], 0
mov byte [0x40e59c], 0
mov edx, dword [ebp - 0x14]
mov cl, byte [ebp - 5]
movzx eax, di
mov byte [eax + edx], cl
test cl, cl
je 0x4071e3
mov eax, dword [0x40e588]
inc edi
test eax, eax
mov esi, 1
cmovne esi, eax
jmp 0x4071b8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 0xd], 0
jne 0x4071b8
dec esi
test esi, esi
jle 0x4071f9
mov eax, 0xff
cmp di, ax
jbe 0x407130
mov word [ebx], di
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407427
mov esp, ebp
pop ebp
ret
mov word [ebx], di
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407427
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xa
mov word [ebx], di
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00407427
mov esp, ebp
pop ebp
ret
Function at 0x407220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x14]
push esi
push str..COM_d
xorps xmm0, xmm0
push 0x10
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.00406ef0
add esp, 0x10
lea eax, [ebp - 0x14]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x40e15c], eax
cmp eax, 0xffffffff
jne 0x40727c
push esi
push str.Failed_to_connect_COM_d_port__n
jmp 0x40738d
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
xorps xmm0, xmm0
push ecx
push eax
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
jne 0x4072cf
push esi
push str.Failed_to_connect_COM_d_port__n
call fcn.00401080
add esp, 8
push dword [0x40e15c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407427
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
and eax, 0xffffffdf
mov dword [ebp - 0x34], 0x1c200
or eax, 0x10
mov word [ebp - 0x26], 8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push dword [0x40e15c]
mov byte [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x4072a4
push 5
push dword [0x40e15c]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
test eax, eax
jne 0x407330
push str.Purge_Comm_for_hComm1_Failed._n
call fcn.00401080
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407427
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0xa
push eax
push dword [0x40e15c]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x3c], 0x32
mov dword [ebp - 0x40], 0xa
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
je 0x4072a4
push 1
push dword [0x40e15c]
call dword [sym.imp.KERNEL32.dll_SetCommMask]
push esi
test eax, eax
je 0x4072a5
mov dword [0x40e584], esi
push str.Successful_connected_to_COM_d_port__n
call fcn.00401080
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x15]
push eax
push dword [0x40e15c]
call esi
test eax, eax
je 0x4073be
cmp dword [ebp - 0x1c], 0
ja 0x4073a0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00407427
mov esp, ebp
pop ebp
ret

Function at 0x407d99
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407dd8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407dd8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407dd8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407dd8
cmp dword [ecx + 0x74], 0xe
jbe 0x407dd8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49ec57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esi], 0x4b84e8
mov dword [esi + 0x34], vtable.FObj::IObject.0
mov dword [esi + 0x38], edi
mov dword [esp + 0x18], edi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esi + ecx], vtable.CEventLogCache.0
mov eax, dword [edx]
push eax
mov dword [esp + 0x10], 1
mov dword [esi + 4], eax
call ebx
push 0x4d9f40
mov dword [esp + 0x1c], 1
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], 0x4d9f40
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 0x1f
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
pop edi
mov dword [esi + 0x30], 0x80
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x401180
Capabilities:
Access the windows event log
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a17db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
mov dword [ebp - 0x10], esp
mov ebx, ecx
je 0x4011c8
push 0
push 0x11
push str..EventLog.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
mov eax, dword [ebx]
add eax, 0xc
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
mov dword [edi], eax
setne al
movzx ecx, al
push ecx
call fcn.00401790
mov dword [ebp - 4], 0
mov edx, dword [0x4da0cc]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test eax, eax
jne 0x401208
mov esi, 0x4d79e4
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0x44
mov ecx, esi
call edx
test eax, eax
jne 0x40121c
call fcn.0041cdf0
add eax, 8
mov dword [eax - 8], esi
jne 0x401229
call fcn.0041cdf0
mov dword [ebp - 0x14], eax
push eax
mov edx, ebx
mov byte [ebp - 4], 1
call fcn.00401000
mov esi, eax
mov byte [ebp - 4], 0
test esi, esi
je 0x401253
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi + 4]
mov dword [edi + 4], esi
test eax, eax
je 0x401281
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
add esi, eax
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x401281
test esi, esi
je 0x401281
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4