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

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x45e6d1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x45e73e
cmp dword [esp + 0x1c], 2
jne 0x45e73e
cmp dword [esp + 0x10], 5
jne 0x45e73e
cmp dword [esp + 0x14], 1
jne 0x45e73e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45e728
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x45e719
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x45e721
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x45e73e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x471fb8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x471ff0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047006f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00470047
jmp 0x471ffc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4736a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4736eb
call fcn.00479162
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4736eb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4736e2
xor eax, eax
jmp 0x4736f3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004736f9
pop edi
pop esi
pop ebx
ret 4

Function at 0x479692
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4796c0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4796de
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004795f8
jmp 0x4796de
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4796de
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004795f8
test edi, edi
mov eax, edi
jne 0x4796c8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, eax
call fcn.00402a89
push 0x200
lea eax, [esi + 4]
push 0
push eax
call fcn.0040ae10
push 0x200
lea ecx, [esi + 0x204]
push 0
push ecx
call fcn.0040ae10
push 0x80
lea edx, [esi + 0x408]
push 0
push edx
call fcn.0040ae10
push 0x80
lea eax, [esi + 0x488]
push 0
push eax
call fcn.0040ae10
push 0x80
lea ecx, [esi + 0x50a]
push 0
push ecx
call fcn.0040ae10
xor eax, eax
mov dword [esi + 0x58c], eax
mov dword [esi + 0x590], eax
mov dword [esi + 0x594], eax
mov dword [esi + 0x598], eax
mov dword [esi + 0x59c], eax
mov dword [esi + 0x5a0], eax
mov dword [esi + 0x5a4], eax
mov dword [esi + 0x5a8], eax
mov dword [esi + 0x9bc], eax
mov dword [esi + 0x9c0], eax
mov dword [esi + 0x9c4], eax
mov dword [esi + 0x9c8], eax
add esp, 0x3c
mov dword [esi + 0x9cc], eax
lea edx, [esi + 0x5ac]
mov dword [esi + 0x9d0], eax
push edx
mov dword [esi + 0x9d4], eax
push 0x104
mov dword [esi + 0x9d8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x104
lea eax, [esi + 0x7b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, esi
pop esi
ret

Function at 0x401100
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x42104c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x12]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x18], ax
call fcn.0040ae10
add esp, 0xc
mov dword [esp + 4], ebx
cmp edi, ebx
je 0x401221
cmp esi, ebx
je 0x401221
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401150
sub eax, edx
sar eax, 1
je 0x401221
cmp dword [esp + 0x220], ebx
je 0x401175
lea edx, [esp + 0xc]
push edx
jmp 0x4011af
mov eax, dword [esp + 0x21c]
cmp dword [eax], 3
jne 0x4011aa
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41cc9c
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00407d01
add esp, 0xc
jmp 0x4011ba
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00407d01
push 0x41cca0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00407e44
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401221
push eax
push 1
push 0x200
push edi
call fcn.00408137
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004081cb
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00407cf2
add esp, 0x214
ret 8
mov ecx, dword [esp + 0x214]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00407cf2
add esp, 0x214
ret 8
Function at 0x4012c0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x42104c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.0040ae10
add esp, 0xc
cmp edi, esi
je 0x4013a8
mov eax, 0x41cca8
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401305
sub eax, edx
sar eax, 1
je 0x40132f
push 0x41ccac
lea edx, [esp + 8]
push 0x41cca8
push edx
call fcn.00407e44
add esp, 0xc
jmp 0x40136a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41cc68
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00407d01
push 0x41ccac
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00407e44
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40138d
push eax
push 1
push 0x200
push edi
call fcn.004083a9
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004081cb
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00407cf2
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00407cf2
add esp, 0x214
ret

Function at 0x4013c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42104c]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0040ae10
mov edx, dword [esp + 0x21c]
add esp, 0xc
cmp dword [edx], 3
jne 0x401423
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41cc9c
lea ecx, [esp + 4]
push 0x104
push ecx
call fcn.00407d01
add esp, 0xc
jmp 0x401432
lea edx, [esp]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [esp + 4]
push eax
push 0x41ccb4
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00407cf2
add esp, 0x20c
ret 4
Function at 0x401460
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x42104c]
xor eax, esp
mov dword [esp + 0x2d4], eax
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0xe]
push ecx
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
call fcn.0040ae10
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xe2]
push eax
mov word [esp + 0xe4], dx
call fcn.0040ae10
push 0x41ccc8
lea ecx, [esp + 0x20]
push 0x64
push ecx
call fcn.0040842b
push 0x41ccdc
lea edx, [esp + 0x2c]
push 0x64
push edx
call fcn.00407d01
push 0x41ccf4
lea eax, [esp + 0x38]
push 0x64
push eax
call fcn.00407d01
push 0x41cd0c
lea ecx, [esp + 0x44]
push 0x64
push ecx
call fcn.00407d01
add esp, 0x48
push 0x41cd2c
lea edx, [esp + 8]
push 0x64
push edx
call fcn.00407d01
push esi
lea eax, [esp + 0xdc]
push 0x104
push eax
call fcn.0040842b
add esp, 0x18
lea ecx, [esp]
push ecx
push 3
push 0
lea edx, [esp + 0x10]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401581
lea eax, [esp + 0xcc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401544
sub eax, edx
mov edx, dword [esp]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0xd0]
push ecx
push 1
push 0
push 0x41cd3c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401581
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2d4]
xor ecx, esp
xor eax, eax
call fcn.00407cf2
add esp, 0x2d8
ret
Function at 0x4021e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
sub esp, 0xbe8
mov eax, dword [0x42104c]
xor eax, esp
mov dword [esp + 0xbe4], eax
push esi
mov esi, dword [esp + 0xbf0]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x4230e8
push 0x67
push esi
call edi
push 0x64
push 0x423020
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004023c0
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x4230e8
push 0x423020
push 0
mov dword [0x4231b0], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4022a6
push ebx
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, 0x422070
call fcn.00402a89
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebx
lea eax, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0xc]
call fcn.004015a0
test eax, eax
je 0x40229c
call fcn.004031d1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402790
test eax, eax
jne 0x4022bf
pop ebx
mov ecx, dword [esp + 0xbec]
pop edi
pop esi
xor ecx, esp
call fcn.00407cf2
add esp, 0xbe8
ret 0x10
mov ecx, dword [0x423838]
test ecx, ecx
jbe 0x4022e9
cmp word [0x42383c], 0
jbe 0x4022e9
mov esi, 0x42207c
call fcn.004038f4
mov ax, word [0x42383c]
mov word [0x42208c], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x41ce78
mov edx, 0x423db0
call fcn.00402a70
call fcn.004039b2
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x9fa]
push eax
mov word [esp + 0x9fc], dx
call fcn.0040ae10
lea edi, [esp + 0x9fc]
call fcn.00403958
push 0x41cc9c
mov ecx, edi
push 0x104
push ecx
call fcn.00407d01
push 0x423db0
mov edx, edi
push 0x104
push edx
call fcn.00407d01
add esp, 0x2c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402396
push 0x1f4
call ebx
push 1
push 0
push 0x41cca8
mov ecx, edi
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call ebx
test byte [0x423734], 7
je 0x4023ab
call fcn.00401ee0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x42104c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.0040ae10
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.0040ae10
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x41ce90
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x41ced4
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4024f6
mov ebx, 1
push 0x41cee0
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41ced4
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x402521
or ebx, 2
push 0x41cf28
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41ced4
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40254c
or ebx, 4
push 0x41cf78
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41ced4
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40257a
or ebx, 0x100
push 0x41cfd0
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41ced4
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4025a8
or ebx, 0x200
push 0x41d028
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x41ced4
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4025d6
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.00407cf2
add esp, 0x414
ret
Function at 0x402790
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x42104c]
xor eax, esp
mov dword [esp + 0x3e0], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.0040ae10
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x4239b0
call fcn.00402b31
test eax, eax
jne 0x4028d9
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.0040ae10
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.00403416
xor eax, eax
jmp 0x402820
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x423b58], cx
add eax, 2
test cx, cx
jne 0x402820
push 0x41cd90
push 0x40
push 0x4239b4
call fcn.0040842b
add esp, 0xc
push 0x41cdac
push 0x10
push 0x423a36
call fcn.0040842b
add esp, 0xc
push 0x41cd74
push 0x40
push 0x423a56
call fcn.0040842b
mov eax, 0x2b70
mov edx, 0x51
add esp, 0xc
mov word [0x423ad6], ax
mov word [0x423a34], dx
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x423b38], cx
add eax, 2
test cx, cx
jne 0x402890
mov eax, 0x423b38
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4028b0
mov ecx, dword [0x41d088]
mov dx, word [0x41d08c]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x423b78], 5
call fcn.004034a4
lea edi, [esp + 0x1d8]
call fcn.00403416
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x423970], cx
add eax, 2
test cx, cx
jne 0x4028f0
push 0x423970
push 0
push reloc.KERNEL32.dll_WriteConsoleA
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402939
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00407cf2
mov esp, ebp
pop ebp
ret
push 0x423970
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402924
push 0x41cd74
call fcn.0040352d
add esp, 4
mov ecx, 0x423bb0
mov dword [0x423838], eax
call fcn.00402600
mov eax, dword [0x423b7c]
push 0
push 0
push 0
push 0x403859
push 0
push 0
mov dword [0x423bb8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
xor ecx, esp
mov eax, 1
call fcn.00407cf2
mov esp, ebp
pop ebp
ret
Function at 0x402a89
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [esi], 0
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0040ae10
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402b1c
mov ecx, dword [ebp - 0x78]
xor edx, edx
inc edx
cmp dword [ebp - 0x7c], 5
jne 0x402b00
test ecx, ecx
jne 0x402aeb
cmp word [ebp + 0x94], 4
jb 0x402b1c
mov dword [esi], edx
push 2
pop eax
cmp ecx, eax
jne 0x402af4
mov dword [esi], eax
jae 0x402afa
cmp ecx, edx
jne 0x402b1c
mov dword [esi], 3
cmp dword [ebp - 0x7c], 6
jne 0x402b1c
test ecx, ecx
jne 0x402b12
mov dword [esi], 4
jmp 0x402b1c
cmp ecx, edx
jne 0x402b1c
mov dword [esi], 5
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00407cf2
add ebp, 0xa0
leave
ret

Function at 0x402bb0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.0040ae10
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x402c62
push edi
mov edi, 0x41cc68
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x402bfb
sub eax, edx
sar eax, 1
je 0x402c61
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00407d01
push 0x41cca0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00407e44
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x402c61
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00408137
push dword [ebp - 0x78]
call fcn.004081cb
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00407cf2
add ebp, 0x198
leave
ret

Function at 0x402d41
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42104c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040ae10
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00402ed3
push dword [ebp - 0x214]
call fcn.00402fc0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402db9
xor eax, eax
jmp 0x402dc0
push esi
call fcn.00402c7b
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407cf2
leave
ret
Function at 0x402dcc
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x402e75
mov ebx, 0xc00
push ebx
call fcn.00408d47
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402e66
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x402e48
jg 0x402e3c
cmp ecx, dword [ebp - 0x18]
jbe 0x402e48
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x90
dec ebx
jne 0x402e2b
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00415c60
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x402e75
push dword [ebp - 4]
call fcn.004084fb
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402e85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x402ece
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret

Function at 0x4030df
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x41cca0
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00407e44
add esp, 0xc
test eax, eax
je 0x403109
xor eax, eax
jmp 0x40318c
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00408e6a
push dword [ebp - 4]
call fcn.0040908c
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00408e6a
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.00409149
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00408137
push dword [ebp - 4]
call fcn.004081cb
push 0x32
lea ebx, [edi + esi]
call fcn.0040318f
push 0x41ccac
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00407e44
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x403102
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.004083a9
push dword [ebp - 4]
call fcn.004081cb
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x40368b
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40370a
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x4036e0
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x40370f
cmp dword [ebp - 8], 3
jb 0x4036a6
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x403703
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x403703
cmp edi, esi
jne 0x4036ee
mov eax, dword [ebp - 4]
jmp 0x403726
cmp dword [eax + 0x34], 6
jne 0x403723
cmp dword [eax + 0x1c], esi
jne 0x40372c
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x403718
jmp 0x403769
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x4036f1