joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1d50
Capabilities:
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee4
mov esi, edx
mov edi, eax
lea ebp, [esp + 0x1a]
xor ebx, ebx
mov dword [esp], 0x10
push esp
lea eax, [esp + 0xe]
push eax
mov eax, dword [edi + 4]
push eax
call sub.ws2_32.dll_getsockname
mov byte [ebp], 5
mov byte [ebp + 1], 3
mov byte [ebp + 2], 0
mov byte [ebp + 3], 1
lea edx, [esp + 0xe]
lea eax, [ebp + 4]
mov ecx, 4
call fcn.00407678
lea edx, [esp + 0xc]
lea eax, [ebp + 8]
mov ecx, 2
call fcn.00407678
push 0
push 0xa
push ebp
push esi
call sub.ws2_32.dll_send
mov eax, ebp
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403178
push 0
push pe_nt_image_headers32
push ebp
push esi
call sub.ws2_32.dll_recv
cmp byte [ebp], 5
je 0x4d1ddf
cmp byte [ebp + 1], 0
jne 0x4d1e19
lea edx, [ebp + 4]
lea eax, [esp + 4]
mov ecx, 4
call fcn.00407678
lea edx, [ebp + 8]
lea eax, [esp + 8]
mov ecx, 2
call fcn.00407678
mov word [edi + 0x5c], 2
mov ax, word [esp + 8]
mov word [edi + 0x5e], ax
mov eax, dword [esp + 4]
mov dword [edi + 0x60], eax
mov bl, 1
mov eax, ebx
add esp, 0x11c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov word [ebp - 0x414], 2
mov eax, dword [ebp + 8]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0x412], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x404]
xor ecx, ecx
mov edx, 0x3ff
call fcn.00403178
mov byte [ebp - 0x404], 0
mov byte [ebp - 0x403], 0
mov byte [ebp - 0x402], 0
mov byte [ebp - 0x401], 1
lea edx, [ebp - 0x410]
lea eax, [ebp - 0x400]
mov ecx, 4
call fcn.00407678
lea edx, [ebp - 0x412]
lea eax, [ebp - 0x3fc]
mov ecx, 2
call fcn.00407678
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x3fa]
mov ecx, esi
call fcn.00407678
push 0x10
lea eax, [ebx + 0x5c]
push eax
push 0
add esi, 0xa
jno 0x4d1edc
call fcn.004037ec
push esi
lea eax, [ebp - 0x404]
push eax
push edi
call sub.ws2_32.dll_sendto
cmp eax, 0xffffffff
jne 0x4d1f20
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0
lea eax, [ebp - 0x41c]
push eax
push 0
mov ecx, 0x4d1f34
mov dl, 1
mov eax, dword [0x407cb4]
call fcn.0040ca78
call fcn.00404060
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d1f4c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x404]
xor ecx, ecx
mov edx, 0x400
call fcn.00403178
mov word [ebp - 0x414], 2
mov eax, dword [ebp + 8]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0x412], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x410], eax
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push ebx
lea eax, [ebp - 0x404]
push eax
push esi
call sub.ws2_32.dll_recvfrom
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d1fed
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0
lea eax, [ebp - 0x41c]
push eax
push 0
mov ecx, 0x4d20b0
mov dl, 1
mov eax, dword [0x407cb4]
call fcn.0040ca78
call fcn.00404060
cmp byte [ebp - 0x404], 0
je 0x4d200a
mov ecx, 0x296
mov edx, 0x4d20d0
mov eax, 0x4d2114
call fcn.00404640
cmp byte [ebp - 0x403], 0
je 0x4d2027
mov ecx, 0x297
mov edx, 0x4d20d0
mov eax, 0x4d2114
call fcn.00404640
cmp byte [ebp - 0x402], 0
je 0x4d2044
mov ecx, 0x298
mov edx, 0x4d20d0
mov eax, 0x4d2114
call fcn.00404640
cmp byte [ebp - 0x401], 1
je 0x4d2061
mov ecx, 0x299
mov edx, 0x4d20d0
mov eax, 0x4d2114
call fcn.00404640
lea edx, [ebp - 0x400]
lea eax, [ebp - 0x410]
mov ecx, 4
call fcn.00407678
lea edx, [ebp - 0x3fc]
lea eax, [ebp - 0x412]
mov ecx, 2
call fcn.00407678
lea edx, [ebp - 0x3fa]
mov eax, edi
mov ecx, ebx
call fcn.00407678
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f3ef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb1000]
push edi
jmp 0x4f3f0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f3f11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f3f00
mov eax, 1
add ebx, ebx
jne 0x4f3f23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f3f34
jne 0x4f3f53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f3f53
dec eax
add ebx, ebx
jne 0x4f3f40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f3f18
add ebx, ebx
jne 0x4f3f4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f3fa5
xor ecx, ecx
sub eax, 3
jb 0x4f3f6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f3fda
sar eax, 1
mov ebp, eax
jmp 0x4f3f76
add ebx, ebx
jne 0x4f3f76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f3f44
inc ecx
add ebx, ebx
jne 0x4f3f84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f3f44
add ebx, ebx
jne 0x4f3f91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f3f86
jne 0x4f3fa2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f3f86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f3fc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f3fb6
jmp 0x4f3f06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f3fc4
add edi, ecx
jmp 0x4f3f06
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f3fe2
cmp byte [edi], 0x13
jne 0x4f3fe2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f3fe7
lea edi, [esi + 0xef000]
mov eax, dword [edi]
or eax, eax
je 0x4f405f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x136d14]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x136e68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f4014
mov ecx, edi
jns 0x4f4043
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x136e6c]
or eax, eax
je 0x4f4059
mov dword [ebx], eax
add ebx, 4
jmp 0x4f4031
call dword [esi + 0x136e7c]
mov ebp, dword [esi + 0x136e70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f4093
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x4019d7
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call fcn.00401e30
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401851
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [esp], 0xffffffff
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret

Function at 0x401b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401b46
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401bda
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401b95
cmp eax, 0x40
je 0x401b95
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401b39
cmp eax, 0x40
je 0x401b39
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401b39
mov dword [esp + 8], 0x34
mov dword [esp + 4], 0x404054
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sub.msvcrt.dll__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x402190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439c70
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x443040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0x30
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call sub.VCRUNTIME140.dll_memset
lea edi, [esi + 0x40]
add esp, 0xc
lea eax, [edi + 0x10]
mov dword [ebp - 0x10], edi
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x402288
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x10]
call fcn.0041bf60
lea eax, [edi + 0x10]
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [edi + 0x2c], 0
mov eax, esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x88], 0
movups xmmword [esi + 0x78], xmm0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404c30
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 0x404c91
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x404c74
cmp edi, 2
jb 0x404c74
cmp byte [esi], cl
jne 0x404c74
cmp byte [esi + 1], cl
jne 0x404c74
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43c568]
jmp 0x404c45
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x43c568]
test edi, edi
jne 0x404c45
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x404cc0
cmp cl, 0x23
jne 0x404ca7
cmp byte [esi], cl
jne 0x404ca7
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 + 0x43c568]
test cl, cl
jne 0x404c98
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x404e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x404e63
mov dword [ebx], 0
mov edx, 0x43c118
call fcn.00404cd0
mov esi, eax
test esi, esi
je 0x404f82
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 + 8], eax
cmp eax, 0xffffffff
je 0x404f78
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 0x404f78
push esi
call edi
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x404f78
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x404f78
mov ecx, edi
call fcn.00408a00
mov dword [ebp + 8], eax
test eax, eax
je 0x404f78
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x404f61
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [0x4434a8]
add esp, 4
test ecx, ecx
je 0x404f4e
movsx edx, word [ecx + 0x6024]
lea eax, [ecx + 0x6028]
mov esi, dword [ecx + 0x3f70]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x404f44
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x6024], ax
cwde
add eax, 0xc05
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x6020]
push dword [ebp + 8]
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
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x404f70
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
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
pop ebp
ret
Function at 0x40b9e0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40ba1d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40ba03
cmp byte [esi], bl
jne 0x40ba03
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x43c568]
test bl, bl
jne 0x40b9f4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040b980
Function at 0x411d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xf4]
mov ebx, dword [edi + 0xfc]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43c568]
sub esi, 1
jne 0x411d90
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x4040], ebx
jne 0x411dc7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0041b3d0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438ad0
mov esp, ebp
pop ebp
ret 4
Function at 0x419d70
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 + 0x5f6c], 0
lea esi, [edi + 0x5f70]
je 0x419df2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x419dac
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.0041c290
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004053f0
mov edx, dword [esi]
mov ecx, 0x4434a4
push dword [edi + 0x5f6c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5f78]
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.004053f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a200
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x4434a8]
test bl, bl
je 0x41a246
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41a227
cmp byte [esi], bl
jne 0x41a227
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x43c568]
test bl, bl
jne 0x41a218
mov edi, dword [0x4434a8]
mov ecx, dword [edi + 0x5f0c]
not eax
mov edx, dword [edi + 0x5f14]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x41a26d
cmp dword [edx + 4], eax
je 0x41a270
add edx, 0x24
cmp edx, ecx
jne 0x41a261
xor eax, eax
ret
mov eax, edx
ret
Function at 0x42cf40
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4434a8]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42d0f1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x42d0f1
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x4434a8]
add esp, 4
mov edi, eax
test esi, esi
je 0x42cfe3
movsx edx, word [esi + 0x6024]
lea eax, [esi + 0x6028]
mov ecx, dword [esi + 0x3f70]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x42cfd9
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x6024], ax
cwde
add eax, 0xc05
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x601c]
test edi, edi
je 0x42cff6
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x42cff8
xor edi, edi
or dword [ebx + 0xc], 6
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x70], str.imgui_impl_win32
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x42d033
mov esi, dword [esi + 0x78]
jmp 0x42d035
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42d058
mov dword [esi], eax
mov eax, dword [0x4434a8]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4acc]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x28], eax
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x42d0bf
inc esi
cmp esi, 5
jl 0x42d096
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438ad0
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438ad0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438ad0
mov esp, ebp
pop ebp
ret
Function at 0x43959f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4395de
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4395de
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4395de
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4395de
cmp dword [ecx + 0x74], 0xe
jbe 0x4395de
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4050a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
test esi, esi
jne 0x4050b8
push 2
push edi
call sub.MFC42.DLL_AfxFindResourceHandle
mov esi, eax
mov eax, edi
push 2
and eax, 0xffff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4050d0
pop edi
pop esi
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4050df
pop edi
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4050ed
pop edi
pop esi
ret
push eax
call fcn.00405060
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x405105
and eax, 0xffff
mov dword [ecx], eax
push edi
push esi
call dword [sym.imp.USER32.dll_LoadBitmapA]
pop edi
pop esi
ret

Function at 0x4059c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
pop edi
jae 0x405a46
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4059fe
call fcn.00405aa0
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x405a13
mov eax, 5
add esp, 0x94
ret
cmp eax, 5
jne 0x405a2c
mov eax, dword [esp + 8]
test eax, eax
jne 0x405a2e
mov eax, 6
add esp, 0x94
ret
jb 0x405a3a
mov eax, 7
add esp, 0x94
ret
mov eax, 1
add esp, 0x94
ret
cmp al, 4
jae 0x405a53
xor eax, eax
add esp, 0x94
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x405a67
call fcn.00405aa0
cmp dword [esp + 4], 4
jne 0x405a8d
mov eax, dword [esp + 8]
cmp eax, 0xa
jne 0x405a83
mov eax, 3
add esp, 0x94
ret
cmp eax, 0x5a
mov eax, 4
je 0x405a92
mov eax, 2
add esp, 0x94
ret

Function at 0x406300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4177c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x41a368
xor edi, edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 0xffffffff
call fcn.0041688c
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1c], 0x41a41c
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi], 0x41a3e0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret