joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 0
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.00409320
add esp, 0xc
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00409320
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov edx, 2
shl edx, 1
mov dword [ebp - 0x41c], edx
cmp dword [ebp - 0x41c], 0x208
jae 0x401088
jmp 0x40108d
call fcn.004057a0
xor eax, eax
mov ecx, dword [ebp - 0x41c]
mov word [ebp + ecx - 0x414], ax
push 0x418628
lea edx, [ebp - 0x414]
push edx
push 0x41866c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4010df
mov edx, dword [ebp - 0x418]
or edx, 1
mov dword [ebp - 0x418], edx
push 0x418678
lea eax, [ebp - 0x414]
push eax
push 0x4186c0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401121
mov eax, dword [ebp - 0x418]
or eax, 2
mov dword [ebp - 0x418], eax
push 0x4186d8
lea ecx, [ebp - 0x414]
push ecx
push 0x4186cc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401163
mov ecx, dword [ebp - 0x418]
or ecx, 4
mov dword [ebp - 0x418], ecx
push 0x418730
lea edx, [ebp - 0x414]
push edx
push 0x418724
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011a8
mov edx, dword [ebp - 0x418]
or edx, 0x100
mov dword [ebp - 0x418], edx
push 0x418790
lea eax, [ebp - 0x414]
push eax
push 0x418784
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011ec
mov eax, dword [ebp - 0x418]
or eax, 0x200
mov dword [ebp - 0x418], eax
push 0x4187f0
lea ecx, [ebp - 0x414]
push ecx
push 0x4187e4
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401231
mov ecx, dword [ebp - 0x418]
or ecx, 0x400
mov dword [ebp - 0x418], ecx
mov edx, dword [ebp - 0x418]
or edx, 0x2000000
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040565b
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x44], ax
push 0x3e
push 0
lea ecx, [ebp - 0x42]
push ecx
call fcn.00409320
add esp, 0xc
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1dc], 0
lea ecx, [ebp - 0x44]
call fcn.004043fc
lea edx, [ebp - 0x44]
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1e4], 0x41bf88
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x1f0]
mov dx, word [ecx]
mov word [ebp - 0x1de], dx
mov eax, dword [ebp - 0x1e4]
mov cx, word [ebp - 0x1de]
mov word [eax], cx
mov edx, dword [ebp - 0x1f0]
add edx, 2
mov dword [ebp - 0x1f0], edx
mov eax, dword [ebp - 0x1e4]
add eax, 2
mov dword [ebp - 0x1e4], eax
cmp word [ebp - 0x1de], 0
jne 0x401784
push 0x41bf88
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
je 0x401801
mov ecx, dword [ebp - 0x1dc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4019bd
push 0x41bf88
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
jne 0x401828
xor eax, eax
jmp 0x4019bd
lea edx, [ebp - 0x1d4]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x41cb20
call fcn.00402530
add esp, 4
mov dword [ebp - 0x1fc], eax
cmp dword [ebp - 0x1fc], 0
jne 0x401982
mov dword [ebp - 0x1f4], 0x4188a4
mov dword [ebp - 0x1e8], 0x41ccc8
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x1f4]
mov dx, word [ecx]
mov word [ebp - 0x1d8], dx
mov eax, dword [ebp - 0x1e8]
mov cx, word [ebp - 0x1d8]
mov word [eax], cx
mov edx, dword [ebp - 0x1f4]
add edx, 2
mov dword [ebp - 0x1f4], edx
mov eax, dword [ebp - 0x1e8]
add eax, 2
mov dword [ebp - 0x1e8], eax
cmp word [ebp - 0x1d8], 0
jne 0x40187a
push 0x4188b0
push 0x41cb24
call fcn.004024c0
add esp, 8
push 0x4188cc
push 0x41cba6
call fcn.004024e0
add esp, 8
push 0x4188d8
push 0x41cbc6
call fcn.004024c0
add esp, 8
mov ecx, 0x51
mov word [0x41cba4], cx
mov edx, 0x2b8e
mov word [0x41cc46], dx
mov dword [ebp - 0x1f8], 0x4188f4
mov dword [ebp - 0x1ec], 0x41cca8
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x1f8]
mov dx, word [ecx]
mov word [ebp - 0x1d6], dx
mov eax, dword [ebp - 0x1ec]
mov cx, word [ebp - 0x1d6]
mov word [eax], cx
mov edx, dword [ebp - 0x1f8]
add edx, 2
mov dword [ebp - 0x1f8], edx
mov eax, dword [ebp - 0x1ec]
add eax, 2
mov dword [ebp - 0x1ec], eax
cmp word [ebp - 0x1d6], 0
jne 0x401930
mov dword [0x41cce8], 5
call fcn.0040448c
mov ecx, 0x418904
call fcn.00404515
mov dword [0x41ce20], eax
push 0x41c920
call fcn.004013a0
add esp, 4
push 0
push 0
push 0
push 0x4015d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040565b
mov esp, ebp
pop ebp
ret
Function at 0x4019d0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00404ab6
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x401a12
mov eax, dword [ebp - 0x418]
jmp 0x401b93
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409320
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.00409320
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x401a7d
mov edx, dword [ebp - 0x420]
add edx, 1
mov dword [ebp - 0x420], edx
cmp dword [ebp - 0x420], 5
jge 0x401aec
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x118
mov ecx, 2
imul ecx, ecx, 0
movzx edx, word [eax + ecx + 0x41c3a8]
test edx, edx
jne 0x401aa8
jmp 0x401a6e
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.0040587a
add esp, 0xc
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
add edx, 0x41c3a8
push edx
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.004058d6
add esp, 0xc
jmp 0x401a6e
mov dword [ebp - 0x41c], 0
jmp 0x401b07
mov ecx, dword [ebp - 0x41c]
add ecx, 1
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 5
jge 0x401b58
mov edx, dword [ebp - 0x41c]
imul edx, edx, 0x118
mov eax, 2
imul eax, eax, 0
movzx ecx, word [edx + eax + 0x41c3a8]
test ecx, ecx
jne 0x401b32
jmp 0x401af8
push 1
movzx edx, word [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x41c]
imul ecx, ecx, 0x118
add ecx, 0x41c3a8
mov edx, dword [ebp + 8]
call fcn.004052fa
add esp, 8
jmp 0x401af8
push 0x41c1a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004058d6
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401b8d
mov dword [ebp - 0x418], 2
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040565b
mov esp, ebp
pop ebp
ret
Function at 0x402010
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x64
push 0x41beb8
push 0x67
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x41bdf0
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 8]
push edx
call fcn.00402240
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004022e0
add esp, 8
test eax, eax
jne 0x402070
xor eax, eax
jmp 0x402230
push 0x6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebp - 0x238], eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x41af08
call fcn.00403a56
call fcn.00402af0
test eax, eax
je 0x4020ad
call fcn.004041ab
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401720
test eax, eax
jne 0x4020bd
xor eax, eax
jmp 0x402230
call fcn.00401c00
cmp dword [0x41ce20], 0
jbe 0x4020f4
movzx eax, word [0x41ce24]
test eax, eax
jle 0x4020f4
mov edx, 0x41aef8
mov ecx, dword [0x41ce20]
call fcn.0040487c
mov cx, word [0x41ce24]
mov word [0x41aef4], cx
mov dword [ebp - 0x234], 0x418a74
mov dword [ebp - 0x230], 0x41c1a0
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x234]
mov cx, word [eax]
mov word [ebp - 0x22a], cx
mov edx, dword [ebp - 0x230]
mov ax, word [ebp - 0x22a]
mov word [edx], ax
mov ecx, dword [ebp - 0x234]
add ecx, 2
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x230]
add edx, 2
mov dword [ebp - 0x230], edx
cmp word [ebp - 0x22a], 0
jne 0x402114
call fcn.004048e4
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409320
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41c1a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004058d6
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x418a8c
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040565b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402650
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 8], 0
je 0x402679
cmp dword [ebp + 0xc], 0
jne 0x402683
jmp 0x4027df
cmp dword [ebp + 0x10], 0
je 0x4026d8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
add ecx, 2
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x214]
mov ax, word [edx]
mov word [ebp - 0x216], ax
add dword [ebp - 0x214], 2
cmp word [ebp - 0x216], 0
jne 0x4026a1
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x224]
sar ecx, 1
mov dword [ebp - 0x220], ecx
jne 0x4026e2
jmp 0x4027df
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00409320
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40271b
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402763
cmp dword [0x41af08], 3
jne 0x402751
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418aac
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004058d6
add esp, 0xc
jmp 0x402763
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004058d6
add esp, 0xc
mov dword [ebp - 0x210], 0
push 0x418ab0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00405acd
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x4027ad
jmp 0x4027df
mov eax, dword [ebp - 0x210]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00405d9f
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.00405eb7
add esp, 4
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040565b
mov esp, ebp
pop ebp
ret

Function at 0x4029f0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409320
add esp, 0xc
mov dword [ebp - 0x210], 0
cmp dword [ebp + 8], 0
je 0x402a42
cmp dword [ebp + 0xc], 0
jne 0x402a4c
jmp 0x402acd
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x418ad0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004058d6
add esp, 0xc
push 0x418aec
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00405acd
add esp, 0xc
cmp dword [ebp - 0x210], 0
je 0x402ac3
mov eax, dword [ebp - 0x210]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406085
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.00405eb7
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040565b
mov esp, ebp
pop ebp
ret
Function at 0x403820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409320
add esp, 0xc
mov dword [ebp - 0x430], 0
push 0x200
push 0
lea edx, [ebp - 0x40c]
push edx
call fcn.00409320
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call fcn.00402800
add esp, 4
test eax, eax
je 0x403a42
mov dword [ebp - 0x428], 0x418c38
mov dword [ebp - 0x418], 0x41c018
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x438], ecx
mov edx, dword [ebp - 0x428]
mov ax, word [edx]
mov word [ebp - 0x412], ax
mov ecx, dword [ebp - 0x418]
mov dx, word [ebp - 0x412]
mov word [ecx], dx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
cmp word [ebp - 0x412], 0
jne 0x4038a9
lea edx, [ebp - 0x386]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x41c], 0x41c120
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx]
mov word [ebp - 0x410], dx
mov eax, dword [ebp - 0x41c]
mov cx, word [ebp - 0x410]
mov word [eax], cx
mov edx, dword [ebp - 0x424]
add edx, 2
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
add eax, 2
mov dword [ebp - 0x41c], eax
cmp word [ebp - 0x410], 0
jne 0x403913
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x420], 0x41c0a0
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x42c]
mov cx, word [eax]
mov word [ebp - 0x40e], cx
mov edx, dword [ebp - 0x420]
mov ax, word [ebp - 0x40e]
mov word [edx], ax
mov ecx, dword [ebp - 0x42c]
add ecx, 2
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x420]
add edx, 2
mov dword [ebp - 0x420], edx
cmp word [ebp - 0x40e], 0
jne 0x40397d
mov ax, word [ebp - 0x388]
mov word [0x41c098], ax
mov cx, word [ebp - 0x2e6]
mov word [0x41c010], cx
mov dword [0x41c00c], 5
cmp dword [0x41af08], 3
je 0x403a05
lea edx, [ebp - 0x20c]
mov ecx, 1
call fcn.0040405e
jmp 0x403a12
lea edx, [ebp - 0x20c]
xor ecx, ecx
call fcn.0040405e
push 0x418c54
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.004058d6
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x430], 1
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040565b
mov esp, ebp
pop ebp
ret
Function at 0x403a56
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x11c
push edi
mov esi, ecx
lea eax, [ebp - 0x120]
and dword [esi], 0
push 0
push eax
call fcn.00409320
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403adb
mov eax, dword [ebp - 0x118]
push 5
pop ecx
cmp dword [ebp - 0x11c], ecx
jne 0x403abf
cmp eax, 2
jae 0x403ab9
cmp eax, 1
jne 0x403adb
mov dword [esi], 3
cmp dword [ebp - 0x11c], 6
jne 0x403adb
test eax, eax
jne 0x403ad4
mov dword [esi], 4
jmp 0x403adb
cmp eax, 1
jne 0x403adb
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040565b
leave
ret

Function at 0x403ae9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call fcn.00409320
add esp, 0xc
cmp dword [0x41af08], 3
lea eax, [ebp - 0x20c]
jne 0x403b55
push ebx
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418c6c
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004058d6
add esp, 0xc
pop ebx
jmp 0x403b61
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x418c70
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.0040565b
leave
ret

Function at 0x403cea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00409320
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - 0x20c]
sub ecx, 0x41
lea edx, [ebp - 0x210]
call fcn.00403e83
mov ecx, dword [ebp - 0x210]
call fcn.00403f64
cmp eax, 0xffffffff
jne 0x403d60
xor eax, eax
jmp 0x403d69
mov edx, esi
mov ecx, eax
call fcn.00403c28
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040565b
leave
ret
Function at 0x403e1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 8], esi
cmp ecx, 0xffffffff
je 0x403e72
xor eax, eax
shld eax, edx, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
shl eax, 9
push eax
push ebx
shl edx, 9
push ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040565b
leave
ret

Function at 0x40405e
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, edx
test ecx, ecx
je 0x404073
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
pop esi
ret
push edi
mov edi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418c6c
push edi
push esi
call fcn.004058d6
add esp, 0xc
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x418ce4
push ecx
lea eax, [ebp - 8]
xor edi, edi
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], edi
call fcn.00405acd
add esp, 0xc
test eax, eax
je 0x4040d0
xor eax, eax
jmp 0x40419d
push esi
push 2
push edi
push dword [ebp - 8]
call fcn.004068a0
push dword [ebp - 8]
call fcn.00406c78
push edi
push edi
push dword [ebp - 8]
mov esi, eax
call fcn.004068a0
lea eax, [ebx + esi]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00406747
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x10], ebx
call fcn.00405d9f
push dword [ebp - 8]
call fcn.00405eb7
lea eax, [ebx + esi]
mov esi, dword [ebp - 0x18]
push esi
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.00409320
mov eax, esi
cdq
and edx, 3
add esp, 0x40
lea esi, [edx + eax]
sar esi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00406d03
pop ecx
test esi, esi
jle 0x404159
mov ebx, dword [ebp - 0xc]
call fcn.00406ce0
mov dword [ebx + edi*4], eax
inc edi
cmp edi, esi
jl 0x404149
mov ebx, dword [ebp - 0x10]
push 0x418cec
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
call fcn.00405acd
add esp, 0xc
pop esi
test eax, eax
jne 0x4040c9
push dword [ebp - 8]
push 1
push dword [ebp - 0x1c]
push ebx
call fcn.00406085
push dword [ebp - 8]
call fcn.00405eb7
add esp, 0x14
test ebx, ebx
je 0x40419a
push ebx
call fcn.004067d9
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040565b
leave
ret
Function at 0x40467b
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x3a98
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
mov dword [ebp - 8], eax
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 0x404770
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x4046e2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x4046f2
cmp ebx, 3
jae 0x404757
mov eax, dword [ebp - 8]
jmp 0x40469e
test edi, edi
jne 0x404757
mov ecx, esi
test esi, esi
je 0x404753
cmp dword [ecx + 0x34], 6
jne 0x404708
cmp dword [ecx + 0x1c], 0
jne 0x404711
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x4046fc
jmp 0x404753
mov eax, dword [ecx + 0x2c]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov ax, word [ecx + 0x30]
mov word [edx + 4], ax
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 4]
mov byte [edx + 3], al
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 5]
mov byte [edx + 2], al
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 6]
mov byte [edx + 1], al
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [edx], al
xor edi, edi
jmp 0x40475a
push 0xfffffffffffffffd
pop edi
test esi, esi
je 0x404773
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x404773
or edi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040565b
leave
ret