joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5286cc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5287a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00409eac
mov eax, dword [ebp - 0x18]
push eax
call fcn.0052acc0
pop edx
call fcn.00527b18
test al, al
je 0x528714
mov ebx, 1
jmp 0x528792
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x528741
call sub.kernel32.dll_GetLastError_2
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor ebx, ebx
jmp 0x528792
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x528775
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x528775
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle_1
movzx eax, word [ebp + 0xc]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5287af
lea eax, [ebp - 0x18]
call fcn.004091bc
ret

Function at 0x5287bc
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x528807
lea eax, [esp + 0x105]
push eax
push 0
push 0x528838
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x528807
lea eax, [esp + 0x105]
call fcn.0040968c
cmp ebx, eax
setg al
jmp 0x528809
xor eax, eax
mov ebx, eax
test bl, bl
je 0x528823
lea edx, [esp + 0x105]
mov eax, esi
call fcn.00423360
push esi
call sub.kernel32.dll_DeleteFileA
movzx eax, bl
mov edx, dword [0x559738]
mov eax, dword [edx + eax*4]
add esp, 0x20c
pop esi
pop ebx
ret
Function at 0x529204
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x52920d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x52938a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
inc dword [ebx + 0x18]
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.00529084
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00409c04
lea eax, [ebx + 0x22]
mov edx, dword [ebp - 4]
call fcn.00423440
lea ecx, [ebp - 0x14]
mov edx, dword [ebx + 0x14]
mov eax, esi
call fcn.00528ee4
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00409c04
lea eax, [ebx + 0x122]
mov edx, dword [ebp - 4]
call fcn.00423440
lea ecx, [ebp - 0x18]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.00528fc8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00409c04
lea eax, [ebx + 0x222]
mov edx, dword [ebp - 4]
call fcn.00423440
cmp word [esi + 0x4a], 0
je 0x5292ca
push edi
lea eax, [ebp - 9]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [esi + 0x4c]
call dword [esi + 0x48]
cmp byte [ebp - 9], 0
jne 0x52933b
lea eax, [ebp - 8]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00409f18
mov eax, dword [ebp - 8]
call fcn.00422aec
lea eax, [ebp - 0x24]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00409f18
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
lea edx, [ebx + 0x122]
mov ecx, pe_nt_image_headers32
call fcn.00409f18
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 8]
mov edx, 1
call fcn.005280c0
mov eax, dword [ebp - 8]
call fcn.00409e74
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
mov dword [esi + 0x3ac], eax
xor eax, eax
mov dword [esi + 0x3b0], eax
movzx ebx, byte [ebp - 9]
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529391
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0040921c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040921c
lea eax, [ebp - 8]
call fcn.004091bc
lea eax, [ebp - 4]
call fcn.004091e0
ret
Function at 0x540fc0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd7c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004092a0
lea eax, [ebp - 0x278]
mov edx, dword [0x41b068]
call fcn.0040a7d4
xor eax, eax
push ebp
push 0x541156
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00422a18
test al, al
je 0x54111a
xor eax, eax
push ebp
push 0x54110e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004294e4
lea eax, [ebp - 0x27c]
mov ecx, 0x541174
mov edx, dword [ebp - 8]
call fcn.0040a0e0
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x278]
mov edx, 0x90
call fcn.00422e14
test eax, eax
jne 0x5410f0
test byte [ebp - 0x268], 0x10
je 0x5410b7
mov eax, dword [ebp - 0x264]
mov edx, 0x541188
call fcn.0040a278
je 0x5410b7
mov eax, dword [ebp - 0x264]
mov edx, 0x541198
call fcn.0040a278
je 0x5410b7
lea eax, [ebp - 0x280]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 8]
call fcn.0040a0e0
mov eax, dword [ebp - 0x280]
call fcn.00540fc0
jmp 0x5410d6
lea eax, [ebp - 0x284]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 8]
call fcn.0040a0e0
mov eax, dword [ebp - 0x284]
call fcn.0051dc30
lea eax, [ebp - 0x278]
call fcn.00422e64
test eax, eax
je 0x541069
lea eax, [ebp - 0x278]
call fcn.00422e88
mov eax, dword [ebp - 8]
call fcn.00409e74
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54111a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54115d
lea eax, [ebp - 0x284]
mov edx, 3
call fcn.0040921c
lea eax, [ebp - 0x278]
mov edx, dword [0x41b068]
call fcn.0040a8ac
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040921c
ret
Function at 0x541e70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004092a0
mov eax, dword [ebp - 8]
call fcn.004092a0
xor eax, eax
push ebp
push 0x541f78
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x541f4b
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00406f30
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x10
call fcn.00406f30
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x220
push 0
push 0
push 0
push dword [ebp - 4]
push 0x541f94
push dword [ebp - 8]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.0040a168
mov eax, dword [ebp - 0x60]
call fcn.00409e74
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x541f2f
test bl, bl
je 0x541f2f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x541f55
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541f7f
lea eax, [ebp - 0x60]
call fcn.004091bc
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040921c
ret

Function at 0x547a68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x547b0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x78], 1
jne 0x547a8a
cmp byte [ebx + 0x79], 2
je 0x547af6
call fcn.00540eb4
cmp byte [ebx + 0x78], 0
jne 0x547ab7
mov eax, ebx
call fcn.00547b3c
jmp 0x547ab7
mov eax, dword [ebx + 4]
call fcn.004f8d0c
test al, al
jne 0x547a9e
push 0x32
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebx + 4]
cmp dword [eax + 0x5db], 0
je 0x547a9e
cmp byte [ebx + 0x7a], 0
je 0x547af1
push 1
push 0
push 0x547b18
lea edx, [ebp - 4]
xor eax, eax
call fcn.004f41ec
mov eax, dword [ebp - 4]
call fcn.00409e74
push eax
push 0x547b30
push 0
call sub.shell32.dll_ShellExecuteW
call fcn.00540f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x547b13
lea eax, [ebp - 4]
call fcn.004091bc
ret
Function at 0x548f44
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push 1
call sub.user32.dll_GetSystemMetrics
mov dword [ebp - 0x14], eax
push 0
call sub.user32.dll_GetSystemMetrics
mov ebx, eax
mov dword [ebp - 0x18], ebx
push 0x548fc8
push 0x548fcc
call sub.user32.dll_FindWindowW
test eax, eax
je 0x548fb5
lea edx, [ebp - 0x10]
push edx
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 8]
cmp ebx, eax
jle 0x548f96
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jge 0x548fa1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x548fab
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x548fb5
mov dword [ebp - 0x14], eax
mov edi, esi
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54c8dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x54ca4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5596f0]
cmp byte [eax], 1
jne 0x54c9f4
mov eax, dword [0x559b00]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x54ca34
lea ecx, [ebp - 4]
mov eax, dword [0x559b00]
mov eax, dword [eax]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
push eax
mov edx, dword [0x5596f0]
movzx edx, byte [edx]
xor ecx, ecx
mov eax, 0x54ca68
call fcn.0054249c
test al, al
jne 0x54ca34
lea ecx, [ebp - 8]
mov eax, dword [0x559b00]
mov eax, dword [eax]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 8]
call fcn.0054a42c
call fcn.0054a31c
test eax, eax
jle 0x54c9e2
push 0
xor ecx, ecx
mov dl, 9
mov eax, 0x54ca9c
call fcn.0054249c
test al, al
je 0x54ca34
push 0x1f4
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
push 1
push 0
lea ecx, [ebp - 0x10]
mov eax, dword [0x559b00]
mov eax, dword [eax]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x54cad0
call fcn.0040a0e0
mov eax, dword [ebp - 0xc]
call fcn.00409e74
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004067f0
mov eax, dword [ebp - 0x14]
call fcn.00409e74
push eax
push 0x54cae8
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x54ca34
push 0
xor ecx, ecx
mov dl, 0xa
mov eax, 0x54ca9c
call fcn.0054249c
jmp 0x54ca34
mov eax, dword [0x5596f0]
cmp byte [eax], 0xb
jne 0x54ca10
push 0
xor ecx, ecx
mov dl, 0xb
mov eax, 0x54ca68
call fcn.0054249c
jmp 0x54ca34
push 0
xor ecx, ecx
mov dl, 0xa
mov eax, 0x54ca68
call fcn.0054249c
test al, al
jne 0x54ca34
push 0
xor ecx, ecx
mov dl, 0xa
mov eax, 0x54ca9c
call fcn.0054249c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ca56
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040921c
ret
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4d54af6
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7fe47871
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401119
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401119
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401108
cmp esi, edx
jae 0x401119
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4010f6
cmp esi, edx
jae 0x401119
cmp word [esi], 0
je 0x401119
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x404c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x42200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x12
xor esi, esi
mov dword [ebp - 0x434], edx
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x430], esi
push esi
push 0x41a250
movups xmmword [ebp - 0x424], xmm0
movq qword [ebp - 0x414], xmm0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebx, eax
test ebx, ebx
jne 0x404caa
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405af0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x1c
push eax
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x404e2d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push 1
push 0
push 1
lea eax, [ebp - 0x428]
mov dword [ebp - 0x408], 0
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
test eax, eax
je 0x404d3a
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x408], 0
push ecx
lea ecx, [ebp - 0x204]
mov dword [ebp - 0x42c], 0x200
push ecx
lea ecx, [ebp - 0x408]
push ecx
push 0
push str.PortName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x204]
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
push eax
xor esi, esi
lea eax, [ebp - 0x40c]
push esi
push esi
push eax
push esi
lea eax, [ebp - 0x428]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x404dbe
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404dbe
test esi, esi
je 0x404d82
push esi
call edi
mov eax, dword [ebp - 0x42c]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x42c]
lea eax, [ebp - 0x40c]
push esi
push eax
push 0
lea eax, [ebp - 0x428]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x404d70
mov eax, dword [ebp - 0x434]
push esi
push dword [ebp - 0x408]
mov edi, dword [eax]
lea eax, [ebp - 0x404]
push str._s__s_
push 0x100
push eax
call fcn.00404c20
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
push 0
push 0x143
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x404e08
push esi
call edi
mov esi, dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push eax
inc esi
push esi
push ebx
mov dword [ebp - 0x430], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x404cd3
pop edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405af0
mov esp, ebp
pop ebp
ret
Function at 0x4052b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, edx
push edi
push 0xa
mov dword [ebp - 4], ecx
mov dword [0x423588], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x423584
push ebx
push dword [ebp - 4]
push dword [0x422790]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405312
call edi
mov dword [0x4235a8], eax
mov eax, dword [0x423588]
inc eax
mov dword [0x423588], eax
cmp dword [0x423588], 5
jae 0x40533c
push 0x64
call esi
jmp 0x4052d6
cmp dword [0x423584], 0
jne 0x405351
call edi
mov dword [0x4235a8], eax
mov eax, dword [0x423588]
inc eax
mov dword [0x423588], eax
cmp dword [0x423588], 5
jae 0x405345
push 0x64
call esi
jmp 0x4052d6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x423584]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x422790]
push edi
mov edi, edx
cmp eax, 0xffffffff
jne 0x4053cc
cmp dword [0x423570], 0
jne 0x4053ba
push 0
push 0x404a50
push ecx
push 0x6c
push dword [0x4233d8]
mov dword [0x42357c], 0
mov dword [0x423574], 0x41fd18
mov dword [0x423580], 0x41fd0c
call dword [sym.imp.USER32.dll_DialogBoxParamW]
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405af0
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov si, word [ebp + 8]
xor ecx, ecx
xor bl, bl
mov eax, edi
cmp cx, si
jae 0x4053fa
movzx ecx, si
nop dword [eax]
xor bl, byte [eax]
lea eax, [eax + 1]
sub ecx, 1
jne 0x4053f0
mov edx, 1
mov byte [ebp - 8], 2
lea ecx, [ebp - 8]
call fcn.004052b0
movzx edx, si
mov ecx, edi
call fcn.004052b0
xor bl, 3
mov byte [ebp - 8], 3
mov edx, 2
mov byte [ebp - 7], bl
lea ecx, [ebp - 8]
call fcn.004052b0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00405af0
mov esp, ebp
pop ebp
ret
Function at 0x405440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42200c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x422790], 0xffffffff
mov eax, edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x4054b2
cmp dword [0x423570], 0
jne 0x4054a1
push 0
push 0x404a50
push eax
push 0x6c
push dword [0x4233d8]
mov dword [0x42357c], 0
mov dword [0x423574], 0x41fd18
mov dword [0x423580], 0x41fd0c
call dword [sym.imp.USER32.dll_DialogBoxParamW]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405af0
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, ecx
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0x3e8
ja 0x4054ff
nop dword [eax]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [0x422790]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
je 0x4054f4
cmp byte [ebp - 5], 2
je 0x40552a
call edi
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4054d0
push str.error
push str.Response_reception_timeout
mov edx, dword [ebp - 0x14]
xor ecx, ecx
call fcn.00404b70
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405af0
mov esp, ebp
pop ebp
ret
call edi
mov dword [ebp - 0xc], eax
xor bl, bl
call edi
sub eax, dword [ebp - 0xc]
cmp eax, 0x3e8
ja 0x4054ff
nop dword [eax]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [0x422790]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x10], 0
je 0x40556a
mov al, byte [ebp - 5]
mov byte [esi], al
xor bl, al
inc esi
cmp al, 3
je 0x405578
call edi
sub eax, dword [ebp - 0xc]
cmp eax, 0x3e8
jbe 0x405540
jmp 0x4054ff
call edi
mov dword [ebp - 0x10], eax
nop dword [eax]
call edi
sub eax, dword [ebp - 0x10]
cmp eax, 0x3e8
ja 0x4054ff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 5]
push eax
push dword [0x422790]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
je 0x405580
mov byte [esi - 1], 0
cmp bl, byte [ebp - 5]
je 0x4055c6
push str.error
push str.Response_BCC_error
jmp 0x405509
sub esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
lea eax, [esi - 2]
pop esi
pop ebx
call fcn.00405af0
mov esp, ebp
pop ebp
ret
Function at 0x100179b0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b652b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3c
push esi
mov eax, dword [0x100cb00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x100ee5a0]
test al, 1
jne 0x10017afb
or eax, 1
mov dword [0x100ee5a0], eax
mov dword [ebp - 4], 0
mov eax, 0x10
movaps xmm0, xmmword [0x100c1790]
pxor xmm0, xmmword [0x100c1900]
mov dword [ebp - 0x1c], 0x2d322d32
mov dword [ebp - 0x18], 0x4b2d4f35
mov word [ebp - 0x14], 0xd3c
movups xmmword [ebp - 0x2c], xmm0
xor byte [ebp + eax - 0x2c], 0xd
inc eax
cmp eax, 0x1a
jb 0x10017a34
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017a60
sub ecx, edx
lea eax, [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.1001cfb0
mov byte [ebp - 4], 1
mov edx, dword [0x100ee68c]
test edx, edx
je 0x10017a89
mov edx, dword [edx + 0x50]
jmp 0x10017a8b
xor edx, edx
mov eax, dword [0x100ee684]
test eax, eax
je 0x10017a99
mov eax, dword [eax + 0x18]
jmp 0x10017a9b
xor eax, eax
lea ecx, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.10017570
mov eax, dword [ebp - 0x30]
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
mov dword [0x100ee5a4], eax
cmp edx, 0x10
jb 0x10017af2
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10017ae3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10017ae3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100b54d4
mov eax, dword [0x100ee5a4]
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x10017b00
mov eax, dword [0x100ee5a4]
test eax, eax
je 0x10017b08
mov ecx, esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret