joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421a70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x19c], ecx
mov eax, dword [ebp - 0x19c]
mov byte [eax + 4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x198]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x421ab9
xor al, al
jmp 0x421ac7
lea edx, [ebp - 4]
push edx
call fcn.00424a90
add esp, 4
mov al, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret

Function at 0x424560
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0
push 0x105
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x424627
push str._SYSTEMROOT__system32
push 0x105
lea ecx, [ebp - 0x110]
push ecx
call fcn.00423f90
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jge 0x4245e3
mov edx, dword [ebp - 0x118]
push edx
push str.LoadUpdateProviderFunctions:_StringCchCopyA_failed:_0x_x_n
call fcn.00484fba
add eax, 0x40
push eax
call fcn.0048516f
add esp, 0xc
jmp 0x4246d0
push 0x105
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x424627
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadUpdateProviderFunctions:_Unable_to_expand_environment_string:__d_n
call fcn.00484fba
add eax, 0x40
push eax
call fcn.0048516f
add esp, 0xc
jmp 0x4246d0
push 0x4bf7ec
push 0x105
lea edx, [ebp - 0x220]
push edx
call fcn.00423fe0
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jge 0x42466d
mov eax, dword [ebp - 0x118]
push eax
push str.LoadUpdateProviderFunctions:_StringCchCatA_failed:_0x_x_n
call fcn.00484fba
add eax, 0x40
push eax
call fcn.0048516f
add esp, 0xc
jmp 0x4246d0
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x4246b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x220]
push edx
push str.LoadUpdateProviderFunctions:_Unable_to_load__s:__d_n
call fcn.00484fba
add eax, 0x40
push eax
call fcn.0048516f
add esp, 0x10
jmp 0x4246d0
push str.WSCUpdateProvider
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e4f98], eax
mov eax, dword [ebp - 0x114]
jmp 0x4246f2
cmp dword [ebp - 0x114], 0
je 0x4246f0
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x114], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret
Function at 0x424b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push edi
call fcn.00424b00
push eax
mov ecx, dword [ebp + 8]
call fcn.0047ed00
lea eax, [ebp - 0x2c1]
push eax
call fcn.00424b00
mov ecx, eax
call fcn.00424b40
movzx ecx, byte [eax + 1]
test ecx, ecx
je 0x424c23
xor edx, edx
mov word [ebp - 0x2b8], dx
push 0x206
push 0
lea eax, [ebp - 0x2b6]
push eax
call fcn.00487e90
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x2b8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x2b8]
push edx
lea ecx, [ebp - 0x2bc]
call fcn.00404100
push str.FunAcceInstall.log
lea ecx, [ebp - 0x2bc]
call fcn.00424d60
lea ecx, [ebp - 0x2bc]
call fcn.0040a2e0
mov esi, eax
call fcn.0040c1e0
mov ecx, eax
mov edi, str.adfasdfasdf
mov eax, esi
mov esi, ecx
call fcn.004793d0
lea ecx, [ebp - 0x2bc]
call fcn.00404200
mov dword [ebp - 0xa8], 0xc
mov dword [ebp - 0xa0], 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0xa4], edx
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
call fcn.00417210
call fcn.0041c140
mov ecx, eax
call fcn.0041e250
mov byte [ebp - 0xa9], 0
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00404bb0
push 0
push 0x4be748
lea ecx, [ebp - 0x9c]
call fcn.00402810
cmp eax, 0xffffffff
je 0x424cac
mov byte [ebp - 0xa9], 1
movzx edx, byte [ebp - 0xa9]
push edx
call fcn.00420e40
mov ecx, eax
call fcn.00420e50
push str.Global_funinstall_global_instance_event_name
push 0
push 1
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4e4fa0], eax
cmp dword [0x4e4fa0], 0
je 0x424d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x424d27
push 0x40da
call fcn.00420e40
mov ecx, eax
call fcn.00421500
mov dword [ebp - 0x2c8], 0
lea ecx, [ebp - 0x9c]
call fcn.00404310
lea ecx, [ebp - 0x80]
call fcn.00417390
mov eax, dword [ebp - 0x2c8]
jmp 0x424d4e
lea edi, [ebp - 0x80]
call fcn.0042a0d0
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x9c]
call fcn.00404310
lea ecx, [ebp - 0x80]
call fcn.00417390
mov eax, dword [ebp - 0x2cc]
pop edi
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret 0x10

Function at 0x425540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x425575
push 5
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esp, ebp
pop ebp
ret
Function at 0x425580
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4255a5
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x4276f0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
test ax, ax
jns 0x427708
mov esi, 8
push 2
call edi
test ax, ax
jns 0x427714
or esi, 1
push 1
call edi
test ax, ax
jns 0x427720
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x42772c
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x427738
or esi, 0x20
pop edi
mov ax, si
pop esi
ret
Function at 0x428930
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x428940
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x429770
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x78]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
push 0x11
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
xor esi, esi
call edi
test ax, ax
jns 0x4297ba
mov esi, 8
push 2
call edi
test ax, ax
jns 0x4297c6
or esi, 1
push 1
call edi
test ax, ax
jns 0x4297d2
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4297de
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4297ea
or esi, 0x20
lea edx, [ebp - 0x1c]
mov eax, ebx
mov word [ebp - 0xe], si
call fcn.0042acb0
mov eax, dword [ebx + 0x78]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x429810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x11
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
xor esi, esi
call edi
test ax, ax
jns 0x429852
mov esi, 8
push 2
call edi
test ax, ax
jns 0x42985e
or esi, 1
push 1
call edi
test ax, ax
jns 0x42986a
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x429876
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x429882
or esi, 0x20
mov eax, dword [0x4e4fb4]
mov word [ebp - 0xa], si
test eax, eax
je 0x4298a1
lea edx, [ebp - 0x18]
call fcn.0042acb0
mov dword [0x4e4fb4], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4298b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push 0x11
mov dword [ebp - 0x1c], 0xb
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
xor esi, esi
call edi
test ax, ax
jns 0x4298ec
mov esi, 8
push 2
call edi
test ax, ax
jns 0x4298f8
or esi, 1
push 1
call edi
test ax, ax
jns 0x429904
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x429910
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x42991c
or esi, 0x20
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov word [ebp - 0xe], si
call fcn.0042acb0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429940
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x78]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
push 0x11
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
xor esi, esi
call edi
test ax, ax
jns 0x42998a
mov esi, 8
push 2
call edi
test ax, ax
jns 0x429996
or esi, 1
push 1
call edi
test ax, ax
jns 0x4299a2
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4299ae
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4299ba
or esi, 0x20
lea edx, [ebp - 0x1c]
mov eax, ebx
mov word [ebp - 0xe], si
call fcn.0042acb0
mov eax, dword [ebx + 0x78]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4299e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x11
mov dword [ebp - 0x18], 0xd
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
xor esi, esi
call edi
test ax, ax
jns 0x429a22
mov esi, 8
push 2
call edi
test ax, ax
jns 0x429a2e
or esi, 1
push 1
call edi
test ax, ax
jns 0x429a3a
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x429a46
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x429a52
or esi, 0x20
mov eax, dword [0x4e4fb4]
mov word [ebp - 0xa], si
test eax, eax
je 0x429a71
lea edx, [ebp - 0x18]
call fcn.0042acb0
mov dword [0x4e4fb4], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x429a80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov al, byte [ebp + 8]
push 0x11
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x10
mov byte [ebp - 0x10], al
xor esi, esi
call edi
test ax, ax
jns 0x429ac4
mov esi, 8
push 2
call edi
test ax, ax
jns 0x429ad0
or esi, 1
push 1
call edi
test ax, ax
jns 0x429adc
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x429ae8
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x429af4
or esi, 0x20
mov word [ebp - 0xe], si
mov esi, dword [0x4e4fc0]
test esi, esi
je 0x429b1a
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call edx
test eax, eax
jne 0x429b1a
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x429b02
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x429b30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov al, byte [ebp + 8]
push 0x11
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x11
mov byte [ebp - 0x10], al
xor esi, esi
call edi
test ax, ax
jns 0x429b74
mov esi, 8
push 2
call edi
test ax, ax
jns 0x429b80
or esi, 1
push 1
call edi
test ax, ax
jns 0x429b8c
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x429b98
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x429ba4
or esi, 0x20
mov ecx, dword [0x4e4fc0]
mov word [ebp - 0xe], si
test ecx, ecx
je 0x429bbd
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0x1c]
push eax
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x431dd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a94e8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4e06b8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4e06b8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [esp + 0x10], esi
test esi, esi
je 0x431f6e
cmp word [esi], 0
je 0x431f6e
push 8
push str._string_
push esi
call fcn.00485952
add esp, 0xc
test eax, eax
jne 0x431f6e
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00404bb0
lea eax, [esp + 0x14]
lea ebx, [edi + 0x1c]
push eax
lea esi, [esp + 0x3c]
mov eax, ebx
mov dword [esp + 0x84], 0
call fcn.00434610
mov ecx, esi
mov dword [esp + 0x80], 0xffffffff
call fcn.00404310
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], ecx
push ebx
lea ecx, [esp + 0x1c]
call fcn.0041b1f0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
je 0x431e9e
lea ecx, [eax + 0x28]
call fcn.00404260
jmp 0x431f70
mov edi, dword [edi + 4]
test edi, edi
jne 0x431eae
mov eax, dword [esp + 0x10]
jmp 0x431f70
mov eax, edi
call fcn.004275e0
mov edi, str.item
call fcn.004309e0
mov edi, eax
test edi, edi
je 0x431f6a
lea esp, [esp]
push 0x4c663c
lea esi, [edi + 0x44]
push esi
call fcn.0045ae40
test eax, eax
je 0x431f59
lea ecx, [eax + 0x30]
call fcn.00416500
mov dword [esp + 0x14], eax
test eax, eax
je 0x431f59
push str.value
push esi
call fcn.0045ae40
test eax, eax
je 0x431f59
lea ecx, [eax + 0x30]
call fcn.00416500
mov esi, eax
test esi, esi
je 0x431f59
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.00453850
mov eax, dword [esp + 0x10]
add eax, 0x10
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x84], 1
call fcn.00404260
push eax
call fcn.00482dc6
add esp, 8
test eax, eax
je 0x431f8e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x80], 0xffffffff
call fcn.00404310
mov eax, edi
call fcn.004275b0
mov edi, eax
test edi, edi
jne 0x431ed0
mov esi, dword [esp + 0x10]
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00482469
mov esp, ebp
pop ebp
ret
mov edx, esi
lea ecx, [esp + 0x54]
call fcn.00453850
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
mov byte [esp + 0x8c], 2
call fcn.00434200
add esp, 4
mov ecx, eax
call fcn.00402670
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.00404310
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.00434200
mov ecx, eax
call fcn.00404260
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00404310
jmp 0x431f6e
Function at 0x43ea90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x43ea9e
xor eax, eax
pop ebp
ret
push esi
not eax
cmp edx, 8
jb 0x43eb6d
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4bd5b8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4bd5b8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4bd5b8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4bd5b8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4bd5b8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4bd5b8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4bd5b8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4bd5b8]
add ecx, 8
sub edx, 8
dec esi
jne 0x43eab0
pop edi
test edx, edx
je 0x43eb8a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4bd5b8]
inc ecx
dec edx
jne 0x43eb71
not eax
pop esi
pop ebp
ret

Function at 0x43eb90
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4bd5b8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4bd5b8]
mov dword [edx + 8], ecx
ret

Function at 0x43ebe0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4bd5b8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4bd5b8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x43f320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x43f35b
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f350
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x43f36c
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00489130
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x43f570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x43f5b7
cmp byte [esi + 1], 0
je 0x43f5bf
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x43f5d2
cmp byte [esi + 1], 0
je 0x43f5c6
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebx, eax
mov dword [ebp - 4], ebx
jmp 0x43f5da
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x43f591
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x43f5da
mov edx, dword [esi + 0x1c]
mov dword [ebp - 4], edx
mov ebx, edx
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x43f5ec
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00485705
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x43f609
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x43f71d
jmp 0x43f629
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x43f638
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x43f64f
mov ebx, 0x404
cmp byte [esi], 0
je 0x43f674
cmp byte [esi + 1], 0
je 0x43f71d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x43f677
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x43f6a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f69b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x43f6c9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x43f6b1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00489130
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x43f71d
lea eax, [ebx - 3]
test eax, eax
js 0x43f70b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x43f6ff
cmp byte [eax + ecx + 1], 0x4b
jne 0x43f6ff
cmp byte [eax + ecx + 2], 5
jne 0x43f6ff
cmp byte [eax + ecx + 3], 6
je 0x43f705
test eax, eax
jns 0x43f6e0
jmp 0x43f70b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43f71d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x43f620
mov eax, dword [ebp - 0x10]
push eax
call fcn.00484dfe
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret