joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf263
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x5bf2e0]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf2e0]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x4d158f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4d15c2
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4d15bd
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4d15ec
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00576de0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4d172a
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4d17e9
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 + 0x5bf2e0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf2e0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf2e0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf2e0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf2e0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf2e0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf2e0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf2e0]
sub edi, 1
jne 0x4d1742
pop edi
test esi, esi
je 0x4d1805
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5bf2e0]
inc edx
sub esi, 1
jne 0x4d17ed
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4d8460
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x6a4], edi
je 0x4d84c9
cmp dword [ebp + 8], 0x100
jne 0x4d84b8
cmp dword [ebp + 0xc], 0xd
jne 0x4d84b8
cmp byte [esi + 0x6aa], 0
je 0x4d849f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d84b8
cmp byte [esi + 0x6ab], 0
jne 0x4d84b8
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4d84b4
push edi
push edi
push edi
push str.return
push esi
call fcn.004ab14a
xor eax, eax
jmp 0x4d84cc
mov eax, dword [esi + 0x6a4]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x4db5aa
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c8
jmp fcn.004deef5
Function at 0x4deb7e
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 0x4debbf
mov eax, dword [edi]
sub eax, 9
cmp eax, 0xc
ja 0x4debbf
mov ecx, dword [esi + 0x568]
push edi
test ecx, ecx
je 0x4debb3
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x4ded4a
mov ecx, esi
call fcn.004de862
jmp 0x4ded4a
mov ecx, dword [esi + 0x568]
push ebx
test ecx, ecx
je 0x4dec1e
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x5e4], 0
je 0x4dec1e
cmp dword [edi], 0xf
jne 0x4dec1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4ded49
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
mov ebx, 0x8000
test bx, ax
jne 0x4dec0c
push 0x10
call edi
test bx, ax
je 0x4dec76
mov ecx, dword [esi + 0x568]
test ecx, ecx
je 0x4ded49
push 0
jmp 0x4dec97
cmp dword [edi], 0xd
jne 0x4deca7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4ded49
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
xor edi, edi
test al, al
je 0x4dec57
mov ecx, dword [esi + 0x44]
push edi
push edi
push edi
push str.buttondown
push esi
call fcn.004ab14a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, 0x8000
test bx, ax
jne 0x4dec88
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test bx, ax
jne 0x4dec88
lea ecx, [esi + 0x558]
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
jmp 0x4ded49
mov ecx, dword [esi + 0x568]
test ecx, ecx
je 0x4ded49
push edi
mov eax, dword [ecx]
push dword [esi + 0x55c]
call dword [eax + 0x10]
jmp 0x4ded49
cmp dword [edi], 0xe
jne 0x4decca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4ded49
xor edi, edi
push edi
push edi
push edi
push str.itemclick
jmp 0x4ded36
cmp dword [edi], 0xb
jne 0x4ded02
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4ded49
or dword [esi + 0x564], 8
mov ecx, esi
call fcn.004e07ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test al, al
je 0x4ded49
xor edi, edi
push edi
push edi
push edi
push str.mouseenter
jmp 0x4ded36
cmp dword [edi], 0xa
jne 0x4ded41
mov eax, dword [esi + 0x564]
test al, 8
je 0x4ded49
and eax, 0xfffffff7
mov ecx, esi
mov dword [esi + 0x564], eax
call fcn.004e07ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test al, al
je 0x4ded49
xor edi, edi
push edi
push edi
push edi
push str.mouseleave
mov ecx, dword [esi + 0x44]
push esi
call fcn.004ab14a
jmp 0x4ded49
push edi
mov ecx, esi
call fcn.004de862
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x4e6ed0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x63b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4e6f58
cmp dword [esi + 0x10], 0
je 0x4e6f58
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a4480
mov ebx, esp
test ebx, ebx
je 0x4e6f58
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.004b0249
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.004ab14a
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004a71fa
test al, al
je 0x4e6f58
mov ecx, dword [esi + 0x10]
call fcn.004ae292
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
leave
ret 0x10

Function at 0x4e97d5
Capabilities:
Hide graphical window

Disassembly:
push 0x120
mov eax, 0x5b14bd
call fcn.004a42a6
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 0x4e9867
lea eax, [ebp - 0x12c]
push eax
call fcn.004e93c9
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.004a6f2d
mov edi, dword [ebp - 0x11c]
mov ecx, edi
push eax
call fcn.004b112c
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004a6751
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004a6a75
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.004b0892
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
mov bl, al
call fcn.004b01a7
mov esi, 0x590
test bl, bl
je 0x4e98a6
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.004e967f
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 1
call fcn.004b06da
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.00576de0
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.004b01a7
call fcn.004a4261
ret 4
Function at 0x4e9e7f
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x63b070]
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 0x4e9f1d
push esi
mov esi, 0xff
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00577360
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 0x4e9f1d
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.00576de0
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 0x4e9f1f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
leave
ret

Function at 0x4ea018
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x5b151b
call fcn.004a42a6
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 0x4ea0d5
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 0x4ea0ad
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.004e9c08
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.004a6f2d
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004b112c
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004a6751
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004a6a75
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.004b0892
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004b01a7
test bl, bl
je 0x4ea10d
call fcn.004e9e7f
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.004a4261
ret 4

Function at 0x4ee82f
Capabilities:
Log keystrokes via polling

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

Function at 0x4ee838
Capabilities:
Log keystrokes via polling

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x63b070]
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 0x4ef8af
call fcn.004ef5a2
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x4ef8af
call fcn.004ef5a2
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.004ef5a2
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 0x4ef8d7
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
mov ecx, edi
call fcn.004a6f2d
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.004b005c
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.004b112c
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4ef91c
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x4ef917
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.004a39ef
leave
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x63b070]
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 0x4f5606
cmp esi, 0x28
jbe 0x4f5600
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x4f5606
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00577360
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.004b00a5
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a39ef
leave
ret 0xc
Function at 0x4f58dc
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x5b2062
call fcn.004a42a6
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4f59ec
lea eax, [ebp - 0xa4]
push eax
call fcn.004f50aa
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.004a6f2d
push eax
mov ecx, ebx
call fcn.004b112c
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f59ec
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.004a6751
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004a6a75
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.004f5e22
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.004f540a
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.004b022a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004b01a7
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.004a4261
ret 4
Function at 0x502340
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 0x502393
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.00512260
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 0x502356
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x507f20
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, 0x63b198
jne 0x507f4d
mov edx, dword [ebx + 0xc]
add edx, 0x180
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
jmp 0x507f58
mov eax, dword [ebx + 0xc]
add eax, 0x140
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 0xc]
cmp ecx, 0x63b198
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 0x5080d8
cmp byte [eax + 0x3c], 0
je 0x5080d8
cmp dword [edi + 0x8d8], 0
je 0x5080d8
mov eax, dword [edi + 0x78]
test eax, eax
je 0x507fad
test byte [eax + 4], 0x10
je 0x507fad
add eax, 0x78
jmp 0x507fb3
lea eax, [edi + 0x8dc]
cmp dword [edi + 0x4a4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
jbe 0x5080a6
mov dword [ebp - 8], 0
xor eax, eax
mov esi, dword [edi + 0x8d8]
add esi, eax
cmp dword [esi + 0xc], 0
je 0x50808a
push dword [esi]
push dword [edx + 8]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x508084
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x1c9]
test al, al
jne 0x508011
cmp dword [esi + 4], 0
je 0x508028
test al, al
je 0x508084
mov eax, dword [esi + 4]
test eax, eax
je 0x508084
push eax
push dword [ecx + 0x64]
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x508084
mov ecx, dword [ebx + 0xc]
mov al, byte [ecx + 0x1ca]
test al, al
jne 0x50803f
cmp dword [esi + 0x1c], 0xffffffff
je 0x50804f
test al, al
je 0x508084
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
je 0x508084
cmp dword [ecx + 0x440], eax
jne 0x508084
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
cmp eax, dword [esi + 0x18]
jne 0x508087
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 0x508084
lea eax, [esi + 0x20]
push eax
push dword [ebp - 0xc]
call fcn.00507c00
add esp, 8
test al, al
jne 0x5080af
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 0x507fd3
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 0x5080cd
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 0x50e7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6cf], 0
je 0x50e827
cmp dword [esi + 0x1a4], 0
je 0x50e7f1
push esi
call fcn.004fd360
push 1
push esi
mov byte [ebp + 8], al
call fcn.004fd5b0
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.004fd5b0
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x50e827
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x5c8598
push 2
push eax
call fcn.0057f941
push dword [esi + 0x150]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0057f941
add esp, 0x20
pop esi
pop ebp
ret

Function at 0x510330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00597893

Function at 0x510580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x5c87a0
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x5105a0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x5c87b4
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x5c87c4
push esi
mov dword [ebp - 8], ebx
call fcn.0058f84a
add esp, 8
test eax, eax
je 0x5105ec
test ebx, ebx
je 0x5105dc
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 0x510615
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x510615
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 0x5106d7
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510631
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x63b144]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5106cd
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x5106cd
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510670
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 0x510690
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 0x5106a4
mov eax, dword [ebp - 8]
test eax, eax
je 0x5106c4
push 8
push 0
push ebx
call eax
jmp 0x5106cb
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x63b148]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret