joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ce0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4272ac]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00402b50
lea eax, [ebp - 0x20]
push eax
call fcn.004043f0
mov ecx, eax
call fcn.00404480
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.00404170
push eax
push 0x420c98
push str.__s__Version_Info:__s
call fcn.00402cc0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00404150
push 0x403910
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x420cb8
push str.__s__Create_thread_for_connecting_device
call fcn.00402cc0
add esp, 8
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0x401950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4291f0], eax
cmp dword [0x4291f0], 0
jne 0x403d81
push 0x420cec
push str.__s__Error__Create_connecting_device_thread_failure_
call fcn.00402cc0
add esp, 8
jmp 0x403dca
push 0x420d2c
push str.__s__Create_thread_for_monitoring_RNDIS_interface
call fcn.00402cc0
add esp, 8
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0x401080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4291ec], eax
cmp dword [0x4291ec], 0
jne 0x403dca
push str.SvcInit
push str.__s__Error__Create_monitoring_network_thread_failure_
call fcn.00402cc0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c30d
mov esp, ebp
pop ebp
ret
Function at 0x403e20
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4272ac]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x403e50
jmp 0x403f89
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x403e73
jmp 0x403f89
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.Internet_Pass_Through_Service
push 0x420de4
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x403ec7
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x403f89
mov dword [ebp - 0x228], str.Detect_HTC_Android_device_for_internet_pass_through_function.
lea ecx, [ebp - 0x228]
push ecx
push 1
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov dword [ebp - 0x14], 0xe10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 4
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x244], 0x3e8
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x23c], 0x3e8
mov dword [ebp - 0x238], 1
mov dword [ebp - 0x234], 0x3e8
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0x3e8
lea eax, [ebp - 0x248]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push ecx
push 2
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040c30d
mov esp, ebp
pop ebp
ret
Function at 0x403fa0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4272ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x10], 0x7530
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403fdd
jmp 0x4040a3
push 0x10024
push 0x420e84
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404009
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4040a3
lea edx, [ebp - 8]
push edx
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x404027
jmp 0x404085
lea edx, [ebp - 0x38]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40403f
jmp 0x404085
cmp dword [ebp - 0x34], 1
je 0x404085
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 8]
push edx
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x40406b
jmp 0x404085
cmp dword [ebp - 0x34], 1
jne 0x404073
jmp 0x404085
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x10]
jbe 0x404083
jmp 0x404085
jmp 0x40403f
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c30d
mov esp, ebp
pop ebp
ret

Function at 0x4040c0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4040e0
jmp 0x404145
push 0xf01ff
push str.PassThru_Service
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404109
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404145
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x404131
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404145
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret
Function at 0x405bf0
Capabilities:
Get local ipv4 addresses
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0x3a98
mov eax, dword [ebp - 4]
push eax
push 0
mov dword [esi + 8], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 8], eax
test eax, eax
je 0x405c4c
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 6
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x405c68
mov edx, dword [esi + 8]
push edx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x405c06
mov eax, dword [esi]
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__Error__Memory_allocation_failed_for_IP_ADAPTER_ADDRESS_struct.
call eax
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
test edi, edi
jne 0x405cdf
mov edi, dword [esi + 8]
test edi, edi
je 0x405c8e
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x24]
push ecx
push edx
call fcn.00403a80
add esp, 8
test eax, eax
jne 0x405cb3
mov edi, dword [edi + 8]
test edi, edi
jne 0x405c73
mov eax, dword [esi + 8]
test eax, eax
je 0x405ca8
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 8], 0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__Find_HTC_description_adapter_connection.
call eax
add esp, 8
push str.Find_HTC_description_adapter_connection.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
push edi
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__Error__Call_to_GetAdapterAddresses_failed_with_error:__d
call edx
add esp, 0xc
cmp edi, 0xe8
jne 0x405d0c
mov eax, dword [esi]
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__No_addresses_were_found_for_the_requested_parameters
call eax
add esp, 8
jmp 0x405c8e
push 0
push 0
lea ecx, [ebp + 8]
push ecx
push 0x400
push edi
push 0
push 0x1300
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x405c8e
mov edx, dword [ebp + 8]
mov eax, dword [esi]
push edx
push str.htc::IPTNetworkHelper::NetworkHelper::CreateAdapterAddressesHeapByDescription
push str.__s__Error___tError:__s
call eax
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi + 8]
test esi, esi
je 0x405ca8
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c30d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4272ac]
jne 0x40c317
repz ret
jmp fcn.00410f23

Function at 0x4152ee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x415315
call fcn.0040ed70
mov dword [eax], esi
call fcn.0040ed5d
push 0x16
pop esi
mov dword [eax], esi
call fcn.00411335
mov eax, esi
jmp 0x41536a
test dword [ebp + 0xc], 0xfffffff9
jne 0x4152fb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415342
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ed83
pop ecx
call fcn.0040ed5d
mov eax, dword [eax]
jmp 0x41536a
test al, 0x10
jne 0x415368
test al, 1
je 0x415368
test byte [ebp + 0xc], 2
je 0x415368
call fcn.0040ed70
mov dword [eax], 5
call fcn.0040ed5d
mov dword [eax], 0xd
jmp 0x415339
xor eax, eax
pop esi
pop ebp
ret
Function at 0x418fc4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.004149b1
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x418f6e
or dword [edi + 8], 0x104
jmp 0x419031
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x418f8f
cmp byte [eax], 0
je 0x418f8f
push ebx
push 0x16
push 0x420340
call fcn.004189bb
add esp, 0xc
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x418ff4
cmp byte [eax], 0
je 0x418ff4
mov eax, dword [ebx]
test eax, eax
je 0x418fb2
cmp byte [eax], 0
je 0x418fb2
mov esi, edi
call fcn.00418ea5
jmp 0x418fb9
mov esi, edi
call fcn.00418f0c
cmp dword [edi + 8], 0
jne 0x419047
push edi
push 0x40
push 0x420138
call fcn.004189bb
add esp, 0xc
test eax, eax
je 0x41903d
mov ebx, dword [ebx]
test ebx, ebx
je 0x418feb
cmp byte [ebx], 0
je 0x418feb
mov esi, edi
call fcn.00418ea5
jmp 0x41903d
mov esi, edi
call fcn.00418f0c
jmp 0x41903d
mov ebx, dword [ebx]
test ebx, ebx
je 0x41902a
cmp byte [ebx], 0
je 0x41902a
push ebx
call fcn.00413dc0
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x418b12
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x41903d
and dword [edi + 8], 0
jmp 0x41903d
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x419132
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.00418a1d
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x419132
cmp esi, 0xfde8
je 0x419132
cmp esi, 0xfde9
je 0x419132
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x419132
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x419132
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4190be
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x41912d
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x4190f5
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.00413d5c
add esp, 0xc
test eax, eax
je 0x419106
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004112e3
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x419132
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x419132
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.0041c63c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x419134
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10003270
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x100032d1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100032b4
cmp edi, 2
jb 0x100032b4
cmp byte [esi], cl
jne 0x100032b4
cmp byte [esi + 1], cl
jne 0x100032b4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1003f600]
jmp 0x10003285
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1003f600]
test edi, edi
jne 0x10003285
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10003300
cmp cl, 0x23
jne 0x100032e7
cmp byte [esi], cl
jne 0x100032e7
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1003f600]
test cl, cl
jne 0x100032d8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10003410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10003424
mov dword [ebx], 0
mov edx, 0x1003f458
call fcn.10003310
mov esi, eax
test esi, esi
je 0x10003512
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10003508
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10003508
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x10003508
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10003508
mov eax, dword [0x100d3d18]
test eax, eax
je 0x1000349c
inc dword [eax + 0x370]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10003508
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x100034ed
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100d3d18]
add esp, 4
test eax, eax
je 0x100034da
dec dword [eax + 0x370]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x100034ff
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009310
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1000934f
cmp bl, 0x23
jne 0x10009331
cmp byte [esi], bl
jne 0x10009331
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x1003f600]
test bl, bl
jne 0x10009322
mov ecx, dword [0x100d3d18]
not eax
mov esi, dword [ecx + 0x1b84]
mov edi, dword [ecx + 0x1b8c]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000938e
nop word [eax + eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x10009388
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000938a
mov esi, edx
test esi, esi
jne 0x10009370
cmp edi, ebx
je 0x1000939d
cmp dword [edi], eax
jne 0x1000939d
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1000ee80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100d3d18]
push ebx
mov dword [ebp - 8], ecx
push esi
mov ebx, dword [eax + 0x1b9c]
lea esi, [ebp - 8]
push edi
mov edi, 4
mov ecx, dword [ebx + 0xc4]
mov eax, dword [ebx + 0xcc]
mov eax, dword [eax + ecx*4 - 4]
not eax
nop dword [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1003f600]
sub edi, 1
jne 0x1000eec0
not eax
lea ecx, [ebx + 0xc4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10014ad0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c6ff
mov esp, ebp
pop ebp
ret
Function at 0x100136d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2eec], 0
lea esi, [edi + 0x2ef0]
je 0x10013752
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001370c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10015080
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10003840
mov edx, dword [esi]
mov ecx, 0x100d3d14
push dword [edi + 0x2eec]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2ef8]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10003840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001d610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001d64a
mov eax, dword [0x100d3d18]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1001d63d
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1001d67b
mov eax, dword [0x100d3d18]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1001d66e
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1001d6ac
mov eax, dword [0x100d3d18]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1001d69f
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1001d6f9
mov eax, dword [0x100d3d18]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1001d6ec
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1001d72a
mov eax, dword [0x100d3d18]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1001d71d
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1001d75b
mov eax, dword [0x100d3d18]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1001d74e
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1001fdd0
Function at 0x10025910
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1004600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x100d3d18]
lea eax, [ebp - 0x30]
push esi
push edi
push eax
push dword [0x100d3f10]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
movd xmm1, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x18]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x18]
mov ecx, edi
sub ecx, dword [0x100d3f18]
mov esi, dword [ebp - 0x14]
mov edx, esi
sbb edx, dword [0x100d3f1c]
call fcn.1003d6b0
mov edx, dword [0x100d3f24]
mov ecx, dword [0x100d3f20]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 8], xmm0
call fcn.1003d6b0
movss xmm1, dword [ebp - 8]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x100d3f1c], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x100d3f18], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xfc], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xfd], al
call esi
mov esi, dword [0x100d3d18]
shr eax, 0xf
and al, 1
mov byte [ebx + 0xff], 0
mov byte [ebx + 0xfe], al
cmp byte [esi + 0x357], 0
je 0x10025a48
cvttss2si eax, dword [esi + 0xe4]
mov dword [ebp - 0xc], eax
cvttss2si eax, dword [esi + 0xe8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [0x100d3f10]
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x10025a48
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe4], 0xff7fffff
mov dword [esi + 0xe8], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x10025abe
mov ecx, dword [0x100d3f10]
cmp eax, ecx
je 0x10025a7c
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x10025abe
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10025abe
lea eax, [ebp - 0x20]
push eax
push dword [0x100d3f10]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10025abe
movd xmm0, dword [ebp - 0x20]
movd xmm1, dword [ebp - 0x1c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe4], xmm0
movss dword [esi + 0xe8], xmm1
cmp byte [ebx + 0xb0], 0
je 0x10025acc
or eax, 0xffffffff
jmp 0x10025ad7
mov eax, dword [0x100d3d18]
mov eax, dword [eax + 0x1e40]
cmp dword [0x100d38a4], eax
je 0x10025ae9
mov dword [0x100d38a4], eax
call fcn.10025540
call fcn.10025670
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c6ff
mov esp, ebp
pop ebp
ret
Function at 0x10033240
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0xc], 0x100000
push esi
push edi
mov edi, edx
je 0x100332b0
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x10033288
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x1003326f
cmp byte [esi], cl
jne 0x1003326f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1003f600]
test cl, cl
jne 0x10033260
mov ecx, dword [0x100d3d18]
not eax
cmp dword [ecx + 0x1bd4], eax
jne 0x1003329e
mov dword [ecx + 0x1bd8], eax
cmp dword [ecx + 0x1c0c], eax
jne 0x100332f5
pop edi
mov byte [ecx + 0x1c10], 1
pop esi
ret
mov esi, dword [0x100d3d18]
xor edx, edx
mov eax, dword [esi + 0x1b9c]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xcc]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.10003270
add esp, 4
cmp dword [esi + 0x1bd4], eax
jne 0x100332e6
mov dword [esi + 0x1bd8], eax
cmp dword [esi + 0x1c0c], eax
jne 0x100332f5
mov byte [esi + 0x1c10], 1
pop edi
pop esi
ret