joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a10b
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x20c
mov word [ebp - 0x41c], ax
xor edi, edi
lea eax, [ebp - 0x41a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x103
lea eax, [ebp - 0x41c]
push eax
push edi
mov dword [ebp - 0x420], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100a169
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100a2f1
xor eax, eax
push 0x20
mov word [ebp - 0x216], ax
pop eax
push 0x2f
mov word [ebp - 0xc], ax
pop eax
push 0x56
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
push 0x107
lea eax, [ebp - 0x41c]
push eax
call fcn.01004473
cmp eax, edi
jl 0x100a2f1
push esi
xor eax, eax
push 0x1fe
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
mov esi, 0x100
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
test eax, eax
jne 0x100a1f7
push 9
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100a2de
push ebx
mov dword [ebp - 0x424], edi
cmp dword [ebp - 0x420], edi
je 0x100a229
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push edi
push dword [0x100fe00]
lea eax, [ebp - 0x41c]
push edi
push edi
push eax
push 1
push 3
push 0x20
push 0xf01ff
lea eax, [ebp - 0x20c]
push eax
push 0x1001ff8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
cmp ebx, edi
jne 0x100a286
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
cmp eax, 0x430
jne 0x100a2d2
mov eax, dword [ebp - 0x420]
inc dword [ebp - 0x420]
cmp eax, 0xe
jge 0x100a2d2
jmp 0x100a210
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x20
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
test eax, eax
jne 0x100a2af
push 9
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 1
push ebx
call dword [0x100fe18]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x100a2ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01001d10
leave
ret
Function at 0x100b1a1
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
mov esi, 0x104
push edi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, esi
jle 0x100b215
push 0
push eax
lea ecx, [ebp - 0x218]
call fcn.01002465
test al, al
jne 0x100b215
lea ecx, [ebp - 0x218]
call fcn.01001de6
push 0xe
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01001d10
leave
ret
push ebx
push edi
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.01008e5c
test eax, eax
jge 0x100b23f
push 0xe
pop ebx
lea ecx, [ebp - 0x218]
call fcn.01001de6
mov eax, ebx
pop ebx
jmp 0x100b207
xor esi, esi
mov eax, edi
test edi, edi
je 0x100b267
movzx ecx, word [edi]
test cx, cx
je 0x100b263
push eax
call fcn.010081a5
pop ecx
movzx ecx, word [eax]
cmp cx, 0x5c
jne 0x100b24a
mov esi, eax
jmp 0x100b24a
test esi, esi
jne 0x100b26c
xor ebx, ebx
inc ebx
jmp 0x100b22f
mov ecx, dword [ebp - 0x218]
xor eax, eax
sub esi, edi
sar esi, 1
push eax
mov word [ecx + esi*2], ax
call dword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
test ebx, ebx
jne 0x100b22f
push 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x21c], eax
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
je 0x100b2b7
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x100b2c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100b2c5
and eax, edi
or eax, esi
mov ebx, eax
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x100b2e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100b2e3
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jne 0x100b313
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100b30f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100b311
and eax, edi
or eax, esi
jmp 0x100b311
call eax
mov ebx, eax
cmp dword [ebp - 0x21c], 0
je 0x100b328
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x100b22f
Function at 0x100b385
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
cmp dword [0x100fe08], 0xffffffff
mov ebx, eax
jne 0x100b468
lea eax, [ebp - 0x868]
push eax
mov dword [0x100fe08], edi
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x868], 0x20019
call fcn.01004283
pop ecx
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x868]
push edi
push 0x100b530
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100b468
lea eax, [ebp - 0x858]
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x858]
push eax
push edi
push edi
push 0x100b520
push dword [ebp - 0x86c]
mov dword [ebp - 0x860], 0x28
mov dword [ebp - 0x868], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b451
mov eax, dword [ebp - 0x864]
mov eax, dword [eax]
and eax, 3
mov dword [0x100fe08], eax
push dword [ebp - 0x86c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x864]
call fcn.01008e36
test dword [0x100fe08], 3
je 0x100b4da
xor eax, eax
push 0x800
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x808]
cmp dword [ebp + 0xc], edi
je 0x100b4b6
push dword [ebp + 0xc]
push 0x100b4fc
push 0x401
push eax
call fcn.01008f42
add esp, 0x14
jmp 0x100b4c9
push 0x100b4f0
push 0x401
push eax
call fcn.01008f42
add esp, 0x10
cmp eax, edi
jl 0x100b4da
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
Function at 0x100ba97
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x100bbe0
push 0xf01ff
push 0x1001ff8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x100bbac
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100bb49
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, 0x3e8
push ebx
mov dword [ebp - 0x28], 4
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x100bb2c
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0xc]
cmp eax, 5
jge 0x100bb39
cmp dword [ebp - 0x28], 3
jne 0x100bb39
push ebx
call esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x100bb18
cmp dword [ebp - 0x28], 1
pop ebx
je 0x100bb89
mov dword [ebp - 4], 0x80004005
jmp 0x100bba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
sub eax, 0x41c
je 0x100bb7d
sub eax, 8
je 0x100bb78
dec eax
dec eax
je 0x100bb78
sub eax, 0xf
je 0x100bb78
push dword [ebp - 4]
push 0x100bc50
call fcn.0100b385
pop ecx
pop ecx
jmp 0x100bb84
mov dword [ebp - 4], esi
jmp 0x100bb89
mov dword [ebp - 4], 0x652
cmp dword [ebp - 4], esi
jne 0x100bba0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, 1
je 0x100bba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x100bbd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
sub eax, 0x424
je 0x100bbd2
sub eax, 0xc
je 0x100bbd2
push dword [ebp - 4]
push 0x100bc28
call fcn.0100b385
pop ecx
pop ecx
jmp 0x100bbd5
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100bbf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100bbfc
mov dword [ebp - 4], eax
call fcn.0100b385
pop ecx
pop ecx
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x100bc83
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc08
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0xc00]
push ecx
push 0x2001f
xor esi, esi
push esi
push ebx
push eax
mov dword [ebp - 0xc08], eax
call fcn.01002171
add esp, 0x14
cmp eax, esi
je 0x100bcce
cmp eax, 2
sete al
jmp 0x100bdd8
push edi
lea ecx, [ebp - 0xbfc]
call fcn.01008d6a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100bcf9
push dword [ebp - 0xbfc]
push dword [ebp - 0xc00]
call fcn.0100bc83
pop ecx
pop ecx
test al, al
je 0x100bd38
mov eax, dword [ebp - 0xbf8]
push esi
push esi
push esi
push esi
mov dword [ebp - 0xc04], eax
lea eax, [ebp - 0xc04]
push eax
push dword [ebp - 0xbfc]
push esi
push dword [ebp - 0xc00]
call edi
cmp eax, esi
je 0x100bce2
push dword [ebp - 0xc00]
cmp eax, 0x103
je 0x100bd40
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100bda1
push dword [ebp - 0xc00]
jmp 0x100bd30
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0xc08]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, esi
je 0x100bdbd
xor eax, eax
push 0x800
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push esi
push eax
call sub.msvcrt.dll_memset
push ebx
push 0x100bde8
lea eax, [ebp - 0x808]
push 0x401
push eax
call fcn.01008f42
add esp, 0x1c
test eax, eax
jl 0x100bda1
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.0100b385
pop ecx
pop ecx
cmp dword [ebp - 0xbf8], 0x1f4
jle 0x100bdb9
push dword [ebp - 0xbfc]
call fcn.01008866
pop ecx
xor al, al
jmp 0x100bdd7
cmp dword [ebp - 0xbf8], 0x1f4
jle 0x100bdd5
push dword [ebp - 0xbfc]
call fcn.01008866
pop ecx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret

Function at 0x101a587
Capabilities:
Encode data using xor

Disassembly:
push 4
push 3
inc dl
lea esi, [esi + 0x14]
inc edx
cmp cl, 0x32
push esi
add dword [ebp - 0x21b], ebp
call dword [0xfffffd8c]
sub dword [ebp - 0x21b], ebp
ret
push 0x7b105749
dec ecx
call fcn.0101a441
sbb dh, cl
mov dword [ebp - 0x274], esi
push 0xe698788d
call fcn.0101a441
lea eax, [esp + 0x28]
xchg edx, edi
mov dword [esp + 0x4c], esi
mov dl, 0x88
xchg esi, eax
push 0x20
mov edi, dword [esp + 0x4c]
push 8
push esp
xor cl, dl
and dh, 0x4f
call edi
call dword [esp + 0x50]
dec byte [esp]
jne 0x101a5b7
sub edx, edi
inc ecx
dec edx
pop eax
push 1
dec edi
call fcn.0101a572
mov dword [esi + 0x14], 0xc
pop dword [esi + 0x1c]
lea eax, [ebp - 0x69e4]
push eax
mov dword [esi + 0x18], esi
sub byte [esi + 2], 0xfc
jmp 0x101a3d9
Function at 0x3943700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0394378f
jae 0x394370e
xor ecx, ecx
call fcn.0394378f
jae 0x394373d
xor eax, eax
call fcn.0394378f
jae 0x394374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0394378f
adc al, al
jae 0x394372f
jne 0x3943779
stosb byte es:[edi], al
jmp 0x3943711
call fcn.0394379b
sub ecx, ebx
jne 0x3943756
call fcn.03943799
jmp 0x3943775
lodsb al, byte [esi]
shr eax, 1
je 0x3943783
adc ecx, ecx
jmp 0x3943772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03943799
cmp eax, 0x7d00
jae 0x3943772
cmp ah, 5
jae 0x3943773
cmp eax, 0x7f
ja 0x3943774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3943711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x402720
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x64
push esi
push str.HDSPD.INI
push 0x20
lea eax, [esp + 0x1c]
push eax
push 0x40a8e0
push str.RegID
push str.R2000
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x12]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1a]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1e]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push str._4d_4d_4d_4d_4d_4d_4d_3d
push eax
call dword [sym.imp.MSVCR70.dll_sscanf]
add esp, 0x28
xor esi, esi
mov cx, word [esp + esi*2 + 4]
lea edx, [esp + 0x34]
push edx
mov word [esp + 0x44], si
mov word [esp + 0x3c], cx
call fcn.00401200
add esp, 4
test ax, ax
jne 0x4027b3
inc esi
cmp esi, 8
jl 0x402782
mov eax, 1
pop esi
add esp, 0x64
ret
xor eax, eax
pop esi
add esp, 0x64
ret

Function at 0x4027c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x64
call fcn.00401000
test ax, ax
jne 0x4027f6
push str.HDSPD.INI
push 0x20
lea eax, [esp + 0x18]
push eax
push 0x40a8e0
push str.RegID
push str.R2000
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x10]
test al, al
jne 0x4027ff
mov eax, 1
add esp, 0x64
ret
push esi
lea ecx, [esp + 0x12]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1a]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1e]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push str._4d_4d_4d_4d_4d_4d_4d_3d
push eax
call dword [sym.imp.MSVCR70.dll_sscanf]
add esp, 0x28
xor esi, esi
lea ecx, [ecx]
lea ecx, [esp + 0x34]
push ecx
mov word [esp + 0x42], si
call fcn.00401040
add esp, 4
test ax, ax
jne 0x402869
mov dx, word [esp + 0x34]
cmp dx, word [esp + esi*2 + 4]
jne 0x402873
inc esi
cmp esi, 8
jl 0x402840
mov eax, 1
pop esi
add esp, 0x64
ret
xor eax, eax
pop esi
add esp, 0x64
ret

Function at 0x402980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402999
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4029ad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4029ce
cmp esi, eax
jae 0x4029a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4029c0
cmp esi, eax
jae 0x4029a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403590
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x28]
push esi
push ebx
mov esi, eax
xor eax, eax
push edi
nop
xor edx, edx
xor ecx, ecx
mov edi, 1
shl edi, cl
test eax, edi
je 0x4035b8
mov edi, 0x10
sar edi, cl
or edx, edi
inc ecx
cmp ecx, 5
jl 0x4035a4
mov cl, byte [edx + esi]
sub cl, 0x30
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x20
jl 0x4035a0
xor esi, esi
lea eax, [esp + 0x11]
mov dl, byte [esp + esi + 0x10]
mov cl, byte [esp + esi + 0x11]
shl dl, 2
shr cl, 4
add dl, cl
mov byte [eax - 1], dl
mov dl, byte [esp + esi + 0x12]
mov cl, byte [esp + esi + 0x11]
shr dl, 2
shl cl, 4
add dl, cl
mov byte [eax], dl
mov dl, byte [esp + esi + 0x12]
mov bl, byte [esp + esi + 0x13]
shl dl, 6
add dl, bl
mov byte [eax + 1], dl
add esi, 4
add eax, 3
cmp esi, 0x20
jl 0x4035d4
xor ecx, ecx
mov eax, ecx
cdq
mov esi, 9
idiv esi
mov ebx, 3
mov edi, eax
mov esi, edx
mov eax, ecx
cdq
idiv ebx
mov eax, 0x55555556
lea ebx, [edx + edx*2]
imul esi
mov eax, edx
shr eax, 0x1f
add edx, ebx
add eax, edx
lea edx, [edi + eax*2]
add eax, edx
cmp eax, 0x18
jl 0x40364d
mov eax, ecx
mov dl, byte [esp + ecx + 0x10]
inc ecx
cmp ecx, 0x18
mov byte [eax + ebp], dl
jl 0x403616
pop edi
lea eax, [ebp + 2]
mov ecx, 0xb
pop ebx
mov dx, word [eax - 2]
add word [eax], dx
add eax, 2
dec ecx
jne 0x403664
xor ecx, ecx
xor eax, eax
mov dx, word [ebp + 0x16]
xor word [ebp + eax*2], dx
inc eax
cmp eax, 0xb
jl 0x403675
pop esi
mov byte [ebp + 0x17], cl
mov byte [ebp + 0x16], cl
pop ebp
add esp, 0x20
ret

Function at 0x403690
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
push str.SoftWareHuDongSHIPDES
mov byte [ebx], 0
push 0x80000001
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4036c7
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
push 0
push str.CurrentWorkerCode
push eax
mov dword [esp + 0x48], 0x10
call esi
test eax, eax
jne 0x403764
cmp dword [esp + 8], 1
jne 0x403764
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.CurrentWorkerPassword
push ecx
mov dword [esp + 0x48], 0x20
call esi
test eax, eax
jne 0x403750
cmp dword [esp + 8], 3
jne 0x403750
cmp dword [esp + 0x30], 0x20
jne 0x403750
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [esp + 0x10]
call fcn.00403590
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x24
ret
Function at 0x403780
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x28]
mov edx, ebp
push esi
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403790
call dword [sym.imp.MSVCR70.dll_rand]
mov word [ebp + 0x16], ax
xor eax, eax
mov cx, word [ebp + 0x16]
xor word [ebp + eax*2], cx
inc eax
cmp eax, 0xb
jl 0x4037a6
mov eax, 0xb
lea ebx, [ebx]
mov dx, word [ebp + eax*2 - 2]
sub word [ebp + eax*2], dx
dec eax
test eax, eax
jg 0x4037c0
push ebx
xor ecx, ecx
push edi
mov eax, ecx
cdq
mov esi, 9
idiv esi
mov ebx, 3
mov edi, eax
mov esi, edx
mov eax, ecx
cdq
idiv ebx
mov eax, 0x55555556
lea ebx, [edx + edx*2]
imul esi
mov eax, edx
shr eax, 0x1f
add edx, ebx
add eax, edx
lea edx, [edi + eax*2]
add eax, edx
cmp eax, 0x18
jl 0x40380a
mov eax, ecx
mov dl, byte [ecx + ebp]
inc ecx
cmp ecx, 0x18
mov byte [esp + eax + 0x10], dl
jl 0x4037d3
lea eax, [esp + 0x26]
lea esi, [esp + 0x2e]
mov edi, 8
movzx ecx, byte [eax + 1]
and ecx, 0x8000003f
jns 0x403835
dec ecx
or ecx, 0xffffffc0
inc ecx
mov byte [esi + 1], cl
movzx edx, byte [eax]
and edx, 0x8000000f
jns 0x403848
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [eax + 1]
shl dl, 2
shr cl, 6
add dl, cl
mov byte [esi], dl
movzx edx, byte [eax - 1]
and edx, 0x80000003
jns 0x403866
dec edx
or edx, 0xfffffffc
inc edx
mov cl, byte [eax]
shl dl, 4
shr cl, 4
add dl, cl
mov byte [esi - 1], dl
mov dl, byte [eax - 1]
shr dl, 2
mov byte [esi - 2], dl
sub esi, 4
sub eax, 3
dec edi
jne 0x403824
pop edi
xor eax, eax
pop ebx
lea esp, [esp]
xor edx, edx
xor ecx, ecx
mov esi, 1
shl esi, cl
test eax, esi
je 0x4038a8
mov esi, 0x10
sar esi, cl
or edx, esi
inc ecx
cmp ecx, 5
jl 0x403894
mov cl, byte [esp + edx + 8]
add cl, 0x30
mov byte [eax + ebp], cl
inc eax
cmp eax, 0x20
jl 0x403890
pop esi
pop ebp
add esp, 0x20
ret

Function at 0x4038d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
push str.SoftWareHuDongSHIPDES
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40397e
mov edx, dword [esp + 0x28]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403900
mov ecx, dword [esp + 4]
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push edx
push 1
push 0
push str.CurrentWorkerCode
push ecx
call esi
test eax, eax
je 0x403936
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x24
ret
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x34]
call fcn.00403780
mov edx, dword [esp + 8]
add esp, 4
push 0x20
lea ecx, [esp + 0xc]
push ecx
push 3
push 0
push str.CurrentWorkerPassword
push edx
call esi
test eax, eax
je 0x403972
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x24
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x24
ret
Function at 0x403af0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push esi
call dword [sym.imp.MSVCR70.dll__access]
add esp, 8
test eax, eax
jne 0x403b0e
push 1
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
ret 4

Function at 0x404390
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40980b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x40af78
mov dword [esp + 0x18], 0xd
call fcn.00403a70
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftWareHuDongSHIPDES
push 0x80000001
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40443a
mov eax, dword [esi + 0x414]
cmp eax, 0xffffffff
jne 0x404404
xor eax, eax
jmp 0x40440e
mov edx, dword [esi + 0x430]
movzx eax, word [edx + eax*2]
push edi
mov edi, dword [esp + 8]
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.CurrentSpecialty
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
je 0x404439
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea ecx, [esi + 0x544]
mov byte [esp + 0x18], 0xc
call sub.MFC70.DLL_Ordinal_694
lea ecx, [esi + 0x42c]
mov byte [esp + 0x18], 0xb
call sub.MFC70.DLL_Ordinal_702
lea ecx, [esi + 0x418]
mov byte [esp + 0x18], 0xa
call sub.MFC70.DLL_Ordinal_686
lea ecx, [esi + 0x404]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x40a628
call sub.MFC70.DLL_Ordinal_1784
lea ecx, [esi + 0x378]
mov byte [esp + 0x18], 8
call sub.MFC70.DLL_Ordinal_528
lea ecx, [esi + 0x2f0]
mov byte [esp + 0x18], 7
call sub.MFC70.DLL_Ordinal_528
lea ecx, [esi + 0x29c]
mov byte [esp + 0x18], 6
call sub.MFC70.DLL_Ordinal_528
lea ecx, [esi + 0x248]
mov byte [esp + 0x18], 5
call sub.MFC70.DLL_Ordinal_682
lea ecx, [esi + 0x1f4]
mov byte [esp + 0x18], 4
call sub.MFC70.DLL_Ordinal_682
lea ecx, [esi + 0x16c]
mov byte [esp + 0x18], 3
call sub.MFC70.DLL_Ordinal_528
lea ecx, [esi + 0x118]
mov byte [esp + 0x18], 2
call sub.MFC70.DLL_Ordinal_682
lea ecx, [esi + 0x90]
mov byte [esp + 0x18], 1
call sub.MFC70.DLL_Ordinal_528
lea ecx, [esi + 0x74]
mov byte [esp + 0x18], 0
call fcn.004041f0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00408e8c
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret