joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x140
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.10296750
mov eax, dword [ebp + 0x10]
add esp, 0xc
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 1
jge 0x10023b61
mov edi, 1
jmp 0x10023b70
mov edi, 7
cmp ecx, edi
cmovle edi, ecx
cmp edi, eax
cmovg edi, eax
cdq
lea esi, [edi - 1]
idiv edi
xor edx, edx
mov dword [ebp - 0x188], eax
test edi, edi
jle 0x10023bdd
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x174]
nop dword [eax + eax]
mov eax, dword [ebp + 0x18]
mov dword [ecx - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x28]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x2c]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x188]
add eax, ebx
mov dword [ecx - 0xc], ebx
mov dword [ecx - 0x10], edx
mov ebx, eax
cmp edx, esi
jl 0x10023bca
mov ebx, dword [ebp + 0x10]
mov dword [ecx - 8], ebx
inc edx
mov ebx, dword [ebp + 0x14]
mov dword [ecx + 0x14], ebx
add ecx, 0x28
mov ebx, eax
cmp edx, edi
jl 0x10023b90
cmp edi, 1
jne 0x10023c00
lea eax, [ebp - 0x184]
push eax
call dword [ebp - 0x160]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
test esi, esi
js 0x10023c35
lea eax, [esi + esi*4]
lea ebx, [ebp - 0x184]
lea ebx, [ebx + eax*8]
lea eax, [ebp - 0x44]
lea eax, [eax + esi*4]
push eax
push 0
push ebx
push 0x10025180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + esi*4 - 0x24], eax
sub ebx, 0x28
sub esi, 1
jns 0x10023c10
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x10023c5b
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + esi*4 - 0x24]
call ebx
inc esi
cmp esi, edi
jl 0x10023c50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x10025610
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0xa08], eax
lea eax, [ebp - 0xa10]
push edi
push eax
call fcn.102bda51
lea eax, [ebp - 0xa10]
push eax
call fcn.102bd105
mov edi, eax
lea eax, [ebp - 0x204]
push dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
inc ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, 0x76c
push ecx
push str.Cal.log
push eax
call fcn.100029e0
push 0x103c91c8
lea eax, [ebp - 0x104]
push 0x1031f534
push eax
call fcn.100029e0
add esp, 0x28
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
jne 0x100256a7
push 0
lea eax, [ebp - 0x104]
push eax
call esi
push str.log_
push 0x103c91c8
lea eax, [ebp - 0x104]
push str._s_s
push eax
call fcn.100029e0
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100256e2
push 0
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push 0x5c
push eax
lea esi, [ebp - 0x204]
call fcn.102a1020
mov ecx, esi
add esp, 8
sub eax, ecx
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x10025700
lea eax, [ebp - 0x104]
push 0x1031ff84
push eax
call fcn.102be73d
push dword [ebp - 0xa08]
mov esi, eax
mov eax, dword [edi + 0x10]
push dword [edi]
inc eax
push dword [edi + 4]
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0xa04]
push str._r_n_04d_02d_02d__02d:_02d:_02d_t_s
push eax
call fcn.100029e0
lea eax, [ebp - 0xa04]
push esi
push eax
call fcn.102be8b3
push esi
call fcn.102be43c
push esi
call fcn.102bdded
mov ecx, dword [ebp - 4]
add esp, 0x3c
xor ecx, ebp
pop edi
pop esi
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x10025b80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102f4d90
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [0x103ca368], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsA]
mov esi, eax
call fcn.100c32b9
mov ecx, eax
test ecx, ecx
je 0x10025cb1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.100c32b9
mov ecx, eax
test ecx, ecx
je 0x10025cbb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
test esi, esi
jne 0x10025c07
xor ecx, ecx
jmp 0x10025c19
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10025c10
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.1000aa00
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push 0x2d
push 1
push esi
push eax
call fcn.100ceba1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x10025c4d
push eax
call fcn.102bcab8
add esp, 4
mov dword [0x103ca368], eax
jmp 0x10025c52
mov eax, dword [0x103ca368]
test eax, eax
jle 0x10025c63
push str.Debug_option_On
call fcn.1002e970
add esp, 4
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10025c84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10025ca0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002bc0
push 0x80004005
call fcn.10002bc0
int3
Function at 0x10025d50
Capabilities:
Connect socket
Convert ip address from string
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push esi
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push dword [ebp + 0x10]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp + 8]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x11c]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x11c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x10025e3b
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10025dd2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10025e3b
mov eax, 0x10624dd3
mov dword [ebp - 0x114], esi
imul dword [ebp + 0x14]
mov dword [ebp - 0x118], 1
sar edx, 6
mov eax, edx
mov dword [ebp - 0x120], 0
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x124]
push eax
push 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x10025e3b
lea eax, [ebp - 0x118]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10025e4c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x10025e3b
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x10025e80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0xa18], eax
lea eax, [ebp - 0xa20]
push edi
push eax
call fcn.102bda51
lea eax, [ebp - 0xa20]
push eax
call fcn.102bd105
mov edi, eax
lea eax, [ebp - 0x204]
push dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
inc ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, 0x76c
push ecx
push str._04d_02d_02d.txt
push eax
call fcn.100029e0
push 0x103c91c8
lea eax, [ebp - 0x104]
push 0x1031f534
push eax
call fcn.100029e0
add esp, 0x28
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 0xffffffff
jne 0x10025f17
push 0
lea eax, [ebp - 0x104]
push eax
call esi
push str.log_
push 0x103c91c8
lea eax, [ebp - 0x104]
push str._s_s
push eax
call fcn.100029e0
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10025f52
push 0
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push 0x5c
push eax
lea esi, [ebp - 0x204]
call fcn.102a1020
mov ecx, esi
add esp, 8
sub eax, ecx
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x10025f70
lea eax, [ebp - 0x104]
push 0x1031ff84
push eax
call fcn.102be73d
add esp, 8
mov esi, eax
lea eax, [ebp - 0xa14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0xa06]
mov eax, 0xcccccccd
push dword [ebp - 0xa18]
mul ecx
mov eax, dword [edi + 0x10]
shr edx, 3
inc eax
push edx
push dword [edi]
push dword [edi + 4]
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0xa04]
push str._r_n_04d_02d_02d__02d:_02d:_02d._02d_t_s
push eax
call fcn.100029e0
lea eax, [ebp - 0xa04]
push esi
push eax
call fcn.102be8b3
push esi
call fcn.102be43c
push esi
call fcn.102bdded
mov ecx, dword [ebp - 4]
add esp, 0x38
xor ecx, ebp
pop edi
pop esi
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x1002e970
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102f54d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.100c32b9
mov ecx, eax
test ecx, ecx
je 0x1002ea0e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [0x103ca368]
test eax, eax
jle 0x1002e9df
push dword [ebp + 8]
push eax
push dword [0x103c8e80]
lea eax, [ebp - 0x10]
push str.__s_DbgOpt__d___s_n
push eax
call fcn.10002d90
mov esi, dword [ebp - 0x10]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002e9fe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002bc0
int3

Function at 0x1002fcd0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x103c0090], 0xffffffff
mov dword [ebp - 4], 0x2710
jne 0x1002fd74
cmp dword [0x103c9780], 0
mov ecx, 0x103c94c8
mov eax, 0x103c94f0
cmove eax, ecx
push eax
call fcn.100be9f0
add esp, 4
push 0x4e23
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [ebp - 4]
mov dword [0x103c0090], eax
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [0x103c9780], 0
push 0x1388
push 0x4e23
je 0x1002fd52
push 0x103c94f0
jmp 0x1002fd57
push 0x103c94c8
push dword [0x103c0090]
call fcn.10025d50
add esp, 0x10
test al, al
je 0x1002fd74
mov eax, 1
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1002fd80
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x103c0094], 0xffffffff
mov dword [ebp - 4], 0x2710
jne 0x1002fe00
push 0x103c9518
call fcn.100be9f0
add esp, 4
push 0x4e23
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [ebp - 4]
mov dword [0x103c0094], eax
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x1388
push 0x4e23
push 0x103c9518
push dword [0x103c0094]
call fcn.10025d50
add esp, 0x10
test al, al
je 0x1002fe00
mov eax, 1
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1002fe10
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x103c0098], 0xffffffff
mov dword [ebp - 4], 0x2710
jne 0x1002fe90
push 0x103c9540
call fcn.100be9f0
add esp, 4
push 0x4e23
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [ebp - 4]
mov dword [0x103c0098], eax
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x1388
push 0x4e23
push 0x103c9540
push dword [0x103c0098]
call fcn.10025d50
add esp, 0x10
test al, al
je 0x1002fe90
mov eax, 1
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10034250
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102f5ffb
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.100bff93
push eax
lea ecx, [ebp - 0x211]
call fcn.100c36d0
mov dword [ebp - 4], 0
push 0x10321438
call fcn.10025e80
mov ecx, dword [ebp + 8]
add esp, 4
test ecx, ecx
je 0x1003434b
mov edx, 0x103c92c8
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100342b3
cmp byte [0x103c92c8], al
je 0x10034352
xor ecx, ecx
nop
mov al, byte [ecx + 0x103c92c8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x111], al
test al, al
jne 0x100342d0
lea eax, [ebp - 0x110]
push eax
call fcn.100bb940
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10034309
test al, 0x10
jne 0x10034352
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10034352
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push str.Cant_create_temporary_calibration_directory__s
push eax
call fcn.100029e0
push 1
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.100bb2d0
add esp, 0x18
xor esi, esi
jmp 0x10034357
mov byte [0x103c92c8], 0
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x211]
call fcn.100c382e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret 4
Function at 0x10037bf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
push str.ACQ_Abort
call fcn.10025e80
add esp, 4
mov dword [0x103ca9ec], 1
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 3
push 0
push 0x84
push eax
push dword [0x103c00a0]
call dword [sym.imp.WS2_32.dll_send]
push 0
cmp eax, 0xffffffff
jne 0x10037c68
push str.s1_send_cmd_abort
push 1
push 0xffffffffffffffec
push 3
call fcn.10044560
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
cmp dword [0x103c9b10], 0
mov ecx, str.Abort_acquisition
mov eax, str.BPMM_file_does_not_exist.
cmove eax, ecx
push eax
push 0
push 1
push 2
call fcn.10044560
push 0
mov dword [0x103c9b10], 0
mov dword [0x103c9f8c], 1
call fcn.100bfc00
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
mov eax, 1
call fcn.10291e04
mov esp, ebp
pop ebp
ret

Function at 0x10037cc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.ACQ_Close
call fcn.10025e80
push 0
call fcn.100bfc00
mov eax, dword [0x103c9a1c]
add esp, 8
cmp eax, 7
je 0x10037ce7
cmp eax, 9
jne 0x10037d05
cmp dword [0x103c9f8c], 0
je 0x10037d05
push 0x3e8
mov dword [0x103c9f8c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10044160
push 0x1c2
push 0x103ca8b0
call fcn.100bec80
push 0x64
push 0x103ca8b4
call fcn.100bec80
add esp, 0x10
cmp dword [0x103c9a64], 0
je 0x10037d49
cmp dword [0x103c9a1c], 6
jl 0x10037d49
push 0x64
push 0x103ca8b8
call fcn.100bec80
add esp, 8
cmp dword [0x103c009c], 0
jle 0x10037d79
cmp dword [0x103caa18], 0xffffffff
jne 0x10037d63
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x10037d65
xor eax, eax
push 1
push str.HW_relaxation_timeout...
mov dword [0x103caa18], eax
call fcn.100bbda0
add esp, 8
lea eax, [ebp - 4]
push eax
push dword [0x103c9a6c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x10037da0
push 0
push dword [0x103c9a6c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x103c914c]
mov dword [0x103ca8a0], 0
test ecx, ecx
je 0x10037db9
call fcn.100ba410
push 0
push str.Acquisition_closed
push 0
push 2
push 1
call fcn.10044560
push str.Acquisition_closed
call fcn.10025e80
push 0
call fcn.100bfb80
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x10039af0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10039b2b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x10039b2b
mov eax, 0x80
cmp ecx, eax
cmovbe eax, ecx
push eax
push edx
lea eax, [ebp - 0x184]
push eax
call fcn.102961d0
jmp 0x10039b3e
push 0x80
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.10296750
add esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x188], esi
cmp esi, 2
jne 0x10039b6a
cmp dword [0x103c9f5c], 0
je 0x10039b6a
mov byte [ebp - 0x184], 0xab
mov dword [0x103c9f5c], 0
push 0
push 0x84
lea eax, [ebp - 0x188]
push eax
push dword [0x103c00a0]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
lea eax, [ebp - 0x104]
push esi
jne 0x10039bc3
push str.s1_cant_send_command__xh
push eax
call fcn.100029e0
push 0
lea eax, [ebp - 0x104]
push eax
push 1
push 0x14
push 4
call fcn.10044560
add esp, 0x20
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
push str.s1_sent_command__xh
push eax
call fcn.100029e0
push 0
lea eax, [ebp - 0x104]
push eax
push 1
push 0x14
push 0
call fcn.10044560
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x10039c00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
xorps xmm0, xmm0
mov dword [0x103c00b0], eax
push 0x103c94c8
movq qword [ebp - 0x11c], xmm0
call fcn.100be9f0
add esp, 4
mov dword [ebp - 0x120], eax
push 0x4e22
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x122], ax
mov eax, 2
mov word [ebp - 0x124], ax
lea eax, [ebp - 0x124]
push 0x10
push eax
push dword [0x103c00b0]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x10039d66
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
mov dword [ebp - 0x128], eax
call esi
push dword [ebp + 0x10]
mov edi, eax
call esi
push dword [ebp + 0x14]
mov ebx, eax
call esi
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x128]
call fcn.10044040
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.10044040
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.10044040
lea eax, [ebp - 8]
push eax
push esi
call fcn.10044040
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x20
push 0xc8
call esi
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [0x103c00b0]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop ebx
cmp eax, 0xffffffff
je 0x10039d66
cmp dword [0x103c00b0], 0xffffffff
je 0x10039d24
push 0xc8
call esi
push dword [0x103c00b0]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x103c00b0], 0xffffffff
push dword [ebp - 0x128]
lea eax, [ebp - 0x114]
push str.d1_sent_command__xh
push eax
call fcn.100029e0
push 0
lea eax, [ebp - 0x114]
push eax
push 1
push 0x14
push 0
call fcn.10044560
add esp, 0x20
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10291e04
mov esp, ebp
pop ebp
ret
Function at 0x1003daa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [0x103c9de0]
xorps xmm0, xmm0
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
movq qword [ebp - 0x114], xmm0
push str.Dark_Delay_Time_:__d_msec
push eax
movups xmmword [ebp - 0x124], xmm0
call fcn.100029e0
push 0
lea eax, [ebp - 0x104]
push eax
push 1
push 0x14
push 0
call fcn.10044560
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x20
call ebx
mov esi, eax
mov dword [ebp - 0x108], esi
call ebx
sub eax, esi
cmp eax, dword [ebp + 8]
jae 0x1003db86
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax + eax]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x124]
push eax
call esi
test eax, eax
je 0x1003db6c
lea eax, [ebp - 0x124]
push eax
call edi
lea eax, [ebp - 0x124]
push eax
call ebx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x124]
push eax
call esi
test eax, eax
jne 0x1003db45
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x108]
cmp eax, dword [ebp + 8]
jb 0x1003db30
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10291e04
mov esp, ebp
pop ebp
ret