joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455dee
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x455e93
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x457c54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x457c9a
call fcn.004533ca
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x457c9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x457cdd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x457cc6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x457cc6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x457cda
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4593a9
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4593d2
call fcn.004533ca
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4593f5
push eax
push dword [esi + 4]
call fcn.00459334
push esi
push eax
mov ecx, 0x4b8094
call fcn.00458fea
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x459c05
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4841c7
call fcn.0046cd64
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00459bc7
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401f40
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x459c6b
push eax
push dword [esi + 8]
call fcn.00459334
push dword [esi + 0xc]
mov ecx, 0x4b8094
push eax
call fcn.00458fea
mov eax, esi
call fcn.0046ce3c
ret 0x18
Function at 0x45affc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x45b012
mov edi, dword [esi + 0xc]
jmp 0x45b052
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45b02b
call fcn.00451fff
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x45b040
call fcn.00451fff
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x45b052
call fcn.00451fff
call fcn.004533ca
cmp dword [eax + 0x3c], 0
je 0x45b067
push edi
mov ecx, ebx
call fcn.00459fe8
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0045af16
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x45b085
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x45b091
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x468ce5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b47a8]
jne 0x468cef
repz ret
jmp fcn.00470add

Function at 0x46b796
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x46b7c3
call fcn.0046d1f8
mov dword [eax], esi
call fcn.0046d1e5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00468ffc
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x46b79f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46b7f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046d20b
pop ecx
call fcn.0046d1e5
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x46b819
test al, 1
je 0x46b819
test byte [esp + 0xc], 2
je 0x46b819
call fcn.0046d1f8
mov dword [eax], 5
call fcn.0046d1e5
mov dword [eax], 0xd
jmp 0x46b7e9
xor eax, eax
pop esi
ret
Function at 0x47c21f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004715d9
xor ebx, ebx
cmp dword [0x4b8e90], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x47c2f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x47c25f
xor eax, eax
jmp 0x47c3b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4939e0
push edi
call esi
cmp eax, ebx
je 0x47c258
push eax
call fcn.00471576
mov dword [esp], 0x4939d0
push edi
mov dword [0x4b8e90], eax
call esi
push eax
call fcn.00471576
mov dword [esp], 0x4939bc
push edi
mov dword [0x4b8e94], eax
call esi
push eax
call fcn.00471576
mov dword [0x4b8e98], eax
lea eax, [ebp - 8]
push eax
call fcn.00469300
test eax, eax
pop ecx
pop ecx
je 0x47c2c2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00468f00
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x47c2f4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00471576
cmp eax, ebx
pop ecx
mov dword [0x4b8ea0], eax
je 0x47c2f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00471576
pop ecx
mov dword [0x4b8e9c], eax
mov eax, dword [0x4b8e9c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x47c36d
cmp dword [0x4b8ea0], esi
je 0x47c36d
push eax
call fcn.004715e2
pop ecx
call eax
cmp eax, ebx
je 0x47c33a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4b8ea0]
call fcn.004715e2
pop ecx
call eax
test eax, eax
je 0x47c33a
test byte [ebp - 0x18], 1
jne 0x47c36d
lea eax, [ebp - 0xc]
push eax
call fcn.00469337
test eax, eax
pop ecx
je 0x47c355
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00468f00
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x47c364
or dword [ebp + 0x10], 0x200000
jmp 0x47c39e
or dword [ebp + 0x10], 0x40000
jmp 0x47c39e
mov eax, dword [0x4b8e94]
cmp eax, esi
je 0x47c39e
push eax
call fcn.004715e2
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47c39e
mov eax, dword [0x4b8e98]
cmp eax, esi
je 0x47c39e
push dword [ebp - 4]
push eax
call fcn.004715e2
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4b8e90]
call fcn.004715e2
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x480408
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b47a8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0048039d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0046c870
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x480457
cmp dword [ebp - 0x1c], 5
jb 0x48046f
jmp 0x48046b
cmp dword [ebp - 0x10], 1
jne 0x48046f
cmp dword [ebp - 0x1c], 4
ja 0x48046b
jne 0x48046f
cmp dword [ebp - 0x18], 0
jbe 0x48046f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4942a4
call fcn.00480271
test eax, eax
jge 0x480490
mov byte [0x4b9364], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00468ce5
add ebp, 0x78
leave
ret
Function at 0x403651
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp + 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x40366e
mov eax, dword [ebp - 4]
jmp 0x403748
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x403723
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x443a30]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x443a30]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x443a30]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x443a30]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x443a30]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x443a30]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x443a30]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x443a30]
dec ebp
jne 0x40368d
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x40373f
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x443a30]
dec ecx
jne 0x40372d
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4084ef
Capabilities:
Terminate process

Disassembly:
push ebx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x408503
push ebx
call fcn.00411358
test eax, eax
pop ecx
jne 0x408545
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x408517
push edi
call fcn.00411358
test eax, eax
pop ecx
jne 0x408544
mov eax, ebx
call fcn.0041133d
mov eax, edi
call fcn.0041133d
lea eax, [esi + 0xc]
cmp dword [eax], 0
mov byte [esi + 0x10], 0
je 0x408535
xor eax, eax
jmp 0x408544
push esi
push 0x4084c5
push eax
call fcn.004112bb
add esp, 0xc
pop edi
pop ebx
ret
Function at 0x410713
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor edx, edx
lea ecx, [esi + 0x19c]
mov dword [esi + 0x3bcd4], edx
mov dword [esi + 0x3bcd0], edx
push ebx
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x4c], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x2c], 0x20
mov dword [ecx + 0x54], 1
mov dword [ecx + 0x48], 4
mov dword [ecx + 0x58], edx
mov dword [ebp - 4], edx
lea eax, [ecx + 0x70]
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 8
mov ebx, edi
and ebx, 1
dec ebx
not ebx
and ebx, 0xedb88320
shr edi, 1
xor edi, ebx
dec dword [ebp - 8]
jne 0x410760
inc dword [ebp - 4]
mov dword [eax], edi
add eax, 4
cmp dword [ebp - 4], 0x100
jb 0x410756
mov dword [esi + 0x118], edx
lea eax, [esi + 0x148]
mov dword [eax], edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], edx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], edx
lea eax, [ebp - 0x38]
mov dword [esi + 0x198], ecx
call fcn.0040e865
mov ebx, esi
call fcn.0040e968
push 2
pop edi
mov byte [esi + 0x306a0], 0
mov byte [esi + 0x306a1], 1
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
xor ebx, ebx
sar ecx, 1
dec ecx
inc ebx
shl ebx, cl
test ebx, ebx
jbe 0x410817
push ebx
push dword [ebp - 4]
lea eax, [edi + esi + 0x306a0]
push eax
call fcn.0042af20
add esp, 0xc
add edi, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x16
jl 0x4107f2
push 8
pop edi
mov edx, 0x10000
push 4
mov eax, edi
xor ecx, ecx
pop ebx
imul eax, eax
add ecx, ecx
jmp 0x410839
shr eax, 1
inc ecx
cmp eax, edx
jae 0x410836
dec ebx
jne 0x41082f
mov eax, 0xa1
sub eax, ecx
mov ecx, edi
shr ecx, 4
add edi, 0x10
cmp edi, 0x800
mov dword [esi + ecx*4 + 0x30ea0], eax
jb 0x410828
and dword [esi + 0x325ac], ebx
and dword [esi + 0x3bd14], ebx
pop edi
pop ebx
leave
ret

Function at 0x4112bb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0042bd5a
mov ecx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ecx], eax
je 0x4112e4
xor eax, eax
leave
ret
call dword [0x43f0ec]
test eax, eax
jne 0x4112ef
inc eax
leave
ret
Function at 0x424a29
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x424a34
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x424ae6
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
sub eax, 8
dec edi
jne 0x424a4b
pop edi
test eax, eax
je 0x424aff
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x443138]
inc ecx
dec eax
jne 0x424aea
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x424b06
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x443138]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x443138]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x370]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x26c]
push eax
push esi
mov byte [ebp - 0x26c], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40106f
push ebx
push 0x4202d0
push 0x4202c0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x4011ea
push edi
mov edi, 0x100000
push edi
call fcn.00409b7d
pop ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
lea eax, [edi + 1]
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x26c]
push eax
push str._smeliaremove_d.exe
lea eax, [ebp - 0x168]
push esi
push eax
call fcn.00409b44
lea eax, [ebp - 0x168]
push 0x4202a8
push eax
call fcn.00409ab0
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x4010e2
mov edi, dword [ebp - 4]
cmp edi, 0x64
jl 0x40109d
jmp 0x4010fb
push eax
push dword [ebp - 0xc]
push 1
push dword [ebp - 8]
call fcn.0040996a
push dword [ebp - 0x10]
call fcn.0040978c
add esp, 0x14
push dword [ebp - 8]
call fcn.0040970a
pop ecx
push ebx
cmp edi, 0x64
jne 0x401122
push 0x4202d0
push 0x4202c0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x4011e9
push 0x4000000
push 3
push ebx
push 5
push ebx
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x670]
push str.__removeself___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00409690
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x64], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
jne 0x4011d0
push eax
lea eax, [ebp - 0x670]
push eax
push str.create_process_error_:_s__d
lea eax, [ebp - 0x470]
push 0xfa
push eax
call fcn.00409b44
add esp, 0x14
push ebx
push str.notice
lea eax, [ebp - 0x470]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4011db
push 0x32
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, 0xffffffff
je 0x4011e7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b1d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x426c18], 3
push ebx
push esi
push edi
jne 0x401ba8
mov eax, dword [0x426c1c]
push str._removeself
push dword [eax + 4]
call fcn.0040c1fa
pop ecx
pop ecx
test eax, eax
jne 0x401ba8
mov eax, dword [0x426c1c]
mov esi, dword [eax + 8]
xor ebx, ebx
xor edi, edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, ebx
jne 0x401c3a
inc edi
cmp edi, 0xa
jl 0x401b56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x21c]
push 0x420428
push eax
call fcn.00409ac7
add esp, 0x10
push ebx
push 0x4202d0
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401c3a
push 0x104
lea eax, [ebp - 0x11c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jge 0x401bc7
mov byte [ebp - 0x11c], bl
push 8
pop esi
push esi
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00409690
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x4020
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x426b00
push 0x67
push edi
call esi
push 0x64
push 0x426b68
push 0x6d
push edi
call esi
push edi
call fcn.00401aa6
pop ecx
lea eax, [ebp - 0x11c]
push eax
push 0x401590
push ebx
push 0x81
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x426bcc], bl
je 0x401c3a
call section..text
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x4055e0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x425758]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov eax, dword [str.Device_slabser0]
mov dword [ebp - 0x108], eax
mov ecx, dword [0x4205ac]
mov dword [ebp - 0x104], ecx
mov edx, dword [0x4205b0]
mov dword [ebp - 0x100], edx
mov eax, dword [0x4205b4]
mov dword [ebp - 0xfc], eax
mov cl, byte [0x4205b8]
mov byte [ebp - 0xf8], cl
push 0xef
push 0
lea edx, [ebp - 0xf7]
push edx
call fcn.00409690
add esp, 0xc
mov eax, dword [str.DeviceSilabser0]
mov dword [ebp - 0x208], eax
mov ecx, dword [0x4205c0]
mov dword [ebp - 0x204], ecx
mov edx, dword [0x4205c4]
mov dword [ebp - 0x200], edx
mov eax, dword [0x4205c8]
mov dword [ebp - 0x1fc], eax
mov cx, word [0x4205cc]
mov word [ebp - 0x1f8], cx
push 0xee
push 0
lea edx, [ebp - 0x1f6]
push edx
call fcn.00409690
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push str.HARDWAREDEVICEMAPSerialComm
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4056d0
push str.read_com_reg_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x405775
mov dword [ebp - 0x20c], 0x80
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x310]
push eax
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405703
jmp 0x405736
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x310]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40572c
jmp 0x405736
mov dword [ebp - 0x20c], 0
mov ecx, dword [ebp - 0x20c]
mov byte [ebp + ecx - 0x310], 0
cmp dword [ebp - 0x20c], 0
jne 0x405751
xor al, al
jmp 0x405775
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x310]
push eax
push str.._s
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409ac7
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c735
mov esp, ebp
pop ebp
ret
Function at 0x405d80
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
jge 0x405ded
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jbe 0x405dba
jmp 0x405ded
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
sub ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405de2
jmp 0x405d99
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
jmp 0x405d99
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
jne 0x405dfd
mov al, 1
jmp 0x405dff
xor al, al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x425758]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], 0xfa
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push 0x4206b4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405e60
push 0x4206d8
call fcn.00407f60
add esp, 4
mov eax, 1
jmp 0x405ecb
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push 0x4206f4
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405ea9
push str.checkicuser:_a3boot_read_error_n
call fcn.00407f60
add esp, 4
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
jmp 0x405ecb
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00407c90
add esp, 8
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c735
mov esp, ebp
pop ebp
ret