joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e2205
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x114]
mov edi, dword [ebp + 8]
test al, al
jne 0x4e2246
mov eax, dword [edi]
sub eax, 9
cmp eax, 0xc
ja 0x4e2246
mov ecx, dword [esi + 0x568]
push edi
test ecx, ecx
je 0x4e223a
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x4e23d1
mov ecx, esi
call fcn.004e1ee9
jmp 0x4e23d1
mov ecx, dword [esi + 0x568]
push ebx
test ecx, ecx
je 0x4e22a5
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x5e4], 0
je 0x4e22a5
cmp dword [edi], 0xf
jne 0x4e22a5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4e23d0
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov ebx, 0x8000
test bx, ax
jne 0x4e2293
push 0x10
call edi
test bx, ax
je 0x4e22fd
mov ecx, dword [esi + 0x568]
test ecx, ecx
je 0x4e23d0
push 0
jmp 0x4e231e
cmp dword [edi], 0xd
jne 0x4e232e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4e23d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
xor edi, edi
test al, al
je 0x4e22de
mov ecx, dword [esi + 0x44]
push edi
push edi
push edi
push str.buttondown
push esi
call fcn.004ae609
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, 0x8000
test bx, ax
jne 0x4e230f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x4e230f
lea ecx, [esi + 0x558]
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
jmp 0x4e23d0
mov ecx, dword [esi + 0x568]
test ecx, ecx
je 0x4e23d0
push edi
mov eax, dword [ecx]
push dword [esi + 0x55c]
call dword [eax + 0x10]
jmp 0x4e23d0
cmp dword [edi], 0xe
jne 0x4e2351
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4e23d0
xor edi, edi
push edi
push edi
push edi
push str.itemclick
jmp 0x4e23bd
cmp dword [edi], 0xb
jne 0x4e2389
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4e23d0
or dword [esi + 0x564], 8
mov ecx, esi
call fcn.004ded7d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test al, al
je 0x4e23d0
xor edi, edi
push edi
push edi
push edi
push str.mouseenter
jmp 0x4e23bd
cmp dword [edi], 0xa
jne 0x4e23c8
mov eax, dword [esi + 0x564]
test al, 8
je 0x4e23d0
and eax, 0xfffffff7
mov ecx, esi
mov dword [esi + 0x564], eax
call fcn.004ded7d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test al, al
je 0x4e23d0
xor edi, edi
push edi
push edi
push edi
push str.mouseleave
mov ecx, dword [esi + 0x44]
push esi
call fcn.004ae609
jmp 0x4e23d0
push edi
mov ecx, esi
call fcn.004e1ee9
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x4ea3fc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4ea484
cmp dword [esi + 0x10], 0
je 0x4ea484
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a7960
mov ebx, esp
test ebx, ebx
je 0x4ea484
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1cc
call fcn.004b36a5
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004ae609
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004aa6b9
test al, al
je 0x4ea484
mov ecx, dword [esi + 0x10]
call fcn.004b16ee
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
leave
ret 0x10

Function at 0x4eccf1
Capabilities:
Hide graphical window

Disassembly:
push 0x120
mov eax, 0x5b4e5c
call fcn.004a7792
mov edi, ecx
mov dword [ebp - 0x11c], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x5a0], ebx
cmp dword [edi + 4], ebx
jne 0x4ecd83
lea eax, [ebp - 0x12c]
push eax
call fcn.004ec8eb
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0x12c]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004aa3ec
mov edi, dword [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.004b4588
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004c8741
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004a9f34
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004b3cee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
mov bl, al
call fcn.004b3603
mov esi, 0x590
test bl, bl
je 0x4ecdc2
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x94]
push eax
call fcn.004ecb9b
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 1
call fcn.004b3701
push eax
push 0
push 0x1032
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x10]
add eax, esi
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.0057a2f0
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
lea ecx, [ebp - 0x94]
mov byte [edi + 0x18], 1
call fcn.004b3603
call fcn.004a774d
ret 4
Function at 0x4ed3a3
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x4ed441
push esi
mov esi, 0xff
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0057a870
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
pop esi
test eax, eax
je 0x4ed441
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.0057a2f0
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
jmp 0x4ed443
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
leave
ret

Function at 0x4ed53c
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x5b4edd
call fcn.004a7792
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x598], ebx
cmp dword [edi + 4], ebx
jne 0x4ed5f9
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x4ed5d1
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.004ed126
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xb0]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004aa3ec
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004b4588
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004c8741
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004a9f34
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004b3cee
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004b3603
test bl, bl
je 0x4ed631
call fcn.004ed3a3
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x590], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x590]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.004a774d
ret 4

Function at 0x4f1d7a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e257c

Function at 0x4f1d83
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c8
jmp method.DuiLib::CMenuUI.virtual_324
Function at 0x4f2d93
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x784], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x780], ecx
mov dword [ebx + 0x788], eax
test ecx, ecx
jne 0x4f2dfe
call fcn.004f2aed
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x4f2dfe
call fcn.004f2aed
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.004f2aed
mov edx, ebx
lea ecx, [ebx + 0x10]
neg edx
mov esi, dword [eax]
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
call dword [esi]
mov ecx, dword [ebx + 0x780]
test ecx, ecx
je 0x4f2e26
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
mov ecx, edi
call fcn.004aa3ec
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.004b34a2
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
push 0x88
movsd dword es:[edi], dword [esi]
push Ordinal_1
push 0
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
mov ecx, esi
call fcn.004b4588
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4f2e6b
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x4f2e66
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6edb
leave
ret 0x1c

Function at 0x4f8ad7
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x210], ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x4f8b25
cmp esi, 0x28
jbe 0x4f8b1f
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x4f8b25
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0057a870
add esp, 0xc
shl edi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004b3501
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6edb
leave
ret 0xc
Function at 0x4f8dfb
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x5b5a47
call fcn.004a7792
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4f8f0b
lea eax, [ebp - 0xa4]
push eax
call fcn.004f85ad
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004aa3ec
push eax
mov ecx, ebx
call fcn.004b4588
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f8f0b
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.004c8741
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004a9f34
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7ae]
push eax
movzx eax, word [ecx + 0x7ac]
mov ecx, ebx
push eax
call fcn.004f9341
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.004f8929
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.004b3686
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b3603
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.004a774d
ret 4
Function at 0x505820
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x505873
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.00515730
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x505836
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x50b410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, dword [ebx]
mov edx, dword [ebx + 8]
mov dword [ebp - 4], edx
cmp ecx, 0x63f198
jne 0x50b43d
mov edx, dword [ebx + 0xc]
add edx, 0x180
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
jmp 0x50b448
mov eax, dword [ebx + 0xc]
add eax, 0x140
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 0xc]
cmp ecx, 0x63f198
mov esi, 0x434
mov eax, 0x3cc
cmove eax, esi
mov cl, 1
mov esi, dword [ebp + 0x10]
mov byte [ebp + 0xb], cl
mov dword [esi], 0
add eax, edi
je 0x50b5c8
cmp byte [eax + 0x3c], 0
je 0x50b5c8
cmp dword [edi + 0x8d8], 0
je 0x50b5c8
mov eax, dword [edi + 0x78]
test eax, eax
je 0x50b49d
test byte [eax + 4], 0x10
je 0x50b49d
add eax, 0x78
jmp 0x50b4a3
lea eax, [edi + 0x8dc]
cmp dword [edi + 0x4a4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
jbe 0x50b596
mov dword [ebp - 8], 0
xor eax, eax
mov esi, dword [edi + 0x8d8]
add esi, eax
cmp dword [esi + 0xc], 0
je 0x50b57a
push dword [esi]
push dword [edx + 8]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x50b574
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x1c9]
test al, al
jne 0x50b501
cmp dword [esi + 4], 0
je 0x50b518
test al, al
je 0x50b574
mov eax, dword [esi + 4]
test eax, eax
je 0x50b574
push eax
push dword [ecx + 0x64]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x50b574
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x1ca]
test al, al
jne 0x50b52f
cmp dword [esi + 0x1c], 0xffffffff
je 0x50b53f
test al, al
je 0x50b574
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0x50b574
cmp dword [ecx + 0x440], eax
jne 0x50b574
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
cmp eax, dword [esi + 0x18]
jne 0x50b577
mov eax, dword [ecx + 0x1e0]
push dword [esi + 8]
push dword [eax]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x50b574
lea eax, [esi + 0x20]
push eax
push dword [ebp - 0xc]
call fcn.0050b0f0
add esp, 8
test al, al
jne 0x50b59f
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
add eax, 0x60
inc esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
cmp esi, dword [edi + 0x4a4]
jb 0x50b4c3
mov cl, byte [ebp + 0xb]
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x50b5bd
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
xor cl, cl
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x511c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6cf], 0
je 0x511d17
cmp dword [esi + 0x1a4], 0
je 0x511ce1
push esi
call fcn.00500860
push 1
push esi
mov byte [ebp + 8], al
call fcn.00500ab0
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.00500ab0
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x511d17
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x5cc5a8
push 2
push eax
call fcn.00582e51
push dword [esi + 0x150]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00582e51
add esp, 0x20
pop esi
pop ebp
ret

Function at 0x513800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059ae34

Function at 0x513a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x5cc7b0
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x513a70
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x5cc7c4
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x5cc7d4
push esi
mov dword [ebp - 8], ebx
call fcn.00592e0a
add esp, 8
test eax, eax
je 0x513abc
test ebx, ebx
je 0x513aac
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x513ae5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x513ae5
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x513ba7
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x513b01
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x63f144]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x513b9d
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x513b9d
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x513b40
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x513b60
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x513b74
mov eax, dword [ebp - 8]
test eax, eax
je 0x513b94
push 8
push 0
push ebx
call eax
jmp 0x513b9b
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x63f148]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x513bf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x513c49
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x513c36
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x513c30
shr eax, 8
cmp al, 2
je 0x513c49
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret
call fcn.005439f0
test eax, eax
jne 0x513cad
push str.iphlpapi.dll
call fcn.00513a50
add esp, 4
mov dword [0x645678], eax
test eax, eax
je 0x513c85
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, dword [0x645674]
test eax, eax
cmovne ecx, eax
mov dword [0x645674], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.005435f0
add esp, 0x14
test al, al
setne byte [0x65026c]
push 0x650270
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret

Function at 0x516a70
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x63f070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x516ab7
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x516ab7
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6edb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004a6edb
mov esp, ebp
pop ebp
ret

Function at 0x516ad0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x516aee
cmp dword [esi + 0x78], 0
je 0x516aee
push 2
push 3
push esi
call fcn.00515ed0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00516550
add esp, 4
test esi, esi
je 0x516b0e
cmp dword [esi + 0x78], 0
je 0x516b0e
push 3
push esi
call fcn.00515f10
add esp, 8
pop esi
pop ebp
ret

Function at 0x516c10
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x516c53
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf8], 0
jne 0x516c41
push 0
call fcn.00516c10
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xf8], cl
mov ecx, dword [esi + 0x70]
xor eax, eax
pop esi
cmp byte [ecx + 0xf8], 2
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x516c71
xor esi, esi
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
pop ebp
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
pop ebp
ret