joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x43d454
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43d44f
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x43d47b
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x43d464
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004bdcc0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x43d5ee
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43d5fc
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x43d6bb
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ef5b8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ef5b8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ef5b8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ef5b8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ef5b8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ef5b8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ef5b8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ef5b8]
sub edi, 1
jne 0x43d614
pop edi
test esi, esi
je 0x43d6d7
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4ef5b8]
inc edx
sub esi, 1
jne 0x43d6bf
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x43e691
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x4e7c4e
call fcn.004a54ff
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0043ea20
call fcn.0041bd47
push eax
lea ecx, [ebp - 0x94]
call fcn.00419664
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0041bd4d
mov ecx, eax
call fcn.00419e68
test al, al
je 0x43e7a7
push ebx
lea ecx, [ebp - 0x94]
call fcn.004198d8
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.004e33a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x43e718
push str.Error_opening_file
jmp 0x43e888
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x43e821
cmp edi, 0x400000
ja 0x43e832
and dword [ebp - 0x2c8], 0
push edi
call fcn.004a4c4b
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x43e790
push ebx
call fcn.004a4c54
pop ecx
mov ecx, esi
call fcn.0043ea20
push 0
push str.Could_not_read_file
jmp 0x43e888
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0043e8d3
push dword [ebp - 0x2cc]
jmp 0x43e8b6
call fcn.0041bd4d
push eax
lea ecx, [ebp - 0x94]
call fcn.004198bb
call fcn.0041c054
test al, al
je 0x43e7c8
call fcn.0041bd53
jmp 0x43e7df
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004e33a0
push eax
call fcn.0043ae80
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x43e7f0
push eax
push str.Error_opening_zip_file
jmp 0x43e888
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0043a8c1
add esp, 0x14
test eax, eax
je 0x43e817
push 0
push str.Could_not_find_ziped_file
jmp 0x43e888
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x43e82a
push 0
push str.File_is_empty
jmp 0x43e888
cmp ebx, 0x400000
jbe 0x43e83b
push 0
push 0x4f0e44
jmp 0x43e888
push ebx
call fcn.004a4c4b
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.0043b240
add esp, 0x18
test eax, eax
je 0x43e893
cmp eax, 0x600
je 0x43e893
push dword [ebp - 0x2c8]
call fcn.004a4c54
pop ecx
call fcn.0041c054
test al, al
jne 0x43e881
push edi
call fcn.0043a71b
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0043ea48
mov bl, al
jmp 0x43e8be
call fcn.0041c054
test al, al
jne 0x43e8a3
push edi
call fcn.0043a71b
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.0043e8d3
push edi
mov bl, al
call fcn.004a4c54
pop ecx
lea ecx, [ebp - 0x94]
call fcn.00419770
mov al, bl
call fcn.004a54ba
ret 8

Function at 0x446aa5
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x638
jmp fcn.0044b642
Function at 0x452f70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x452ff0
cmp dword [esi + 0x10], 0
je 0x452ff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a5610
mov ebx, esp
test ebx, ebx
je 0x452ff0
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c8
call fcn.0041980e
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
push str.textchanged
push ecx
mov ecx, dword [ecx + 0x44]
call fcn.0041f774
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x44]
call fcn.0041c061
test al, al
je 0x452ff0
mov ecx, dword [esi + 0x10]
call fcn.00425c02
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x453e10
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x4e890f
call fcn.004a54ff
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.0041bd47
push eax
lea ecx, [ebp - 0x94]
call fcn.00419664
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0041bd4d
mov ecx, eax
call fcn.00419e68
test al, al
je 0x453efe
push ebx
lea ecx, [ebp - 0x94]
call fcn.004198d8
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.004e33a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x453ea1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00419770
jmp 0x453fdf
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x453e8d
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004a4c4b
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x453fca
push edi
call fcn.004a4c54
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00419770
jmp 0x453fdd
call fcn.0041bd4d
push eax
lea ecx, [ebp - 0x94]
call fcn.004198bb
call fcn.0041c054
test al, al
je 0x453f1f
call fcn.0041bd53
jmp 0x453f36
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004e33a0
push eax
call fcn.0043ae80
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x453e8d
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.0043a8c1
add esp, 0x14
test eax, eax
jne 0x453e8d
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x453e8d
push esi
call fcn.004a4c4b
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.0043b240
add esp, 0x18
test eax, eax
je 0x453fba
cmp eax, 0x600
je 0x453fba
push edi
call fcn.004a4c54
pop ecx
call fcn.0041c054
test al, al
jne 0x453eea
push ebx
call fcn.0043a71b
jmp 0x453ee9
call fcn.0041c054
test al, al
jne 0x453fca
push ebx
call fcn.0043a71b
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00419770
test edi, edi
jne 0x454051
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push accept
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45404d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x45404d
push esi
mov dword [ebp - 0x2d0], edi
call fcn.004a4c4b
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x454049
push edi
call fcn.004a4c54
pop ecx
xor edi, edi
test edi, edi
jne 0x454051
xor eax, eax
jmp 0x454069
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00454071
push edi
mov esi, eax
call fcn.004a4c54
pop ecx
mov eax, esi
call fcn.004a54ba
ret 4
Function at 0x457239
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x4e8ca3
call fcn.004a54ff
mov esi, ecx
mov dword [ebp - 0x98], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x10], eax
mov dword [eax + 0x500], ebx
cmp dword [esi + 4], ebx
jne 0x4572c2
lea eax, [ebp - 0xa8]
push eax
call fcn.00456dfc
push ebx
sub esp, 0x10
lea esi, [ebp - 0xa8]
mov edi, esp
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]
mov esi, dword [ebp - 0x98]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x44]
call fcn.0041bd2b
push eax
mov ecx, esi
call fcn.0042182a
mov ecx, dword [esi + 0x10]
call fcn.00443f57
mov ecx, dword [esi + 0x10]
push eax
mov ecx, dword [ecx + 0x44]
call fcn.0041ba2c
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 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.00419e68
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00419770
mov edi, 0x4f0
test bl, bl
je 0x4572fd
mov eax, dword [esi + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, edi
push 0x10
push eax
lea eax, [esi + 0x1a]
push eax
call fcn.004bdcc0
mov eax, dword [esi + 0x10]
add esp, 0xc
add eax, edi
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [esi + 0x18], 1
call fcn.004a54ba
ret 4

Function at 0x457732
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x52038c]
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 0x45775e
xor eax, eax
jmp 0x4577d3
push esi
mov esi, 0xff
lea eax, [ebp - 0x104]
push esi
push 0
push eax
call fcn.004be240
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 0x45775a
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.004bdcc0
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
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret
Function at 0x4578d0
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x4e8d24
call fcn.004a54ff
mov esi, ecx
mov dword [ebp - 0x98], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x10], eax
mov dword [eax + 0x4f8], ebx
cmp dword [esi + 4], ebx
jne 0x457984
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 0x457961
lea eax, [ebp - 0xb0]
mov ecx, esi
push eax
call fcn.004574c7
push ebx
sub esp, 0x10
lea esi, [ebp - 0xb0]
mov edi, esp
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]
mov esi, dword [ebp - 0x98]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x44]
call fcn.0041bd2b
push eax
mov ecx, esi
call fcn.0042182a
mov ecx, dword [esi + 0x10]
call fcn.00443f57
mov ecx, dword [esi + 0x10]
push eax
mov ecx, dword [ecx + 0x44]
call fcn.0041ba2c
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 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.00419e68
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00419770
test bl, bl
je 0x4579bc
call fcn.00457732
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x4f0], eax
mov eax, dword [esi + 0x10]
push dword [eax + 0x4f0]
push 0
push 0x465
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [esi + 0x18], 1
call fcn.004a54ba
ret 4

Function at 0x45b829
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044b642

Function at 0x45b832
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x638
jmp method.DuiLib::CMenuUI.virtual_312
Function at 0x45c5e1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52038c]
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 + 0x18]
push edi
and dword [ebx + 0x468], 0
mov edi, dword [ebp + 0x1c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebx + 0x464], ecx
mov dword [ebx + 0x46c], eax
test ecx, ecx
jne 0x45c64c
call fcn.0045c3ac
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test edi, edi
je 0x45c64c
call fcn.0045c3ac
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.0045c3ac
mov esi, ebx
lea edx, [ebx + 0x10]
neg esi
mov ecx, eax
mov edi, dword [eax]
sbb esi, esi
and esi, edx
push esi
call dword [edi]
mov ecx, dword [ebx + 0x464]
test ecx, ecx
jne 0x45c672
mov ecx, dword [ebp - 0x18]
jmp 0x45c679
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0041bd2b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00419640
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push accept
push 0
push dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042182a
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x45c6bc
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x45c6b7
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x4621e9
cmp esi, 0x28
jbe 0x4621e3
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x4621e9
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004be240
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
or ecx, 0x1000000
cmp dword [ebp + 0x10], 0
push 0x104
cmove ecx, edi
push eax
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00419689
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4624dc
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x4e98ec
call fcn.004a54ff
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4625e3
lea eax, [ebp - 0xa4]
push eax
call fcn.00461cdb
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov ecx, dword [ecx + 0x44]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041bd2b
push eax
mov ecx, ebx
call fcn.0042182a
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4625e3
mov ecx, dword [ebx + 0x10]
call fcn.00443f57
mov ecx, dword [ebx + 0x10]
push eax
mov ecx, dword [ecx + 0x44]
call fcn.0041ba2c
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 + 0x70e]
push eax
movzx eax, word [ecx + 0x70c]
mov ecx, ebx
push eax
call fcn.00462a14
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.00461fed
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1c8
push eax
call fcn.004197ef
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00419770
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x100]
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.004a54ba
ret 4

Function at 0x46cf20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x52038c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46cf70
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x46cf6a
shr eax, 8
cmp al, 2
jne 0x46cf6a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004a4c3a
mov esp, ebp
pop ebp
ret
Function at 0x4746e0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x474729
mov al, byte [esi]
push eax
call fcn.004807c0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x474707
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x475940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x47595e
cmp dword [esi + 0x6c], 0
je 0x47595e
push 2
push 3
push esi
call fcn.00480d80
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00482880
add esp, 4
test esi, esi
je 0x47597e
cmp dword [esi + 0x6c], 0
je 0x47597e
push 3
push esi
call fcn.00480dc0
add esp, 8
pop esi
pop ebp
ret
Function at 0x47e2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1d0], 0
je 0x47e2f4
push esi
push 1
push edi
call fcn.00470c50
push dword [edi + 0x15c]
mov eax, dword [edi + 0x1d0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00470c50
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x47e32a
push dword [edi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x4fb9d0
push 2
push eax
call fcn.004c144f
push dword [edi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004c144f
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.0047ebf0
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x47e764
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x47e73c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.0046fe50
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0047e330
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48d4], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x47ebf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2b0]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x47ecad
cmp dword [ebx + ecx*4 + 0x1bc], 0x47e630
jne 0x47ecad
cmp dword [esi], 0
je 0x47ec3f
test edi, edi
je 0x47ecad
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0047de60
add esp, 0x14
cmp eax, 0xffffffff
je 0x47ecad
test al, 1
je 0x47ecad
cmp dword [esi], 0
jne 0x47ec94
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x520320]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x47ec94
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x47ecad
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret