joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
cmp byte [ebp + 0x10], 0
mov eax, edx
push ebx
push esi
push edi
mov dword [esp + 0x1c], eax
je 0x1000c5bf
cmp byte [ebp + 8], 0
je 0x1000c5ae
mov dword [esp + 0x20], 0x2371
cmp dword [esp + 0x20], 0x1362
jge 0x1000c5a9
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push str._ld__ld_n
call fcn.10043abb
add esp, 0xc
lea eax, [esp + 0x24]
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
push eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x34], ebx
push eax
mov dword [esp + 0x3c], ebx
call fcn.1000b3bf
mov edi, dword [esp + 0x2c]
xor esi, esi
inc esi
mov eax, esi
cmp dword [esp + 0x10], esi
jl 0x1000c57e
mov dword [edi + eax*4], eax
inc eax
cmp eax, dword [esp + 0x10]
jle 0x1000c518
jmp 0x1000c57e
dec eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push str._ld__ld_n
call fcn.10043abb
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + edx*4]
cmp ecx, edx
jne 0x1000c554
cmp eax, dword [edi + eax*4]
je 0x1000c563
mov edx, ecx
mov dword [esp + 0x14], edx
mov eax, dword [edi + eax*4]
mov dword [esp + 0x18], eax
jmp 0x1000c548
cmp edx, eax
je 0x1000c56d
shld ebx, esi, 1
add esi, esi
cmp edx, eax
mov ecx, eax
cmovl ecx, edx
mov dword [edi + eax*4], ecx
mov eax, dword [esp + 0x14]
mov dword [edi + eax*4], ecx
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1000c524
push ebx
dec eax
push esi
push str._lld_n
mov dword [esp + 0x18], eax
call fcn.10043cef
add esp, 0xc
test edi, edi
je 0x1000c5a5
push edi
call fcn.10043e57
pop ecx
mov eax, dword [esp + 0x1c]
add dword [eax], 0xfffffffe
jmp 0x1000c608
push 1
push 0x99f
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
jmp 0x1000c608
cmp byte [ebp + 0x14], 0
je 0x1000c5d9
cmp byte [ecx], 0
je 0x1000c608
push 0x876
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1000c608
mov edi, dword [ebp + 0xc]
xor esi, esi
inc esi
mov dword [edi], 0
jmp 0x1000c604
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0xf6802998
push eax
push 0x6145
xor dl, dl
call fcn.1000bb1f
inc dword [edi]
pop ecx
pop ecx
cmp dword [edi], esi
jle 0x1000c5e7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f10f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
cmp byte [ebp + 0x10], al
je 0x1000f123
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
pop ebp
ret
push eax
push eax
push 0x236d
push 1
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebp
ret
Function at 0x1002a9c6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1005b63a
call fcn.1005a790
sub esp, 0x38
mov byte [ebp - 0x18], dl
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
test dl, dl
je 0x1002aa04
call fcn.10028275
push 0xa
pop ecx
xor edx, edx
div ecx
mov eax, dword [ebp + 8]
mov ecx, esi
add dx, word [eax]
movzx eax, dx
push eax
call fcn.1001322b
jmp 0x1002ab24
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x1c], 0x4eb
cmp dword [ebp - 0x1c], 0x60e
jle 0x1002aa4c
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov esi, ebx
mov edi, esi
mov ebx, 0x69bc
mov eax, edi
mov ecx, 0x10073e78
cdq
push edx
push eax
call fcn.1000383a
dec edi
dec ebx
jne 0x1002aa30
inc esi
cmp esi, 0x116e
jl 0x1002aa29
cmp byte [ebp - 0x11], 0
je 0x1002aa59
push ecx
call fcn.1002afb7
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], 0x3ff
jge 0x1002aa74
mov edx, str.gyvtdl_nfazevbn_xfjle_qsb_fsp_pbqpg_gqpyoga_tvsnnmar_tfmyz_agyotza_yvqbg_xnclogvz_mmgt_ehiu
mov ecx, 0x10073e78
call fcn.100059c3
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0x3841
cmp dword [ebp - 0x2c], 0x3a69
jle 0x1002ab10
mov edi, ebx
mov dword [ebp - 0x1c], ebx
mov esi, ebx
mov dword [ebp - 0x28], ebx
mov eax, esi
mov dword [ebp - 0x24], 0x6406
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
and eax, esi
lea ecx, [ebp - 0x44]
xor eax, edi
cdq
push edx
push eax
call fcn.10001aa4
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002aabe
mov eax, dword [eax]
push eax
call fcn.10043cef
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.10003c79
mov eax, dword [ebp - 0x20]
dec eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
jne 0x1002aaa5
mov esi, dword [ebp - 0x28]
inc esi
mov dword [ebp - 0x28], esi
cmp esi, 0x4f2
jl 0x1002aa96
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0x12da
jl 0x1002aa91
inc edi
cmp edi, 0x2567
jl 0x1002aa8e
push ebx
push 0x1d81
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [ebp - 0x2c], 0x36eb
jge 0x1002ab24
push str.eokrnr_mnlwtiq_picczxdu_zku_ctaifa_ikpdfg_sycxhx_yftsiw
call fcn.10043cef
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002aecb
Capabilities:
Query service status

Disassembly:
mov eax, 0x1005b64e
call fcn.1005a790
sub esp, 0x10
cmp byte [ebp + 0x14], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x18], ecx
je 0x1002af9c
mov dword [ebp - 0x14], 0x7116
cmp dword [ebp - 0x14], 0x721c
jle 0x1002af26
xor esi, esi
xor edi, edi
mov ecx, edi
mov eax, esi
shl eax, cl
mov ecx, 0x10073e78
cdq
push edx
push eax
call fcn.1000383a
inc edi
cmp edi, 0x227e
jl 0x1002af01
inc esi
cmp esi, 0x1be3
jl 0x1002aeff
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp dword [edi], esi
jbe 0x1002af64
call fcn.10028275
push 0x34
pop ecx
xor edx, edx
div ecx
push 0x1a
mov eax, edx
pop ecx
cmp eax, ecx
jge 0x1002af4c
mov ecx, dword [ebp - 0x18]
movsx edx, byte [ecx]
jmp 0x1002af55
cdq
idiv ecx
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
add edx, eax
mov ecx, ebx
push edx
call fcn.1002b28d
inc esi
cmp esi, dword [edi]
jb 0x1002af2f
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x6ef3
jge 0x1002af80
mov edx, str.zcwqs_kvsphep_tmg_vcwjq_zwiptlhon_jekk_tpygxqaf
mov ecx, 0x10073e78
call fcn.100059c3
jmp 0x1002afa6
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002b2c1
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x1002b2d8
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x1002b2fa
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, 0x10139174
push edi
mov esi, edx
mov edi, 0x7fffffff
mov ecx, dword [esi + 0x9c4]
xor ecx, dword [esi + 0x9c0]
and ecx, edi
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0xff4]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x10139500
jl 0x1002b308
mov esi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, edi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, esi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x101397a4
jl 0x1002b348
mov ecx, dword [0x1013a4f0]
xor ecx, dword [0x10139174]
and ecx, edi
xor ecx, dword [0x1013a4f0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [0x10139170], 0
and eax, esi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x101397a4]
mov dword [0x10139b30], eax
pop esi
ret
Function at 0x1002b4be
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005b690
call fcn.1005a790
sub esp, 0x14
mov byte [ebp - 0x14], dl
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
test dl, dl
je 0x1002b4ef
mov eax, dword [ebp + 0x10]
and dword [eax], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ecx], 0
je 0x1002b4de
mov dword [ebp - 0x20], 0x3ba
cmp dword [ebp - 0x20], 0x59d
jle 0x1002b552
xor esi, esi
mov dword [ebp - 0x1c], esi
mov ebx, esi
mov dword [ebp - 0x18], 0x46b8
xor edi, edi
xor esi, esi
mov ecx, esi
mov eax, edi
sar eax, cl
mov ecx, 0x10073e78
xor eax, ebx
cdq
push edx
push eax
call fcn.1000383a
inc esi
cmp esi, 0x7170
jl 0x1002b516
inc edi
cmp edi, 0x212e
jl 0x1002b514
dec ebx
dec dword [ebp - 0x18]
jne 0x1002b512
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x2541
jl 0x1002b509
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x2fa
jge 0x1002b4de
mov edx, str.kqxcxndyd_xxbkkduxo_tusvkxvu
mov ecx, 0x10073e78
call fcn.100059c3
jmp 0x1002b4de
Function at 0x100331b3
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003322a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x100331e3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x10033228
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax], 2
jmp 0x10033205
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jl 0x10033228
mov byte [ebp - 1], 0
push 1
push 0x27c2
push 0
lea eax, [ebp - 1]
push eax
call fcn.1003280f
add esp, 0x10
jmp 0x100331fa
jmp 0x10033232
push 0
call fcn.100371f9
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10037026
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b8d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100371c7
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x10037093
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x1003708e
push 0
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x100371c5
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 3
jmp 0x100370b5
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jl 0x100371c5
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x100371c0
mov dword [ebp - 0x28], 0x1d91
mov dword [ebp - 0x48], str.fkamm_sbcbwkhq_mluquke_sbaqpgjhg_rsqvrowso
cmp dword [ebp - 0x28], 0x2017
jle 0x1003717e
and dword [ebp - 0x24], 0
jmp 0x100370f9
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x207
jge 0x10037171
and dword [ebp - 0x1c], 0
jmp 0x1003710f
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x740f
jge 0x1003716f
and dword [ebp - 0x20], 0
jmp 0x10037125
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x41cf
jge 0x1003716d
mov eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub eax, edx
cdq
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push dword [ebp - 0x54]
push dword [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.10001aa4
pop ecx
pop ecx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
call fcn.1000381a
push eax
call fcn.10043cef
pop ecx
lea ecx, [ebp - 0x70]
call fcn.10003810
jmp 0x1003711e
jmp 0x10037108
jmp 0x100370f2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_DrawMenuBar]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x1c73
jge 0x1003719a
push dword [ebp - 0x48]
call fcn.10043cef
pop ecx
jmp 0x100371b6
or dword [ebp - 4], 0xffffffff
jmp 0x100371c0
jmp 0x100370aa
jmp 0x100371e8
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
push 0
push 0x47a9
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.10037547
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003720a
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b8dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003734b
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x1567
mov dword [ebp - 0x2c], str.ooo_hzkvgci_jnlk
cmp dword [ebp - 0x24], 0x15c4
jle 0x100372e3
and dword [ebp - 0x1c], 0
jmp 0x10037266
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x38b1
jge 0x100372e3
and dword [ebp - 0x20], 0
jmp 0x1003727c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x117d
jge 0x100372de
and dword [ebp - 0x14], 0
jmp 0x10037292
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x1bcf
jge 0x100372dc
and dword [ebp - 0x18], 0
jmp 0x100372a8
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x7227
jge 0x100372da
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sar edx, cl
and eax, edx
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
mov ecx, 0x10073e78
call fcn.1000383a
jmp 0x100372a1
jmp 0x1003728b
jmp 0x10037275
jmp 0x1003725f
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x100372f9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
jmp 0x10037309
push 0x2603
push 0x102a
call dword [sym.imp.KERNEL32.dll_Beep]
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x1425
jge 0x10037323
mov edx, dword [ebp - 0x2c]
mov ecx, 0x10073e78
call fcn.100059c3
jmp 0x1003733f
or dword [ebp - 4], 0xffffffff
jmp 0x10037349
jmp 0x1003735f
push 0x7975
push 0
push 0x71b8
call fcn.1003961d
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10001010
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000101c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001026
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001030
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000103a
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001044
or eax, 4
shr ecx, 1
test cl, 1
je 0x1000104e
or eax, 2
test cl, 2
je 0x10001056
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]
jmp 0x10001110
test al, 1
je 0x1000111d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001110
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001004
pop edi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100104c4
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x10001172
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x100011a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001203
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100011e9
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100011c8
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100011c0
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10001230
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100104c8
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10001262
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10001290
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x100012f3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100012d9
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100012b8
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100012b0
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10001399
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000da7b
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x10016294], eax
cmp eax, 0xffffffff
je 0x10001389
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10016298], eax
test eax, eax
je 0x10001389
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1001a2a4], 0x10002170
mov al, 1
call fcn.1000da7b
mov esp, ebp
pop ebp
ret
Function at 0x100013e0
Capabilities:
Connect socket
Create thread
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x10016294], 0xffffffff
push esi
mov esi, ecx
jne 0x10001453
push 0x100
push 0
push 0x10025070
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x100105f0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025070], cl
inc eax
cmp eax, 0x100
jb 0x10001412
push 0x10025070
push 0
mov ecx, 0x1001a440
call fcn.10005240
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000da7b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x18], dx
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1000149b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000149b
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [0x10016294]
push 0x10
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100014fb
call esi
cmp eax, 0x2733
je 0x100014fb
call esi
push eax
mov eax, 2
call fcn.1000ae00
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005240
add esp, 0xc
mov esi, 0x10016290
call fcn.100015a0
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000da7b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x10016298]
mov edx, dword [0x10016294]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10001520
call esi
push eax
mov eax, 3
jmp 0x100014c9
push 0x2000
push 0
push 0x1001629c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x2000
push 0
push 0x100182a0
mov dword [0x1001829c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x10024d2c
push 0
push 0x10016290
push 0x10001b30
push 0
push 0
mov dword [0x1001a2a0], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x1001a2c4], eax
xor ecx, ebp
mov byte [0x1001a2c8], 1
mov al, 1
pop esi
call fcn.1000da7b
mov esp, ebp
pop ebp
ret 4

Function at 0x100015a0
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x4034], ebx
je 0x100015d6
mov dword [0x10024d2c], 0xffffffff
mov eax, dword [esi + 0x4034]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x4034]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4034], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100015ec
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100015fd
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x4038], bl
pop ebx
ret