joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eaa0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
lea eax, [esp + 4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x43eade
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0042e150
add esp, 0xc
jmp 0x43eb19
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 4]
cmp al, 2
jne 0x43eb0b
shr eax, 8
test al, al
jne 0x43eb0b
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00455dc1
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0042e150
add esp, 8
mov ecx, dword [esp + 0x194]
mov eax, 2
pop esi
xor ecx, esp
call fcn.00455dc1
add esp, 0x194
ret

Function at 0x43f3c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x1a8]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43f40c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0042e150
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.0043ecc0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43f540
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0x1f
mov eax, dword [esp + 0x18]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x150]
jne 0x43f699
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x43f579
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f584
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f58f
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [esp + 0x14], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [esp + 0x1c], ax
cmp ecx, edi
jae 0x43f5c2
mov al, byte [esp + 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x43f5d0
mov al, byte [esp + 0x15]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x43f5de
mov al, byte [esp + 0x1c]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x43f5ec
mov al, byte [esp + 0x1d]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f5f7
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43f602
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.0043edd0
mov edi, dword [esp + 0x38]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x43f658
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042e150
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.0043f430
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43f696
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042e150
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4405c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, dword [ebp + 0x508]
lea eax, [esp + 0x18]
mov edi, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x440646
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.0046ebd0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x440681
push str.Received_too_short_packet
push edi
call fcn.0042e150
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00455dc1
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4406a2
jmp dword [ecx*4 + 0x4407b8]
cmp edx, 4
jle case.0x4406a2.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4406a2.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 1
push ebp
call fcn.0042e030
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x440706
push 5
push esi
call fcn.00440f80
add esp, 8
mov eax, ebx
jmp 0x440668
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x90], eax
adc dword [edi + 0x94], edx
push dword [edi + 0x94]
push dword [edi + 0x90]
push edi
call fcn.0042ce90
jmp 0x44078d
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x497714
push edi
call fcn.0042e280
jmp 0x44078d
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.00440350
add esp, 0xc
test eax, eax
je case.0x4406a2.4
jmp 0x440668
push str.Internal_error:_Unexpected_packet
push 0x49c9fc
push edi
call fcn.0042e150
add esp, 0xc
push ebp
call fcn.0042d280
add esp, 4
test eax, eax
je 0x440666
push 5
push esi
call fcn.00440f80
add esp, 8
mov eax, 0x2a
jmp 0x440668
Function at 0x444ab0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
lea eax, [esp + 0xc]
push edi
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
mov ebp, dword [esi + 0x1ac]
or edi, 0xffffffff
mov ebx, dword [esi]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x444b12
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push esi
call fcn.0042b4b0
add esp, 8
cmp edi, 0xffffffff
jne 0x444b36
push str.Error_accept__ing_server_connect
push ebx
call fcn.0042e150
add esp, 8
mov eax, 0x1e
jmp 0x444bab
push str.Connection_accepted_from_server_n
push ebx
call fcn.0042e280
push 1
mov byte [esi + 0x284], 0
push edi
mov dword [esi + 0x1ac], edi
call fcn.0044ad40
mov byte [esi + 0x1b9], 1
add esp, 0x10
mov eax, dword [ebx + 0x1d8]
test eax, eax
je 0x444ba9
push 1
push edi
push dword [ebx + 0x1dc]
call eax
add esp, 0xc
test eax, eax
je 0x444ba9
mov eax, dword [esi + 0x1ac]
cmp eax, 0xffffffff
je 0x444b9b
push eax
push esi
call fcn.0042b4b0
add esp, 8
mov dword [esi + 0x1ac], 0xffffffff
mov byte [esi + 0x286], 0
mov eax, 0x2a
jmp 0x444bab
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00455dc1
add esp, 0x88
ret
Function at 0x449820
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0047eb4d
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x449885
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x449885
lea eax, [esp]
push eax
call dword [0x4eb00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00455dc1
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.00455dc1
add esp, 0x108
ret
Function at 0x44ad70
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4a0164
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x44ad8a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4a0180
push esi
call fcn.0047d940
add esp, 8
test eax, eax
je 0x44add2
test ebp, ebp
je 0x44adc3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x44adf8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x44adf8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x44aeaf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44ae15
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44aea5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x44aea5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44ae47
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44ae60
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x44ae70
test ebp, ebp
je 0x44ae9c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4eb004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4eb004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x44e930
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x44e940
sub esi, ecx
je 0x44e957
lea eax, [esi + esi]
push eax
call dword [section..data]
jmp 0x44e962
push 0x4b0900
call dword [0x4eb00c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x44e975
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x44e990
nop dword [eax + eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x44e980
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x44ea0d
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x44ea01
push 0
lea eax, [esi + esi]
mov dword [esp + 0x18], 0x10
push eax
push edi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push 2
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x4eb004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x44ea30
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x4eb0e4]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x44ead4
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.0044eb40
lea eax, [esp + 0x28]
push 8
push eax
call fcn.00453330
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x44eae7
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00455dc1
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00455dc1
add esp, 0x24
ret
Function at 0x453dd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x453df7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x453e3f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x453e43
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x453ea5
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x453e64
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x453ed7
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x4a22a6
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4a22a7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x453eb0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x458f5a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x485119
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00484f98

Function at 0x48bb1e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048b48c

Function at 0x48bb29
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048b6c7
Function at 0x404046
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ddcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x114]
call fcn.0043d02a
mov dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x110]
push ecx
push str._sYXGB.wmf
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0x758]
call fcn.0040fc70
test eax, eax
je 0x4040d5
push 0x4473dc
lea ecx, [ebp - 0x114]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
jmp 0x4040e9
push 0x4473f4
lea edx, [ebp - 0x114]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, dword [ebp - 0x228]
add ecx, 0x518
call dword [sym.imp.JsTools3D.dll_public:_void___thiscall_CLzMetaFile::Clear_void_]
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
lea eax, [ebp - 0x218]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], ecx
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
lea edx, [ebp - 0x114]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push 0x44740c
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 0
call dword [sym.imp.JsTools3D.dll_int___cdecl_SaveResouceDataToFile_class_CString__class_CString__class_CString_]
add esp, 0xc
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 1
jne 0x40419f
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x228]
add ecx, 0x518
call dword [sym.imp.JsTools3D.dll_public:_int___thiscall_CLzMetaFile::LoadData_char_const__]
mov edx, dword [ebp - 0x228]
mov dword [edx + 0x648], 0xffffff
mov eax, dword [ebp - 0x228]
add eax, 0x518
mov ecx, dword [ebp - 0x228]
mov dword [ecx + 0x65c], eax
mov ecx, dword [ebp - 0x228]
add ecx, 0x530
call dword [sym.imp.JsTools3D.dll_public:_int___thiscall_CDxfWnd::All_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x419583
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004194f0
add esp, 8
push 0x44b488
lea edx, [ebp - 0x400]
push edx
push 0x44b494
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x800]
push ecx
push 0x400
lea edx, [ebp - 0xc00]
push edx
push 0x44b49c
push str.LicType
push 0x44b4a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x44b4b0
lea eax, [ebp - 0xc00]
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x419616
mov dword [0x4597e0], 2
jmp 0x419662
push 0x44b4b4
lea ecx, [ebp - 0xc00]
push ecx
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x41964e
mov dword [0x4597e0], 1
push 1
call fcn.004166b0
add esp, 4
jmp 0x419662
mov dword [0x4597e0], 1
push 0
call fcn.004166b0
add esp, 4
lea edx, [ebp - 0x800]
push edx
push 0
push str.NetType
push str.LockSet
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x459798], eax
lea eax, [ebp - 0x800]
push eax
push 0x40
push 0x45979c
push str.127.0.0.1
push 0x44b4d4
push 0x44b4d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x800]
push ecx
push 0x1f40
push str.Port
push str.ServerInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x4597dc], eax
mov dword [0x45ac08], 0
mov dword [0x45ac0c], 0
lea edx, [ebp - 0x800]
push edx
push 0
push str.Repeat
push str.LogSet4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x44b470], eax
cmp dword [0x44b470], 0x1388
jle 0x41970c
mov dword [0x44b470], 0x1388
lea eax, [ebp - 0x400]
push eax
push 0x45ac10
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [0x4597e0]
mov esp, ebp
pop ebp
ret

Function at 0x41f0b1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0x459de4
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 4], 1
mov dword [0x45a1d0], 0x459de4
push 0x45ae18
push 0
push 0x45a1cc
push 0x41a7e2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x45ae14], eax
cmp dword [0x45ae14], 0
jne 0x41f109
mov dword [ebp - 4], 0
jmp 0x41f116
mov ecx, dword [0x45ae14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4216ef
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push esi
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x274], 0x44c284
lea eax, [ebp - 0x130]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0xc8
mov dword [ebp - 0x278], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x268], ecx
mov dword [ebp - 4], 0xc8
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x268]
push eax
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x278]
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x270]
push edx
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 0x278], 0
jne 0x42178a
mov dword [ebp - 0x278], 0x3c1a3dec
mov ecx, dword [ebp - 0x278]
shr ecx, 0x10
mov edx, dword [ebp + 8]
mov word [edx], cx
mov eax, dword [ebp - 0x278]
and eax, 0xffff
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [edx]
cdq
mov esi, 3
idiv esi
add ecx, eax
mov eax, dword [ebp + 0x10]
mov word [eax], cx
mov ecx, dword [ebp + 8]
mov dx, word [ecx]
xor dx, 0xa4b3
mov eax, dword [ebp + 8]
mov word [eax], dx
mov ecx, dword [ebp + 0xc]
mov dx, word [ecx]
xor dx, 0x1e3f
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc