joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10088e19
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100bd040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1007e05a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1007e05a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10088e90
cmp word [ecx], dx
je 0x10088e90
mov eax, dword [0x100988ac]
push edi
dec eax
push eax
push 0x10098798
call fcn.10088db8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10088f03
cmp word [eax], dx
je 0x10088f03
mov eax, dword [edi]
test eax, eax
je 0x10088eb4
cmp word [eax], dx
je 0x10088eb4
lea eax, [ebp - 0x10]
push eax
call fcn.1008879b
jmp 0x10088ebd
lea eax, [ebp - 0x10]
push eax
call fcn.10088836
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10088f2d
mov eax, dword [0x10098794]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10098488
call fcn.10088db8
add esp, 0xc
test al, al
je 0x10088f2d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10088ef8
cmp word [eax], di
je 0x10088ef8
lea eax, [ebp - 0x10]
push eax
call fcn.1008879b
pop ecx
jmp 0x10088f2f
lea eax, [ebp - 0x10]
push eax
call fcn.10088836
jmp 0x10088ef5
mov eax, dword [edi]
test eax, eax
je 0x10088f1a
cmp word [eax], dx
je 0x10088f1a
lea eax, [ebp - 0x10]
push eax
call fcn.10088750
pop ecx
jmp 0x10088f2d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10088ff8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10088c3d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10088ff8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10088ff8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10088ff8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10088f85
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10080bed
test ebx, ebx
je 0x10088ff3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10080bed
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10088ff8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10088ff8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1008c0bd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10088ffa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10069b82
leave
ret
Function at 0x1008c8b1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1008c82d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1008ca20
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1008ca20
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1008c9d5
jg 0x1008c90d
test eax, eax
je 0x1008c9cb
push 1
push 0x1000
call fcn.1008057c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1008c930
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1008c9c2
push 0x8000
push ebx
call fcn.1008c75e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1008c959
jg 0x1008c954
cmp ecx, 0x1000
jb 0x1008c959
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1008183a
add esp, 0x10
cmp eax, 0xffffffff
je 0x1008c99e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1008c954
jl 0x1008c985
test ecx, ecx
jne 0x1008c946
push dword [ebp - 0xc]
push ebx
call fcn.1008c75e
push esi
call fcn.100805d9
add esp, 0xc
xor ebx, ebx
jmp 0x1008ca2e
cmp byte [edi + 0x24], 0
je 0x1008c9b5
cmp dword [edi + 0x20], 5
jne 0x1008c9b5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1008c9c0
mov ebx, dword [edi + 0x18]
jmp 0x1008c9c2
xor ebx, ebx
push esi
call fcn.100805d9
pop ecx
jmp 0x1008ca2e
test ecx, ecx
jg 0x1008c997
jl 0x1008c9d5
test eax, eax
jae 0x1008c997
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007dc92
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1008c9f5
cmp byte [edi + 0x1c], 0
je 0x1008c997
jmp 0x1008ca26
push ebx
call fcn.10086be2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1008c997
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1008ca2e
cmp byte [edi + 0x1c], 0
je 0x1008ca2b
mov ebx, dword [edi + 0x18]
jmp 0x1008ca2e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1007dc92
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008e2b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008e2dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008e2dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4446bb
Capabilities:
Terminate process

Disassembly:
push 0x364
mov eax, 0x4ff742
call fcn.004d998f
mov esi, ecx
call fcn.0044edd2
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call edi
push eax
push str._INFO___d___OnCreate_1
push 3
push dword [0x54ec68]
call fcn.0044e7b6
add esp, 0x10
push 0xfffffffffffffff0
mov ecx, esi
call fcn.004857bc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call fcn.004857bc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi]
mov ecx, esi
lea ebx, [esi + 0x30]
call dword [eax + 0x30]
push eax
push dword [esi + 4]
mov ecx, ebx
call fcn.0043ee70
lea eax, [esi + 0x24]
push eax
mov ecx, ebx
call fcn.0043ba9a
lea ecx, [ebp - 0x36c]
call fcn.0046c0f0
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
push ecx
mov ecx, esi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0043a5cb
test al, al
jne 0x4447d7
call edi
push eax
push str._INFO___d___OnCreate_2
push 3
push dword [0x54ec68]
call fcn.0044e7b6
mov eax, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x94]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0043a4b7
push eax
call fcn.004d838b
pop ecx
lea ecx, [ebp - 0x94]
movzx edi, ax
mov byte [ebp - 4], 1
call fcn.0043a49d
push 0
lea eax, [esi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x118]
call fcn.0043a4b7
push eax
push edi
lea ecx, [ebp - 0x36c]
call fcn.0046d0b1
mov edi, eax
jmp 0x444838
call edi
push eax
push str._INFO___d___OnCreate_3
push 3
push dword [0x54ec68]
call fcn.0044e7b6
mov eax, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, esi
lea edi, [esi + 0x28]
call dword [eax + 0x2c]
push 0
push ebx
push edi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0043a4b7
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x370], esp
call fcn.0046d0b1
lea ecx, [ebp - 0x19c]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.0043a49d
test edi, edi
jne 0x4448a1
push 0xffffffffffffffff
push 0x50b02c
lea ecx, [ebp - 0x94]
call fcn.0043a8bb
mov eax, dword [esi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0043a647
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.0043a49d
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.0043a4b7
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
mov ecx, ebx
call fcn.00441c4b
lea eax, [esi + 0x20]
push eax
mov ecx, ebx
call fcn.0043ba4a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.0043a49d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.0046b656
xor eax, eax
call fcn.004d9a12
ret 0x10
Function at 0x44e5e3
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x5055f6
call fcn.004d9926
mov esi, ecx
lea eax, [esi + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
call fcn.00427a54
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.004d87d8
add esp, 0x18
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x44e634
cmp byte [ebp - 0x10], bl
je 0x44e630
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
jmp 0x44e651
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00427b98
cmp byte [ebp - 0x10], bl
je 0x44e64f
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
call fcn.004d99fe
ret 8

Function at 0x44edd2
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x50025f
call fcn.004d998f
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x44ee10
push 0x50ab24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040edaa
mov esi, str.wsduilib.log
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.004d90e1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.0041177b
test byte [0x54ecfc], 1
mov esi, 0x54ec88
jne 0x44ee97
or dword [0x54ecfc], 1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 1
call fcn.0044e98a
pop ecx
pop ecx
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0044e659
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.0040241d
push 0x50915a
call fcn.004d7c69
pop ecx
mov byte [ebp - 4], bl
mov ecx, esi
mov dword [0x54ec68], esi
call fcn.0044ed99
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00403da4
xor eax, eax
call fcn.004d9a12
ret
Function at 0x473137
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [ebp + 0xc]
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp ebx, 0x21
jb 0x473187
cmp ebx, 0x28
jbe 0x473181
cmp ebx, 0x2c
jbe 0x473187
cmp ebx, 0x2e
ja 0x473187
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x473193
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004d8c50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
shl esi, 0x10
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0043a8bb
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d574b
leave
ret 0xc

Function at 0x47af46
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.00482453

Function at 0x47f941
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.2.virtual_324

Function at 0x47feeb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
and dword [ebx + 0x774], 0
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x770], eax
mov dword [ebx + 0x778], ecx
test eax, eax
jne 0x47ff53
call fcn.0047fde9
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xc]
test esi, esi
je 0x47ff53
call fcn.0047fde9
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.0047fde9
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx]
mov ecx, dword [ebx + 0x770]
test ecx, ecx
jne 0x47ff70
mov ecx, edi
jmp 0x47ff77
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043b313
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0043a186
push 0
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x88
push SysReAllocString
movsd dword es:[edi], dword [esi]
push 0
push dword [ebp - 0x18]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.00442db1
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x47ffba
push edi
call esi
mov edi, eax
push edi
call esi
test eax, eax
jne 0x47ffb5
push 5
push dword [ebx + 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.004d574b
leave
ret 0x1c
Function at 0x487d7e
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x54b3f0]
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
je 0x487daa
xor eax, eax
jmp 0x487e29
push 0xfe
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.004d8c50
add esp, 0xc
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x487da6
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.004d8d80
movzx eax, byte [ebp - 0x298]
movzx ecx, byte [ebp - 0x297]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add esp, 0xc
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d574b
leave
ret

Function at 0x4897d4
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x50195d
call fcn.004d998f
mov eax, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
mov dword [ebx + 0x10], eax
mov dword [eax + 0x598], esi
cmp dword [ebx + 4], esi
jne 0x489860
lea eax, [ebp - 0xa8]
push eax
call fcn.004894d3
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push esi
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
push 0x40000000
push 0
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043b313
push eax
mov ecx, ebx
call fcn.00442db1
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.0043bcfd
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043c4a0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call esi
jmp 0x489866
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x94]
push edx
call dword [eax + 0x28]
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0043a5cb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov byte [ebp - 0x95], al
call fcn.0043a49d
cmp byte [ebp - 0x95], 0
mov edi, 0x588
je 0x4898af
mov eax, dword [ebx + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebx + 0x10]
call fcn.0048960c
test al, al
je 0x4898c2
push str.yyyy_MM_dd_HH:mm:ss
jmp 0x4898c7
push str.yyyy_MM_dd
push 0
push 0x1032
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 0x10]
add eax, edi
push 0x10
push eax
lea eax, [ebx + 0x1a]
push eax
call fcn.004d8d80
mov eax, dword [ebx + 0x10]
add esp, 0xc
add eax, edi
push eax
push 0
push 0x1002
push dword [ebx + 4]
call esi
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.004d9a12
ret 4
Function at 0x499560
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4995a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x499620
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xbfc], edi
je 0x4996b5
cmp dword [esi + 0x620], edi
je 0x499675
push 1
push esi
call fcn.00497360
mov eax, dword [esi + 0x5b4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x620]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00497360
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x4996b5
cmp eax, 2
jg 0x4996b5
mov edx, dword [esi + 0x5b0]
push edx
push 1
lea eax, [eax + eax*2 + 0x5197c4]
push 2
push eax
call fcn.004d7434
mov ecx, dword [esi + 0x5b0]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.004d7434
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x499790
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp dword [esi + 0xbfc], 0
jne 0x4997b4
cmp dword [esi + 0x5b8], 0
je 0x499890
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x100
push edx
call fcn.004a3060
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4997e0
sub eax, edx
mov edx, dword [esi + 0x5b8]
push edi
mov edi, eax
test edx, edx
je 0x499817
cmp dword [esi + 0x1230], 0
jne 0x499817
lea ecx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x499803
mov dword [esi + 0x1230], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0xbfc], 0
je 0x49988f
cmp dword [esi + 0x620], 0
je 0x499863
push 1
push esi
call fcn.00497360
mov eax, dword [esi + 0x5b4]
mov edx, dword [esi + 0x620]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.00497360
add esp, 0x24
pop edi
pop esi
add esp, 0x104
ret
mov eax, dword [esi + 0x5b0]
push eax
push 1
push 2
push 0x5197c4
call fcn.004d7434
mov ecx, dword [esi + 0x5b0]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004d7434
add esp, 0x20
pop edi
pop esi
add esp, 0x104
ret
Function at 0x499b90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [ebx + 0x5f0]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
mov ecx, eax
add ecx, ecx
push esi
lea esi, [ebx + ecx*8 + 0x448]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
je 0x499c32
cmp dword [ebx + eax*4 + 0x438], 0x4998a0
jne 0x499c32
cmp dword [esi], 0
je 0x499bcd
test edi, edi
je 0x499c32
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004c0f20
add esp, 0x14
cmp eax, 0xffffffff
je 0x499c32
test al, 1
je 0x499c32
cmp dword [esi], 0
jne 0x499c1b
mov eax, dword [ebx]
mov eax, dword [eax + 0x97c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x54ae68]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
cmp eax, ecx
jne 0x499c12
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x499c32
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebp
ret

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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push esi
mov esi, dword [ebx + eax*4 + 0x420]
call fcn.00499b90
test eax, eax
je 0x499c7c
mov eax, dword [esp + 0x11c]
pop esi
mov dword [eax], 0x1b
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push edi
push 0
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x120]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x499d00
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x499cd0
pop ebp
xor esi, esi
mov dword [edi], 0x51
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x100
ret
push 0x100
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0048ee30
mov ecx, dword [ebx]
push eax
push str.Send_failure:__s
push ecx
call fcn.00499790
mov edx, dword [ebx]
add esp, 0x18
mov dword [edx + 0xec4], ebp
mov dword [edi], 0x37
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x49d9e0
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x49da0e
movzx eax, byte [esi]
push eax
call fcn.004a2220
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x49d9f1
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x49da20
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x14
push esi
mov esi, eax
test esi, esi
je 0x49da6e
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.004c80d0
add esp, 0xc
test eax, eax
jne 0x49da6e
lea ecx, [esp + 8]
push ecx
push esi
push 0x17
call fcn.004c80d0
add esp, 0xc
test eax, eax
jne 0x49da6e
lea edx, [esp + 4]
push edx
call fcn.0049d980
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 0x14
jmp fcn.0049d9e0
xor eax, eax
pop esi
add esp, 0x14
ret