joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40781f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4367d3
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00420370
mov eax, dword [0x44b5b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov esi, dword [ebp + 8]
call fcn.00401392
xor ecx, ecx
lea eax, [ebp - 0x1044]
push eax
push ecx
push dword [esi]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1044], ecx
call fcn.00408fdc
test eax, eax
jne 0x4079c4
push str.SELECT__Message__FROM__Error__WHERE_Error.Error
lea ecx, [ebp - 0x1048]
call fcn.0040188e
push 9
xor eax, eax
mov byte [ebp - 4], 1
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
push 0xa
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call fcn.00420783
add esp, 0x10
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x1048]
push eax
call fcn.00403cdb
xor esi, esi
mov dword [ebp - 0x103c], esi
lea eax, [ebp - 0x1040]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x1048]
mov dword [ebp - 0x1040], esi
push dword [ebp - 0x1044]
call fcn.00408fca
test eax, eax
jne 0x40798e
push esi
push dword [ebp - 0x1040]
call fcn.00408fd0
test eax, eax
jne 0x40798e
cmp dword [ebp - 0x103c], eax
je 0x40791f
push dword [ebp - 0x103c]
call fcn.00408fb2
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x103c], esi
push eax
push dword [ebp - 0x1040]
call fcn.00408fd6
test eax, eax
jne 0x40798e
push 0xffe
mov word [ebp - 0x1038], ax
lea eax, [ebp - 0x1036]
push esi
push eax
call fcn.0041fdd0
add esp, 0xc
mov dword [ebp - 0x104c], 0x800
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1038]
push eax
push 1
push dword [ebp - 0x103c]
call fcn.00408fe2
test eax, eax
jne 0x40798e
lea eax, [ebp - 0x1038]
mov ecx, ebx
push eax
call fcn.00401e0c
cmp dword [ebp - 0x103c], 0
je 0x4079a2
push dword [ebp - 0x103c]
call fcn.00408fb2
cmp dword [ebp - 0x1040], 0
je 0x4079b6
push dword [ebp - 0x1040]
call fcn.00408fb2
mov ecx, dword [ebp - 0x1048]
lea ecx, [ecx - 0x10]
call fcn.00401797
cmp dword [ebp - 0x1044], 0
je 0x4079d8
push dword [ebp - 0x1044]
call fcn.00408fb2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f66e
mov esp, ebp
pop ebp
ret
Function at 0x4010f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x408e9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0x10], al
mov edi, 0x40c750
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ebx
push ecx
push 0x40c750
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00401730
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2c]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x130]
mov dword [esp + 0x238], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x401186
mov eax, 0x40a0d4
push ebp
lea ecx, [esp + 0x130]
push 0xfe
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x38]
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x44]
push 0xfe
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, 1
jne 0x4011fe
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.004017f0
test al, al
je 0x401204
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
jmp 0x401204
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [esp + 0x240]
mov cl, byte [esp + 0x14]
lea eax, [esp + 0x14]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x40a0d0]
mov ecx, esi
push edx
push ebx
push eax
call fcn.004014e0
mov ecx, dword [esp + 0x18]
pop ebp
cmp ecx, ebx
je 0x40125a
mov al, byte [ecx - 1]
cmp al, bl
je 0x401250
cmp al, 0xff
je 0x401250
dec al
mov byte [ecx - 1], al
jmp 0x40125a
dec ecx
push ecx
call fcn.004050f7
add esp, 4
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 4
Function at 0x401290
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408eb8
push eax
mov dword fs:[0], esp
sub esp, 0x18
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, 0x40c750
or ecx, 0xffffffff
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.004017f0
test al, al
je 0x4012f0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, 0x40c750
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
add eax, ebx
mov byte [eax], 0
mov byte [ebp + 0x10], 0
mov dword [esp + 0x14], 0
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call fcn.004016e0
mov bl, byte [esp + 0x14]
mov eax, dword [0x40a0d0]
mov esi, 1
add bl, 0x61
cmp eax, esi
jne 0x401329
call fcn.00404da0
push esi
push esi
lea ecx, [esp + 0x20]
call fcn.004017f0
test al, al
je 0x40134f
mov eax, dword [esp + 0x1c]
movsx edx, bl
mov dh, dl
mov byte [eax], dl
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
mov byte [edx + 1], 0
mov edi, 0x40c080
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [0x40a0d0]
mov dword [esp + 0x30], 0
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40137c
call fcn.00404da0
xor edi, edi
cmp esi, edi
jbe 0x4013c4
mov ecx, dword [esp + 0x20]
push edi
lea ebx, [ecx + esi]
lea ecx, [esp + 0x1c]
push ebx
call fcn.004017f0
test al, al
je 0x4013c4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, esi
mov esi, 0x40c080
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.004017d0
xor edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x4013d1
mov eax, 0x40a0d4
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x40143a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
cmp ecx, edi
je 0x401409
mov al, byte [ecx - 1]
test al, al
je 0x4013ff
cmp al, 0xff
je 0x4013ff
dec al
mov byte [ecx - 1], al
jmp 0x401409
dec ecx
push ecx
call fcn.004050f7
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edi
inc eax
mov dword [esp + 0x20], edi
cmp eax, 0x1a
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], eax
jl 0x4012fc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [0x40a0d0]
lea ecx, [esp + 0x18]
push eax
push edi
push ecx
mov ecx, ebp
call fcn.004014e0
mov ecx, dword [esp + 0x1c]
mov byte [ebp + 0x10], 1
cmp ecx, edi
je 0x401486
mov al, byte [ecx - 1]
test al, al
je 0x40147c
cmp al, 0xff
je 0x40147c
pop edi
dec al
pop esi
pop ebp
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
dec ecx
push ecx
call fcn.004050f7
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4026e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
xor eax, eax
mov edx, ecx
mov dword [esp], eax
push edi
mov dword [esp + 8], eax
mov ecx, 0x11
mov dword [esp + 0xc], eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
push ecx
mov ecx, edx
call fcn.00403d00
mov eax, dword [eax + 4]
pop edi
test eax, eax
jne 0x40271c
mov eax, 0x40a0d4
lea edx, [esp]
push ebx
lea ecx, [esp + 0x24]
push edx
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, dword [esp + 0x18]
sete bl
test eax, eax
je 0x402766
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40275d
cmp al, 0xff
je 0x40275d
dec al
mov byte [ecx], al
jmp 0x402766
push ecx
call fcn.004050f7
add esp, 4
test bl, bl
pop ebx
je 0x402771
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x64
ret

Function at 0x4044d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x18]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x40c834]
mov dword [esp + 0x14], esi
cmp eax, esi
mov edi, 0x40a0d4
je 0x404500
mov edi, eax
mov eax, dword [esp + 0x128]
mov edx, dword [eax + 4]
cmp edx, esi
jne 0x404513
mov edx, 0x40a0d4
mov ecx, dword [esp + 0x124]
mov ecx, dword [ecx + 4]
cmp ecx, esi
jne 0x404526
mov ecx, 0x40a0d4
mov eax, dword [esp + 0x120]
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x404539
mov eax, 0x40a0d4
push edi
lea edi, [esp + 0x1c]
push 0xff
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [esp + 0x11c]
mov cl, byte [esp + 0x13]
lea edi, [esp + 0x18]
xor eax, eax
mov byte [ebp], cl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 4], esi
mov ebx, ecx
mov dword [ebp + 8], esi
cmp ebx, 0xfffffffd
mov dword [ebp + 0xc], esi
jbe 0x40457e
call fcn.00404da0
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x4045b0
mov al, byte [ecx - 1]
test al, al
je 0x4045b0
cmp al, 0xff
je 0x4045b0
cmp ebx, esi
jne 0x4045e1
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.004016e0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x10
cmp ebx, esi
jne 0x4045cc
push 1
mov ecx, ebp
call fcn.004016e0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x10
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x4045d8
cmp eax, ebx
jae 0x4045e9
push 1
mov ecx, ebp
call fcn.004016e0
push ebx
mov ecx, ebp
call fcn.00401920
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x108
ret 0x10
Function at 0x407609
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c3a8
cmp edx, dword [eax]
je 0x40762b
add eax, 8
inc ecx
cmp eax, 0x40c438
jl 0x40761c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c3a8]
jne 0x407759
mov eax, dword [0x40c848]
cmp eax, 1
je 0x407733
test eax, eax
jne 0x40765c
cmp dword [0x40c2e0], 1
je 0x407733
cmp edx, 0xfc
je 0x407759
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407693
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406ba0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405b50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4076d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405b50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a4d4
push edi
call fcn.004087d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406ba0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406bb0
lea eax, [ebp - 0xa0]
push 0x40a4b4
push eax
call fcn.00406bb0
push dword [esi + 0x40c3ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406bb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040873f
add esp, 0x2c
pop edi
jmp 0x407759
lea eax, [ebp + 8]
lea esi, [esi + 0x40c3ac]
push 0
push eax
push dword [esi]
call fcn.00405b50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001000
Capabilities:
Hide thread from debugger

Disassembly:
push ebp
mov ebp, esp
push esi
push str.NtSetInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10001026
xor al, al
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
push 0
push 0
push 0x11
test eax, eax
jne 0x10001039
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
test eax, eax
sete al
pop esi
pop ebp
ret

Function at 0x10001060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x1000108c
push ebx
push edi
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ecx + edi*4]
inc esi
dec edx
jne 0x10001073
pop edi
pop ebx
not eax
pop esi
pop ebp
ret 8

Function at 0x100010a0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1013ba6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x100135a0
push eax
lea eax, [ebp - 0x408]
push eax
mov dword [ebp - 0x40c], ecx
or esi, 0xffffffff
mov dword [ebp - 0x408], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x100010f8
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001092b
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
lea ebx, [ebx]
mov ecx, dword [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x1000114d
lea ebx, [ebx]
movzx ebx, byte [edx]
mov edi, esi
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp - 0x40c]
shr esi, 8
xor esi, dword [ebx + edi*4]
inc edx
dec ecx
jne 0x10001130
cmp eax, 0x400
je 0x10001100
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop ebx
xor ecx, ebp
not eax
pop esi
call fcn.1001092b
mov esp, ebp
pop ebp
ret 4
Function at 0x10001180
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0x100135a8
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp + 0xc]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp + 0xc], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x100011bb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
jne 0x100011eb
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
push eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001241
mov ecx, eax
mov edx, edi
test eax, eax
je 0x1000122c
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp - 4]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10001208
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10001200
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
add esp, 8
pop edi
not eax
mov dword [esi], eax
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001270
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0x100135a0
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp + 0xc]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp + 0xc], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x100012ab
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
jne 0x100012db
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
push eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001331
mov ecx, eax
mov edx, edi
test eax, eax
je 0x1000131c
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp - 4]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100012f8
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100012f0
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
add esp, 8
pop edi
not eax
mov dword [esi], eax
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001360
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edx, edx
xor eax, eax
test dl, 1
je 0x10001373
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000137f
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001389
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001393
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000139d
or eax, 8
shr ecx, 1
test cl, 1
je 0x100013a7
or eax, 4
shr ecx, 1
test cl, 1
je 0x100013b1
or eax, 2
test cl, 2
je 0x100013b9
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
mov edi, edi
test al, 1
je 0x1000147d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001470
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001367
pop edi
pop esi
pop ebx
ret

Function at 0x100014b0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1013ba6c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x194]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100014ef
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001092b
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100014dc
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 8], eax
test eax, eax
je 0x100014dc
mov ecx, dword [ebp + 8]
mov dword [esi + 0x100014], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.1001092b
mov esp, ebp
pop ebp
ret 4

Function at 0x10001530
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x100034], ebx
je 0x10001569
mov dword [0x1013b9fc], 0xffffffff
mov eax, dword [esi + 0x100034]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x100034]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1000157f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x10001590
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x100038], bl
pop esi
pop ebx
ret
Function at 0x100015c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x8000c]
xor ebx, ebx
push ebx
mov ecx, 0x80000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10001613
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10001604
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10001530
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x8000c], eax
cmp dword [esi + 0x8000c], 4
jl 0x100015fc
push edi
lea ecx, [esi + 0xc]
lea eax, [ecx + ebx]
mov dword [ebp - 8], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10001639
movzx edi, byte [ebx + esi + 0xd]
jmp 0x10001654
cmp al, 0xc2
jne 0x10001711
movzx edx, byte [ebx + esi + 0xd]
shl dx, 8
movzx edi, dx
movzx edx, byte [ebx + esi + 0xe]
or edi, edx
cmp edi, 4
jl 0x10001711
cmp edi, 0x80000
jg 0x10001711
cmp edi, dword [esi + 0x8000c]
jg 0x100016df
cmp al, 0xc1
jne 0x1000168f
movzx ecx, byte [ebx + esi + 0xe]
push ecx
lea edx, [edi - 3]
lea eax, [ebx + esi + 0xf]
push edx
push eax
call fcn.1000d380
mov al, byte [ebx + esi + 0xf]
jmp 0x100016a7
movzx ecx, byte [ebx + esi + 0xf]
push ecx
lea edx, [edi - 4]
lea eax, [ebx + esi + 0x10]
push edx
push eax
call fcn.1000d380
mov al, byte [ebx + esi + 0x10]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov byte [ebp - 4], al
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100014]
push edi
push ecx
push edx
call eax
sub dword [esi + 0x8000c], edi
add esp, 0xc
add ebx, edi
cmp dword [esi + 0x8000c], 0
jg 0x10001623
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jle 0x10001708
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x10001708
mov edx, 0x80000
sub edx, ebx
cmp eax, edx
jg 0x10001708
push eax
lea eax, [ebx + esi + 0xc]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10001530
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret