joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40605f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a3f90
push esi
call fcn.00406688
push esi
call fcn.00406002
mov edi, eax
test edi, edi
jne 0x406080
xor eax, eax
jmp 0x4060d8
push edi
call fcn.00406936
test byte [0x7a82b8], 0x80
je 0x40609d
mov ax, word [edi]
test ax, ax
je 0x40607c
cmp ax, 0x5c
je 0x40607c
sub edi, esi
sar edi, 1
jmp 0x4060b7
call fcn.004069e5
test eax, eax
je 0x4060b1
test byte [eax], 0x10
je 0x40607c
push esi
call fcn.00405fa3
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4060a3
call fcn.00405f57
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406172
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406178
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4061a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a5a8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5ac]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4061f7
test edi, edi
jne 0x4061b4
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4061f1
Function at 0x4062ce
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7a4e28], 0x55004e
mov dword [0x7a4e2c], 0x4c
mov edi, 0x400
mov ebp, 0x7a4e28
je 0x406324
push 1
push 0
push esi
call fcn.00406178
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406443
cmp eax, edi
jg 0x406443
mov esi, 0x7a5628
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406443
cmp eax, edi
jg 0x406443
push esi
push ebp
push str._ls_ls_r_n
push 0x7a4a28
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a82b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004066c5
push 4
push 0xc0000000
push esi
call fcn.00406178
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406443
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40643c
push edi
push esi
push ebp
call fcn.004061fb
test eax, eax
je 0x40643c
push str._Rename__r_n
push esi
call fcn.004060dd
test eax, eax
jne 0x4063da
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40640f
add eax, 0xa
push 0x40a5b0
push eax
call fcn.004060dd
mov ebp, eax
test ebp, ebp
je 0x40640b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4063fc
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4063f6
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406411
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a4a28
push eax
call fcn.00406133
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040622a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406448
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40646b
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062ce
pop ecx
pop ecx
inc dword [0x7a8330]
ret 8
Function at 0x406556
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064f5
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4065c6
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4065c6
cmp dword [ebp + 0xc], 1
je 0x4065ca
cmp dword [ebp + 0xc], 2
je 0x4065ca
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406a0c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a30
xor eax, eax
test eax, eax
je 0x406a43
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a43
xor ecx, ecx
jmp 0x406a46
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x7a5e2c], 0
push esi
jne 0x406ba0
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b7a
mov dword [ecx*4 + 0x7a5e28], eax
inc ecx
cmp ecx, 0x100
jl 0x406b75
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bd1
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a5e28]
xor eax, esi
inc ecx
dec edx
jne 0x406bb3
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5c2e11a6
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x51f64701
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x402dda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x402dda
lcall 0x5de5, 0x8b10c483
jmp loc.00783b44
Function at 0x4080ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4231a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x423b78]
mov esi, dword [ebp + 8]
call fcn.00408082
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00403787
add esp, 0x10
xor esi, esi
call fcn.00408068
movzx ecx, byte [ebp + esi - 0x10]
xor eax, ecx
mov byte [ebp + esi - 0x10], al
movzx eax, al
push eax
call fcn.00408142
inc esi
pop ecx
cmp esi, 0xc
jl 0x4080ea
cmp dword [0x423b74], 0
movzx ecx, byte [ebp - 5]
pop esi
je 0x408129
movzx eax, byte [0x426c67]
cmp cx, ax
je 0x408132
or eax, 0xffffffff
jmp 0x408134
movzx eax, byte [0x426c6d]
jmp 0x40811f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408980
mov esp, ebp
pop ebp
ret

Function at 0x408142
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x426350]
mov eax, ecx
xor eax, dword [esp + 4]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4263a0]
movzx eax, cl
add eax, dword [0x426354]
imul eax, eax, 0x8088405
mov dword [0x426350], ecx
mov ecx, dword [0x426358]
inc eax
mov dword [0x426354], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4263a0]
mov dword [0x426358], ecx
ret

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp fcn.00431219
Function at 0x403010
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4595e8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x4595ec]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00403000
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4595f0]
mov edx, dword [str._s_z]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea esp, [esp]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x460de4]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40309c
mov dword [0x460de0], 0xedeb2e40
jmp 0x4030b7
cmp eax, 0x3eb
jne 0x4030b7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x460870], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x460de4], 0x9e6
mov dword [0x460ddc], 0xf4ea3dee
jne 0x4030ee
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
xor dword [ebp - 4], esi
cmp dword [0x460de4], 0x213
jne 0x40316a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [ebp - 0x4c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x460de4], 0xc
jne 0x40318e
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
lea ecx, [edi + ebx]
xor esi, ecx
cmp dword [0x460de4], 0xb03
jne 0x4031c9
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x403070
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403200
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x460de4]
shr eax, 3
push ebx
mov ebx, dword [0x460874]
test eax, eax
jbe 0x403287
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], eax
jmp 0x403230
cmp dword [0x460de4], 0x959
jne 0x403276
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call edi
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push ebx
call fcn.00403010
add ebx, 8
sub dword [ebp - 4], 1
jne 0x403230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409fdc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458ea0]
jne 0x409fe6
repz ret
jmp fcn.0040dc20

Function at 0x40d9e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408493
and dword [ebp - 4], 0
cmp dword [0x45e874], 0
mov ebx, eax
jne 0x40da94
push 0x402530
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40db45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402524
push edi
call esi
test eax, eax
je 0x40db45
push eax
call fcn.00408421
mov dword [esp], 0x402514
push edi
mov dword [0x45e874], eax
call esi
push eax
call fcn.00408421
mov dword [esp], 0x402500
push edi
mov dword [0x45e878], eax
call esi
push eax
call fcn.00408421
mov dword [esp], 0x4024e4
push edi
mov dword [0x45e87c], eax
call esi
push eax
call fcn.00408421
pop ecx
mov dword [0x45e884], eax
test eax, eax
je 0x40da94
push 0x4024cc
push edi
call esi
push eax
call fcn.00408421
pop ecx
mov dword [0x45e880], eax
mov eax, dword [0x45e880]
cmp eax, ebx
je 0x40daec
cmp dword [0x45e884], ebx
je 0x40daec
push eax
call fcn.0040849c
push dword [0x45e884]
mov esi, eax
call fcn.0040849c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40daec
test edi, edi
je 0x40daec
call esi
test eax, eax
je 0x40dae3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40dae3
test byte [ebp - 0xc], 1
jne 0x40daec
or dword [ebp + 0x10], 0x200000
jmp 0x40db25
mov eax, dword [0x45e878]
cmp eax, ebx
je 0x40db25
push eax
call fcn.0040849c
pop ecx
test eax, eax
je 0x40db25
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40db25
mov eax, dword [0x45e87c]
cmp eax, ebx
je 0x40db25
push eax
call fcn.0040849c
pop ecx
test eax, eax
je 0x40db25
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e874]
call fcn.0040849c
pop ecx
test eax, eax
je 0x40db45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40db47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9b6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009b61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9b607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b606a
add dl, dl
jne 0x9b6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b60dc
xor eax, eax
add dl, dl
jne 0x9b6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9b617d
add dl, dl
jne 0x9b60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9b60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9b6075
mov eax, 1
add dl, dl
jne 0x9b60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9b60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b60e1
sub eax, ebx
mov ebx, 1
jne 0x9b6128
mov ecx, 1
add dl, dl
jne 0x9b610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9b6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9b613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9b614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9b6136
cmp eax, 0x7d00
jae 0x9b616d
cmp eax, 0x500
jb 0x9b6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b6075
cmp eax, 0x7f
ja 0x9b6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9b6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9b619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9b6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403200
Capabilities:
Encode data using xor

Disassembly:
neg dword [ebx]
ret 0x558b
cmp eax, ecx
jl 0x4031b2
or eax, 0x76f6d504
or bl, byte [edi + 0x5e]
mov eax, 0x600001
cmp dword [ebp - 0x3d], ebx
pop edi
pop esi
jp 0x403176
pop ebx
movsb byte es:[edi], byte [esi]
ret
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x3a410ba0]
mov bl, 0xd
movsb byte es:[edi], byte [esi]
or eax, dword [ecx]
jo 0x40319e
enter 0x9f0, 0
push esi
push edi
mov edi, dword [0x410bc4]
sub eax, ebx
sbb ecx, edi
mov edx, dword [0xd1411769]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
fild qword [ebp - 0x38]
mov esi, dword [0x405764]
push edx
sbb cl, byte [eax]
nop
add dword [eax], eax
mov cs, word [0x40c238]
fstp qword [ebp - 0x38]
pop edx
mov word [ecx + 0xd81762], fs
push 0x4113e0
mov bh, 0x50
mov eax, dword [0x25410ba8]
pop esi
push str._tr__s__th_colspan2__s_Server_Software:__th__td_colspan2__s__s__td___tr__n
push ebx
pushfd
mov ecx, dword [0x401860]
mov eax, dword [0x85f3178e]
mov edx, dword [0x4157a8]
push ecx
mov al, 1
aam 0x68
push eax
out 0x40, eax
add dh, dh
salc
mov ecx, dword [0x410ba8]
xor edx, edi
mov ax, word [0x4117f4]
push eax
mov ecx, 0x9b87f0
std
dec edx
push 0x40e7d6
call esi
push es
adc eax, 0x4117aa
invalid
Function at 0x10001000
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
push eax
push 2
rep stosd dword es:[edi], eax
mov byte [0x10008f40], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000103f
pop edi
mov eax, 1
pop esi
add esp, 0x128
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10001083
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x2c]
push ecx
push 0x10008f40
call edi
push 0x10008114
push 0x10008f40
call edi
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000105c
push 0x10008f40
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x10008f40
push esi
sub ecx, 2
mov byte [eax + ecx], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret

Function at 0x10001780
Capabilities:
Create thread

Disassembly:
sub esp, 0x100
lea ecx, [esp]
push esi
mov esi, dword [esp + 0x10c]
push edi
push 0x100
mov eax, dword [esi]
push eax
push ecx
call fcn.10001df0
mov edx, dword [esi]
push 0x100
lea eax, [esp + 0x18]
push edx
push eax
call fcn.10001baf
mov edi, dword [esp + 0x124]
lea ecx, [esp + 0x20]
push ecx
push edi
push str.HaHa:_ServiceMain__d___s__called
call fcn.100019f0
add esp, 0x24
lea edx, [esp + 8]
push 0x10001900
push edx
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
test eax, eax
mov dword [0x1000935c], eax
jne 0x10001801
mov eax, dword [esi]
push eax
push str.HaHa:_RegisterServiceCtrlHandler__S_failed
call fcn.100019f0
add esp, 8
pop edi
pop esi
add esp, 0x100
ret 8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push 0
push 2
call fcn.100018a0
push 0
push 0
push 4
call fcn.100018a0
add esp, 0x18
cmp edi, 1
jle 0x1000184e
mov ecx, dword [esi + 4]
push 0x100
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.10001df0
mov eax, dword [esi + 4]
push 0x100
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.10001baf
add esp, 0x18
push 0
push 0
push 0
push 0x100010b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xe
call esi
mov eax, dword [0x10009358]
cmp eax, 3
je 0x1000187c
cmp eax, 1
jne 0x10001869
push str.HaHa:_ServiceMain_done
call fcn.100019f0
add esp, 4
pop edi
pop esi
add esp, 0x100
ret 8