joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cld
in al, dx
cmp eax, 0x58758b77
lds esi, [ebx + 0x786d88f7]
push eax
push esi
call 0xe44086b4
mov al, byte [0x508b084d]
enter 0x405e, 0
push eax
push ecx
adc dword [edi + edi*2 + 0x74], 0xffffffac
aam 0x40
add byte [edx - 1], dl
adc eax, 0x83402880
mov eax, dword [0x4102ac]
add esp, 0xffffff96
test dword [ebx + 0x68500fd3], ebx
push esp
cmc
inc eax
add bh, bh
adc eax, 0xe0c164
add esp, 8
push esi
invalid
invalid
invalid

Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ebx, 0xb5758b56
mov al, byte [esi + 0x2c]
test byte [0x3b840f], cl
add byte [0x33484e8b], dl
sbb al, 0xa9
add dword [ecx + 1], 0x57
mov dword [0xe94589fc], esi
jne 0x67418b95
mov edi, dword [esi + 0x3c]
cmp edi, eax
je 0x6fb395
mov ebx, dword [esi + 0x38]
cmp edi, 0xffffffff
jbe 0x40b311
dec ebp
enter 0xffffffffffffc7ff, 2
mov esp, dword [esi - 0x75]
push esi
adc dword [ebp + 0x6afc4d], ecx
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
xor ch, byte [edi]
mov eax, dword [ebp - 4]
retf 0x5056
Function at 0x401585
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40158f
repz ret
jmp fcn.00401938
Function at 0x401000
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x415048]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x416de0
push 0x67
push esi
call edi
push 0x64
mov ebx, 0x416d18
push ebx
push 0x6d
push esi
call edi
push 0x6b
xor edi, edi
mov dword [esp + 0x28], esi
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 0x4011aa
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call esi
push 0x7f00
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [esp + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 6
mov dword [esp + 0x3c], 0x6d
mov dword [esp + 0x40], ebx
call esi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebx
call fcn.00402670
call fcn.00401df6
test eax, eax
je 0x4010d6
call fcn.00402ec0
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040121b
test eax, eax
jne 0x4010f6
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404558
mov esp, ebp
pop ebp
ret 0x10
test byte [0x417468], 7
je 0x401104
call fcn.004016b6
mov eax, dword [0x417740]
cmp eax, edi
jbe 0x40112e
cmp word [0x417744], di
jbe 0x40112e
push eax
mov esi, 0x415f1c
call fcn.00403670
mov ax, word [0x417744]
pop ecx
mov word [0x415f2c], ax
xor eax, eax
movzx ecx, word [eax + 0x413244]
mov word [eax + 0x417c78], cx
add eax, 2
cmp cx, di
jne 0x401130
call fcn.004036e0
xor eax, eax
push 0x206
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push edi
push eax
call fcn.00407eb0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x417c78
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00404567
add esp, 0xc
push 0x1f4
call ebx
push 1
push edi
push 0x41325c
lea eax, [esp + 0x4c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4010cf
Function at 0x40121b
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
xor ebx, ebx
lea eax, [ebp - 0x46]
push ebx
push eax
call fcn.00407eb0
add esp, 0xc
lea edi, [ebp - 0x48]
call fcn.00403170
xor eax, eax
movzx ecx, word [ebp + eax - 0x48]
mov word [eax + 0x416ea8], cx
add eax, 2
cmp cx, bx
jne 0x401252
mov esi, 0x416ea8
push esi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x40128a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401362
push esi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401283
lea eax, [ebp - 0x1d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x417878
call fcn.00401af9
pop ecx
test eax, eax
jne 0x401345
movzx ecx, word [eax + 0x413260]
mov word [eax + 0x417a20], cx
add eax, 2
cmp cx, bx
jne 0x4012bd
push 0x41326c
push 0x40
push 0x41787c
call fcn.004045dc
add esp, 0xc
push 0x413288
push 0x10
push 0x4178fe
call fcn.004045dc
add esp, 0xc
push 0x413294
push 0x40
push 0x41791e
call fcn.004045dc
add esp, 0xc
push 0x51
pop eax
mov word [0x4178fc], ax
mov eax, 0x2b70
mov word [0x41799e], ax
xor eax, eax
movzx ecx, word [eax + 0x4132b0]
mov word [eax + 0x417a00], cx
add eax, 2
cmp cx, bx
jne 0x401325
mov dword [0x417a40], 5
call fcn.00403210
call fcn.00401371
push ebx
push ebx
push ebx
push 0x401a3f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404558
leave
ret
Function at 0x4014fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
mov dword [ebp - 0x418], edi
call fcn.00407eb0
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00407eb0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - 0x410], ax
push 0x413308
lea eax, [ebp - 0x414]
push eax
mov ebx, 0x41334c
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4015ad
mov dword [ebp - 0x418], 1
push 0x413358
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4015db
or dword [ebp - 0x418], 2
push 0x4133a0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401609
or dword [ebp - 0x418], 4
push 0x4133f0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40163a
or dword [ebp - 0x418], 0x100
push 0x413448
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40166b
or dword [ebp - 0x418], 0x200
push 0x4134a0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x40169f
or dword [ebp - 0x418], 0x400
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
or eax, 0x2000000
call fcn.00404558
leave
ret
Function at 0x401914
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
push 0x413598
call fcn.004038d0
pop ecx
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x401a30
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407eb0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00407eb0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x416ef0
mov ebx, edi
cmp word [ebx], 0
je 0x4019c6
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004045dc
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00404567
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x417468
jl 0x401998
cmp word [edi], 0
je 0x4019eb
push dword [ebp + 8]
mov ecx, edi
push 0x413598
call fcn.004041d0
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x417468
jl 0x4019d4
push 0x417c78
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00404567
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401a2a
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404558
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x214], esi
cmp ebx, esi
je 0x401c9a
cmp edi, esi
je 0x401c9a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401bba
sub eax, edx
sar eax, 1
je 0x401c9a
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00407eb0
add esp, 0xc
cmp dword [ebp + 8], esi
jne 0x401c25
cmp dword [0x415f10], 3
jne 0x401c25
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4135d0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404567
add esp, 0xc
jmp 0x401c38
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404567
and dword [ebp - 0x210], 0
push 0x4135d4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00404889
add esp, 0x18
cmp dword [ebp - 0x210], 0
je 0x401c9a
push dword [ebp - 0x210]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00404b1a
push dword [ebp - 0x210]
call fcn.00404ba4
add esp, 0x14
mov dword [ebp - 0x214], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop esi
call fcn.00404558
leave
ret
Function at 0x401d3d
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x415048]
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
xor esi, esi
call fcn.00407eb0
and dword [ebp - 0x210], esi
add esp, 0xc
test edi, edi
je 0x401de7
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4135b4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404567
push 0x4135f4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00404889
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x210], 0
je 0x401de7
push dword [ebp - 0x210]
push esi
push 0x200
push edi
call fcn.00404d6f
push dword [ebp - 0x210]
call fcn.00404ba4
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404558
leave
ret
Function at 0x402530
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor esi, esi
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00407eb0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00407eb0
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401cad
pop ecx
test eax, eax
je 0x40265c
xor eax, eax
movzx ecx, word [eax + 0x413294]
mov word [eax + 0x417570], cx
add eax, 2
cmp cx, si
jne 0x402590
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x417470], cx
add eax, 2
cmp cx, si
jne 0x4025a8
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x4174f0], cx
add eax, 2
cmp cx, si
jne 0x4025c1
cmp dword [0x415f10], 3
mov ax, word [ebp - 0x38c]
mov word [0x41746c], ax
mov ax, word [ebp - 0x2ea]
mov word [0x4175f0], ax
mov dword [0x4175f4], 5
lea eax, [ebp - 0x210]
mov esi, 0x104
je 0x40261a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402637
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4136cc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404567
add esp, 0xc
push 0x4135dc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404567
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404558
leave
ret

Function at 0x402670
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x415f10], 0
call fcn.00407eb0
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 0x402727
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x4026f1
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x4026d9
cmp eax, 1
jne 0x402727
mov dword [0x415f10], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404558
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402727
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x402718
mov dword [0x415f10], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404558
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x402727
mov dword [0x415f10], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404558
mov esp, ebp
pop ebp
ret
Function at 0x402740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x415048]
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.00407eb0
add esp, 0xc
cmp dword [0x415f10], 3
jne 0x4027a7
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x413644
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404567
add esp, 0xc
jmp 0x4027b9
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [ebp - 0x20c]
push edx
push 0x413648
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00404558
mov esp, ebp
pop ebp
ret

Function at 0x4028a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, eax
cmp edi, 0xffffffff
je 0x4029ca
push 0x400
call fcn.0040509d
add esp, 4
push 0x400
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00407eb0
add esp, 0xc
call fcn.00402a80
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
shld ecx, eax, 9
shl eax, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 4]
push ecx
push 0x400
push ebx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x4029c1
cmp dword [ebx + 4], 0x5042475f
jne 0x402964
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402930
sub eax, edx
sar eax, 1
je 0x402964
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.00405131
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 0x3c00
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x4029c1
cmp dword [ebx + 4], 0x5042475f
jne 0x4029c1
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4029b0
sub eax, edx
sar eax, 1
jne 0x402941
push ebx
call fcn.00405131
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4029e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], ax
call fcn.00407eb0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
lea ebx, [ebp - 0x214]
call fcn.00402b70
mov ebx, dword [ebp - 0x214]
add esp, 4
call fcn.00402c70
cmp eax, 0xffffffff
jne 0x402a68
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404558
mov esp, ebp
pop ebp
ret
push esi
call fcn.004028a0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop ebx
call fcn.00404558
mov esp, ebp
pop ebp
ret

Function at 0x402a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x415048]
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.00407eb0
add esp, 0xc
cmp edi, 0xffffffff
je 0x402b4c
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 0x402b4c
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
cmp eax, ebx
jbe 0x402b28
mov esi, eax
mov eax, dword [ebp - 0x2e]
add eax, dword [ebp - 0x32]
cmp eax, esi
jbe 0x402b34
mov esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
jbe 0x402b40
mov esi, eax
mov eax, dword [ebp - 0x12]
add eax, dword [ebp - 0xe]
cmp eax, esi
jbe 0x402b4c
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.00404558
mov esp, ebp
pop ebp
ret
Function at 0x402da0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x4136d0
mov edi, ecx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.00404889
add esp, 0xc
test eax, eax
je 0x402dcd
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.004051f5
mov eax, dword [ebp - 4]
push eax
call fcn.00405405
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.004051f5
lea eax, [esi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.0040509d
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.00404b1a
mov eax, dword [ebp - 4]
push eax
call fcn.00404ba4
push edi
add esi, ebx
push 0
push esi
mov dword [ebp - 8], esi
call fcn.00407eb0
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.0040546a
add esp, 4
xor edi, edi
test esi, esi
jle 0x402e60
lea ebx, [ebx]
call fcn.0040547c
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jl 0x402e50
mov edx, dword [ebp + 8]
push 0x4136d8
push edx
lea eax, [ebp - 4]
push eax
call fcn.00404889
add esp, 0xc
test eax, eax
je 0x402e82
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.00404d6f
mov eax, dword [ebp - 4]
push eax
call fcn.00404ba4
add esp, 0x14
test ebx, ebx
je 0x402eab
push ebx
call fcn.00405131
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403460
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 0x4034ef
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0x10
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
jne 0x4034bf
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 0x4034f9
cmp dword [ebp - 4], 3
jb 0x403480
mov edi, 0xfffffffd
test esi, esi
je 0x4034e6
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 0x4034cd
mov eax, esi
test esi, esi
je 0x403563
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x403513
cmp dword [eax + 0x1c], 0
jne 0x40351e
mov eax, dword [eax + 8]
test eax, eax
jne 0x403508
xor edi, edi
jmp 0x4034d2
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 0x4034d2