joyce8/EMBER2024-capa huggingface dataset:
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.004096e0
add esp, 0xc
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1dc], 0
lea ecx, [ebp - 0x44]
call fcn.00404590
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.00402480
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.00402410
add esp, 8
push 0x4188cc
push 0x41cba6
call fcn.00402430
add esp, 8
push 0x4188d8
push 0x41cbc6
call fcn.00402410
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.00404630
mov ecx, 0x418904
call fcn.004046d0
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.00405a1a
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.00404d60
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.004096e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.004096e0
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.00405c39
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.00405c95
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.00405660
add esp, 8
jmp 0x401af8
push 0x41c1a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405c95
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.00405a1a
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.004039b0
call fcn.00402a40
test eax, eax
je 0x4020ad
call fcn.004042f0
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.00404af0
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.00404b70
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.004096e0
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.00405c95
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x418a90
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.00405a1a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4025a0
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 0x4025c9
cmp dword [ebp + 0xc], 0
jne 0x4025d3
jmp 0x40272f
cmp dword [ebp + 0x10], 0
je 0x402628
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 0x4025f1
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x224]
sar ecx, 1
mov dword [ebp - 0x220], ecx
jne 0x402632
jmp 0x40272f
xor edx, edx
mov word [ebp - 0x20c], dx
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.004096e0
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40266b
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4026b3
cmp dword [0x41af08], 3
jne 0x4026a1
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418ab0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405c95
add esp, 0xc
jmp 0x4026b3
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.00405c95
add esp, 0xc
mov dword [ebp - 0x210], 0
push 0x418ab4
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00405e8c
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x4026fd
jmp 0x40272f
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.0040615e
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.00406276
add esp, 4
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret

Function at 0x402940
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.004096e0
add esp, 0xc
mov dword [ebp - 0x210], 0
cmp dword [ebp + 8], 0
je 0x402992
cmp dword [ebp + 0xc], 0
jne 0x40299c
jmp 0x402a1d
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x418ad4
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405c95
add esp, 0xc
push 0x418af0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00405e8c
add esp, 0xc
cmp dword [ebp - 0x210], 0
je 0x402a13
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.00406444
add esp, 0x10
mov eax, dword [ebp - 0x210]
push eax
call fcn.00406276
add esp, 4
mov dword [ebp - 0x214], 1
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
Function at 0x403770
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.004096e0
add esp, 0xc
mov dword [ebp - 0x430], 0
push 0x200
push 0
lea edx, [ebp - 0x40c]
push edx
call fcn.004096e0
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call fcn.00402750
add esp, 4
test eax, eax
je 0x403992
mov dword [ebp - 0x428], 0x418c3c
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 0x4037f9
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 0x403863
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 0x4038cd
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 0x403955
lea edx, [ebp - 0x20c]
mov ecx, 1
call fcn.00404170
jmp 0x403962
lea edx, [ebp - 0x20c]
xor ecx, ecx
call fcn.00404170
push 0x418c58
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00405c95
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.00405a1a
mov esp, ebp
pop ebp
ret
Function at 0x4039b0
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 0x11c
mov esi, ecx
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [esi], 0
call fcn.004096e0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403a5c
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x403a2d
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x403a18
cmp eax, 1
jne 0x403a5c
mov dword [esi], 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x403a5c
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x403a51
mov dword [esi], 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x403a5c
mov dword [esi], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405a1a
mov esp, ebp
pop ebp
ret

Function at 0x403a70
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.004096e0
add esp, 0xc
cmp dword [0x41af08], 3
lea eax, [ebp - 0x20c]
jne 0x403add
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418c70
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405c95
add esp, 0xc
jmp 0x403ae9
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x418c74
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.00405a1a
mov esp, ebp
pop ebp
ret
Function at 0x403bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x41a038]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
je 0x403cfe
push 0x400
call fcn.00406b07
add esp, 4
mov ebx, eax
push 0x400
push 0
push ebx
call fcn.004096e0
add esp, 0xc
mov ecx, esi
call fcn.00403dc0
xor ecx, ecx
shld ecx, eax, 9
xorps xmm0, xmm0
shl eax, 9
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0x400
push ebx
movq qword [esp + 0x2c], xmm0
push esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403cf5
cmp dword [ebx + 4], 0x5042475f
jne 0x403cbc
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
jmp 0x403c80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403c80
sub ecx, edx
sar ecx, 1
je 0x403cbc
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00406b99
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
push ebx
push 2
mov edx, 0x1e
mov ecx, esi
call fcn.00403ea0
add esp, 8
test eax, eax
je 0x403cf5
cmp dword [ebx + 4], 0x5042475f
jne 0x403cf5
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403ce4
sub ecx, edx
sar ecx, 1
jne 0x403c91
push ebx
call fcn.00406b99
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405a1a
mov esp, ebp
pop ebp
ret

Function at 0x403d20
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
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
mov dword [ebp - 0x210], 0
call fcn.004096e0
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.00403f10
mov ecx, dword [ebp - 0x210]
call fcn.00404000
cmp eax, 0xffffffff
jne 0x403da6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, eax
call fcn.00403bd0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
Function at 0x403dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1ff
xor esi, esi
lea eax, [ebp - 0x207]
push esi
push eax
mov byte [ebp - 0x208], 0
call fcn.004096e0
add esp, 0xc
cmp ebx, 0xffffffff
je 0x403e7c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x200
lea eax, [ebp - 0x208]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x21c], xmm0
movq qword [ebp - 0x214], xmm0
push ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403e7c
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
mov ecx, dword [ebp - 0xe]
cmovne esi, eax
mov eax, dword [ebp - 0x32]
add eax, dword [ebp - 0x2e]
cmp eax, esi
cmova esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
cmova esi, eax
add ecx, dword [ebp - 0x12]
cmp ecx, esi
cmova esi, ecx
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.00405a1a
mov esp, ebp
pop ebp
ret

Function at 0x403ea0
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
xorps xmm0, xmm0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
cmp ecx, 0xffffffff
je 0x403efa
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 esi
shl edx, 9
push ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405a1a
mov esp, ebp
pop ebp
ret

Function at 0x404170
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, edx
test ecx, ecx
je 0x404185
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
pop esi
ret
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418cf8
push 0x104
push esi
call fcn.00405c95
add esp, 0xc
pop esi
ret
Function at 0x4041b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x418cfc
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00405e8c
add esp, 0xc
test eax, eax
je 0x4041f5
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00406c60
push dword [ebp - 8]
call fcn.0040703a
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00406c60
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.00406b07
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.0040615e
push dword [ebp - 8]
call fcn.00406276
push edi
add ebx, esi
push 0
push ebx
call fcn.004096e0
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004070c5
add esp, 4
xor esi, esi
test edi, edi
jle 0x40427d
lea ecx, [ecx]
call fcn.004070a2
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x404270
push 0x418d04
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00405e8c
add esp, 0xc
test eax, eax
je 0x4042a8
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.00406444
push dword [ebp - 8]
call fcn.00406276
add esp, 0x14
test esi, esi
je 0x4042d1
push esi
call fcn.00406b99
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
Function at 0x404890
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 0x40499d
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 0x4048f7
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 0x404907
cmp ebx, 3
jae 0x404971
mov eax, dword [ebp - 8]
jmp 0x4048b3
test edi, edi
jne 0x404971
mov eax, esi
test esi, esi
je 0x40496d
cmp dword [eax + 0x34], 6
jne 0x40491d
cmp dword [eax + 0x1c], 0
jne 0x404928
mov eax, dword [eax + 8]
test eax, eax
jne 0x404911
xor edi, edi
jmp 0x404976
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
mov cx, word [eax + 0x30]
mov word [edx + 4], cx
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 4]
mov byte [edx + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 5]
mov byte [edx + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 6]
mov byte [edx + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [edx], al
xor edi, edi
jmp 0x404976
mov edi, 0xfffffffd
test esi, esi
je 0x40498a
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 ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00405a1a
mov esp, ebp
pop ebp
ret