joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dec0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
test al, 1
je 0x41dee1
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.0041d4d0
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, 8
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
xor esi, esi
mov dl, byte [esp + esi + 0x10]
mov al, 1
mov ecx, esi
shl al, cl
test dl, 0x40
je 0x41df18
or byte [esp + 8], al
test dl, 0x10
je 0x41df21
or byte [esp + 9], al
test dl, 4
je 0x41df2a
or byte [esp + 0xa], al
test dl, 1
je 0x41df33
or byte [esp + 0xb], al
test dl, dl
jns 0x41df3b
or byte [esp + 0xc], al
test dl, 0x20
je 0x41df44
or byte [esp + 0xd], al
test dl, 8
je 0x41df4d
or byte [esp + 0xe], al
test dl, 2
je 0x41df56
or byte [esp + 0xf], al
inc esi
dec edi
jne 0x41df05
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 8]
push ebx
push ebp
mov dword [esp + 0x2c], edi
lea ebx, [ecx + 0x5a]
mov ebp, 0x10
lea edx, [esp + 0x2c]
push ebx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0041d640
sub ebx, 6
mov eax, dword [esp + 0x28]
xor eax, esi
mov esi, edi
mov edi, eax
dec ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
jne 0x41df74
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], esi
pop ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor esi, esi
mov edi, 8
pop ebx
mov cl, byte [esp + esi + 0x10]
mov al, byte [esi + 0x435af0]
test cl, 1
je 0x41dfca
or byte [esp + 8], al
test cl, 2
je 0x41dfd3
or byte [esp + 9], al
test cl, 4
je 0x41dfdc
or byte [esp + 0xa], al
test cl, 8
je 0x41dfe5
or byte [esp + 0xb], al
test cl, 0x10
je 0x41dfee
or byte [esp + 0xc], al
test cl, 0x20
je 0x41dff7
or byte [esp + 0xd], al
test cl, 0x40
je 0x41e000
or byte [esp + 0xe], al
test cl, cl
jns 0x41e008
or byte [esp + 0xf], al
inc esi
dec edi
jne 0x41dfb7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
add esp, 0x10
ret 0xc

Function at 0x41e2d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x44]
push edi
push 8
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x3c
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x41e33a
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
mov eax, dword [edx + 0x1c]
push 0
push 0x69
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 1
call fcn.00417cb0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 1
push 0x69
push esi
call fcn.00417cb0
pop edi
pop esi
add esp, 0x3c
ret 4
Function at 0x41ffe0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
ret 4

Function at 0x421a40
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
je 0x421a86
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call ebx
test eax, eax
jne 0x421a7c
push 0x1f4
call ebp
push esi
call edi
cmp eax, 0xffffffff
jne 0x421a6e
pop ebp
pop ebx
pop edi
pop esi
ret 4

Function at 0x421c40
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Terminate process

Disassembly:
sub esp, 0x158
push esi
push edi
push str._UPDATE:
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040d380
test eax, eax
je 0x421d2b
lea edx, [eax + 9]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x421d2b
cmp byte [esi + edx - 1], 1
jne 0x421d2b
cmp esi, 0x104
ja 0x421d2b
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x60]
push edx
push eax
call fcn.0040d410
lea ecx, [esp + 0x5c]
mov byte [esp + esi + 0x5b], 0
push ecx
call fcn.00421a40
lea edx, [esp + 0x5c]
push 0
mov eax, dword [esp + 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x421d23
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 0x10], 0
call esi
mov eax, dword [esp + 8]
mov dword [esp + 8], 0
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x164]
push ecx
call fcn.00421a40
pop edi
pop esi
add esp, 0x158
ret 4

Function at 0x422b40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x436468]
xor eax, edx
dec ecx
jne 0x422b49
ret
Function at 0x42f00d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43f7c0
cmp edx, dword [eax]
je 0x42f02f
add eax, 8
inc ecx
cmp eax, 0x43f850
jl 0x42f020
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43f7c0]
jne 0x42f15d
mov eax, dword [0x440548]
cmp eax, 1
je 0x42f137
test eax, eax
jne 0x42f060
cmp dword [0x43d154], 1
je 0x42f137
cmp edx, 0xfc
je 0x42f15d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42f097
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042e8d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042bfa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42f0da
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042bfa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4348b0
push edi
call fcn.00430320
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042e8d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042e8e0
lea eax, [ebp - 0xa0]
push 0x43acc0
push eax
call fcn.0042e8e0
push dword [esi + 0x43f7c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042e8e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043074f
add esp, 0x2c
pop edi
jmp 0x42f15d
lea eax, [ebp + 8]
lea esi, [esi + 0x43f7c4]
push 0
push eax
push dword [esi]
call fcn.0042bfa0
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 0x433006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x100010a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10001240
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10001164
cmp dword [ebp - 4], 0x50000000
jb 0x100010e1
cmp dword [ebp - 4], 0x80000000
ja 0x100010e1
mov dword [ebp - 4], 0x4fff0000
jmp 0x100010ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10029bf0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10001107
jmp 0x10001164
cmp dword [ebp - 0x14], 0x10000
jne 0x1000114a
cmp dword [ebp - 0x18], 0x10000
jb 0x1000114a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000113d
mov eax, dword [ebp - 8]
jmp 0x10001166
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000115f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10001240
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100010ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10001170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000122c
cmp dword [ebp - 4], 0x50000000
jb 0x100011ac
cmp dword [ebp - 4], 0x80000000
ja 0x100011ac
mov dword [ebp - 4], 0x80010000
jmp 0x10001185
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10029bf0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100011d2
jmp 0x1000122c
cmp dword [ebp - 0x14], 0x10000
jne 0x10001215
cmp dword [ebp - 0x18], 0x10000
jb 0x10001215
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001208
mov eax, dword [ebp - 8]
jmp 0x1000122e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10001227
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10001185
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100019a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100019b5
xor eax, eax
jmp 0x10001a2a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100019e2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10001a25
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10001a23
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x10001a1f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10001a23
xor eax, eax
jmp 0x10001a2a
jmp 0x100019d9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10162c0c]
mov dword [ebp - 4], eax
jmp 0x10001c09
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001c26
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10001c00
mov esp, ebp
pop ebp
ret
Function at 0x10002070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10162c1c], eax
je 0x1000208e
mov eax, 0x10dd
jmp 0x1000216f
mov eax, dword [0x10162c2c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000210c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100020ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100020ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001710
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100266c3
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002096
mov dword [0x10162c2c], 0
call fcn.10001a30
mov ecx, dword [0x10162c28]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002159
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100266c3
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002124
mov dword [0x10162c28], 0
mov dword [0x10162c1c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10162c20], 0
je 0x10002679
mov eax, dword [0x10162c20]
jmp 0x10002719
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000268b
xor eax, eax
jmp 0x10002719
push 8
call fcn.10026a38
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100026e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100026ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100266c3
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10162c20], eax
mov dword [0x10162c24], 0
mov eax, dword [ebp - 8]
jmp 0x10002719
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100026fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100026ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10162c28]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10162c28], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10003650
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, 0x80
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
test cl, 1
cmovne eax, edx
shr ecx, 1
test cl, 1
je 0x10003676
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10003681
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1000368c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x10003697
bts eax, 3
shr ecx, 1
test cl, 1
je 0x100036a2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x100036ad
bts eax, 1
test cl, 2
je 0x100036b6
bts eax, 0
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add eax, eax
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov ebx, ecx
and ebx, 0x80000000
neg ebx
lea eax, [ecx + ecx]
sbb ebx, ebx
and ebx, 0x4c11db7
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [edi + eax*4], ebx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
nop
test bl, 1
je 0x1000378f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10003780
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
mov edx, 0x80
cmp ecx, 0xff
jle 0x10003663
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100037c0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x100571b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x1004baa8
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], ecx
push eax
or ebx, 0xffffffff
mov dword [ebp - 0x408], 0
call fcn.1002c414
add esp, 0xc
test eax, eax
je 0x10003817
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100266c8
mov esp, ebp
pop ebp
ret 4
push esi
push edi
nop dword [eax]
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push 0x400
push 1
push eax
call fcn.1002c66e
mov edi, eax
lea esi, [ebp - 0x404]
add esp, 0x10
mov dword [ebp - 0x410], edi
mov edx, edi
test edi, edi
je 0x10003872
mov edi, dword [ebp - 0x40c]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edi + ecx*4]
sub edx, 1
jne 0x10003856
mov edi, dword [ebp - 0x410]
cmp edi, 0x400
je 0x10003820
push dword [ebp - 0x408]
call fcn.1002c794
mov ecx, dword [ebp - 4]
add esp, 4
not ebx
xor ecx, ebp
mov eax, ebx
pop edi
pop esi
pop ebx
call fcn.100266c8
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x1004bab0
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.1002c45b
add esp, 0xc
test eax, eax
je 0x100038d9
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1002c814
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10003905
call fcn.1002c794
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1002c66e
add esp, 0x10
test eax, eax
je 0x1000395f
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x10003947
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10003926
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1002c66e
add esp, 0x10
test eax, eax
jne 0x10003920
pop esi
push ebx
call fcn.1002c81f
push dword [ebp + 0xc]
call fcn.1002c794
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003980
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x1004baa8
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.1002c414
add esp, 0xc
test eax, eax
je 0x100039b9
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1002c814
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x100039e5
call fcn.1002c794
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1002c66e
add esp, 0x10
test eax, eax
je 0x10003a3f
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x10003a27
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10003a06
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1002c66e
add esp, 0x10
test eax, eax
jne 0x10003a00
pop esi
push ebx
call fcn.1002c81f
push dword [ebp + 0xc]
call fcn.1002c794
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x100571b8]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10003b03
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.100266c8
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x10057b84], eax
cmp eax, 0xffffffff
je 0x10003aed
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10057b88], eax
test eax, eax
je 0x10003aed
mov ecx, dword [esp + 0x194]
mov al, 1
xor ecx, esp
mov dword [0x10157b94], 0x100044a0
call fcn.100266c8
mov esp, ebp
pop ebp
ret 4
Function at 0x10003b50
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x100571b8]
xor eax, esp
mov dword [esp + 0x14], eax
cmp dword [0x10057b84], 0xffffffff
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x10003ba1
mov ecx, 1
call fcn.10020680
push eax
push 0
push 0x10157d28
call fcn.10015fb0
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100266c8
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov edi, 2
mov word [esp + 0x10], di
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10003beb
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003beb
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.10029670
add esp, 0xc
push 0x10
lea eax, [esp + 0x10]
push eax
push dword [0x10057b84]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10003c4b
call esi
cmp eax, 0x2733
je 0x10003c4b
call esi
mov ecx, edi
push eax
call fcn.10020680
push eax
push 0
push 0x10157d28
call fcn.10015fb0
add esp, 0x10
mov ecx, 0x10057b80
call fcn.10003ce0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100266c8
mov esp, ebp
pop ebp
ret 8
push 0x23
push dword [0x10057b88]
push dword [0x10057b84]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10003c6d
call esi
mov ecx, 3
jmp 0x10003c16
push 0x80000
push 0
push 0x10057b8c
call fcn.10029bf0
add esp, 0xc
mov dword [0x100d7b8c], 0
push 0x80000
push 0
push 0x100d7b90
call fcn.10029bf0
add esp, 0xc
mov dword [0x10157b90], 0
push 0x10163b88
push ecx
push 0x10057b80
push 0x100041a0
call fcn.100208a0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [0x10157bb4], eax
xor ecx, esp
mov byte [0x10157bb8], 1
mov al, 1
call fcn.100266c8
mov esp, ebp
pop ebp
ret 8

Function at 0x10003ce0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x100034], 0
je 0x10003d1a
push 0
mov dword [0x10163b88], 0xffffffff
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10003d30
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10003d45
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov byte [esi + 0x100038], 0
pop esi
ret