joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076b0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x41d2ac]
sub esp, 8
test eax, eax
push ebx
jne 0x4076c8
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41d2ac], eax
cmp al, 6
jae 0x4076d3
xor al, al
pop ebx
add esp, 8
ret
cmp byte [0x41b00e], 0
je 0x4076cc
lea eax, [esp + 8]
push eax
call dword [0x41d260]
call fcn.00407470
mov ecx, dword [esp + 8]
push ecx
mov bl, al
call dword [0x41d26c]
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x407700
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [0x41d288]
push 0x14
call fcn.00402950
mov esi, eax
test esi, esi
jne 0x407722
xor al, al
pop esi
add esp, 0x40
ret
push edi
push 0x3c
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00401100
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x41b238
mov dword [esp + 0x24], 0x40a2b0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
add esp, 0x40
ret

Function at 0x4077d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
mov dword [0x41d24c], 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
test ecx, ecx
mov dword [esp + 8], ecx
jne 0x407803
xor al, al
pop ebx
add esp, 8
ret
mov eax, 1
cmp dword [esp + 4], eax
jle 0x407878
push ebp
push esi
push edi
mov edi, dword [ecx + eax*4]
movzx ebp, word [edi]
cmp bp, 0x6e
jne 0x40785d
movzx ecx, word [edi + 2]
lea esi, [edi + 2]
xor edx, edx
test cx, cx
je 0x407851
jmp 0x407830
cmp cx, 0x30
jb 0x407851
cmp cx, 0x39
ja 0x407851
movzx ecx, cx
lea edx, [edx + edx*4]
add esi, 2
lea edx, [ecx + edx*2 - 0x30]
movzx ecx, word [esi]
test cx, cx
jne 0x407830
mov ecx, dword [esp + 0x14]
mov dword [0x41b028], edx
mov bl, 2
cmp bp, 0x65
jne 0x40786c
cmp word [edi + 2], 0
jne 0x40786c
mov bl, 1
add eax, 1
cmp eax, dword [esp + 0x10]
jl 0x407811
pop edi
pop esi
pop ebp
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x407890
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x26c
cmp byte [0x40b00d], 0
push ebx
push ebp
push esi
push edi
je 0x407a17
call fcn.00407a30
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41d288]
push 0x17
call fcn.00402950
lea ecx, [esp + 0x14]
push ecx
mov ebp, eax
mov eax, dword [0x41d288]
push 0x38
call fcn.00402950
mov edi, eax
test edi, edi
je 0x407a17
test ebp, ebp
je 0x407a17
push 0x104
lea edx, [esp + 0x74]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407a17
lea edx, [esp + 0x70]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x407900
mov ecx, edi
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407910
mov eax, 0x41b238
mov si, word [eax]
add eax, 2
test si, si
jne 0x407920
sub eax, 0x41b238
sub ecx, edi
sar eax, 1
sar ecx, 1
lea eax, [ecx + eax*2 - 2]
lea ecx, [esp + 0x70]
sub edx, ecx
sar edx, 1
add eax, edx
lea eax, [eax + eax + 2]
test eax, eax
je 0x407a17
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x407a17
push 0x41b238
push 0x41b238
lea edx, [esp + 0x78]
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00401100
add esp, 0xc
push 0x10
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00401100
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4079ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [esp + 0x18]
push edx
call ebx
mov eax, ebp
call fcn.00404c70
mov eax, edi
call fcn.00404c70
mov eax, esi
call fcn.00404c70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret

Function at 0x407a90
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x41d2ac]
sub esp, 0xc
test eax, eax
jne 0x407aa7
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41d2ac], eax
cmp al, 6
jae 0x407abb
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add esp, 0xc
ret
lea eax, [esp]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x407adb
xor al, al
add esp, 0xc
ret
mov eax, dword [esp]
lea ecx, [esp + 8]
push ecx
push 4
lea edx, [esp + 0xc]
push edx
push 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esp + 4], eax
setne al
add esp, 0xc
ret
Function at 0x407b10
Capabilities:
Get common file path

Disassembly:
push edi
push 0x104
push 0x41b030
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor edi, edi
test eax, eax
jne 0x407b30
mov word [0x41b030], di
jmp 0x407b5f
mov eax, 0x41b030
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407b35
sub eax, 0x41b030
sar eax, 1
sub eax, 1
je 0x407b5f
cmp word [eax*2 + 0x41b02e], 0x5c
jne 0x407b5f
mov word [eax*2 + 0x41b02e], di
push 0x400
push 0x41b238
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x407b84
mov word [0x41ba38], di
mov word [0x41b238], di
jmp 0x407beb
mov edx, 0x400
xor eax, eax
jmp 0x407b90
movzx ecx, word [eax + 0x41b238]
mov word [eax + 0x41ba38], cx
add eax, 2
cmp cx, di
je 0x407bab
sub edx, 1
jne 0x407b90
cmp edx, edi
jne 0x407bb6
mov word [0x41c236], di
mov eax, 0x41ba38
jmp 0x407bc0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407bc0
jmp 0x407bd0
sub eax, 2
cmp eax, 0x41ba38
je 0x407be2
cmp word [eax], 0x5c
jne 0x407bd0
jmp 0x407be8
cmp word [eax], 0x5c
jne 0x407beb
mov word [eax], di
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
push 0x1a
push 0x41c238
push edi
call esi
test eax, eax
jne 0x407c0a
mov word [0x41c238], di
jmp 0x407c3a
mov eax, 0x41c238
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c10
sub eax, 0x41c238
sar eax, 1
sub eax, 1
je 0x407c3a
cmp word [eax*2 + 0x41c236], 0x5c
jne 0x407c3a
mov word [eax*2 + 0x41c236], di
push edi
push edi
push 0x41ca38
push edi
call esi
test eax, eax
pop esi
jne 0x407c52
mov word [0x41ca38], di
pop edi
ret
mov eax, 0x41ca38
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407c57
sub eax, 0x41ca38
sar eax, 1
sub eax, 1
je 0x407c81
cmp word [eax*2 + 0x41ca36], 0x5c
jne 0x407c81
mov word [eax*2 + 0x41ca36], di
pop edi
ret

Function at 0x407c90
Capabilities:
Get disk information
Query environment variable

Disassembly:
sub esp, 0x214
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x41d288]
push 0x16
call fcn.00402950
mov edi, eax
test edi, edi
je 0x407d61
push 0x104
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407d51
mov edx, 0x40a268
lea eax, [esp + 0x10]
mov esi, 0x104
lea ebx, [ebx]
cmp word [eax], 0
je 0x407cee
add eax, 2
sub esi, 1
jne 0x407ce0
test esi, esi
je 0x407d14
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x407d08
sub esi, 1
jne 0x407cf2
test esi, esi
jne 0x407d14
mov word [esp + 0x216], si
push 0
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
push edi
push 0
je 0x407d54
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x214
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
pop esi
add esp, 0x214
ret
Function at 0x408150
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x41d288]
push 5
mov dword [esp + 0x18], 0
call fcn.00402950
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x40827e
lea edi, [esp + 0x10]
call fcn.004038c0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4081a4
call fcn.00407a30
jmp 0x40826e
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408267
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov edi, ebx
je 0x408250
lea ecx, [ecx]
mov esi, dword [edi]
lea edx, [esp + 0x40]
mov eax, edx
sub esi, eax
lea ebx, [ebx]
movzx eax, word [esi + edx]
cmp ax, 0x41
jb 0x4081f3
cmp ax, 0x5a
ja 0x4081f3
add eax, 0x20
movzx ecx, ax
movzx eax, word [edx]
cmp ax, 0x41
jb 0x408208
cmp ax, 0x5a
ja 0x408208
add eax, 0x20
add edx, 2
test cx, cx
movzx eax, ax
je 0x408218
cmp cx, ax
je 0x4081e0
movzx edx, ax
movzx eax, cx
sub eax, edx
je 0x40822b
mov edi, dword [edi + 4]
test edi, edi
jne 0x4081d0
jmp 0x408250
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408250
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x1c]
push edx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4081c3
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x10]
call fcn.004037c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret

Function at 0x4082a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41d288]
push 0x16
call fcn.00402950
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
mov eax, dword [0x41d288]
push edx
call fcn.00402950
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
je 0x40834b
test ebx, ebx
je 0x408343
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x408343
lea eax, [esp + 0x18]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408303
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
sub eax, edx
sar eax, 1
sub eax, 1
push eax
call fcn.004048b0
add esp, 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
push esi
push 0
call ebp
push eax
call edi
test ebx, ebx
je 0x408357
push ebx
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x408370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x41d288]
push 0x10
call fcn.00402950
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov eax, dword [0x41d288]
push 0x11
call fcn.00402950
test esi, esi
mov edi, eax
mov dword [esp + 0x1c], 0x400
je 0x4083fd
test edi, edi
je 0x4083fd
lea edx, [esp + 0x14]
push edx
push 0x20119
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4083fd
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x408402
mov byte [esp + 0x20], 0
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x40841a
push esi
push 0
call ebp
push eax
call ebx
test edi, edi
je 0x408426
push edi
push 0
call ebp
push eax
call ebx
call fcn.00407c90
lea ecx, [esp + 0x20]
xor edx, edx
cmp byte [ecx], 0
je 0x40846b
add ecx, 1
cmp byte [ecx], 0
je 0x40845e
add ecx, 1
cmp byte [ecx], 0
je 0x408463
add ecx, 1
cmp byte [ecx], 0
je 0x408468
add edx, 4
add ecx, 1
cmp edx, 0x400
jb 0x408431
jmp 0x40846b
add edx, 1
jmp 0x40846b
add edx, 2
jmp 0x40846b
add edx, 3
push eax
lea ecx, [esp + edx + 0x24]
push str.__08X
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
xor edx, edx
cmp byte [eax], 0
je 0x4084bf
add eax, 1
cmp byte [eax], 0
je 0x4084b2
add eax, 1
cmp byte [eax], 0
je 0x4084b7
add eax, 1
cmp byte [eax], 0
je 0x4084bc
add edx, 4
add eax, 1
cmp edx, 0x400
jb 0x408485
jmp 0x4084bf
add edx, 1
jmp 0x4084bf
add edx, 2
jmp 0x4084bf
add edx, 3
lea eax, [esp + 0x20]
call fcn.00404a20
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00407a30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408a20
Capabilities:
Create directory

Disassembly:
sub esp, 0x800
cmp byte [0x41b01e], 0
push ebx
mov ebx, eax
jne 0x408a96
mov eax, ecx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x408a34
sub eax, ecx
sar eax, 1
sub eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x408a51
sub eax, 1
xor edx, edx
test eax, eax
jbe 0x408a65
cmp word [ecx + edx*2], 0x5c
je 0x408a96
add edx, 1
cmp edx, eax
jb 0x408a57
mov eax, dword [esp + 0x808]
push eax
push ecx
lea ecx, [esp + 0xc]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408aa1
lea ecx, [esp + 4]
push esi
mov eax, edi
call fcn.004089a0
add esp, 4
pop ebx
add esp, 0x800
ret

Function at 0x408ab0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x84c
push ebp
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x41d288]
push 0x1f
call fcn.00402950
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push ebx
lea ecx, [esp + 0x58]
push str._s_s
push ecx
mov dword [esp + 0x18], eax
call ebp
add esp, 0x10
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408b38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x408b38
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x41d288]
push 7
call fcn.00402950
mov esi, eax
test esi, esi
je 0x408b38
push edi
push esi
push ebx
lea ecx, [esp + 0x5c]
push str._s_s_s
push ecx
call ebp
add esp, 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408b9f
push 0x3c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00401100
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x14]
lea edx, [esp + 0x50]
push eax
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
add esp, 0x84c
ret
Function at 0x402aa0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00452c90
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x402b0d
push 0x2a
push 0x4054d9f
push 6
call fcn.004513b0
add esp, 0xc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402b1d
push ebx
call fcn.0045139e
add esp, 4
cmp dword [ebp - 4], 0
jg 0x402b2e
mov dword [ebp - 4], 0x100
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00452cb0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402b61
push ebx
call fcn.0045139e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402b9a
push 0x125
push 0x4054d9f
push 6
call fcn.004513b0
add esp, 0xc
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x402bad
mov eax, 0x476524
push eax
push 1
mov ebx, 0x174
call fcn.00452cf0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402bd7
push ebx
call fcn.0045139e
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x476524
push dword [ebp - 8]
call fcn.00401a70
add esp, 8
cmp eax, 0
jne 0x402c14
call fcn.00402c4c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402c10
push ebx
call fcn.0045139e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x402c30
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.004513a4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402c35
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402c46
push ebx
call fcn.0045139e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x404a94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push VariantCopyInd
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.00454ed0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404ade
mov eax, 0
jmp 0x404b47
mov dword [ebp - 0xc], esp
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x404b1d
push 0x100
push 0x4054b33
push 6
call fcn.004513b0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp + 0x18], 0
jne 0x404b37
push dword [ebp - 8]
call fcn.00403afc
jmp 0x404b3f
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
jmp 0x404b47
mov esp, ebp
pop ebp
ret 0x24
Function at 0x40af80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x40afb0
mov edx, 0xffffffff
mov eax, 0xffffffff
jmp 0x40afeb
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40afe0
push 0xa0
push 0x4054ae3
push 6
call fcn.004513b0
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x40afeb
mov esp, ebp
pop ebp
ret 4

Function at 0x40cbac
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40cbd7
mov eax, 0x47660c
jmp 0x40cd39
cmp dword [ebp + 0xc], 0
jg 0x40cc2f
mov dword [ebp - 0xc], esp
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40cc1b
push 0xe2
push 0x4054ae2
push 6
call fcn.004513b0
add esp, 0xc
cmp dword [ebp + 0xc], 0
jg 0x40cc2f
mov eax, 0x47660c
jmp 0x40cd39
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0040cd54
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cc66
mov eax, 0x47660c
jmp 0x40cd39
mov dword [ebp - 0xc], esp
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40cca0
push 0x2a4
push 0x4054ae2
push 6
call fcn.004513b0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ccb7
mov eax, 0x47660c
jmp 0x40cd39
push 0x80000301
push 0
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.00454cb0
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ccf6
push ebx
call fcn.0045139e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040cde4
mov eax, dword [ebp - 8]
test eax, eax
je 0x40cd34
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004513a4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40cd39
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40cd4a
push ebx
call fcn.0045139e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x454d80
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x455610
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00467d2b
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x45567a
push esi
lea edi, [eax + 0x400]
call fcn.00467d54
push edi
call fcn.00467d2b
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x45564a
push esi
xor edi, edi
call dword [0x47a4a8]
add esp, 4
test eax, eax
je 0x455696
push eax
push esi
call fcn.00459450
add esp, 8
mov edi, eax
push esi
call fcn.00467d54
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret