joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3ba4
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x6e1760]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x2c
mov eax, 0x608f39
call fcn.00409179
mov esi, dword [ebp + 0x24c]
push str.getFilesystemType
push dword [0x6ed9d4]
lea ecx, [ebp - 0x10]
call fcn.00553a91
lea eax, [ebp]
push esi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004d34b7
pop ecx
pop ecx
mov ecx, dword [ebp + 4]
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x18], 0x10
mov byte [ebp - 4], bl
jae 0x4d3c04
lea ecx, [ebp + 4]
mov eax, 0x104
push eax
lea edx, [ebp + 0x13c]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4d3c67
push 2
pop esi
push edi
push ebx
lea ecx, [ebp]
call fcn.0040349d
lea ecx, [ebp - 0x10]
call fcn.00553477
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 + 0x240]
xor ecx, ebp
call fcn.0040916a
add ebp, 0x244
leave
ret
lea eax, [ebp + 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00404087
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.004d3498
pop ecx
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0040349d
push str.NTFS
lea ecx, [ebp + 0x1c]
call fcn.0041ffdd
test eax, eax
lea ecx, [ebp + 0x1c]
jne 0x4d3cb9
push edi
push ebx
call fcn.004034e8
mov esi, ebx
jmp 0x4d3c30
push 0x6640b0
call fcn.0041ffdd
test eax, eax
push edi
lea ecx, [ebp + 0x1c]
push ebx
jne 0x4d3cd8
call fcn.004034e8
xor esi, esi
jmp 0x4d3c30
call fcn.004034e8
jmp 0x4d3c2d

Function at 0x4d3ee1
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0x608ff7
call fcn.004091e2
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x38], esi
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [esi], vtable.Ghost::Filesystem::Win32LfoFilesystem.0
call fcn.0055dca4
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00420b0c
push str.constructor
push dword [0x6ed9d4]
lea ecx, [ebp - 0x30]
call fcn.00553a91
lea eax, [ebp - 0x2c]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.004d34b7
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 4
jae 0x4d3f4c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
sete al
push edi
mov byte [esi + 0x28], al
call fcn.004d3ba4
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x28]
pop ecx
mov byte [esi + 0x29], 0
jae 0x4d3f76
lea eax, [ebp - 0x28]
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4d3f98
mov al, byte [ebp - 0x34]
and al, 1
mov byte [esi + 0x29], al
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040349d
lea ecx, [ebp - 0x30]
call fcn.00553477
mov eax, esi
call fcn.00409265
ret 8
Function at 0x4f4d62
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
je 0x4f4d6f
xor eax, eax
jmp 0x4f4dc9
cmp dword [esi + 0xc], 0
jne 0x4f4d8a
push 0x669f08
push dword [esi]
call fcn.004099dc
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x4f4d6b
push edi
push dword [esi + 0xc]
push dword [esp + 0x10]
push 1
push dword [esp + 0x1c]
call fcn.00570719
mov edi, eax
add esp, 0x10
cmp edi, dword [esp + 0xc]
jb 0x4f4db5
push dword [esi + 0xc]
call fcn.0057044e
test eax, eax
pop ecx
je 0x4f4dc6
push dword [esi + 0xc]
call fcn.004097d7
and dword [esi + 0xc], 0
pop ecx
mov byte [esi + 0x10], 1
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4f7b48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 1
mov edi, ecx
call fcn.004f7a82
test al, al
je 0x4f7bb8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0
shl eax, 0xb
push eax
push dword [edi + 4]
shl esi, 0xb
call fcn.0040e61d
add esp, 0xc
test eax, eax
jne 0x4f7bb5
push dword [edi + 4]
mov ebx, dword [ebp + 0x10]
push esi
push 1
push ebx
call fcn.0040e4a9
add esp, 0x10
and dword [ebp + 0xc], 0
jmp 0x4f7bad
cmp dword [ebp + 0xc], 5
jg 0x4f7bb5
push dword [edi + 4]
sub esi, eax
push esi
add eax, ebx
push 1
push eax
call fcn.0040e4a9
add esp, 0x10
inc dword [ebp + 0xc]
cmp eax, esi
jb 0x4f7b91
mov al, 1
jmp 0x4f7bb7
xor al, al
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x4f89b7
Capabilities:
Create thread

Disassembly:
push str.STHD
push 8
call fcn.004f8928
mov ecx, dword [esp + 4]
push eax
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
push 0
push 0x4f8991
mov dword [eax + 4], ecx
call fcn.00570832
add esp, 0xc
ret 8
Function at 0x500250
Capabilities:
Get disk information

Disassembly:
push 0x14
mov eax, 0x60fa99
call fcn.00409179
mov esi, ecx
push str.doUnlock
push dword [0x6ef0d8]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.00553a91
cmp dword [esi + 0x90], 2
mov dword [ebp - 4], ebx
jne 0x5002bc
cmp dword [ebp + 8], 2
jge 0x5002bc
cmp byte [esi + 0xac], bl
jne 0x5002b1
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90020
lea eax, [ebp - 0x20]
push eax
call fcn.0055f441
lea ecx, [ebp - 0x20]
call fcn.004d6118
xor edi, edi
inc edi
mov dword [esi + 0x90], edi
jmp 0x5002bf
xor edi, edi
inc edi
cmp dword [esi + 0x90], edi
jne 0x50035b
cmp dword [ebp + 8], edi
jge 0x50035b
cmp byte [esi + 0xac], bl
jne 0x500300
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x9001c
lea eax, [ebp - 0x20]
push eax
call fcn.0055f441
cmp dword [eax], ebx
mov dword [ebp - 0x10], edi
mov byte [ebp + 0xb], 1
jne 0x500303
mov byte [ebp + 0xb], bl
test byte [ebp - 0x10], 1
je 0x500311
lea ecx, [ebp - 0x20]
call fcn.004d6118
cmp byte [ebp + 0xb], bl
je 0x500328
lea ecx, [ebp - 0x14]
call fcn.00553477
mov al, bl
call fcn.00409251
ret 4
lea edi, [esi + 0x40]
mov ecx, edi
mov dword [esi + 0x90], ebx
mov byte [esi + 0xac], bl
call fcn.004d5953
push 0x14
mov dword [edi], ebx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 1
push ebx
mov ecx, esi
call fcn.004ffe2c
mov bl, 1
jmp 0x500316
Function at 0x509495
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x16c
mov eax, dword [0x6e1760]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x44]
call fcn.0058476f
push 0xa9
push esi
lea ecx, [ebp - 0x44]
call fcn.0058477d
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x44]
call fcn.00584791
push 0x10
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x24]
xor ebx, ebx
push eax
mov byte [ebp + 0x54], 0x5b
mov byte [ebp + 0x55], 0x4d
mov byte [ebp + 0x56], 0xe9
mov byte [ebp + 0x57], 0xc1
mov byte [ebp + 0x58], 0x56
mov byte [ebp + 0x59], 0x7b
mov byte [ebp + 0x5a], 0xa2
mov byte [ebp + 0x5b], 0x94
mov byte [ebp + 0x5c], bl
mov byte [ebp + 0x5d], 0xa
mov byte [ebp + 0x5e], 0x6f
mov byte [ebp + 0x5f], 0x8c
mov byte [ebp + 0x60], 0xf7
mov byte [ebp + 0x61], 0x91
mov byte [ebp + 0x62], 0xb1
mov byte [ebp + 0x63], 0xaf
call fcn.004099ef
add esp, 0xc
test eax, eax
jne 0x50952e
cmp byte [esi + 0xda], bl
jne 0x509527
cmp byte [esi + 0xdb], bl
jne 0x509527
inc eax
jmp 0x509654
xor eax, eax
jmp 0x509654
push edi
lea ecx, [ebp - 0x9c]
call fcn.0058476f
mov edi, 0xda
push edi
push esi
lea ecx, [ebp - 0x9c]
call fcn.0058477d
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00584791
push 0x10
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x34]
push eax
mov byte [ebp + 0x64], 0x6d
mov byte [ebp + 0x65], 0xde
mov byte [ebp + 0x66], 0x16
mov byte [ebp + 0x67], 0x6a
mov byte [ebp + 0x68], bl
mov byte [ebp + 0x69], 0xed
mov byte [ebp + 0x6a], 0x7f
mov byte [ebp + 0x6b], 0xfb
mov byte [ebp + 0x6c], 0x13
mov byte [ebp + 0x6d], 0x54
mov byte [ebp + 0x6e], 0x1e
mov byte [ebp + 0x6f], 0xcd
mov byte [ebp + 0x70], 9
mov byte [ebp + 0x71], 0xd4
mov byte [ebp + 0x72], 0xd7
mov byte [ebp + 0x73], 0x37
call fcn.004099ef
add esp, 0xc
test eax, eax
jne 0x5095d0
cmp byte [esi + 0xda], bl
jne 0x509665
cmp byte [esi + 0xdb], bl
jne 0x509665
xor eax, eax
inc eax
jmp 0x509653
lea ecx, [ebp - 0xf4]
call fcn.0058476f
push edi
push esi
lea ecx, [ebp - 0xf4]
call fcn.0058477d
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00584791
push 0x10
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x14]
push eax
mov byte [ebp + 0x44], 0xbe
mov byte [ebp + 0x45], 0x5a
mov byte [ebp + 0x46], 0x64
mov byte [ebp + 0x47], 0xba
mov byte [ebp + 0x48], 0xa2
mov byte [ebp + 0x49], 0x73
mov byte [ebp + 0x4a], 0x44
mov byte [ebp + 0x4b], 0x60
mov byte [ebp + 0x4c], 0xc9
mov byte [ebp + 0x4d], 0x3f
mov byte [ebp + 0x4e], 0x32
mov byte [ebp + 0x4f], 0xb4
mov byte [ebp + 0x50], 0x28
mov byte [ebp + 0x51], 0x9d
mov byte [ebp + 0x52], 0xfa
mov byte [ebp + 0x53], 0x3f
call fcn.004099ef
add esp, 0xc
test eax, eax
je 0x5095b0
xor al, al
pop edi
mov ecx, dword [ebp + 0x74]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040916a
add ebp, 0x78
leave
ret
xor eax, eax
jmp 0x509653
Function at 0x513e69
Capabilities:
Get disk information

Disassembly:
push 0x60
mov eax, 0x612b2a
call fcn.004091e2
push str.addDummyNT4CDAdapters
push dword [0x6ef674]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x38]
call fcn.00553a91
lea eax, [ebp - 0x4c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0055dae8
pop ecx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
xor edi, edi
call fcn.00557dfe
test eax, eax
jbe 0x513fc3
push edi
lea ecx, [ebp - 0x4c]
call fcn.004d907b
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00513951
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
jae 0x513ed5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x513fa3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x6c]
push str.._
push eax
call fcn.004803bc
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00403c71
push esi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.0040349d
mov eax, dword [ebp - 0x18]
dec eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.005138e7
cmp byte [eax], 0x5c
jne 0x513f5c
mov eax, dword [ebp - 0x18]
dec eax
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428fc6
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00403c71
push esi
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.0040349d
push esi
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00403edf
call fcn.00521908
add esp, 0x20
push eax
lea ecx, [ebp - 0x34]
call fcn.005a2735
cmp dword [ebp - 0x34], esi
mov byte [ebp - 4], 5
je 0x513f97
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
add ecx, 4
call fcn.00513d88
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004d6118
push esi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040349d
lea ecx, [ebp - 0x4c]
inc edi
call fcn.00557dfe
cmp edi, eax
jb 0x513eb0
lea ecx, [ebp - 0x4c]
call fcn.0040592c
lea ecx, [ebp - 0x38]
call fcn.00553477
call fcn.00409265
ret
Function at 0x538418
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xf4
mov eax, 0x619bda
call fcn.004091e2
push str.loadRegistryModelAndSerialNumbers
push dword [0x6f07fc]
mov edi, ecx
lea ecx, [ebp - 0x5c]
call fcn.00553a91
xor ebx, ebx
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00404087
cmp byte [ebp + 8], bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
je 0x538461
push str.FlpyDisk
jmp 0x538466
push 0x64a2c0
call fcn.00403f05
push str.Enum
lea ecx, [ebp - 0x2c]
call fcn.00403f05
push 1
push 2
lea ecx, [ebp - 0x100]
call fcn.00424871
push dword [edi + 8]
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 2
call fcn.0042e3b4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x100]
call fcn.004211bf
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], ebx
jae 0x5384bb
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x58]
push ecx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x53850a
mov byte [ebp - 0x49], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040349d
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 1
call fcn.00420866
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040349d
lea ecx, [ebp - 0x5c]
call fcn.00553477
mov al, byte [ebp - 0x49]
call fcn.00409265
ret 4
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 0x49], bl
jae 0x538519
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x50]
push ecx
push ebx
lea ecx, [ebp - 0x54]
push ecx
push ebx
push eax
push dword [ebp - 0x58]
call esi
test eax, eax
jne 0x5385af
cmp dword [ebp - 0x54], 1
je 0x53853f
cmp dword [ebp - 0x54], 2
jne 0x5385af
cmp dword [ebp - 0x50], ebx
je 0x5385af
push dword [ebp - 0x50]
call fcn.0040822e
pop ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.005d2070
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 4
jae 0x538566
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x64]
lea ecx, [ebp - 0x54]
push ecx
push ebx
push eax
push dword [ebp - 0x58]
call esi
test eax, eax
jne 0x5385a7
push dword [ebp - 0x64]
lea ecx, [ebp - 0x80]
call fcn.00404087
push dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00537dc9
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x49], al
call fcn.0040349d
lea ecx, [ebp - 0x64]
call fcn.0041e5b4
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x49]
mov byte [ebp - 0x49], al
jmp 0x5384d2
Function at 0x53bfca
Capabilities:
Check if file exists

Disassembly:
push 0x40
mov eax, 0x61a52d
call fcn.004091e2
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.00420b0c
lea eax, [ebp - 0x2c]
push eax
call fcn.0055f6e7
add esp, 0x20
xor ecx, ecx
cmp dword [edi + 0x18], 8
mov dword [ebp - 4], ecx
jb 0x53c006
mov eax, dword [edi + 4]
jmp 0x53c009
lea eax, [edi + 4]
push ecx
push 0x60000000
push 3
push ecx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x53c032
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x53c039
jmp 0x53c09e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebx + 0x10]
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x44]
call fcn.0050a912
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x34]
call fcn.0050a912
push esi
push dword [esi + 4]
lea ecx, [ebp - 0x3c]
call fcn.0050a912
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x4c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push eax
call fcn.0053b336
add esp, 0x18
mov ecx, eax
call fcn.004dcae5
test al, al
je 0x53c09e
push edi
mov ecx, ebx
call fcn.004d50c2
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004d50c2
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004034e8
call fcn.00409265
ret 8
Function at 0x54c763
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6e1760]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x773c20], 0
push esi
jne 0x54c81c
push str.Initialising_RML_n
push 0x14
call fcn.004f1757
pop ecx
pop ecx
lea eax, [esp + 4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x54c7ca
push esi
call fcn.004f1822
push eax
push str.WSAStartup
push str...RMLStAll.cpp:63
push str._s:__s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x18
mov eax, esi
jmp 0x54c824
push 0
call fcn.0054d799
pop ecx
mov ecx, dword [0x672cf8]
test ecx, ecx
jbe 0x54c7ec
mov eax, 0x773d88
mov byte [eax], 0
add eax, 0x9a8
dec ecx
jne 0x54c7e1
mov dword [0x773c2c], 0xfffffffe
mov byte [0x773c70], 1
call fcn.0054d7a9
cmp eax, 0xffffffff
jne 0x54c80e
call fcn.0054d7a3
jmp 0x54c824
push str.RML_Initialised_n
push 0x14
call fcn.004f1757
pop ecx
pop ecx
inc dword [0x773c20]
xor eax, eax
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
call fcn.0040916a
add esp, 0x194
ret
Function at 0x54cffc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call fcn.0054ecd7
mov esi, eax
test esi, esi
pop ecx
jne 0x54d03d
push 0x2736
call fcn.0054d799
mov dword [esp], str.argument_is_not_an_RML_socket
push str.RML_bind
push str._s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x10
or eax, 0xffffffff
jmp 0x54d0c8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x54d081
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.0054d799
push esi
call fcn.004f1822
push eax
push str.bind
push str...RMLStAll.cpp:897
push str._s:__s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x1c
jmp 0x54d035
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x74c]
push eax
mov dword [ebp - 4], 0x10
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x54d0c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.0054d799
push esi
call fcn.004f1822
push eax
push str.getsockname
push str...RMLStAll.cpp:908
jmp 0x54d070
mov byte [esi + 0x14], 1
xor eax, eax
pop esi
leave
ret
Function at 0x54d34f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call fcn.0054ecd7
mov esi, eax
test esi, esi
pop ecx
jne 0x54d390
push 0x2736
call fcn.0054d799
mov dword [esp], str.argument_is_not_a_socket
push str.RML_recv
push str._s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x10
or eax, 0xffffffff
jmp 0x54d4be
cmp dword [esi + 0x18], 1
jne 0x54d3a2
push esi
call fcn.00550a85
cmp eax, 0xffffffff
pop ecx
je 0x54d388
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [esi + 0x690], edi
mov dword [esi + 0x694], eax
call fcn.0054ee76
mov eax, dword [esi + 0x690]
sub eax, edi
pop ecx
jne 0x54d476
cmp byte [esi + 0x733], al
je 0x54d3e5
mov eax, dword [esi + 0x600]
cmp eax, dword [esi + 0x734]
je 0x54d476
cmp byte [esi + 0x1c], 0
jne 0x54d410
and dword [esi + 0x690], 0
and dword [esi + 0x6e8], 0xfffffffe
or dword [esi + 0x6f0], 1
push 0x2733
call fcn.0054d799
pop ecx
jmp 0x54d4ab
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 4], eax
mov eax, edi
jmp 0x54d46e
cmp byte [esi + 0x733], 0
je 0x54d436
mov eax, dword [esi + 0x600]
cmp eax, dword [esi + 0x734]
je 0x54d476
xor edi, edi
call ebx
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp dword [ebp + 0x18], ecx
jb 0x54d44c
mov edi, dword [ebp - 4]
sub edi, eax
add edi, dword [ebp + 0x18]
cmp dword [ebp + 0x18], 0xffffffff
je 0x54d45a
test edi, edi
jne 0x54d45d
xor eax, eax
jmp 0x54d4bc
or edi, 0xffffffff
push edi
push esi
call fcn.00551121
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x54d4a4
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x690], eax
je 0x54d41f
mov edi, dword [esi + 0x690]
mov eax, dword [esi + 0x600]
sub edi, dword [ebp + 0xc]
and dword [esi + 0x690], 0
or dword [esi + 0x6f0], 1
cmp eax, dword [esi + 0x608]
jne 0x54d4b0
and dword [esi + 0x6e8], 0xfffffffe
jmp 0x54d4ba
and dword [esi + 0x690], 0
or eax, 0xffffffff
jmp 0x54d4bc
push 1
push esi
call fcn.0054db9c
pop ecx
pop ecx
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret
Function at 0x54d5ce
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
xor edi, edi
push edi
push ebx
call fcn.0054e2a5
test eax, eax
pop ecx
pop ecx
je 0x54d5ea
xor eax, eax
jmp 0x54d779
push esi
push ebx
call fcn.0054ecd7
mov esi, eax
cmp esi, edi
pop ecx
jne 0x54d625
push 0x2736
call fcn.0054d799
mov dword [esp], str.argument_is_not_an_RML_socket
push str.RML_closesocket
push str._s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x10
or eax, 0xffffffff
jmp 0x54d778
cmp dword [esi + 0x6b4], edi
push ebp
je 0x54d712
cmp dword [esi + 0x20], 2
jne 0x54d641
push edi
push esi
call fcn.0054df61
pop ecx
pop ecx
cmp dword [esi + 0x18], 1
jne 0x54d66d
mov eax, dword [esi + 0x75c]
cmp dword [eax + 0x10], edi
jne 0x54d65d
push edi
push esi
call fcn.0054e571
pop ecx
pop ecx
jmp 0x54d66d
push esi
call fcn.00550a85
cmp eax, 0xffffffff
pop ecx
je 0x54d723
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x54d696
cmp eax, 0xb
je 0x54d696
cmp eax, 0xc
je 0x54d696
cmp eax, 0xd
je 0x54d696
push 2
push ebx
call fcn.0054cee9
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x54d723
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [esi + 0x6cc], eax
mov byte [esi + 0x739], 1
call ebx
cmp dword [esi + 0x18], edi
mov ebp, eax
je 0x54d760
jmp 0x54d6bc
xor edi, edi
mov eax, dword [esi + 0x18]
cmp eax, 0xb
je 0x54d760
cmp eax, 0xc
je 0x54d760
cmp eax, 0xd
je 0x54d760
call ebx
mov ecx, dword [esp + 0x18]
mov edx, eax
sub edx, ebp
cmp ecx, edx
jb 0x54d6ee
mov edi, ebp
sub edi, eax
add edi, ecx
cmp ecx, 0xffffffff
je 0x54d6f9
test edi, edi
je 0x54d775
jmp 0x54d6fc
or edi, 0xffffffff
push edi
push esi
call fcn.00551121
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x54d723
cmp dword [esi + 0x18], 0
jne 0x54d6ba
jmp 0x54d760
cmp dword [esi + 0x20], 2
jne 0x54d728
push esi
call fcn.00550a32
test eax, eax
pop ecx
je 0x54d760
or eax, 0xffffffff
jmp 0x54d777
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x54d760
cmp eax, 0xb
je 0x54d760
cmp eax, 0xc
je 0x54d760
cmp eax, 0xd
je 0x54d760
cmp eax, 2
je 0x54d760
lea eax, [esi + 0x73c]
push eax
push edi
push dword [esi + 0x608]
push dword [esi + 0x640]
push esi
call fcn.0054ec54
add esp, 0x14
push esi
call fcn.0054da49
push esi
call fcn.0054f526
push esi
call fcn.0054fc7c
add esp, 0xc
xor eax, eax
pop ebp
pop esi
pop edi
pop ebx
ret
Function at 0x54d7a9
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6e1760]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xff
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x54d809
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
push ecx
call fcn.0054d799
push ecx
call fcn.004f1822
push eax
push str.gethostname
push str...RMLStack.cpp:158
push str._s:__s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x1c
or eax, 0xffffffff
jmp 0x54d8ed
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x54d850
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
push ecx
call fcn.0054d799
push ecx
call fcn.004f1822
push eax
push str.gethostbyname
push str...RMLStack.cpp:168
push str._s:__s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x1c
jmp 0x54d8e5
cmp word [edi + 0xa], 4
je 0x54d86a
push 0x2afb
call fcn.0054d799
mov dword [esp], str.Local_address_not_recognized
jmp 0x54d8d1
push esi
push str.rml_get_local_interfaces_found_these_IP_addresses:_n
push 0x14
call fcn.004f1757
pop ecx
pop ecx
xor esi, esi
mov eax, dword [edi + 0xc]
lea eax, [eax + esi*4]
cmp dword [eax], 0
je 0x54d8b5
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.____s_n
push 0x14
call fcn.004f1757
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
add esp, 0xc
mov dword [esi*4 + 0x773c30], eax
inc esi
cmp esi, 0x10
jb 0x54d87b
mov dword [0x773c74], esi
test esi, esi
pop esi
jne 0x54d8ea
push 0x2afb
call fcn.0054d799
mov dword [esp], str.No_IP_address_configured
push str.rml_get_local_interfaces
push str._s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x10
or eax, 0xffffffff
jmp 0x54d8ec
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040916a
leave
ret