joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49138c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
and dword [esp], 0
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov ebx, dword [edi + 0x28]
jne 0x4914f2
mov esi, dword [ebp + 0x18]
push esi
push dword [edi + 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push str.ReadExHandler__p___p_____TotalRead:__llu__bytesRead:__llu
push 2
call fcn.0048fac1
add dword [edi + 0x14], esi
add esp, 0x18
mov eax, dword [esp + 0xc]
xor esi, esi
cmp dword [edi + 0x64], esi
jne 0x49143b
push dword [edi + 0xc]
push eax
push dword [edi + 0x14]
mov eax, dword [edi]
add eax, dword [edi + 0xc]
push eax
push str._ReadExHandler__p___llu___llu_____llu_
push 2
call fcn.0048fac1
push dword [edi + 0x34]
lea eax, [esp + 0x28]
push dword [edi + 0x30]
push eax
mov eax, dword [edi + 0xc]
push dword [edi + 0x14]
add eax, dword [edi]
push eax
call ebx
mov eax, dword [esp + 0x38]
add esp, 0x2c
sub dword [edi + 0x14], eax
add dword [edi + 0xc], eax
push dword [edi + 0x64]
push eax
push dword [edi + 0x14]
push dword [edi + 0xc]
push str._____readOffset:__llu__totalRead:__llu__consumed:__llu__PAUSE:__d
push 2
call fcn.0048fac1
add esp, 0x18
cmp dword [edi + 0x64], esi
jne 0x49143b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49143b
cmp dword [edi + 0x14], esi
ja 0x4913cf
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x491445
mov dword [edi + 0xc], esi
cmp dword [edi + 0x64], esi
jne 0x4914e4
mov edx, dword [edi + 0xc]
test edx, edx
je 0x49146b
mov ecx, dword [edi]
push eax
lea eax, [ecx + edx]
mov edx, dword [edi + 4]
push eax
call fcn.00469703
pop ecx
pop ecx
mov dword [edi + 0xc], esi
jmp 0x491496
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x491496
mov ebx, 0x514
lea eax, [ecx + ecx]
push ebx
push 0x75c4ac
push 1
push eax
push dword [edi]
call fcn.005f5e10
add esp, 0x14
mov dword [edi], eax
test eax, eax
je 0x4914fb
shl dword [edi + 4], 1
mov eax, dword [edi + 4]
sub eax, dword [edi + 0x14]
push eax
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x14]
push eax
push dword [edi]
push str.ILibChain_ReadEx2_______p___llu___llu_
push 2
call fcn.0048fac1
mov eax, dword [edi + 4]
add esp, 0x14
mov ecx, dword [edi + 0xc]
add ecx, dword [edi + 0x14]
sub eax, dword [edi + 0x14]
push dword [edi + 0x60]
add ecx, dword [edi]
mov edx, dword [ebp + 0xc]
push edi
push fcn.0049138c
push eax
push ecx
push dword [edi + 0x48]
mov ecx, dword [ebp + 8]
call fcn.0048a3a7
xor eax, eax
add esp, 0x18
inc eax
jmp 0x4914f4
push str.HANDLE_will_get_removed
push 2
call fcn.0048fac1
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x75c534
push esi
push ebx
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push ebx
push 0x75c554
push 0x75c4cc
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d08b0
int3
Function at 0x49175c
Capabilities:
Create thread
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, 0x54d
mov edi, edx
push ebx
push 0x75c618
push 1
push edi
mov esi, ecx
call fcn.005f5c60
mov ecx, eax
add esp, 0x10
mov dword [esi], ecx
test ecx, ecx
je 0x4917f0
mov eax, dword [esp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edi
test eax, eax
je 0x4917a4
mov dword [esi + 0x60], eax
cmp dword [esi + 0x48], 0
je 0x4917cb
push dword [esi + 0x60]
mov edx, dword [esi + 0x40]
push esi
push fcn.0049138c
push edi
push ecx
mov ecx, dword [esi + 0x1c]
push dword [esi + 0x48]
mov ecx, dword [ecx + 0x10]
call fcn.0048a3a7
add esp, 0x18
jmp 0x4917ec
xor edi, edi
push edi
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x491247
push edi
push edi
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x75c638
push esi
push ebx
xor ecx, ecx
call fcn.0048f95e
push ebx
push 0x75c658
push 0x75c678
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d08b0
int3
Function at 0x491a1e
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push 0xfffffffffffffffc
pop edi
test esi, esi
je 0x491b48
push ebp
xor ebp, ebp
cmp dword [esi + 0x24], ebp
jne 0x491a42
xor ecx, ecx
call fcn.0048dec7
mov dword [esi + 0x24], eax
mov ecx, dword [esi + 0x24]
call fcn.0044de31
mov ecx, dword [esi + 0x24]
call fcn.0048dfc9
test eax, eax
je 0x491a71
mov edx, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00490085
mov ecx, dword [esi + 0x24]
mov edx, eax
push ebp
call fcn.0048e18a
pop ecx
pop ecx
jmp 0x491ae3
push dword [esi + 0x48]
push ebp
push dword [esp + 0x1c]
push ebx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x491a8d
xor edi, edi
inc edi
jmp 0x491ae3
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x491aea
mov edx, dword [esp + 0x14]
xor ebp, ebp
push ecx
mov ecx, ebx
mov edi, ebp
call fcn.00490085
mov ecx, dword [esi + 0x24]
mov edx, eax
push ebp
call fcn.0048e18a
mov edx, 0x60e
mov ecx, 0x75c6e0
call fcn.00489fe0
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x1c]
push eax
push esi
mov edx, dword [edx + 0x10]
mov ecx, dword [ecx + 0x10]
push 0x490ff8
push 0xffffffffffffffff
call fcn.0048a8ba
add esp, 0x18
mov ecx, dword [esi + 0x24]
mov dword [ecx], ebp
jmp 0x491b47
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x491b18
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x491afd
mov ebx, dword [ebx + 8]
jmp 0x491aff
xor ebx, ebx
push esi
call ebp
push eax
push str.ILibProcessPipe_Write_:_BrokenPipe__d__on_Pipe:__p
push 2
push 0x400
push ebx
call fcn.004920d4
add esp, 0x18
mov eax, dword [esi + 0x24]
xor edx, edx
mov dword [eax], edx
cmp dword [esi + 0x2c], edx
je 0x491b40
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x491b3b
mov ecx, dword [ecx + 0x10]
push edx
mov edx, dword [esi + 0x48]
mov edx, dword [edx + 0x10]
call fcn.0048aa54
pop ecx
push esi
call dword [esi + 0x2c]
pop ecx
mov ecx, esi
call fcn.0049020f
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x491ed0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x6dad44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x92
mov edi, ecx
push ebx
push 0x75c864
push 1
push 0x78
call fcn.005f5c60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x491f89
push 0x78
xor ebx, ebx
push ebx
push esi
call fcn.005c3840
add esp, 0xc
push ebx
push 0x40
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi], eax
cmp dword [0x76b4e4], ebx
je 0x491f66
push 0x95
push str...microstackILibRemoteLogging.c
push esi
push str.__p___s:_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.0040117f
push 1
push dword [0x76b514]
lea eax, [ebp - 0x204]
push eax
call dword [0x76b4e4]
add esp, 0x24
push 0x491e64
mov ecx, esi
mov dword [esi + 8], edi
call fcn.00491fbd
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c0e20
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x75c888
push esi
push ebx
xor ecx, ecx
call fcn.0048f95e
push ebx
push 0x75c8ac
push 0x75c8d0
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d08b0
int3
Function at 0x4930ff
Capabilities:
Clear file content
Write file on windows

Disassembly:
sub esp, 0x50
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
push 2
mov edi, ecx
mov dword [esp + 0x18], edx
push 0
push edi
mov dword [esp + 0x1c], eax
call fcn.005f0210
push edi
call fcn.005d15e0
mov ecx, dword [esp + 0x74]
add esp, 0x10
mov ebx, dword [esp + 0x6c]
add ecx, 0x3c
mov esi, dword [sym.imp.WS2_32.dll_htonl]
add ecx, ebx
cdq
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
call esi
push dword [esp + 0x64]
mov dword [esp + 0x24], eax
call esi
push ebx
mov dword [esp + 0x28], eax
call esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
push 0x30
test eax, eax
je 0x493184
pop edx
push edx
push eax
lea ecx, [esp + 0x34]
call section..text
pop ecx
pop ecx
jmp 0x493193
lea eax, [esp + 0x30]
push 0
push eax
call fcn.005c3840
add esp, 0xc
push edi
push 0x3c
lea eax, [esp + 0x28]
push 1
push eax
call fcn.005f2680
push edi
push dword [esp + 0x78]
mov esi, eax
xor ebx, ebx
push 1
push dword [esp + 0x30]
call fcn.005f2680
add esi, eax
push edi
adc ebx, ebx
call fcn.005d15e0
cdq
add esp, 0x24
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x4931e5
push edi
push dword [esp + 0x70]
push 1
push ebp
call fcn.005f2680
add esp, 0x10
add esi, eax
adc ebx, 0
push edi
call fcn.005ee1c0
xor eax, eax
test ebp, ebp
pop ecx
cmovne eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
add ecx, 0x3c
add eax, ecx
test ebx, ebx
ja 0x493244
jb 0x493208
cmp esi, eax
jae 0x493244
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x28]
push edi
call fcn.00614c30
push eax
call fcn.00612fb0
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
call fcn.00614c30
push eax
call fcn.00612fb0
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
xor edx, edx
jmp 0x49324c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0e20
add esp, 0x50
ret
Function at 0x49325f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x111c
call fcn.005c1580
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x1114], eax
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0xc], ebp
push esi
push edi
test ebx, ebx
jne 0x49328e
xor eax, eax
jmp 0x4933ff
push dword [ebx]
lea edi, [ebx + 0x10]
call fcn.005d15e0
cdq
mov esi, eax
pop ecx
mov dword [esp + 0x10], esi
cmp esi, dword [ebx + 0x1010]
jne 0x4932b0
cmp edx, dword [ebx + 0x1014]
je 0x493287
cmp ebp, 0x20
je 0x4932c5
cmp dword [esp + 0x14], 0x40
push 0x48
pop ebp
push 0x3c
pop eax
cmovne ebp, eax
jmp 0x4932c8
push 0x40
pop ebp
push dword [ebx]
push ebp
push 1
push edi
call fcn.005f8d30
add esp, 0x10
cmp eax, ebp
jge 0x4932e9
push 0
push esi
push dword [ebx]
call fcn.005f0210
add esp, 0xc
jmp 0x493287
push dword [edi]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push dword [edi + 4]
mov dword [edi], eax
call esi
push dword [edi + 8]
mov dword [edi + 4], eax
call esi
mov dword [edi + 8], eax
push dword [ebx]
call fcn.005d15e0
cdq
pop ecx
mov ecx, eax
mov esi, edx
mov eax, dword [edi + 4]
cdq
add eax, ecx
mov dword [edi - 8], eax
mov eax, 0xff8
adc edx, esi
sub eax, ebp
mov dword [edi - 4], edx
cmp dword [edi + 4], eax
jle 0x493334
push 0
push dword [esp + 0x14]
jmp 0x4932dd
push dword [ebx]
lea eax, [edi + ebp]
push dword [edi + 4]
push 1
push eax
call fcn.005f8d30
add esp, 0x10
cmp eax, dword [edi + 4]
jne 0x49332c
mov esi, dword [edi + 8]
lea eax, [esp + 0x18]
push eax
call fcn.004afc40
pop ecx
test esi, esi
jle 0x4933a4
mov edi, 0x1000
push dword [ebx]
cmp esi, edi
mov eax, esi
cmovg eax, edi
push eax
lea eax, [esp + 0x128]
push 1
push eax
call fcn.005f8d30
mov ebp, eax
add esp, 0x10
test ebp, ebp
jle 0x4933a1
push ebp
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004afcf0
sub esi, ebp
add esp, 0xc
test esi, esi
jg 0x493363
lea edi, [ebx + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.004afc30
cmp dword [edi + 8], 0
pop ecx
pop ecx
jle 0x4933fd
lea edx, [esp + 0xf0]
xor eax, eax
mov ecx, dword [edi + eax*4 + 0xc]
cmp ecx, dword [edx + eax*4]
jne 0x4933d8
inc eax
cmp eax, 0xc
jne 0x4933c7
jmp 0x4933fd
mov esi, dword [edi + 4]
cmp esi, 4
jbe 0x49332c
lea eax, [esi - 4]
xor ecx, ecx
push eax
lea edx, [edi + 0x3c]
call fcn.004a3b56
pop ecx
cmp eax, dword [esi + edi + 0x38]
jne 0x49332c
mov eax, edi
mov ecx, dword [esp + 0x1124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0e20
add esp, 0x111c
ret
Function at 0x4937e0
Capabilities:
Check if file exists

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, ecx
xor ebx, ebx
mov dword [esp + 8], eax
push edi
test ebp, ebp
je 0x4937f7
mov dword [ebp], ebx
mov edi, 0x76d260
push 0x1000
push edi
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
cmp dword [esp + 0x2c], ebx
jne 0x4938bb
test edx, edx
je 0x493829
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0x80
push 5
jmp 0x493837
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x493896
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x493896
test ebp, ebp
je 0x493863
mov dword [ebp], 1
push 0x1000
push edi
push 0xffffffffffffffff
push dword [esp + 0x18]
xor ebx, ebx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0x80
push 1
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
push 2
push ebx
call fcn.00613130
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x4938a8
push ebx
jmp 0x4938ff
push str.wbN
push eax
call fcn.00614bf0
pop ecx
pop ecx
test eax, eax
jne 0x493907
jmp 0x4938a5
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push 0x80
push 3
push ebx
push 3
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x493905
push ebx
push edi
call fcn.00613130
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x4938fe
push 0x75cd50
push eax
call fcn.00614bf0
pop ecx
pop ecx
test eax, eax
jne 0x493907
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4947d8
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, 0x200c
call fcn.005c1580
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x2008], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
test edi, edi
je 0x494944
mov eax, dword [edi + 0x101c]
cmp eax, dword [edi + 0x1024]
jb 0x494944
ja 0x494826
mov eax, dword [edi + 0x1018]
cmp eax, dword [edi + 0x1020]
jb 0x494944
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x494944
push 0xffffffffffffffff
push str..tmp
or edx, 0xffffffff
call fcn.0048ed8e
mov ebp, eax
xor eax, eax
push 0
push 0
mov ecx, ebp
lea edx, [eax + 1]
call fcn.004937e0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x49486c
inc esi
push esi
push ebp
call fcn.005f5b20
pop ecx
pop ecx
mov eax, esi
jmp 0x494947
mov ecx, dword [edi + 0x1008]
lea eax, [esp + 0x10]
and dword [edi + 0x1038], ebx
mov edx, 0x4945aa
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
call fcn.0048e451
pop ecx
cmp dword [edi + 0x1038], ebx
jne 0x494934
push dword [edi]
call fcn.005ef610
push esi
call fcn.005ef610
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x20]
pop ecx
pop ecx
push 0x1000
push eax
push 0xffffffffffffffff
push ebp
push 0
push 0xfde9
call esi
push 0x1000
push 0x76d260
push 0xffffffffffffffff
push dword [edi + 4]
push 0
push 0xfde9
call esi
push 0
push 0x76d260
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
test eax, eax
lea eax, [esp + 0x1c]
pop esi
push eax
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 4]
xor edx, edx
push 0
push 0
call fcn.004937e0
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
je 0x494930
push eax
call fcn.005d15e0
cdq
pop ecx
mov dword [edi + 0x1010], eax
mov dword [edi + 0x1014], edx
jmp 0x494937
mov ebx, esi
jmp 0x494937
xor esi, esi
inc esi
push esi
push ebp
call fcn.005f5b20
pop ecx
pop ecx
mov eax, ebx
jmp 0x494947
xor eax, eax
inc eax
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c0e20
add esp, 0x200c
ret
Function at 0x4957ee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1034
call fcn.005c1580
mov eax, dword [0x6dad44]
xor eax, esp
mov dword [esp + 0x1030], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], eax
mov ebx, edx
mov dword [esp + 0x24], edi
call fcn.00487815
push 0xfffffffffffffffc
test eax, eax
jne 0x49582f
pop eax
jmp 0x4959cd
mov ecx, dword [edi + 0x3c4]
pop esi
call fcn.0048b143
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0xc], ecx
jne 0x495857
cmp ebx, 9
je 0x495850
cmp ebx, 0xa
jne 0x495857
or ecx, 0xffffffff
mov dword [esp + 0x14], ecx
cmp dword [edi + 0x3c8], 0
je 0x4959cb
test eax, eax
je 0x4959cb
mov ecx, eax
call fcn.0049576e
mov ecx, dword [edi + 0x3c8]
add ecx, 0x20c
mov dword [esp + 0x1c], eax
call fcn.0044de31
mov ecx, dword [esp + 0x14]
cmp ecx, dword [ebp + 0xc]
jge 0x4959bb
mov edx, 0x1000
mov esi, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
cmovns eax, ecx
mov ecx, dword [esp + 0x28]
sub esi, eax
add ecx, eax
cmp esi, edx
mov dword [esp + 0x20], ecx
cmovg esi, edx
add eax, esi
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push esi
jl 0x4958da
xor ecx, ecx
mov edx, 0x8080
cmp dword [eax + 4], ecx
jne 0x4958d4
push ebx
jmp 0x4958f0
mov dword [eax + 4], ecx
push ecx
jmp 0x4958f0
cmp dword [eax + 4], 0
mov edx, 0x80
jne 0x4958ee
mov dword [eax + 4], 1
jmp 0x4958d1
push 0
lea ecx, [esp + 0x34]
call fcn.004a4f22
pop ecx
pop ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 4
push eax
call fcn.004c7680
pop ecx
pop ecx
test esi, esi
jle 0x495976
mov ecx, esi
xor edx, edx
sar ecx, 2
test ecx, ecx
jle 0x49593e
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x38]
sub edi, eax
lea eax, [edi + edx*4]
mov eax, dword [esp + eax + 0x38]
xor eax, dword [esp + 0x18]
mov dword [esp + edx*4 + 0x38], eax
inc edx
cmp edx, ecx
jl 0x495926
mov edi, dword [esp + 0x24]
shl edx, 2
cmp edx, esi
jge 0x495976
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x38]
sub edi, eax
mov ecx, edx
lea eax, [edi + edx]
and ecx, reloc.WS2_32.dll_closesocket
jns 0x495961
dec ecx
or ecx, 0xfffffffc
inc ecx
mov al, byte [esp + eax + 0x38]
xor al, byte [esp + ecx + 0x18]
mov byte [esp + edx + 0x38], al
inc edx
cmp edx, esi
jl 0x49594f
mov edi, dword [esp + 0x24]
push 2
push esi
lea eax, [esp + 0x40]
push eax
push 2
push 4
lea eax, [esp + 0x2c]
push eax
push 2
push dword [esp + 0x2c]
lea eax, [esp + 0x4c]
push eax
push 0x40000003
push 0
push dword [edi + 0x3c8]
call fcn.00482f1e
mov ecx, dword [esp + 0x44]
add esp, 0x30
mov esi, eax
mov edx, 0x1000
cmp ecx, dword [ebp + 0xc]
jl 0x49589a
mov ecx, dword [edi + 0x3c8]
mov dword [ecx + 0x20c], 0
mov eax, esi
mov ecx, dword [esp + 0x103c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c0e20
mov esp, ebp
pop ebp
ret
Function at 0x496cf4
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
test ebx, ebx
jne 0x496cff
xor eax, eax
pop ebx
ret
push ebp
push esi
push edi
mov edi, 0x9cd
xor ebp, ebp
push edi
push 0x75d1cc
inc ebp
push ebp
push 0x5c
call fcn.005f5c60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x496e27
push 0x5c
xor edi, edi
push edi
push esi
call fcn.005c3840
mov ecx, str.ILibWebClient
mov dword [esi + 0x38], ebp
call fcn.004873e9
push 0x9d6
push 0x75d260
push ebp
push 0xc
mov dword [esi + 0x18], eax
mov dword [esi + 8], 0x494c64
mov dword [esi], 0x496a5f
mov dword [esi + 0x24], 3
call fcn.005f5c60
add esp, 0x1c
mov dword [esi + 0x20], eax
test eax, eax
jne 0x496d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x9d7
push esi
push edi
mov edx, 0x75d280
xor ecx, ecx
call fcn.0048f95e
push edi
push 0x75d2a0
push 0x75d2c0
jmp 0x496e4c
mov dword [esi + 0x44], edi
xor ecx, ecx
mov dword [esi + 0x10], ebx
call fcn.0048dec7
xor ecx, ecx
mov dword [esi + 0x34], eax
call fcn.0048b30b
xor ecx, ecx
mov dword [esi + 0x2c], eax
call fcn.0048b30b
mov edx, esi
mov dword [esi + 0x30], eax
mov ecx, ebx
call fcn.00488084
mov ecx, ebx
call fcn.00488100
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
push 0
push fcn.00496665
push 0x49684b
push 0x4966af
push fcn.00495e00
mov edx, 0xffff
mov ecx, ebx
call fcn.00482d69
mov ecx, dword [esi + 0x20]
add esp, 0x14
mov dword [edi + ecx], eax
mov eax, dword [esi + 0x20]
mov eax, dword [edi + eax]
test eax, eax
je 0x496e18
mov dword [eax + 0x1d4], fcn.00496bda
add edi, 4
cmp edi, 0xc
jl 0x496dd9
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x75d1ec
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
push edi
push 0x75d20c
push 0x75d22c
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d08b0
int3
Function at 0x497d26
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
or esi, 0xffffffff
test edx, edx
je 0x497d46
movsx eax, byte [ecx]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x6c8b10]
inc ecx
sub edx, 1
jne 0x497d2e
not esi
mov eax, esi
pop esi
ret

Function at 0x498856
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 2
mov eax, dword [ebp + 0x88]
mov esi, edx
mov dword [esp + 0x28], eax
neg eax
mov dword [esp + 0x1c], ebp
sbb eax, eax
xor ecx, ecx
and eax, 0x1d
xor edi, edi
cmp dword [ebp + 0x70], edi
mov dword [esp + 0x20], eax
pop eax
cmovne eax, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.004870df
mov ecx, dword [ebp + 0x78]
mov ebx, eax
push 8
pop eax
cmp ebx, eax
push 0x5e7
cmovg ebx, eax
xor eax, eax
cmp dword [ecx + 0x208], edi
push 0x75e02c
cmovne ebx, eax
mov eax, dword [esp + 0x24]
imul ecx, ebx, 6
add ecx, 0x52
add eax, ecx
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov dword [esp + 0x18], eax
inc ecx
push ecx
push eax
call fcn.005f5c60
add esp, 0x10
mov dword [esi], eax
test eax, eax
je 0x4989e6
push dword [esp + 0x20]
xor ecx, ecx
inc ecx
mov word [eax], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
push 0x2a
add edx, 0xfffffffa
mov dword [ecx + 2], eax
lea eax, [ebp + 0x20]
mov ecx, dword [esi]
push eax
add ecx, 6
call section..text
mov eax, dword [ebp + 0x78]
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
mov al, byte [eax + 0x1a8]
mov byte [ecx + 0x30], al
mov eax, dword [ebp + 0x78]
lea edx, [edx - 0x31]
mov ecx, dword [esi]
add ecx, 0x31
push dword [eax + 0x1a8]
push dword [eax + 0x1a4]
call section..text
mov eax, dword [esi]
add esp, 0x10
mov edx, dword [esp + 0x14]
mov byte [eax + 0x51], bl
push 0x10
pop ebp
test ebx, ebx
jle 0x49897b
lea eax, [edx + 4]
mov edx, eax
mov ecx, dword [esi]
lea edi, [edi + 6]
mov eax, dword [edx]
add edx, ebp
mov dword [edi + ecx + 0x4c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
mov eax, dword [eax + 0x78]
mov ax, word [eax + 0x3a]
mov word [edi + ecx + 0x50], ax
sub ebx, 1
jne 0x498953
mov edx, dword [esp + 0x14]
test edx, edx
je 0x49898b
xor eax, eax
inc eax
push eax
push edx
call fcn.005f5b20
pop ecx
pop ecx
cmp dword [esp + 0x24], 0
je 0x4989da
mov edx, dword [esp + 0x18]
mov ecx, ebp
push 0x1c
pop edi
push 0x17
mov eax, dword [edx + 0x78]
pop ebx
push 0x1c
cmp word [eax + 0x1dc], bx
mov eax, dword [esi]
cmove ecx, edi
mov edi, dword [esp + 0x2c]
mov byte [edi + eax], cl
mov eax, dword [edx + 0x78]
mov edx, dword [esp + 0x20]
add eax, 0x1dc
pop ecx
cmp word [eax], bx
lea edx, [edx - 1]
cmove ebp, ecx
mov ecx, dword [esi]
inc ecx
push ebp
push eax
add ecx, edi
call section..text
pop ecx
pop ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x5e7
push esi
push edi
mov edx, 0x75e048
xor ecx, ecx
call fcn.0048f95e
push edi
push 0x75e064
push 0x75e080
call fcn.00401109
add esp, 0x18
push esi
call fcn.005d08b0
int3