joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401030
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [str.ATESWM0_r]
mov dx, word [0x411294]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [0x411290]
mov dword [esp + 0x18], eax
mov al, byte [0x411296]
mov dword [esp + 0x1c], ecx
mov ecx, dword [str.ATESWM0_1_r]
mov word [esp + 0x20], dx
mov edx, dword [0x411280]
mov byte [esp + 0x22], al
mov eax, dword [0x411284]
mov dword [esp + 0x24], ecx
mov cl, byte [0x411288]
xor ebp, ebp
xor esi, esi
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], cl
jne 0x4010ab
lea edx, [esp + 0x18]
mov dword [esp + 0x10], edx
lea ebx, [ebp + 0xb]
jmp 0x4010b8
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
mov ebx, 0xd
mov byte [edi + 0x124], 0
test ebx, ebx
jle 0x401138
mov eax, ebx
sub eax, esi
mov ecx, eax
and ecx, 0x80000007
mov dword [esp + 0x14], 0
jns 0x4010de
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x4010e1
dec eax
mov ecx, dword [edi]
push 0
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40112e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_n_error__WriteFile_failed:__d_r_n
call fcn.00401760
mov edx, dword [edi]
add esp, 8
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp ebp, 1
jge 0x401161
push 0x64
inc ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401134
add esi, dword [esp + 0x14]
xor ebp, ebp
cmp esi, ebx
jl 0x4010c3
mov ecx, dword [esp + 0x10]
push ecx
push str._r_n_txd___s_r_n
call fcn.00401760
add esp, 8
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004032ca
add esp, 0x28
ret 4
mov eax, dword [esp + 0x10]
push eax
push str._r_n_error__write_failed:___s__r_n
call fcn.00401760
mov ecx, dword [esp + 0x3c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.004032ca
add esp, 0x28
ret 4
Function at 0x401610
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x401650
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [esp + 0xc], 0x64
jmp 0x4016bd
cmp eax, 0x80
jl 0x40165c
mov eax, 0x80
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
lea edi, [esi + 0x90]
push edi
push edx
call ebp
test eax, eax
je 0x4016d8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4016bd
mov dword [esi + 0x118], eax
push edi
mov byte [edi + eax], 0
push str._r_n_rxd___s_r_n
mov dword [esi + 0x110], 0
call fcn.00401760
mov eax, dword [esi + 0x118]
add esp, 8
push eax
push edi
lea ecx, [esi + 0x11c]
push ecx
mov ecx, esi
call fcn.004015d0
cmp byte [esi + 0x124], 0
jne 0x4016e1
cmp dword [esp + 0xc], 0xbb8
jl 0x401626
push str._r_n_error__AT_timeout_r_n
call fcn.00401760
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x18
ret
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x18
ret

Function at 0x401760
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x204
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x200], eax
mov ecx, dword [esp + 0x208]
lea eax, [esp + 0x20c]
push eax
push ecx
lea edx, [esp + 8]
push 0x1ff
push edx
call fcn.0040361c
add esp, 0x10
test eax, eax
jge 0x4017a5
mov dword [esp + 0x1fc], 0x2e2e2e
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004032ca
add esp, 0x204
ret

Function at 0x4017d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x400], eax
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x40c]
push eax
push ecx
lea edx, [esp + 8]
push 0x1ff
push edx
call fcn.0040370d
add esp, 0x10
test eax, eax
jge 0x401827
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x411318]
mov word [esp + eax + 0x3f8], cx
add eax, 2
test cx, cx
jne 0x401810
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004032ca
add esp, 0x404
ret

Function at 0x4019b0
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4019d7
push eax
push esi
push str._n_DevMgr__error:_failed_to_query_reg___s___error_code____d__n
call fcn.004017d0
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x401a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x298
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x294], eax
push esi
push edi
mov esi, str.HARDWAREDEVICEMAPSERIALCOMM
call fcn.00401970
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x401a81
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004032ca
add esp, 0x298
ret
push ebx
push ebp
push 0x1fe
lea ecx, [esp + 0x2a]
xor eax, eax
push esi
push ecx
mov word [esp + 0x30], ax
call fcn.00403a40
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0xc
mov dword [esp + 0x14], esi
mov byte [esp + 0x13], 0
or ebx, 0xffffffff
nop
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x238]
push eax
push esi
push edi
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x38], ebx
call ebp
inc esi
test eax, eax
je 0x401af2
cmp eax, 0xea
jne 0x401b2b
cmp dword [esp + 0x14], 1
jne 0x401ab0
lea ecx, [esp + 0x24]
push ecx
call fcn.004039cd
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push str.COM_d
push eax
call fcn.004037c6
mov ecx, dword [esp + 0x2bc]
add esp, 0x10
cmp ecx, dword [esp + 0x18]
jne 0x401ab0
mov bl, 1
jmp 0x401b2f
mov bl, byte [esp + 0x13]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2a4]
pop ebp
mov al, bl
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.004032ca
add esp, 0x298
ret
Function at 0x401b60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x22c
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x228], eax
xor eax, eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2a]
push edx
mov word [esp + 0xc], ax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
call fcn.00403a40
push 8
push ebx
push str.USBSTOR_
call fcn.00403ba4
add esp, 0x18
test eax, eax
je 0x401bde
xor al, al
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004032ca
add esp, 0x22c
ret
push esi
push edi
mov esi, 1
push esi
lea eax, [esp + 0xc]
push 0x411524
push eax
call fcn.004032d9
add esp, 0xc
call fcn.00401850
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x103
lea ecx, [esp + 0x30]
push ecx
push 0x411358
lea edx, [esp + 0x18]
push edx
push str.hardware
call edi
xor eax, eax
cmp ax, word [esp + 0x28]
je 0x401c97
jmp 0x401c30
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c37
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.00403ba4
add esp, 0xc
test eax, eax
je 0x401cb0
inc esi
push esi
lea edx, [esp + 0xc]
push 0x411524
push edx
call fcn.004032d9
add esp, 0xc
call fcn.00401850
push eax
push 0x103
lea eax, [esp + 0x30]
push eax
push 0x411358
lea ecx, [esp + 0x18]
push ecx
push str.hardware
call edi
xor edx, edx
cmp dx, word [esp + 0x28]
jne 0x401c30
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004032ca
add esp, 0x22c
ret
mov ecx, dword [esp + 0x230]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004032ca
add esp, 0x22c
ret

Function at 0x401d70
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x416a00
push 0x411358
push str.SCSICommand
push str.hardware
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x411358
mov eax, 0x416a00
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401dc6
test dx, dx
je 0x401dc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401dc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x401da0
xor eax, eax
jmp 0x401dcb
sbb eax, eax
sbb eax, 0xffffffff
push esi
test eax, eax
je 0x401e0e
xor esi, esi
cmp byte [0x41502c], 0
jbe 0x401e0e
push edi
mov edi, 0x416a00
lea eax, [esi + 0x41500c]
push eax
push 0x41156c
push edi
call fcn.004037c6
movzx ecx, byte [0x41502c]
inc esi
add esp, 0xc
add edi, 6
cmp esi, ecx
jl 0x401de1
pop edi
test esi, esi
je 0x401e0e
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x401e20
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x416c08
push 0x411358
push str.DisableCDROMScan
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.true
mov eax, 0x416c08
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e7a
test dx, dx
je 0x401e72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e7a
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e50
xor eax, eax
test eax, eax
sete al
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
ret

Function at 0x401e90
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x416e10
push 0x411358
push str.DisableComPortScan
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.true
mov eax, 0x416e10
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401eea
test dx, dx
je 0x401ee2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401eea
add eax, 4
add ecx, 4
test dx, dx
jne 0x401ec0
xor eax, eax
test eax, eax
sete al
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
ret

Function at 0x401f00
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x417018
push 0x411358
push str.DisableRNDISScan
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.true
mov eax, 0x417018
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401f5a
test dx, dx
je 0x401f52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401f5a
add eax, 4
add ecx, 4
test dx, dx
jne 0x401f30
xor eax, eax
test eax, eax
sete al
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
ret

Function at 0x401f70
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x417220
push 0x411358
push str.EnableRescueMode
push str.hardware
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.true
mov eax, 0x417220
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401fca
test dx, dx
je 0x401fc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401fca
add eax, 4
add ecx, 4
test dx, dx
jne 0x401fa0
xor eax, eax
test eax, eax
sete al
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
ret

Function at 0x401fe0
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x417428
push 0x411358
push str.ScanInterval
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x417428
call fcn.0040355e
add esp, 4
ret

Function at 0x402020
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x417630
push 0x411358
push str.ScanRepeat
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x417630
call fcn.0040355e
add esp, 4
ret
Function at 0x4023d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x228
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [esp + 0x238]
xor ebx, ebx
push ebx
call fcn.004023a0
add esp, 4
cmp edi, ebx
je 0x40256f
cmp esi, ebx
je 0x40256f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402415
sub eax, edx
sar eax, 1
push eax
push esi
push edi
call fcn.00403ba4
add esp, 0xc
test eax, eax
jne 0x40256f
push edi
lea eax, [esp + 0x2c]
push str.SYSTEMCurrentControlSetEnum_s
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004032d9
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 1
push ebx
lea edx, [esp + 0x34]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40256f
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push str.HardwareID
push ecx
call esi
test eax, eax
jne 0x40254a
mov edx, dword [esp + 0x10]
add edx, 4
push edx
call fcn.004032bf
mov ecx, dword [esp + 0x10]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
push ebx
push ebx
push str.HardwareID
push ecx
call esi
test eax, eax
jne 0x402541
mov eax, edi
mov esi, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4024d0
sub eax, edx
sar eax, 1
je 0x402541
push esi
call fcn.004039cd
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
push edx
push str.USBVID__04xPID__04xREV__04xMI__02x
push esi
call fcn.004037c6
add esp, 0x1c
cmp eax, 4
jge 0x402541
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402513
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov eax, esi
lea edx, [eax + 2]
jmp 0x402530
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402530
sub eax, edx
sar eax, 1
jne 0x4024e1
push edi
call fcn.00403fb5
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004032ca
add esp, 0x228
ret
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.004032ca
add esp, 0x228
ret

Function at 0x402ee0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.MEDIATEK_3G_DATA_CARD
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x402f4d
push esi
push str._n_Switcher__Create_mutex__0x_08X__..._n
call fcn.004017d0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call edi
cmp eax, 0xb7
jne 0x402f3a
call edi
push eax
push str._n_Switcher__Error__d_:_mutex_has_already_existed______n
call fcn.004017d0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x417838], 0
xor eax, eax
pop esi
ret
push str._n_Switcher__Create_mutex_Succeeds__n
call fcn.004017d0
add esp, 4
mov dword [0x417838], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x4032ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415248]
jne 0x4032d4
repz ret
jmp fcn.00404867

Function at 0x40dc2b
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.00406373
and dword [ebp - 4], 0
cmp dword [0x4181dc], 0
mov ebx, eax
jne 0x40dcdc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40dd8d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40dd8d
push eax
call fcn.00406301
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4181dc], eax
call esi
push eax
call fcn.00406301
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4181e0], eax
call esi
push eax
call fcn.00406301
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4181e4], eax
call esi
push eax
call fcn.00406301
pop ecx
mov dword [0x4181ec], eax
test eax, eax
je 0x40dcdc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406301
pop ecx
mov dword [0x4181e8], eax
mov eax, dword [0x4181e8]
cmp eax, ebx
je 0x40dd34
cmp dword [0x4181ec], ebx
je 0x40dd34
push eax
call fcn.0040637c
push dword [0x4181ec]
mov esi, eax
call fcn.0040637c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40dd34
test edi, edi
je 0x40dd34
call esi
test eax, eax
je 0x40dd2b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40dd2b
test byte [ebp - 0xc], 1
jne 0x40dd34
or dword [ebp + 0x10], 0x200000
jmp 0x40dd6d
mov eax, dword [0x4181e0]
cmp eax, ebx
je 0x40dd6d
push eax
call fcn.0040637c
pop ecx
test eax, eax
je 0x40dd6d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40dd6d
mov eax, dword [0x4181e4]
cmp eax, ebx
je 0x40dd6d
push eax
call fcn.0040637c
pop ecx
test eax, eax
je 0x40dd6d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4181dc]
call fcn.0040637c
pop ecx
test eax, eax
je 0x40dd8d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40dd8f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10041b9b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec ch
dec cl
mov ecx, dword [esi + 0x7c]
push 0xeafe1421
mov word [esp], 0x616b
pushal
add ecx, edx
cmp dh, dh
jmp 0x1006f1c5
cmp ecx, 0xffff
push ebp
pushfd
mov word [esp + 8], 0x13
jmp 0x1006e8b3
bt ax, 0xd
cmp sp, bx
sub ecx, dword [edx + 0x10]
cmc
test edi, edx
pushfd
cmp ecx, dword [edx + 0x14]
mov word [esp], 0x25d2
lea esp, [esp + 4]
jae 0x1006fcd8
push 0x85e87aea
pushfd
push edi
pushfd
lea esp, [esp + 0x10]
jmp 0x1004311d
lea esp, [esp + 0x30]
jbe 0x1004480a
movzx di, dl
sal di, cl
adc ebx, esi
mov edi, dword [edx + 0x24]
inc bx
bsf cx, si
add edi, eax
not cx
push 0xdaea4598
not ch
pushfd
mov ebx, dword [edx + 0x20]
test cx, 0xbac3
sbb ch, 0xbb
pushal
add ebx, eax
pop ecx
add ch, 0x5c
bsf cx, bp
rcr cl, cl
mov dword [ebp - 8], 0
mov cx, word [esp]
clc
dec cx
mov ecx, dword [edx + 0x18]
sub esp, 0xffffffdc
call fcn.10044a9a
cmp di, 0xe5a9
mov dword [ebp - 0x10], ecx
bsf cx, bp
mov ecx, dword [ebp + 0xc]
clc
jmp 0x100439f1

Function at 0x10044907
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
pushfd
lea esp, [esp + 0x40]
ja 0x10044496
jns 0x100485bc
pushfd

Function at 0x4133700
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.0413378f
jae 0x413370e
xor ecx, ecx
call fcn.0413378f
jae 0x413373d
xor eax, eax
call fcn.0413378f
jae 0x413374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0413378f
adc al, al
jae 0x413372f
jne 0x4133779
stosb byte es:[edi], al
jmp 0x4133711
call fcn.0413379b
sub ecx, ebx
jne 0x4133756
call fcn.04133799
jmp 0x4133775
lodsb al, byte [esi]
shr eax, 1
je 0x4133783
adc ecx, ecx
jmp 0x4133772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.04133799
cmp eax, 0x7d00
jae 0x4133772
cmp ah, 5
jae 0x4133773
cmp eax, 0x7f
ja 0x4133774
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 0x4133711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4020a3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [0x4d9e90], edi
mov ecx, dword [ecx + 0xc8]
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.004118cc
lea eax, [ebp + 8]
push eax
push 1
push esi
push 0x4c9660
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40214c
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x4d9e68
push esi
push 0x4c9648
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402146
xor eax, eax
cmp edi, esi
setne al
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push esi
push str.lmtools_LM_A_DISABLE_ENV
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402141
push str.all_is_well
call fcn.00495900
pop ecx
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
call ebx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x402152
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push esi
xor esi, esi
push eax
push 1
push esi
push 0x4c966c
push closesocket
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4021c5
push 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.lmtools_LM_A_DISABLE_ENV
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4021b4
cmp dword [ebp - 0xc], esi
setne al
mov dword [0x4d9e90], eax
jmp 0x4021ba
mov dword [0x4d9e90], esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4021cb
mov dword [0x4d9e90], esi
pop esi
leave
ret