joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418dd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403e9c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x418e30
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41b8cc]
mov dl, 1
mov eax, dword [0x418990]
call fcn.0040a1e4
call fcn.004033b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00418a98
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4021b7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040488b
xor ebx, ebx
cmp dword [0x40ee74], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40228c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4021f7
xor eax, eax
jmp 0x402350
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4021f0
push eax
call fcn.004023f9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ee74], eax
call esi
push eax
call fcn.004023f9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ee78], eax
call esi
push eax
call fcn.004023f9
mov dword [0x40ee7c], eax
lea eax, [ebp - 8]
push eax
call fcn.0040559f
test eax, eax
pop ecx
pop ecx
je 0x40225a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406a20
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40228c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004023f9
cmp eax, ebx
pop ecx
mov dword [0x40ee84], eax
je 0x40228c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004023f9
pop ecx
mov dword [0x40ee80], eax
mov eax, dword [0x40ee80]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x402305
cmp dword [0x40ee84], esi
je 0x402305
push eax
call fcn.00401faa
pop ecx
call eax
cmp eax, ebx
je 0x4022d2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40ee84]
call fcn.00401faa
pop ecx
call eax
test eax, eax
je 0x4022d2
test byte [ebp - 0x18], 1
jne 0x402305
lea eax, [ebp - 0xc]
push eax
call fcn.004068eb
test eax, eax
pop ecx
je 0x4022ed
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406a20
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4022fc
or dword [ebp + 0x10], 0x200000
jmp 0x402336
or dword [ebp + 0x10], 0x40000
jmp 0x402336
mov eax, dword [0x40ee78]
cmp eax, esi
je 0x402336
push eax
call fcn.00401faa
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x402336
mov eax, dword [0x40ee7c]
cmp eax, esi
je 0x402336
push dword [ebp - 4]
push eax
call fcn.00401faa
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40ee74]
call fcn.00401faa
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403207
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dfa8]
jne 0x403211
repz ret
jmp fcn.00401818
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, 0x210
mov eax, dword [0x415048]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x416e60
push 0x67
push esi
call edi
push 0x64
push 0x416d98
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004011a0
push 0
push esi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x416e60
push 0x416d98
push 0
mov dword [0x416f28], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401092
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404838
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
call fcn.00402960
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00401fd0
test eax, eax
je 0x4010c3
call fcn.004031a0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401380
test eax, eax
je 0x40107a
test byte [0x4174ec], 7
je 0x4010da
call fcn.004018b0
mov eax, dword [0x4177c8]
test eax, eax
je 0x401107
cmp word [0x4177cc], 0
jbe 0x401107
push eax
mov esi, 0x415f1c
call fcn.00403950
mov ax, word [0x4177cc]
add esp, 4
mov word [0x415f2c], ax
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x41342c]
mov word [eax + 0x417d00], cx
add eax, 2
test cx, cx
jne 0x401110
call fcn.004039c0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00408190
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x417d00
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00404847
add esp, 0xc
push 0x1f4
call edi
push 1
push 0
push 0x413444
lea edx, [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401380
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x46]
push ecx
mov word [ebp - 0x48], ax
call fcn.00408190
add esp, 0xc
lea edx, [ebp - 0x1d8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x417900
call fcn.00401c50
test eax, eax
jne 0x401489
mov edi, edi
movzx ecx, word [eax + 0x413448]
mov word [eax + 0x417aa8], cx
add eax, 2
test cx, cx
jne 0x4013d0
push 0x413454
push 0x40
push 0x417904
call fcn.004048bc
add esp, 0xc
push 0x413470
push 0x10
push 0x417986
call fcn.004048bc
add esp, 0xc
push 0x41347c
push 0x40
push 0x4179a6
call fcn.004048bc
mov eax, 0x51
mov ecx, 0x2b70
add esp, 0xc
mov word [0x417984], ax
mov word [0x417a26], cx
xor eax, eax
jmp 0x401440
movzx ecx, word [eax + 0x413498]
mov word [eax + 0x417a88], cx
add eax, 2
test cx, cx
jne 0x401440
mov eax, 0x417a88
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401460
mov edx, dword [0x4134a8]
mov cx, word [0x4134ac]
mov dword [eax], edx
mov word [eax + 4], cx
mov dword [0x417ac8], 5
call fcn.004034f0
lea edi, [ebp - 0x48]
call fcn.00403450
xor eax, eax
jmp 0x4014a0
movzx ecx, word [ebp + eax - 0x48]
mov word [eax + 0x416f30], cx
add eax, 2
test cx, cx
jne 0x4014a0
push 0x416f30
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x4014e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404838
mov esp, ebp
pop ebp
ret
push 0x416f30
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4014d1
push 0x4134b0
call fcn.004035a0
add esp, 4
mov dword [0x4177c8], eax
call fcn.00401540
push 0
push 0
push 0
push 0x401b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00404838
mov esp, ebp
pop ebp
ret
Function at 0x401700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
xor ebx, ebx
mov word [ebp - 0x414], ax
call fcn.00408190
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00408190
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x4134d8
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
xor edx, edx
push 0x4134cc
push ecx
mov word [ebp - 0x410], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017a8
mov ebx, 1
push 0x413528
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x41351c
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017d6
or ebx, 2
push 0x413570
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x4135bc
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401804
or ebx, 4
push 0x4135c8
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x41361c
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401835
or ebx, 0x100
push 0x413628
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x41367c
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401866
or ebx, 0x200
push 0x413688
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x4136e8
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401897
or ebx, 0x400
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
pop esi
xor ecx, ebp
or eax, 0x2000000
pop ebx
call fcn.00404838
mov esp, ebp
pop ebp
ret
Function at 0x401d00
Capabilities:
Get common file path
Read 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 ebx
xor ebx, ebx
test edi, edi
je 0x401e1e
test esi, esi
je 0x401e1e
mov eax, esi
lea edx, [eax + 2]
jmp 0x401d30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d30
sub eax, edx
sar eax, 1
je 0x401e1e
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00408190
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x401d9e
cmp dword [0x415f10], 3
jne 0x401d9e
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41328c
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00404847
add esp, 0xc
jmp 0x401db0
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404847
push 0x413290
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x210], ebx
call fcn.00404b69
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401e1e
push eax
push 1
push 0x200
push edi
call fcn.00404dfa
mov eax, dword [ebp - 0x210]
push eax
call fcn.00404e84
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404838
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00404838
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0x504d534d
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax]
not cl
mov byte [esi + eax], cl
inc eax
cmp eax, 0x200
jb 0x401f00
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00408190
add esp, 0xc
mov dword [ebp - 0x218], 0
test esi, esi
je 0x401fb9
lea ecx, [ebp - 0x214]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4132b0
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.00404847
push 0x4132cc
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00404b69
mov eax, dword [ebp - 0x218]
add esp, 0x18
test eax, eax
je 0x401fa6
push eax
push 1
push 0x200
push esi
call fcn.0040504f
mov edx, dword [ebp - 0x218]
push edx
call fcn.00404e84
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404838
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
call fcn.00404838
mov esp, ebp
pop ebp
ret
Function at 0x4027e0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00408190
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [ebp - 0x410]
push esi
push edx
call fcn.00408190
add esp, 0xc
lea ebx, [ebp - 0x410]
call fcn.00401e30
test eax, eax
je 0x40293f
xor eax, eax
nop
movzx ecx, word [eax + 0x4133f8]
mov word [eax + 0x4175f8], cx
add eax, 2
test cx, cx
jne 0x402840
xor eax, eax
jmp 0x402860
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x4174f0], cx
add eax, 2
test cx, cx
jne 0x402860
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x417570], cx
add eax, 2
test cx, cx
jne 0x402880
cmp dword [0x415f10], 3
mov ax, word [ebp - 0x38c]
mov cx, word [ebp - 0x2ea]
mov word [0x4175f0], ax
mov word [0x417678], cx
mov dword [0x41767c], 5
je 0x4028d9
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402904
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x413858
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.00404847
add esp, 0xc
push 0x413414
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00404847
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404838
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404838
mov esp, ebp
pop ebp
ret

Function at 0x402960
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.00408190
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 0x402a17
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x4029e1
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x4029c9
cmp eax, 1
jne 0x402a17
mov dword [0x415f10], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404838
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402a17
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x402a08
mov dword [0x415f10], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404838
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x402a17
mov dword [0x415f10], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404838
mov esp, ebp
pop ebp
ret
Function at 0x402a30
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.00408190
add esp, 0xc
cmp dword [0x415f10], 3
jne 0x402a97
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x413858
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404847
add esp, 0xc
jmp 0x402aa9
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [ebp - 0x20c]
push edx
push 0x41385c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00404838
mov esp, ebp
pop ebp
ret

Function at 0x402b90
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 0x402cba
push 0x400
call fcn.0040537d
add esp, 4
push 0x400
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00408190
add esp, 0xc
call fcn.00402d70
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 0x402cb1
cmp dword [ebx + 4], 0x5042475f
jne 0x402c54
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402c20
sub eax, edx
sar eax, 1
je 0x402c54
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.00405411
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 0x402cb1
cmp dword [ebx + 4], 0x5042475f
jne 0x402cb1
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402ca0
sub eax, edx
sar eax, 1
jne 0x402c31
push ebx
call fcn.00405411
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402cd0
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.00408190
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.00402e60
mov ebx, dword [ebp - 0x214]
add esp, 4
call fcn.00402f50
cmp eax, 0xffffffff
jne 0x402d58
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404838
mov esp, ebp
pop ebp
ret
push esi
call fcn.00402b90
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop ebx
call fcn.00404838
mov esp, ebp
pop ebp
ret

Function at 0x402d70
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.00408190
add esp, 0xc
cmp edi, 0xffffffff
je 0x402e3c
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 0x402e3c
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
cmp eax, ebx
jbe 0x402e18
mov esi, eax
mov eax, dword [ebp - 0x2e]
add eax, dword [ebp - 0x32]
cmp eax, esi
jbe 0x402e24
mov esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
jbe 0x402e30
mov esi, eax
mov eax, dword [ebp - 0x12]
add eax, dword [ebp - 0xe]
cmp eax, esi
jbe 0x402e3c
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.00404838
mov esp, ebp
pop ebp
ret
Function at 0x403080
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x4138d0
mov edi, ecx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.00404b69
add esp, 0xc
test eax, eax
je 0x4030ad
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.004054d5
mov eax, dword [ebp - 4]
push eax
call fcn.004056e5
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.004054d5
lea eax, [esi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.0040537d
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.00404dfa
mov eax, dword [ebp - 4]
push eax
call fcn.00404e84
push edi
add esi, ebx
push 0
push esi
mov dword [ebp - 8], esi
call fcn.00408190
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.0040574a
add esp, 4
xor edi, edi
test esi, esi
jle 0x403140
lea ebx, [ebx]
call fcn.0040575c
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jl 0x403130
mov edx, dword [ebp + 8]
push 0x4138d8
push edx
lea eax, [ebp - 4]
push eax
call fcn.00404b69
add esp, 0xc
test eax, eax
je 0x403162
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.0040504f
mov eax, dword [ebp - 4]
push eax
call fcn.00404e84
add esp, 0x14
test ebx, ebx
je 0x40318b
push ebx
call fcn.00405411
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403740
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 0x4037cf
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0x10
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
jne 0x40379f
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 0x4037d9
cmp dword [ebp - 4], 3
jb 0x403760
mov edi, 0xfffffffd
test esi, esi
je 0x4037c6
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 0x4037ad
mov eax, esi
test esi, esi
je 0x403843
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x4037f3
cmp dword [eax + 0x1c], 0
jne 0x4037fe
mov eax, dword [eax + 8]
test eax, eax
jne 0x4037e8
xor edi, edi
jmp 0x4037b2
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 0x4037b2