joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401370
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov word [ebp - 0x1e0], ax
push 0x3e
push 0
lea ecx, [ebp - 0x1de]
push ecx
call fcn.004090b0
add esp, 0xc
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x1a0], 0
lea edi, [ebp - 0x1e0]
call fcn.00404320
lea edx, [ebp - 0x1e0]
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e8], 0x417ea8
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ebp - 0x1e4]
mov dx, word [ecx]
mov word [ebp - 0x1ee], dx
mov eax, dword [ebp - 0x1e8]
mov cx, word [ebp - 0x1ee]
mov word [eax], cx
mov edx, dword [ebp - 0x1e4]
add edx, 2
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x1e8]
add eax, 2
mov dword [ebp - 0x1e8], eax
cmp word [ebp - 0x1ee], 0
jne 0x4013e1
push 0x417ea8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x40145e
mov ecx, dword [ebp - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40160b
push 0x417ea8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jne 0x401485
xor eax, eax
jmp 0x40160b
lea edx, [ebp - 0x198]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x418878
call fcn.00402380
add esp, 4
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x4015df
mov dword [ebp - 0x1f4], 0x4145a4
mov dword [ebp - 0x1f8], 0x418a20
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1f4]
mov dx, word [ecx]
mov word [ebp - 0x1fe], dx
mov eax, dword [ebp - 0x1f8]
mov cx, word [ebp - 0x1fe]
mov word [eax], cx
mov edx, dword [ebp - 0x1f4]
add edx, 2
mov dword [ebp - 0x1f4], edx
mov eax, dword [ebp - 0x1f8]
add eax, 2
mov dword [ebp - 0x1f8], eax
cmp word [ebp - 0x1fe], 0
jne 0x4014d7
push 0x4145b0
push 0x41887c
call fcn.00402310
add esp, 8
push 0x4145cc
push 0x4188fe
call fcn.00402330
add esp, 8
push 0x4145d8
push 0x41891e
call fcn.00402310
add esp, 8
mov ecx, 0x51
mov word [0x4188fc], cx
mov edx, 0x2b70
mov word [0x41899e], dx
mov dword [ebp - 0x204], 0x4145f4
mov dword [ebp - 0x208], 0x418a00
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x204]
mov dx, word [ecx]
mov word [ebp - 0x20e], dx
mov eax, dword [ebp - 0x208]
mov cx, word [ebp - 0x20e]
mov word [eax], cx
mov edx, dword [ebp - 0x204]
add edx, 2
mov dword [ebp - 0x204], edx
mov eax, dword [ebp - 0x208]
add eax, 2
mov dword [ebp - 0x208], eax
cmp word [ebp - 0x20e], 0
jne 0x40158d
mov dword [0x418a40], 5
call fcn.004043c0
push 0x418a78
call fcn.00401620
add esp, 4
push 0
push 0
push 0
push 0x4021c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret
Function at 0x401970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
xor eax, eax
mov word [ebp - 0x418], ax
push 0x206
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.004090b0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004090b0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor edx, edx
mov word [ebp - 0x414], dx
push 0x414648
lea eax, [ebp - 0x418]
push eax
push 0x41468c
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a28
mov eax, dword [ebp - 0x41c]
or eax, 1
mov dword [ebp - 0x41c], eax
push 0x414698
lea ecx, [ebp - 0x418]
push ecx
push 0x4146e0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a6a
mov ecx, dword [ebp - 0x41c]
or ecx, 2
mov dword [ebp - 0x41c], ecx
push 0x4146f8
lea edx, [ebp - 0x418]
push edx
push 0x4146ec
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401aac
mov edx, dword [ebp - 0x41c]
or edx, 4
mov dword [ebp - 0x41c], edx
push 0x414750
lea eax, [ebp - 0x418]
push eax
push 0x414744
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401af0
mov eax, dword [ebp - 0x41c]
or eax, 0x100
mov dword [ebp - 0x41c], eax
push 0x4147b0
lea ecx, [ebp - 0x418]
push ecx
push 0x4147a4
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401b35
mov ecx, dword [ebp - 0x41c]
or ecx, 0x200
mov dword [ebp - 0x41c], ecx
push 0x414810
lea edx, [ebp - 0x418]
push edx
push 0x414804
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401b7a
mov edx, dword [ebp - 0x41c]
or edx, 0x400
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
or eax, 0x2000000
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret
Function at 0x401ff0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404a70
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x402038
mov eax, dword [ebp - 0x41c]
jmp 0x4021a7
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.004090b0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004090b0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x420], 0
jmp 0x4020a3
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 5
jge 0x402108
mov edx, dword [ebp - 0x420]
imul edx, edx, 0x118
movzx eax, word [edx + 0x417ef0]
test eax, eax
jne 0x4020c5
jmp 0x402094
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.004057dc
add esp, 0xc
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x118
add eax, 0x417ef0
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405767
add esp, 0xc
jmp 0x402094
mov dword [ebp - 0x424], 0
jmp 0x402123
mov edx, dword [ebp - 0x424]
add edx, 1
mov dword [ebp - 0x424], edx
cmp dword [ebp - 0x424], 5
jge 0x40216c
mov eax, dword [ebp - 0x424]
imul eax, eax, 0x118
movzx ecx, word [eax + 0x417ef0]
test ecx, ecx
jne 0x402145
jmp 0x402114
push 1
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x424]
imul ecx, ecx, 0x118
add ecx, 0x417ef0
call fcn.00405380
add esp, 0xc
jmp 0x402114
push 0x418c78
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.00405767
add esp, 0xc
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4021a1
mov dword [ebp - 0x41c], 2
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret
Function at 0x402480
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
cmp dword [ebp + 8], 0
je 0x4024a9
cmp dword [ebp + 0xc], 0
jne 0x4024b3
jmp 0x402600
cmp dword [ebp + 0x10], 0
je 0x402508
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
add ecx, 2
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x218]
mov ax, word [edx]
mov word [ebp - 0x21e], ax
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x4024d1
mov ecx, dword [ebp - 0x218]
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
mov dword [ebp - 0x224], ecx
jne 0x402512
jmp 0x402600
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004090b0
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40254b
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402593
cmp dword [0x416f10], 3
jne 0x402581
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4143c8
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00405767
add esp, 0xc
jmp 0x402593
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00405767
add esp, 0xc
mov dword [ebp - 4], 0
push 0x4143cc
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00405a89
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4025d4
jmp 0x402600
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00405d1a
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00405da4
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004090b0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40281f
cmp dword [ebp + 0xc], 0
jne 0x402823
jmp 0x402898
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4143ec
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00405767
add esp, 0xc
push 0x414408
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00405a89
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x40288e
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00405f6f
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00405da4
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret
Function at 0x4035a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004090b0
add esp, 0xc
mov dword [ebp - 4], 0
push 0x200
push 0
lea edx, [ebp - 0x410]
push edx
call fcn.004090b0
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call fcn.00402620
add esp, 4
test eax, eax
je 0x4037c0
mov dword [ebp - 0x414], 0x414554
mov dword [ebp - 0x418], 0x418570
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x414]
mov ax, word [edx]
mov word [ebp - 0x41e], ax
mov ecx, dword [ebp - 0x418]
mov dx, word [ebp - 0x41e]
mov word [ecx], dx
mov eax, dword [ebp - 0x414]
add eax, 2
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
cmp word [ebp - 0x41e], 0
jne 0x403627
lea edx, [ebp - 0x38a]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], 0x418470
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx]
mov word [ebp - 0x42e], dx
mov eax, dword [ebp - 0x428]
mov cx, word [ebp - 0x42e]
mov word [eax], cx
mov edx, dword [ebp - 0x424]
add edx, 2
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
cmp word [ebp - 0x42e], 0
jne 0x403691
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], 0x4184f0
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x434]
mov cx, word [eax]
mov word [ebp - 0x43e], cx
mov edx, dword [ebp - 0x438]
mov ax, word [ebp - 0x43e]
mov word [edx], ax
mov ecx, dword [ebp - 0x434]
add ecx, 2
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp - 0x438]
add edx, 2
mov dword [ebp - 0x438], edx
cmp word [ebp - 0x43e], 0
jne 0x4036fb
mov ax, word [ebp - 0x38c]
mov word [0x41846c], ax
mov cx, word [ebp - 0x2ea]
mov word [0x4185f0], cx
mov dword [0x4185f4], 5
cmp dword [0x416f10], 3
je 0x403783
push 1
lea esi, [ebp - 0x210]
call fcn.00403f10
add esp, 4
jmp 0x403793
push 0
lea esi, [ebp - 0x210]
call fcn.00403f10
add esp, 4
push 0x414570
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00405767
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret
Function at 0x4037e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [esi], 0
call fcn.004090b0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403887
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x403859
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x403845
cmp eax, 1
jne 0x403887
mov dword [esi], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x403887
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x40387c
mov dword [esi], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x403887
mov dword [esi], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret

Function at 0x4038a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004090b0
add esp, 0xc
cmp dword [0x416f10], 3
jne 0x403907
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414260
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405767
add esp, 0xc
jmp 0x403919
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [ebp - 0x20c]
push edx
push 0x414264
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00405758
mov esp, ebp
pop ebp
ret
Function at 0x403a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
cmp edi, 0xffffffff
je 0x403b3e
push 0x400
call fcn.0040629d
add esp, 4
push 0x400
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.004090b0
add esp, 0xc
call fcn.00403bf0
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
shld ecx, eax, 9
shl eax, 9
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
push ecx
push 0x400
push ebx
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x403b35
cmp dword [ebx + 4], 0x5042475f
jne 0x403aca
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403a96
sub eax, edx
sar eax, 1
je 0x403aca
mov edi, dword [ebp + 8]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00406331
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push 0x400
push ebx
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], 0x3c00
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x403b35
cmp dword [ebx + 4], 0x5042475f
jne 0x403b35
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403b20
sub eax, edx
sar eax, 1
jne 0x403aa7
push ebx
call fcn.00406331
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.004090b0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x20c]
sub eax, 0x41
push eax
lea ebx, [ebp - 0x210]
call fcn.00403ce0
mov ebx, dword [ebp - 0x210]
add esp, 4
call fcn.00403de0
pop ebx
cmp eax, 0xffffffff
jne 0x403bd8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405758
mov esp, ebp
pop ebp
ret
push esi
call fcn.00403a00
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.00405758
mov esp, ebp
pop ebp
ret
Function at 0x403bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x207]
push ebx
push eax
xor esi, esi
mov byte [ebp - 0x208], bl
call fcn.004090b0
add esp, 0xc
cmp edi, 0xffffffff
je 0x403cbc
xor eax, eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x403cbc
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
cmp eax, ebx
jbe 0x403c98
mov esi, eax
mov eax, dword [ebp - 0x2e]
add eax, dword [ebp - 0x32]
cmp eax, esi
jbe 0x403ca4
mov esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
jbe 0x403cb0
mov esi, eax
mov eax, dword [ebp - 0x12]
add eax, dword [ebp - 0xe]
cmp eax, esi
jbe 0x403cbc
mov esi, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405758
mov esp, ebp
pop ebp
ret

Function at 0x403f10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x403f27
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
pop ebp
ret
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4142e8
push 0x104
push esi
call fcn.00405767
add esp, 0xc
pop ebp
ret
Function at 0x403f50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x4142ec
mov edi, ecx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.00405a89
add esp, 0xc
test eax, eax
je 0x403f7d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push 2
push 0
push edx
call fcn.004063f5
mov eax, dword [ebp - 4]
push eax
call fcn.00406605
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.004063f5
lea eax, [esi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.0040629d
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.00405d1a
mov eax, dword [ebp - 4]
push eax
call fcn.00405da4
push edi
add esi, ebx
push 0
push esi
mov dword [ebp - 8], esi
call fcn.004090b0
mov eax, edi
cdq
and edx, 3
lea esi, [edx + eax]
add esp, 0x40
sar esi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040666a
add esp, 4
xor edi, edi
test esi, esi
jle 0x404010
lea ebx, [ebx]
call fcn.0040667c
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jl 0x404000
mov edx, dword [ebp + 8]
push 0x4142f4
push edx
lea eax, [ebp - 4]
push eax
call fcn.00405a89
add esp, 0xc
test eax, eax
je 0x404032
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push ecx
push 1
push edx
push ebx
call fcn.00405f6f
mov eax, dword [ebp - 4]
push eax
call fcn.00405da4
add esp, 0x14
test ebx, ebx
je 0x40405b
push ebx
call fcn.00406331
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x404610
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x3a98
lea ecx, [ecx]
mov eax, dword [ebp - 8]
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 0x40469f
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0x10
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
jne 0x40466f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc dword [ebp - 4]
cmp edi, 0x6f
jne 0x4046a9
cmp dword [ebp - 4], 3
jb 0x404630
mov edi, 0xfffffffd
test esi, esi
je 0x404696
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40467d
mov eax, esi
test esi, esi
je 0x404713
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x4046c3
cmp dword [eax + 0x1c], 0
jne 0x4046ce
mov eax, dword [eax + 8]
test eax, eax
jne 0x4046b8
xor edi, edi
jmp 0x404682
mov edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov dx, word [eax + 0x30]
mov word [ecx + 4], dx
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
movzx edx, byte [edx + 4]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 3], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 5]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 6]
mov byte [ecx + 1], dl
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov al, byte [edx + 7]
mov byte [ecx], al
xor edi, edi
jmp 0x404682