joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], ecx
mov edi, dword [esi + 0x18]
test edi, edi
je 0x439753
mov eax, dword [esi + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
lea edx, [eax + ebx]
cmp edx, dword [esi + 0x20]
jb 0x43972d
mov eax, dword [esi + 0x20]
push 0
lea edi, [eax + eax]
cmp edi, edx
cmovbe edi, edx
push edi
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4396df
push edi
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4396f7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 0x300
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.004b6e60
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x18], edi
push ebx
push ecx
lea ecx, [edi + eax]
push ecx
call fcn.004b6e60
add esp, 0xc
mov eax, ebx
add dword [esi + 0x1c], ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
test eax, eax
je 0x439786
push 0
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi + 0xc], 0x1000000
xor ecx, ebp
pop esi
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
Function at 0x439910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x58]
test edx, edx
je 0x43997d
mov ecx, dword [edi + 0x60]
mov esi, dword [edi + 0x5c]
cmp ecx, esi
jae 0x4399cc
sub esi, ecx
lea eax, [ecx + edx]
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
push esi
push eax
push ebx
call fcn.004b6e60
mov ecx, dword [edi + 0x4c]
mov edx, ebx
add dword [edi + 0x60], esi
add dword [edi + 0x48], esi
push esi
call fcn.00439200
add esp, 0x10
mov dword [edi + 0x4c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x50]
test eax, eax
je 0x4399c5
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4399cc
mov esi, dword [ebp - 8]
mov edx, ebx
mov ecx, dword [edi + 0x4c]
add dword [edi + 0x48], esi
push esi
call fcn.00439200
add esp, 4
mov dword [edi + 0x4c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0xc], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
Function at 0x43cf70
Capabilities:
Delete file

Disassembly:
push esi
call fcn.0043f2d0
mov esi, eax
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x43cfaa
add ecx, 0x2c
mov byte [ecx + 0x20], 1
cmp dword [ecx + 0x14], 8
jb 0x43cf8e
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x43cfa3
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x1c], 0
pop esi
ret
Function at 0x466b50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c47d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x40], esi
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
je 0x466bbd
mov dword [esi], 0x51afec
mov dword [esi + 0x84], vtable.log4cxx::helpers::Object.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 1
mov eax, dword [esi]
push edx
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.log4cxx::spi::LoggingEvent.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x84]
mov dword [ecx + esi - 4], eax
lea ecx, [esi + 8]
call fcn.00408370
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov eax, dword [edi + 4]
mov dword [ebp - 4], 1
test eax, eax
je 0x466c01
lock inc dword [eax + 4]
mov eax, dword [edi]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x24], eax
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
push ebx
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov word [esi + 0x34], 0x101
call fcn.00408370
mov byte [ebp - 4], 3
call fcn.004e1e90
push dword [ebp - 0x44]
lea ecx, [esi + 0x58]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
call fcn.0044dcf0
mov eax, dword fs:[0x2c]
lea edx, [esi + 0x64]
mov ecx, dword [0x56049c]
mov dword [ebp - 0x44], edx
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 0x20]
lea edi, [ebx + 8]
test al, 1
jne 0x466ca0
or eax, 1
mov dword [edi], 0
push 0x515400
mov dword [ebx + 0x20], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
call fcn.004b5987
add esp, 4
lea edx, [esi + 0x64]
cmp dword [ebx + 0x18], 0
je 0x466cb0
mov ecx, edx
jmp 0x466d60
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.0x_.8x
lea eax, [ebp - 0x24]
push 0x14
push eax
call fcn.004e2500
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x3c], 0
add esp, 0x10
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x3c], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466cf0
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004124d0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push edi
push eax
call fcn.00468290
mov edx, dword [ebp - 0x28]
add esp, 8
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x466d4b
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x466d41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x466d86
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov dword [ebp - 0x2c], 0
lea ecx, [esi + 0x64]
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
push edi
call fcn.00408370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 0x14
call fcn.004b9cae
int3
Function at 0x46d870
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x50cfad
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0x74]
lea eax, [ebp + 0x18]
push ebx
push 0x3c
push eax
push 1
push str.java.util.Hashtable
mov dword [ebp + 0x18], 0x6a130072
mov dword [ebp + 0x1c], 0x2e617661
mov dword [ebp + 0x20], 0x6c697475
mov dword [ebp + 0x24], 0x7361482e
mov dword [ebp + 0x28], 0x62617468
mov dword [ebp + 0x2c], 0xbb13656c
mov dword [ebp + 0x30], 0x4a21250f
mov dword [ebp + 0x34], 0x3b8e4
mov dword [ebp + 0x38], 0xa004602
mov dword [ebp + 0x3c], 0x64616f6c
mov dword [ebp + 0x40], 0x74636146
mov dword [ebp + 0x44], 0x49726f
mov dword [ebp + 0x48], 0x72687409
mov dword [ebp + 0x4c], 0x6f687365
mov dword [ebp + 0x50], 0x7078646c
call fcn.0046da60
push 0xe
lea eax, [ebp + 0x54]
mov dword [ebp + 0x54], 0x403f
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp + 0x58], 0x5000000
mov dword [ebp + 0x5c], 0x877
mov word [ebp + 0x60], 0x700
call fcn.00455160
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x2c]
push ebx
push edx
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, dword [ebp + 0x70]
push 4
mov ecx, dword [esi + 4]
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x12], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 0x13], cl
shr ecx, 0x18
mov byte [ebp + 0x11], al
lea eax, [ebp + 0x10]
mov byte [ebp + 0x10], cl
lea ecx, [ebp - 0x1c]
push eax
call fcn.00455160
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x1c]
push ebx
push edx
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [esi]
mov esi, dword [eax]
cmp esi, eax
je 0x46da03
lea eax, [esi + 0x10]
mov ecx, edi
push ebx
push eax
call fcn.0046d760
push ebx
lea eax, [esi + 0x28]
mov ecx, edi
push eax
call fcn.0046d760
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x46d9e4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x46d9e0
nop
cmp esi, dword [eax + 8]
jne 0x46d9e0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x46d9d0
mov esi, eax
jmp 0x46d9fc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x46d9fc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x46d9f0
mov eax, dword [ebp + 0x70]
cmp esi, dword [eax]
jne 0x46d9a4
push 1
lea eax, [ebp + 0x14]
mov byte [ebp + 0x14], 0x78
push eax
lea ecx, [ebp]
call fcn.00455160
mov ecx, dword [edi + 4]
lea edx, [ebp]
push ebx
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 0x18]
lea ecx, [ebp]
call fcn.0040a020
lea ecx, [ebp - 0x1c]
call fcn.0040a020
lea ecx, [ebp - 0x2c]
call fcn.0040a020
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.004b4f32
lea esp, [ebp + 0x68]
pop ebp
ret 8
Function at 0x471c50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x224
push 0xffffffffffffffff
push 0x50d87d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp + 0x220], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2b
xor eax, eax
mov dword [ebp], 0
push str.SYSTEMCurrentControlSetServicesEventLog_
lea ecx, [ebp]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
call fcn.004084c0
cmp dword [esi + 0x84], 8
lea eax, [esi + 0x70]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
jb 0x471cd9
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp]
call fcn.004122c0
push 0x5c
push 1
lea ecx, [ebp]
call fcn.00435690
cmp dword [esi + 0x9c], 8
lea eax, [esi + 0x88]
mov ecx, dword [eax + 0x10]
jb 0x471d03
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp]
call fcn.004122c0
cmp dword [ebp + 0x14], 8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 2
push 0
push 0
lea eax, [ebp]
cmovae eax, dword [ebp]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x471e1c
cmp dword [ebp - 0x14], 1
jne 0x471e1c
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.log4cxx
call esi
test eax, eax
jne 0x471d5c
push eax
call esi
push 0x103
lea ecx, [ebp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x471e1c
add eax, eax
cmp eax, 0x208
jae 0x471e81
xor ecx, ecx
mov word [ebp + eax + 0x18], cx
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471d90
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp + 0x18]
push eax
push 1
push 0
push str.EventMessageFile
push dword [ebp - 0x10]
call esi
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471dc1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp + 0x18]
push eax
push 1
push 0
push str.CategoryMessageFile
push dword [ebp - 0x10]
call esi
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 7
push eax
push 4
push 0
push str.TypesSupported
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 6
call esi
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push str.CategoryCount
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x14]
cmp edx, 8
jb 0x471e5b
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471e51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471e7c
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x220]
xor ecx, ebp
call fcn.004b4f32
lea esp, [ebp + 0x224]
pop ebp
ret
call fcn.004b9cae
call fcn.004b552b
int3
Function at 0x471e90
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d8d5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0xa0], eax
jne 0x471f3d
push 0x17
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push str.NT_EventLog_not_opened.
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004084c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00452460
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x4720d3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4720c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4720f1
jmp 0x4720c9
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x40]
push ebx
push edi
push edx
mov eax, dword [ecx]
mov dword [ebp - 4], 1
call dword [eax]
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00469520
mov dword [ebp - 0x5c], eax
add esp, 8
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax + 4]
mov eax, 1
cmp ecx, 0x2710
jl 0x471fca
mov eax, 2
cmp ecx, 0x4e20
jl 0x471fca
mov eax, 3
cmp ecx, 0x7530
jl 0x471fca
mov eax, 4
cmp ecx, 0x9c40
jl 0x471fca
mov eax, 5
cmp ecx, 0xc350
jl 0x471fca
mov eax, 6
jmp 0x471ff5
xor edx, edx
movzx edi, ax
cmp ecx, 0x4e20
jl 0x471ffa
mov edx, 4
mov ebx, edi
mov eax, edi
cmp ecx, 0x7530
jl 0x471ffa
mov edx, 2
cmp ecx, 0x9c40
jl 0x471ffa
mov edx, 1
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 1
push dword [esi + 0xa4]
push 0x1000
push eax
push edx
push dword [esi + 0xa0]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x47209d
push 0xb
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push str.ReportEvent
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004084c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00472250
push eax
mov byte [ebp - 4], 3
call fcn.00452460
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.00407770
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47209d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472093
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4720f6
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4720d3
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4720c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4720fb
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
int3
Function at 0x472b10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509a0d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ecx + 8]
push edx
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
push esi
mov eax, dword [ecx]
push edx
call dword [eax]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x472bb2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472ba8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x472bce
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret 8
call fcn.004b9cae
int3

Function at 0x4770d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e2dd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x557200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x18
mov dword [ebp - 0x24], 0x4763a0
mov dword [ebp - 0x20], 0
call fcn.004b4f40
add esp, 4
test eax, eax
je 0x477129
movq xmm0, qword [ebp - 0x24]
mov dword [eax], esi
movq qword [eax + 8], xmm0
mov dword [eax + 0x10], 0
jmp 0x47712b
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x4757a0
push 0
push 0
call fcn.004bef3e
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x477175
cmp dword [esi + 0x70], 0
jne 0x477183
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x14], 0
call fcn.0049fba2
call fcn.004c44b6
int3
Function at 0x498e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51232d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x557200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x54]
push edi
mov dword [ebp - 0x3c], edi
call fcn.004a2ee4
add esp, 4
mov byte [ebp - 0x38], 1
cmp dword [esi + 0x88], 0
mov dword [ebp - 4], 0
jne 0x498f4e
push 0x2d
xor eax, eax
mov dword [ebp - 0x28], 0
push str.Connector_thread_not_alive:_starting_monitor.
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004084c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004520e0
mov edx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x498edb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x498ed1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x498f80
push edx
push ecx
call fcn.004b51c1
add esp, 8
push 0x18
mov dword [ebp - 0x1c], 0x498ff0
mov dword [ebp - 0x18], 0
call fcn.004b4f40
add esp, 4
test eax, eax
je 0x498f0c
movq xmm0, qword [ebp - 0x1c]
mov dword [eax], esi
movq qword [eax + 8], xmm0
mov dword [eax + 0x10], 0
jmp 0x498f0e
xor eax, eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x4757a0
push 0
push 0
call fcn.004bef3e
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x498f72
cmp dword [esi + 0x88], 0
jne 0x498f85
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], eax
push edi
call fcn.004a2f00
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4f32
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x2c], 0
call fcn.0049fba2
call fcn.004b9cae
call fcn.004c44b6
int3

Function at 0x4d20ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d1d5f

Function at 0x4d20b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d1ee9

Function at 0x4d6b55
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d66a8
Function at 0x4de840
Capabilities:
Get file size

Disassembly:
sub esp, 0x40
mov eax, dword [0x557200]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x54]
cmp byte [edi + 0x2c], 0
je 0x4de868
push edi
call fcn.004e1270
test eax, eax
jne 0x4de8a6
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [esp + 0x54]
cmp ebx, 0x100
jne 0x4de8b9
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4de8c9
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 4], ebx
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004b4f32
add esp, 0x40
ret 0xc
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4de8f0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4de8a3
call esi
pop ebx
pop edi
add eax, 0xafc80
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004b4f32
add esp, 0x40
ret 0xc
push ebx
push dword [edi + 0x20]
lea eax, [esp + 0x1c]
push 0
push 1
push eax
push esi
call fcn.004ded90
add esp, 0x18
cmp dword [esi + 0xc], 1
jne 0x4de933
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4de933
cmp eax, 2
jne 0x4de927
mov dword [esi + 0xc], 3
jmp 0x4de933
cmp eax, 3
jne 0x4de933
mov dword [esi + 0xc], 5
mov eax, dword [edi]
mov ecx, dword [esp + 0x40]
mov dword [esi], eax
mov eax, dword [edi + 0x20]
or dword [esi + 4], 0x7000
mov dword [esi + 0x50], eax
xor eax, eax
or eax, dword [esp + 0x44]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
not eax
mov dword [esi + 0x1c], ecx
and ebx, eax
test ebx, 0xfdffffff
je 0x4de8a3
push 0
push ebx
push dword [edi + 4]
push esi
call fcn.004def40
mov ecx, dword [esp + 0x58]
add esp, 0x10
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.004b4f32
add esp, 0x40
ret 0xc

Function at 0x4df6b0
Capabilities:
Create directory

Disassembly:
mov eax, 0x4004
call fcn.004b5ac0
mov eax, dword [0x557200]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push eax
lea eax, [esp + 4]
push 0x2000
push eax
call fcn.004e1170
add esp, 0xc
test eax, eax
jne 0x4df724
push eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4df722
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4df722
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xafc80
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004b4f32
add esp, 0x4004
ret 0xc
xor eax, eax
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004b4f32
add esp, 0x4004
ret 0xc