joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1018083a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [0x101d1870], 0x461
mov dword [ebp - 0x10], eax
call fcn.10181963
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x101d1870], 0x804
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101d1874], 0xfffff2f9
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x101808c6
jmp 0x101808d1
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov dword [0x101d1870], 0x1323
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov dword [0x101d1874], 0x1e67
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [0x101d1870], 0x2204
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x10180959
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov ah, byte [ebp - 0x42]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x3c], edx
jne 0x10180907
mov al, byte [ebp - 0x42]
test al, 1
jne 0x10180899
jmp 0x10180966
xor eax, eax
mov ecx, dword [ebp - 0x28]
add ecx, 2
mov edx, dword [ebp - 0x34]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jb 0x101808e3
jmp 0x101808c6
Function at 0x10180a54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x1018ee45]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x101d1870], 0xe60
mov dword [0x101d1874], 0x1be2
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.10181017
mov dword [0x101d1870], 0xf0d
call fcn.101809a0
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101806ca
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x10180b7f
mov dword [0x101d1870], 0x1652
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.10181420
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
mov dword [0x101d1874], 0x26e4
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x3c], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x48], ecx
mov esi, dword [0x101d1874]
add esi, 0x20a0
mov dword [0x101d1870], esi
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x10180b7f
mov dword [0x101d1874], 0xa96
mov eax, dword [ebp - 0x44]
add eax, 0x26eb
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x10180e2e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10180e6f
mov eax, dword [0x101d1870]
add eax, 0x8e6
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jmp 0x10180eab
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov dword [ebp - 0x14], eax
je 0x10180e5a
mov eax, 0x1ca6
mov dword [0x101d1870], 0x13c0
mov ecx, dword [ebp - 0x14]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jl 0x10180e6f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dword [0x101d1870], ecx
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
jne 0x10180f71
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x24], eax
jne 0x10180f71
xor eax, eax
mov dword [0x101d1870], 0x118c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x24], eax
jne 0x10180f71
xor eax, eax
mov dword [0x101d1870], 0x12f1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x24], eax
jne 0x10180f71
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x24], eax
jne 0x10180f71
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x24], eax
jne 0x10180f71
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
jne 0x10180f71
mov eax, 1
mov dword [0x101d1874], 0x1ced
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add esp, 0x24
pop ebp
ret
Function at 0x101816c6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101d187c], 0
mov byte [0x101d1880], 0
mov dword [0x101d1870], 0x17f8
mov dword [0x101d1878], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10181728
xor eax, eax
mov dword [0x101d1874], 0x13a1
mov dword [0x101d1878], 0
mov dword [ebp - 0x20], eax
jmp 0x10181750
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101d1878]
add eax, 1
mov dword [0x101d1878], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10181728
jmp 0x1018170d
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101d1884], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101d1870]
add edi, 0x26cf
mov dword [0x101d1874], edi
mov edi, dword [0x101d187c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101d1884], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x101d187c], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101d1880], cl
mov dword [0x101d1874], 0x194a
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov esi, dword [0x101d1870]
add esi, 0x634
mov dword [0x101d1874], esi
mov cl, byte [0x101d1880]
mov esi, dword [0x101d187c]
mov byte [ebx + esi], cl
mov esi, dword [0x101d1878]
add esi, 1
mov dword [0x101d1878], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x10181750
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10181ad7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101d1874], 0x157c
mov dword [0x101d1878], 0
mov dword [0x101d187c], 0
mov dword [0x101d1888], 0
mov dword [0x101d1870], 0x252e
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x10181c82
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [0x101d1874], 0xffffef4b
mov edi, edx
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101d1878], edx
mov dword [0x101d1870], 0x22ee
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101d187c], edx
mov dword [0x101d1870], 0xffffd0d1
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101d1880], cl
mov dword [0x101d1870], 0xffffc08d
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101d1874], 0x138c
mov cl, byte [0x101d1880]
mov edx, dword [0x101d187c]
mov byte [ebx + edx], cl
mov edx, dword [0x101d1878]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101d187c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101d1888], ecx
mov edx, dword [0x101d1874]
mov esi, edx
add esi, 0xfffff4f6
mov dword [0x101d1870], esi
mov cl, byte [ebx + ecx]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
mov ch, byte [esi + ebx]
add edx, 0xffffde87
mov dword [0x101d1870], edx
xor ch, cl
mov byte [0x101d188c], ch
mov dword [0x101d1874], 0xb66
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
mov edx, dword [0x101d1870]
add edx, 0x1496
mov dword [0x101d1870], edx
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x10181c82
mov eax, dword [0x101d1878]
mov ecx, dword [0x101d187c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jmp 0x10181b44
mov dword [0x101d1870], 0x1d6f
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10181c94
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x101d1870]
add edx, 0xffffe5e9
mov dword [0x101d1874], edx
mov dword [0x101d1870], 0x1979
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101810a3
lea ecx, [0x1018139f]
mov edx, dword [0x101d1870]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x60], esi
mov dword [esp + 0x40], 0x12c200
mov esi, dword [0x101d185c]
mov dword [esp + 0x78], esi
mov esi, dword [0x101d1860]
mov dword [esp + 0x54], esi
mov dword [0x101d1874], 0x28c4
mov esi, dword [0x101d1864]
mov dword [esp + 0x38], esi
mov esi, dword [0x101d1868]
mov dword [esp + 0x30], esi
mov esi, dword [0x101d186c]
mov dword [esp + 0x24], esi
add edx, 0xffffee29
mov dword [0x101d1870], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10181d72
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x10181d90
jmp 0x10181d72
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov dword [0x101d1874], 0x1aac
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10181d43
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [0x101d1874], 0x12f6
mov dword [0x101d1870], 0x804
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x50], edx
call fcn.10180e2e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x10181d68
lea eax, [esp + 0x20]
mov ecx, dword [0x101d1870]
add ecx, 0xffffe7a5
mov dword [0x101d1870], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10180a54
mov dword [0x101d1874], 0x5df
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x101d1870]
add ecx, 0xfffff5b2
mov dword [0x101d1874], ecx
mov dword [esp + 8], eax
jmp 0x10181d68
Function at 0x401c30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x415768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x60]
lea ebp, [ebx + 0x60]
push edi
push 0x41f968
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x401c91
push 0x41e0f8
push 2
push ebx
call fcn.00401e10
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
mov eax, dword [ebp]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x41e0f4
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x401cd7
mov eax, dword [ebp]
push eax
push str.can_not_open_file:_s
push 2
push ebx
call fcn.00401e10
add esp, 0x10
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
push str..bin
lea ecx, [esp + 0x18]
push ebp
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0x41e0d0
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00414b42
test edi, edi
jne 0x401d63
push str..bin
lea edx, [esp + 0x1c]
push ebp
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov dword [esp + 0x88], edi
push eax
push str.can_not_open_output_file__s
push 2
push ebx
call fcn.00401e10
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x88], 0xffffffff
call fcn.00414b42
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fgets]
push esi
lea ecx, [esp + 0x20]
push 0x64
push ecx
call ebp
push esi
lea edx, [esp + 0x2c]
push 0x64
push edx
call ebp
mov al, byte [esi + 0xc]
add esp, 0x18
test al, 0x10
jne 0x401dd1
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x41e0b0
push ecx
call ebx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.Stk1Util.dll_public:_static_void___cdecl_CMyUtil::Inverse32_char__]
push edi
push 1
lea eax, [esp + 0x28]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
lea ecx, [esp + 0x40]
push 0x64
push ecx
call ebp
mov al, byte [esi + 0xc]
add esp, 0x2c
test al, 0x10
je 0x401d8d
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push edi
call esi
mov edx, dword [ebx + 0x60]
push edx
push str.dat_to_bin_Finish___s
push 0
push ebx
call fcn.00401e10
mov ecx, dword [esp + 0x98]
add esp, 0x18
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x4021b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push edi
mov eax, dword [ebp + 0x68]
push 0x41e0f4
push eax
call esi
mov edi, eax
add esp, 8
test edi, edi
jne 0x4021f2
mov eax, dword [ebp + 0x68]
push eax
push 0x41e1b0
push 2
push ebp
call fcn.00401e10
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, dword [ebp + 0x6c]
push 0x41e0f4
push eax
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40222c
mov ecx, dword [ebp + 0x6c]
push ecx
push 0x41e19c
push 2
push ebp
call fcn.00401e10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, dword [ebp + 0x70]
push 0x41e0d0
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x14], esi
jne 0x402271
mov edx, dword [ebp + 0x70]
push edx
push 0x41e188
push 2
push ebp
call fcn.00401e10
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push edi
call esi
push ebx
call esi
add esp, 0x18
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, dword [ebp + 0x84]
test eax, eax
je 0x402294
mov ecx, ebp
call fcn.00402090
push esi
push 1
lea eax, [ebp + 0x74]
push 0x10
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov esi, dword [sym.imp.MSVCRT.dll_fgets]
push edi
lea ecx, [esp + 0x1c]
push 0x64
push ecx
call esi
push edi
lea edx, [esp + 0x28]
push 0x64
push edx
call esi
push 0x41e178
push 0
push ebp
call fcn.00401e10
mov al, byte [edi + 0xc]
add esp, 0x24
test al, 0x10
jne 0x40230d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x41e0b0
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.Stk1Util.dll_public:_static_void___cdecl_CMyUtil::Inverse32_char__]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push 1
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
lea edx, [esp + 0x3c]
push 0x64
push edx
call esi
mov al, byte [edi + 0xc]
add esp, 0x2c
test al, 0x10
je 0x4022c5
push 0x41e164
push 0
push ebp
call fcn.00401e10
push 0x41e154
push 0
push ebp
call fcn.00401e10
push ebx
lea eax, [esp + 0x34]
push 0x64
push eax
call esi
push ebx
lea ecx, [esp + 0x40]
push 0x64
push ecx
call esi
mov al, byte [ebx + 0xc]
add esp, 0x30
test al, 0x10
jne 0x40238d
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0x41e0b0
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.Stk1Util.dll_public:_static_void___cdecl_CMyUtil::Inverse32_char__]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push edx
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
lea ecx, [esp + 0x3c]
push 0x64
push ecx
call esi
mov al, byte [ebx + 0xc]
add esp, 0x2c
test al, 0x10
je 0x402345
push 0x41e140
push 0
push ebp
call fcn.00401e10
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push edi
call esi
push ebx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
push 0x41e134
push 0
push ebp
call fcn.00401e10
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x409aa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x409ae6
cmp dword [esp + 8], 0xffffffff
je 0x409ae6
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
jle 0x409adf
mov ebx, dword [sym.imp.WSOCK32.dll_recv]
mov edx, dword [esp + 0x14]
mov eax, edi
sub eax, esi
push 0
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call ebx
test eax, eax
jle 0x409adf
add esi, eax
cmp esi, edi
jl 0x409ac3
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4114e3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
lea ebx, [esi + 0xc]
push 0x2000
mov ecx, ebx
mov dword [esp + 0x14], 0x10
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [esi + 0x9c]
add esp, 4
test eax, eax
je 0x411590
mov ebp, dword [sym.imp.WSOCK32.dll_recvfrom]
mov ecx, dword [esi + 0x20]
call dword [sym.imp.Stk1Util.dll_public:_int___thiscall_CRingBuf::GetFreeLen_void_]
cmp eax, 0x2000
jle 0x411556
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push ebx
push 0
push 0x2000
push edi
push eax
call ebp
cmp eax, 0xffffffff
je 0x41156a
mov ecx, dword [esi + 0x20]
push eax
push edi
call dword [sym.imp.Stk1Util.dll_public:_int___thiscall_CRingBuf::WriteBuf_char___int_]
jmp 0x41155e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x9c]
test eax, eax
jne 0x411520
jmp 0x411590
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.recvfrom
push 2
push esi
call fcn.00401e10
mov ecx, dword [esi + 0x28]
add esp, 0x10
push 2
push 0x41f6b8
call fcn.00405970
mov ecx, dword [esi + 0x20]
call dword [sym.imp.Stk1Util.dll_public:_int___thiscall_CRingBuf::Reset_void_]
mov ecx, dword [esi + 0x28]
push 2
push 0x41f6a8
call fcn.00405970
push 0
push 0
push 0x41f680
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x412b10
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x98]
test eax, eax
je 0x412b28
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x412b56
push 0x41f8d0
push 2
push esi
call fcn.00401e10
add esp, 0xc
mov eax, 0xfffffffe
pop esi
add esp, 0x14
ret
mov ecx, dword [esi + 0x28]
xor eax, eax
mov dword [esp + 8], eax
push 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CWnd::UpdateData
mov ecx, dword [esi + 0x28]
mov dx, word [ecx + 0xa98]
push edx
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esi + 0x28]
mov word [esp + 0xa], ax
lea eax, [esp + 4]
mov word [esp + 8], 2
mov edx, dword [ecx + 0x824]
push eax
push 0
push 0x466
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 4]
push 0x10
mov ecx, eax
mov edx, eax
and ecx, 0xff0000
shr edx, 0x10
or ecx, edx
mov edx, eax
and edx, 0xff00
shl eax, 0x10
or edx, eax
lea eax, [esp + 0xc]
shr ecx, 8
shl edx, 8
or ecx, edx
push eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x412c1b
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0xa98]
push eax
push 0x41f8b8
push 2
push esi
call fcn.00401e10
mov ecx, dword [esi + 8]
add esp, 0x10
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0xfffffffd
pop esi
add esp, 0x14
ret
push 0
push 0
push 0
push 0
push esi
push 0x4114b0
call sub.MFC42.DLL_AfxBeginThread
push 0
push 0
push 0
push 0
push esi
push 0x4115c0
call sub.MFC42.DLL_AfxBeginThread
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x412cd0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push edi
mov edi, ecx
mov eax, dword [edi + 0x98]
test eax, eax
jne 0x412cea
or eax, 0xffffffff
pop edi
add esp, 0x10
ret 4
push ebx
mov ebx, dword [esp + 0x1c]
xor eax, eax
xor edx, edx
mov al, byte [ebx + 6]
mov dword [esp + 8], edx
push esi
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x10], edx
mov cl, byte [ebx + 7]
mov dword [esp + 0x14], edx
shl esi, 8
push 1
add esi, ecx
mov ecx, dword [edi + 0x28]
push edx
push 0x45d
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_CWnd::GetDlgItemInt
mov eax, dword [edi + 0x28]
mov cx, word [eax + 0xa94]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0xe], ax
mov eax, dword [edi + 0x28]
lea edx, [esp + 0x20]
mov word [esp + 0xc], 2
mov ecx, dword [eax + 0x864]
push edx
push 0
push 0x466
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x20]
push 0x10
mov edx, eax
mov ecx, eax
and edx, 0xff0000
shr ecx, 0x10
or edx, ecx
mov ecx, eax
and ecx, 0xff00
shl eax, 0x10
or ecx, eax
mov eax, dword [edi + 8]
shr edx, 8
shl ecx, 8
or edx, ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x10]
push edx
push 0
push esi
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
pop esi
cmp eax, 0xffffffff
pop ebx
jne 0x412dc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0x41f930
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
pop edi
add esp, 0x10
ret 4
mov eax, 1
pop edi
add esp, 0x10
ret 4
Function at 0x1004be1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x1004c0d
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100c4c0]
inc ecx
dec edx
jne 0x1004bf5
pop edi
pop esi
pop ebp
ret 0xc