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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
lea eax, [ebp - 0x84]
mov esi, ecx
push 0x7f
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x496122
cmp byte [ebp + eax - 0x85], 0x5c
je 0x496073
mov byte [ebp + eax - 0x84], 0x5c
and byte [ebp + eax - 0x83], 0
push dword [esi + 0x90]
lea eax, [ebp - 0x84]
push eax
call fcn.004c23f0
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.004c24d0
add esp, 0x10
test eax, eax
je 0x496119
push 0x40
push 0x53ad20
push dword [esi + 0x90]
call fcn.004c2a13
mov esi, eax
add esp, 0xc
test esi, esi
je 0x496122
push esi
call fcn.004d1c01
push eax
call fcn.004c2989
mov edi, eax
pop ecx
test edi, edi
pop ecx
jle 0x496122
push edi
call fcn.004db3f6
push esi
mov ebx, eax
push edi
push 1
push ebx
call fcn.004c2a57
push esi
call fcn.004c2516
push 0x40
lea eax, [ebp - 0x84]
push 0x539a94
push eax
call fcn.004c2a13
mov esi, eax
add esp, 0x24
test esi, esi
je 0x496122
push esi
push 1
push edi
push ebx
call fcn.004c2797
push esi
call fcn.004c2516
push ebx
call fcn.004db41f
mov esi, dword [ebp - 4]
add esp, 0x18
push 4
mov ecx, esi
call fcn.004f16ef
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4961c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov esi, ecx
cmp dword [esi + 0xe0], 0
jne 0x4961f3
push 0x18
call fcn.004db3f6
push 0x18
push 0
push eax
mov dword [esi + 0xe0], eax
call fcn.004c1810
add esp, 0x10
and byte [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push 0x80
push eax
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x80]
push eax
call fcn.004c2130
pop ecx
dec eax
js 0x49621d
cmp byte [ebp + eax - 0x80], 0x5c
jne 0x496213
and byte [ebp + eax - 0x7f], 0
lea eax, [ebp - 0x80]
push str.XIADAN.DLL
push eax
call fcn.004c23f0
pop ecx
lea eax, [ebp - 0x80]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esi + 0xe0]
mov dword [ecx], eax
mov eax, dword [esi + 0xe0]
mov eax, dword [eax]
cmp eax, 0x20
jbe 0x4962cf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateXiaDanWnd
push eax
call edi
mov ecx, dword [esi + 0xe0]
push str.GetXiaDanWndNumber
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xe0]
push dword [eax]
call edi
mov ecx, dword [esi + 0xe0]
push str.FilterXiaDanDllMsg
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xe0]
push dword [eax]
call edi
mov ecx, dword [esi + 0xe0]
push str.ProcessXiaDanDllIdle
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0xe0]
push dword [eax]
call edi
mov ecx, dword [esi + 0xe0]
push str.GetXiaDanDllVersion
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0xe0]
push dword [eax]
call edi
mov ecx, dword [esi + 0xe0]
push 1
mov dword [ecx + 0x14], eax
pop eax
pop edi
jmp 0x4962d1
xor eax, eax
pop esi
leave
ret
Function at 0x497208
Capabilities:
Create thread
Delete file

Disassembly:
mov eax, 0x502374
call fcn.004c13fc
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
sub esi, edi
mov dword [ebp - 0x10], esp
cmp esi, ebx
jg 0x497230
xor eax, eax
jmp 0x4973d9
push str.IDS_INDATA_READMSG
lea ecx, [ebp - 0x30]
call fcn.004dae80
push esi
push 1
push 0x77a
mov dword [ebp - 4], ebx
push dword [ebp + 0x24]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x30
call fcn.004db3f6
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x497273
push esi
push 0x7d0
mov ecx, eax
call fcn.00496a18
jmp 0x497275
xor eax, eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], ebx
call fcn.004d47db
mov dword [ebp - 0x18], edi
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp + 0x14]
jge 0x49739e
mov ecx, dword [ebp + 0xc]
push esi
mov byte [ebp - 4], 3
call fcn.004a4210
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00497146
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x14]
call fcn.004a471a
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, esi
push 0x50
sub eax, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x24], eax
mov edi, dword [ecx + eax*4]
call fcn.004db3f6
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x4972f4
mov ecx, eax
call fcn.004a1209
mov esi, eax
jmp 0x4972f6
xor esi, esi
mov eax, dword [esi]
push ebx
push dword [ebp - 0x28]
mov ecx, esi
mov byte [ebp - 4], 4
push dword [ebp - 0x20]
call dword [eax]
cmp eax, ebx
je 0x497345
cmp edi, ebx
je 0x497323
push ebx
push 0xffffffffffffffff
push ebx
push edi
mov ecx, esi
call fcn.004a0a77
mov ax, word [ebp + 0x18]
mov word [edi + 0x20], ax
cmp dword [esi + 0x4c], ebx
je 0x497345
xor edi, edi
mov eax, dword [esi + 0x4c]
movsx ecx, word [eax + 2]
cmp edi, ecx
jge 0x497345
mov ecx, dword [ebp - 0x1c]
push edi
push eax
push dword [ebp - 0x24]
call fcn.004973ea
inc edi
jmp 0x49732a
cmp esi, ebx
je 0x497357
mov ecx, esi
call fcn.004a121f
push esi
call fcn.004db41f
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x24]
push 2
pop esi
push esi
push 0x77a
push dword [ebp + 0x24]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004dae12
mov dword [ebp - 4], esi
jmp 0x497394
inc dword [ebp - 0x18]
jmp 0x497289
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push ebx
push dword [ebp - 0x1c]
push 0x497661
push ebx
push ebx
call fcn.004c59e2
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.004d480e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004dae12
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x20
Function at 0x497cba
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x502499
call fcn.004c13fc
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x20], 0x514360
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
push fcn.0049ce23
push 0x497e9a
push 6
lea eax, [esi + 0x30]
push 0x10
push eax
mov dword [ebp - 4], edi
call fcn.004c4202
lea ecx, [esi + 0xac]
mov byte [ebp - 4], 1
call fcn.004d5321
mov eax, dword [0x542d10]
mov dword [esi + 0xc4], eax
mov eax, dword [0x542d10]
mov dword [esi + 0xc8], eax
mov eax, dword [0x542d10]
lea ebx, [esi + 0xcc]
mov dword [ebx], eax
mov eax, dword [0x542d10]
mov dword [esi + 0xe8], eax
mov eax, dword [0x542d10]
mov dword [esi + 0xec], eax
mov eax, dword [0x542d10]
mov dword [esi + 0xf0], eax
mov eax, dword [0x542d10]
mov dword [esi + 0xf4], eax
mov eax, dword [0x542d10]
mov dword [esi + 0xf8], eax
mov eax, dword [0x542d10]
mov dword [esi + 0x100], eax
mov eax, dword [0x542d10]
mov dword [esi + 0x104], eax
mov eax, dword [0x542d10]
mov dword [esi + 0x108], eax
mov eax, dword [0x542d10]
mov dword [esi + 0x10c], eax
mov eax, dword [0x542d10]
mov dword [esi + 0x114], eax
mov eax, dword [0x542d10]
mov dword [esi + 0x118], eax
lea ecx, [esi + 0x11c]
call fcn.00497c56
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0x11
mov dword [esi + 0xd0], eax
mov eax, dword [ebp + 8]
mov dword [esi], 0x514354
mov dword [esi + 0xd8], eax
mov dword [esi + 0xe0], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0x90], edi
push 0xef23
lea ecx, [esi + 0x104]
mov dword [esi + 0x1c], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.004db9dc
push 0xef24
lea ecx, [esi + 0x108]
call fcn.004db9dc
mov ecx, ebx
call fcn.004dad9d
push 0x53b0b8
lea ecx, [esi + 0xe8]
call fcn.004daf9b
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xe4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x18], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x49c1ff
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, ecx
push str.RasAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x130], eax
je 0x49c326
push 0x28
push 0
push 0x549a10
call fcn.004c1810
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
push str.RasEnumEntriesA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a10], eax
je 0x49c31f
push str.RasGetEntryDialParamsA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a14], eax
je 0x49c31f
push str.RasSetEntryDialParamsA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a18], eax
je 0x49c31f
push str.RasDialA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a1c], eax
je 0x49c31f
push str.RasHangUpA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a20], eax
je 0x49c31f
push str.RasGetErrorStringA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a24], eax
je 0x49c31f
push str.RasEnumConnectionsA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a28], eax
je 0x49c31f
push str.RasGetConnectStatusA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a2c], eax
je 0x49c31f
push str.RasGetEntryPropertiesA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a30], eax
je 0x49c31f
push str.RasSetEntryPropertiesA
push dword [esi + 0x130]
call edi
test eax, eax
mov dword [0x549a34], eax
jne 0x49c32a
mov ecx, esi
call fcn.0049c330
xor eax, eax
jmp 0x49c32d
push 1
pop eax
pop edi
pop esi
ret

Function at 0x49c405
Capabilities:
Create thread

Disassembly:
mov eax, 0x502b86
call fcn.004c13fc
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, ecx
test ebx, ebx
je 0x49c4ab
push ebx
lea ecx, [edi + 0xc4]
call fcn.004daf4b
lea eax, [ebx + 4]
lea ecx, [edi + 0xc8]
push eax
call fcn.004daf4b
push esi
push edi
push ebx
lea ecx, [ebp - 0xb8]
call fcn.0049296d
and dword [ebp - 4], esi
lea ecx, [ebp - 0xb8]
call fcn.004d696a
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffffe
inc esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 1
call fcn.004d3a3c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.004d6567
cmp esi, 0xffffffff
je 0x49c4ab
lea ecx, [ebp + 8]
xor eax, eax
push ecx
push eax
push eax
push 0x4935b4
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x49c6b5
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x502bd8
call fcn.004c13fc
push ecx
push esi
push edi
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00431383
mov esi, dword [ebp + 8]
pop ecx
test esi, esi
mov edi, eax
je 0x49c764
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jl 0x49c764
push eax
push 0
push esi
call fcn.004c1810
push dword [ebp - 0x10]
push edi
push esi
call fcn.004c14d0
mov edx, dword [ebp + 0x10]
add esp, 0x18
mov eax, dword [edx - 8]
test eax, eax
jle 0x49c727
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jge 0x49c712
mov ecx, eax
test ecx, ecx
jle 0x49c764
mov eax, esi
sub edx, esi
mov esi, ecx
mov cl, byte [edx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x49c71c
jmp 0x49c764
mov ecx, 0x549908
call fcn.004db981
mov eax, dword [eax + 0x9d9]
test eax, eax
je 0x49c764
mov ecx, dword [eax + 0xc8]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ecx - 8]
cmp ecx, edi
jge 0x49c74d
mov edi, ecx
xor ecx, ecx
test edi, edi
jle 0x49c764
mov edx, dword [eax + 0xc8]
mov dl, byte [edx + ecx]
xor byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jl 0x49c753
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004dae12
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x49d39f
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push ebp
call fcn.004c2130
mov dword [esp], 0x100
mov esi, 0x549a44
push 0
push esi
mov ebx, eax
call fcn.004c1810
add esp, 0xc
mov eax, ebx
cdq
push 2
and dword [esp + 0x10], 0
pop ecx
and byte [esp + 0x14], 0
idiv ecx
test edx, edx
je 0x49d3f6
mov al, byte [ebp]
mov dword [esp + 0xc], 1
cmp al, 0x31
mov byte [esp + 0x14], al
je 0x49d3f6
mov eax, esi
jmp 0x49d47c
mov eax, ebx
push edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
inc esi
inc esi
push esi
call fcn.004db3f6
mov edi, eax
mov eax, dword [esp + 0x14]
push esi
push edi
add eax, ebp
push ebx
push eax
call fcn.004a8a80
add esp, 0x14
dec esi
dec esi
cmp byte [esp + 0x18], 0
jne 0x49d43a
push 1
pop eax
cmp esi, eax
jle 0x49d454
mov cl, byte [eax + edi - 1]
xor byte [eax + edi], cl
inc eax
cmp eax, esi
jl 0x49d42c
jmp 0x49d454
mov dl, byte [edi]
push 1
pop eax
cmp esi, eax
jle 0x49d454
mov cl, byte [eax + edi]
mov bl, cl
xor bl, dl
mov dl, cl
mov byte [eax + edi], bl
inc eax
cmp eax, esi
jl 0x49d443
and byte [eax + edi], 0
push 1
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
mov esi, 0x549a44
push 0x100
push esi
call fcn.004a8230
push edi
call fcn.004db41f
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4a4bf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
jne 0x4a4c32
cmp dword [ebp + 8], edi
je 0x4a4c14
mov dword [esi + 8], 1
call fcn.004a4c58
mov dword [esi + 8], edi
jmp 0x4a4c32
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4a4c38
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x4a4c32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret 4

Function at 0x4a4dc3
Capabilities:
Create process on windows
Delete file

Disassembly:
mov eax, 0x5035ec
call fcn.004c13fc
sub esp, 0x58
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.004dab87
push 0x44
lea eax, [ebp - 0x64]
pop esi
mov byte [ebp - 4], 1
push esi
push ebx
push eax
call fcn.004c1810
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp - 0x64], esi
push ebx
call fcn.004db242
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4a4e2e
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004dae12
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4a57f3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x40], edi
jne 0x4a585b
push 1
pop eax
push eax
mov dword [esi + 0x40], eax
call fcn.004a5763
mov ecx, esi
call fcn.004a5714
mov eax, dword [ebp + 0x18]
push dword [ebp + 8]
lea ecx, [esi + 0x20]
mov dword [esi + 0x10], eax
call fcn.004daf4b
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], edi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], edi
je 0x4a5842
push esi
call fcn.004a5861
pop ecx
jmp 0x4a5858
lea eax, [ebp + 0x18]
push eax
push edi
push esi
push fcn.004a5861
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x40], edi
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4a5ed1
Capabilities:
Get common file path

Disassembly:
mov eax, 0x50383f
call fcn.004c13fc
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
mov esi, ecx
push 0x547498
lea ecx, [ebp - 0x10]
call fcn.004dae80
push 1
mov eax, 0x104
pop ebx
lea ecx, [ebp - 0x10]
push eax
push eax
mov dword [ebp - 4], ebx
call fcn.004db242
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004db291
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004a5d29
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004daf4b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004dae12
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x4a5f56
push 0x53a230
lea ecx, [ebp - 0x10]
call fcn.004daf9b
mov eax, dword [0x542d10]
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
push str._s_TMP_DL__d__
push eax
call fcn.004d261f
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.004dab87
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004dae12
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004dae12
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4a6a98
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
xor eax, eax
mov esi, ecx
push eax
push esi
push 0x4a6b1a
push eax
push eax
mov dword [esi + 0x90], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x94], eax
pop esi
pop ecx
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
or eax, 0xffffffff
movzx esi, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x514bec]
xor eax, edx
inc ecx
dec dword [esp + 0xc]
jne 0x4a6f88
not eax
pop esi
ret 8

Function at 0x4a73ac
Capabilities:
Query or enumerate registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
ret 0xc
Function at 0x4a82b0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515128
push 0x4c5e1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
je 0x4a8450
cmp byte [eax], bl
je 0x4a8450
push 0x104
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004c3b0f
add esp, 0xc
cmp byte [ebp - 0x220], bl
je 0x4a8450
push 0x5c
lea ecx, [ebp - 0x220]
push ecx
call fcn.004c3a30
add esp, 8
cmp eax, ebx
je 0x4a8330
mov dword [ebp - 4], ebx
mov byte [eax], bl
mov dword [ebp - 4], 0xffffffff
push ebx
lea edx, [ebp - 0x220]
push edx
call fcn.004c24d0
add esp, 8
test eax, eax
jne 0x4a8378
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x539b00
lea eax, [ebp - 0x220]
push eax
call fcn.004c2df6
mov esi, eax
movsx ecx, byte [esi]
push ecx
call fcn.004c48b5
mov byte [esi], al
call fcn.004c46cc
mov edi, eax
push 0x104
lea edx, [ebp - 0x11c]
push edx
call fcn.004c4782
add esp, 0x14
mov al, byte [esi]
mov byte [ebp - 0x22c], al
mov byte [ebp - 0x22b], 0x3a
mov byte [ebp - 0x22a], 0x5c
mov byte [ebp - 0x229], bl
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x539b00
call fcn.004c3dcd
push 0x539b00
push ebx
call fcn.004c2df6
add esp, 0xc
mov esi, eax
cmp esi, ebx
je 0x4a8428
push esi
call fcn.004c3dcd
add esp, 4
test eax, eax
je 0x4a8414
push esi
call fcn.004c2cf1
push esi
call fcn.004c3dcd
add esp, 8
push 0x539b00
push ebx
call fcn.004c2df6
add esp, 8
mov esi, eax
cmp esi, ebx
jne 0x4a83f8
push edi
call fcn.004c470f
lea edx, [ebp - 0x11c]
push edx
call fcn.004c3dcd
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a8af0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004db3f6
add esp, 4
mov ebx, eax
call fcn.004a8b90
mov byte [ebx], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 1]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 1
mov esi, ecx
cmp esi, eax
jle 0x4a8b5f
mov cl, byte [eax + ebx - 1]
mov dl, byte [eax + ebx]
xor dl, cl
mov byte [eax + ebx], dl
inc eax
cmp eax, esi
jl 0x4a8b4e
push 0xff
push 0x549f31
push esi
push ebx
mov byte [0x549f30], 0x31
call fcn.004a89c0
push ebx
call fcn.004db41f
add esp, 0x14
mov eax, 0x549f30
pop edi
pop esi
pop ebx
ret
Function at 0x4a8bc0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push ebp
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
xor bl, bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x549e30
mov ebp, ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov eax, ebp
and eax, reloc.WSOCK32.dll_accept
jns 0x4a8bf6
dec eax
or eax, 0xfffffffe
inc eax
je 0x4a8c11
mov bl, byte [edx]
mov dword [esp + 0xc], 1
cmp bl, 0x31
je 0x4a8c11
pop edi
pop ebp
mov eax, 0x549e30
pop ebx
pop ecx
ret
mov eax, ebp
push esi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, 2
push esi
call fcn.004db3f6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov edi, eax
push esi
push edi
add ecx, edx
push ebp
push ecx
call fcn.004a8a80
add esp, 0x14
sub esi, 2
test bl, bl
jne 0x4a8c5f
mov eax, 1
cmp esi, eax
jle 0x4a8c7b
mov cl, byte [eax + edi - 1]
mov bl, byte [eax + edi]
xor bl, cl
mov byte [eax + edi], bl
inc eax
cmp eax, esi
jl 0x4a8c4c
jmp 0x4a8c7b
mov dl, byte [edi]
mov eax, 1
cmp esi, eax
jle 0x4a8c7b
mov cl, byte [eax + edi]
mov bl, cl
xor bl, dl
mov dl, cl
mov byte [eax + edi], bl
inc eax
cmp eax, esi
jl 0x4a8c6a
push 0
lea edx, [edi + 1]
push 0xffffffffffffffff
push edx
push 0x100
push 0x549e30
mov byte [eax + edi], 0
call fcn.004a8230
push edi
call fcn.004db41f
add esp, 0x18
mov eax, 0x549e30
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret