joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1974
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x4f197d
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
push esi
mov ebx, edx
mov esi, eax
lea eax, [ebp - 0x8010]
push eax
mov eax, ebx
call fcn.00404df4
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x4f1a42
mov dword [ebp - 0x8014], 1
mov dword [ebp - 0x8008], 2
xor ebx, ebx
lea eax, [ebp - 0x8004]
push eax
lea eax, [ebp - 0x8000]
push eax
push 0x10
lea eax, [ebp - 0x8014]
push eax
push 0
push esi
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0x4f1a42
lea eax, [ebp - 0x8004]
push eax
push 0x8000
lea eax, [ebp - 0x8000]
push eax
push 3
push esi
call sub.advapi32.dll_GetTokenInformation
mov esi, dword [ebp - 0x8000]
dec esi
test esi, esi
jl 0x4f1a42
inc esi
lea ecx, [ebp - 0x7ffc]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0x800c]
jne 0x4f1a3c
cmp eax, dword [ebp - 0x8010]
jne 0x4f1a3c
cmp dword [ecx + 8], 2
jne 0x4f1a3c
mov bl, 1
add ecx, 0xc
dec esi
jne 0x4f1a1f
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f1ea8
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff8c
mov edi, edx
mov esi, eax
lea ebx, [esp + 4]
lea eax, [esp + 0x20]
xor ecx, ecx
mov edx, 0x44
call fcn.00403168
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 0x41
mov word [esp + 0x50], di
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, esi
call fcn.00404df4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4f1f5e
jmp 0x4f1f20
cmp dword [ebx + 4], 0x12
jne 0x4f1f14
mov eax, dword [ebx + 8]
call fcn.004048a8
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4f1f06
push esp
mov eax, dword [esp + 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [esp], 0x103
je 0x4f1f20
mov eax, dword [esp + 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4f1f60
xor eax, eax
add esp, 0x74
pop edi
pop esi
pop ebx
ret
Function at 0x4f34e4
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f363f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0044cabc
mov edi, eax
lea edx, [ebp - 8]
mov eax, edi
call fcn.00409244
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004b4778
lea eax, [ebp - 8]
call fcn.004ecac8
mov byte [ebx + 0x314], 1
mov byte [ebx + 0x31c], 0
mov edx, esi
mov eax, 0x4f3658
call fcn.00409810
mov edi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404bfc
mov ecx, eax
lea edx, [edi + 1]
mov eax, esi
call fcn.00404e54
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x304]
call fcn.0044641c
xor edx, edx
mov eax, dword [ebx + 0x308]
call fcn.0044641c
mov dl, 1
mov eax, dword [0x4f3248]
call fcn.00403b24
mov edi, eax
mov dword [ebx + 0x318], edi
mov dword [edi + 0xc], ebx
mov dword [edi + 8], 0x4f365c
mov eax, ebx
call fcn.00463ab8
mov eax, dword [0x530968]
mov eax, dword [eax]
call fcn.0046705c
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x4f35b6
sub eax, 0xfffffff0
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404df4
push eax
mov eax, esi
call fcn.00404df4
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
jne 0x4f35e2
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00404998
jmp 0x4f35f2
mov eax, dword [ebp - 8]
call fcn.004097c8
mov eax, dword [ebp + 8]
call fcn.00404944
mov eax, dword [ebx + 0x318]
call fcn.00403b54
xor edx, edx
mov eax, dword [ebx + 0x2f0]
call fcn.0049a524
xor edx, edx
mov eax, dword [ebx + 0x2f4]
call fcn.004903cc
xor edx, edx
mov eax, dword [ebx + 0x2f8]
call fcn.004a661c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3646
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404968
ret

Function at 0x4f3aa4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f3b63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.00404df4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x4f3af0
test eax, eax
jne 0x4f3b4d
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404f80
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00404e4c
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.00404df4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 8], 3
je 0x4f3b28
cmp dword [ebp - 8], 4
jne 0x4f3b4d
cmp dword [ebp - 0xc], 4
jle 0x4f3b35
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
call fcn.00404e4c
lea edx, [ebp - 4]
mov ecx, dword [ebp - 0xc]
call fcn.004029cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3b6a
lea eax, [ebp - 0x10]
call fcn.00404944
ret
Function at 0x4f4bbc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f4c25
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0x4f4c3c
push ebx
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404cbc
mov ebx, 0x12aa
mov eax, dword [ebp - 4]
call fcn.00404bfc
test eax, eax
jle 0x4f4c0f
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
shl ebx, 5
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4f4bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4c2c
lea eax, [ebp - 4]
call fcn.00404944
ret

Function at 0x4f5f30
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x4f60c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [esi + 0x344], eax
mov eax, esi
call fcn.004b4778
mov eax, esi
call fcn.004b57dc
mov edx, dword [esi + 0x30c]
mov eax, dword [esi + 0x24c]
call fcn.004ad3e4
mov edx, dword [esi + 0x310]
mov eax, dword [esi + 0x24c]
call fcn.004ad538
mov dl, 1
mov eax, dword [0x486684]
call fcn.004867e0
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.00486878
mov eax, dword [ebx + 0x10]
mov edx, 0x4f60d8
call fcn.00404d40
jne 0x4f5fe3
lea ecx, [ebp - 0x14]
mov edx, 0x4f6124
mov eax, ebx
call fcn.00486f40
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004ec1a4
mov edx, dword [ebp - 0x10]
lea eax, [esi + 0x340]
call fcn.00404998
jmp 0x4f6037
xor ecx, ecx
mov edx, 0x4f60d8
mov eax, ebx
call fcn.004868e0
test al, al
je 0x4f601f
lea ecx, [ebp - 0x1c]
mov edx, 0x4f6124
mov eax, ebx
call fcn.00486f40
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004ec1a4
mov edx, dword [ebp - 0x18]
lea eax, [esi + 0x340]
call fcn.00404998
jmp 0x4f6037
mov edx, dword [0x53071c]
mov edx, dword [edx]
lea eax, [esi + 0x340]
mov ecx, 0x4f6134
call fcn.00404c48
mov eax, ebx
call fcn.00403b54
mov eax, dword [esi + 0x2ec]
mov eax, dword [eax + 0x168]
call fcn.0042666c
push eax
mov eax, dword [esi + 0x2f0]
mov eax, dword [eax + 0x168]
call fcn.0042666c
pop edx
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, 1
mov ebx, dword [0x5307a8]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
mov edx, edi
mov eax, esi
call fcn.004f61fc
mov edx, dword [ebx]
mov eax, dword [ebp - 0xc]
call fcn.0044641c
inc edi
add ebx, 4
cmp edi, 0x19
jne 0x4f6072
mov edx, 0x4f6158
mov eax, dword [esi + 0x22c]
call fcn.0044641c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f60c7
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404968
ret
Function at 0x4faf5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4fafad
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4faf94
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4faf84
jmp 0x4fafad
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4faf95
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50a510
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x530968]
mov eax, dword [eax]
call fcn.00466b44
push 0
mov eax, dword [0x530968]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov dl, 1
mov eax, dword [ebx + 0x238]
call fcn.004b1ad8
cmp byte [ebx + 0x268], 0
jne 0x50a562
push 1
push 0x3c
mov ecx, 0x50a594
mov edx, 0x50a5f4
mov eax, dword [ebx + 0x238]
call fcn.004b1eb0
jmp 0x50a57b
push 1
push 0x3c
mov edx, 0x50a5f4
mov ecx, 0x50a60c
mov eax, dword [ebx + 0x238]
call fcn.004b1eb0
mov eax, dword [0x530968]
mov eax, dword [eax]
call fcn.0046705c
pop ebx
ret

Function at 0x50adcc
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x50ade5
push 9
push esi
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
jne 0x50adf5
mov bl, 1
jmp 0x50aee2
mov eax, dword [0x530b58]
cmp dword [eax], 2
jne 0x50ae09
mov eax, dword [0x5307c4]
cmp dword [eax], 4
jg 0x50ae3d
mov eax, dword [0x530b58]
cmp dword [eax], 1
jne 0x50aecc
mov eax, dword [0x5307c4]
cmp dword [eax], 4
jg 0x50ae3d
mov eax, dword [0x5307c4]
cmp dword [eax], 4
jne 0x50aecc
mov eax, dword [0x5309c4]
cmp dword [eax], 0
jle 0x50aecc
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov ebp, eax
push 0xffffffffffffffff
push edi
push ebp
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x50ae84
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push edi
push ebp
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x50aed8
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoA
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [esp + 4]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
jmp 0x50aed8
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x517a38
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push ebx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x517a6a
push ebx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 4
je 0x517a6a
push ebx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
je 0x517a6a
push ebx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
jne 0x517a7b
mov ecx, 2
xor edx, edx
mov eax, esi
call fcn.0047a6b8
pop esi
pop ebx
ret
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.0047a6b8
pop esi
pop ebx
ret
Function at 0x51edf4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404de4
xor eax, eax
push ebp
push 0x51ee8b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x51ee23
xor ebx, ebx
jmp 0x51ee70
mov edx, dword [ebp - 4]
mov eax, 0x51eea4
call fcn.00404f38
mov ebx, eax
test ebx, ebx
je 0x51ee61
lea eax, [ebp - 8]
push eax
mov edx, ebx
dec edx
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.00404e54
mov eax, dword [ebp - 8]
call fcn.00404df4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x51ee61
mov bl, 1
jmp 0x51ee70
mov edx, dword [ebp - 4]
mov eax, dword [0x5320b0]
call fcn.00528f7c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ee92
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404968
ret
Function at 0x51fdd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push 0
mov eax, dword [0x530968]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x530968]
mov eax, dword [eax]
mov ebx, dword [eax + 0x30]
push ebx
call sub.user32.dll_GetWindowLongA
and eax, 0xfffbffff
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x530968]
push ebx
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x530968]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x520b28
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404de4
xor eax, eax
push ebp
push 0x520c95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x530968]
mov eax, dword [eax]
call fcn.0046705c
cmp dword [ebp - 4], 0
jne 0x520b68
mov bl, 1
jmp 0x520c7a
lea eax, [ebp - 8]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404e54
mov eax, dword [ebp - 8]
mov edx, 0x520cac
call fcn.00404d40
jne 0x520b94
mov bl, 1
jmp 0x520c7a
mov edx, dword [ebp - 4]
mov eax, 0x520cb8
call fcn.00404f38
mov ebx, eax
test ebx, ebx
je 0x520bb6
mov eax, dword [ebp - 4]
call fcn.00404bfc
sub eax, ebx
cmp eax, 3
jge 0x520bd6
mov edx, dword [ebp - 4]
mov eax, 0x520cc4
call fcn.00404f38
mov ebx, eax
inc ebx
cmp ebx, 1
jne 0x520c55
mov bl, 1
jmp 0x520c7a
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 2]
add al, 0xbf
sub al, 0x1a
jb 0x520bed
add al, 0xfa
sub al, 0x1a
jb 0x520bed
xor eax, eax
jmp 0x520bef
mov al, 1
test al, al
je 0x520c1a
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
dec edx
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.00404e54
mov eax, dword [ebp - 0xc]
call fcn.00404df4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x520c55
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bfc
mov ecx, eax
lea edx, [ebx + 2]
mov eax, dword [ebp - 4]
call fcn.00404e54
mov edx, dword [ebp - 0x10]
mov eax, 0x520cb8
call fcn.00404f38
test eax, eax
je 0x520c4e
inc ebx
add eax, ebx
mov ebx, eax
jmp 0x520ba3
xor ebx, ebx
jmp 0x520ba3
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bfc
mov ecx, eax
mov edx, ebx
dec edx
mov eax, dword [ebp - 4]
call fcn.00404e54
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.005177bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520c9c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404968
ret
Function at 0x528350
Capabilities:
Shutdown system

Disassembly:
push ebx
push ecx
call sub.kernel32.dll_GetCurrentProcess
mov ebx, eax
push esp
push 0x28
push ebx
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x528393
mov edx, 0x5283a8
mov eax, dword [esp]
call fcn.004f1974
test al, al
jne 0x528393
push 0
xor ecx, ecx
mov edx, 0x5283c4
mov eax, 0x5283e8
call fcn.004b4dd8
pop edx
pop ebx
ret
push 0
push 2
call sub.user32.dll_ExitWindowsEx
pop edx
pop ebx
ret

Function at 0x528ff8
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
push edi
push esi
call sub.kernel32.dll_WinExec
mov ebx, eax
cmp ebx, 0x20
jae 0x52902f
mov eax, dword [0x530b40]
cmp byte [eax], 1
jne 0x52902f
call fcn.004ef714
mov ebp, eax
push edi
push esi
call sub.kernel32.dll_WinExec
mov ebx, eax
mov eax, ebp
call fcn.004ef760
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402c90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4b5b4c], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x402d4a
xor ebx, ebx
nop dword [eax]
mov edx, ebx
mov eax, ebx
shr eax, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebx*4 + 0x4b5b48], eax
inc ebx
cmp ebx, 0x100
jb 0x402cb0
mov ebx, dword [ebp + 8]
not ebx
mov eax, ebx
test edi, edi
jle 0x402d76
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x4b5b48]
sub edi, 1
jne 0x402d55
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402da8
nop dword [eax]
cmp cl, 0x23
jne 0x402d8f
cmp byte [esi], cl
jne 0x402d8f
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 + 0x4b5b48]
test cl, cl
jne 0x402d80
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x402ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x402f02
mov dword [edi], 0
mov edx, 0x486c8c
call fcn.00402db0
mov esi, eax
test esi, esi
jne 0x402f16
pop edi
pop esi
pop ebp
ret
push ebx
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 0x402fce
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x402fce
push 0
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 0x402fce
mov eax, dword [0x4b5f50]
test eax, eax
je 0x402f66
inc dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402fce
push esi
push dword [ebp + 8]
push 1
push ebx
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 0x402fb5
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4b5f50]
add esp, 4
test eax, eax
je 0x402fa4
dec dword [eax + 0x394]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x402fc7
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x412380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x4b5f50]
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [edi + 0x2c2c], 0
test eax, eax
je 0x412473
push esi
lea esi, [edi + 0x2c30]
mov dword [edi + 0x2c2c], 0
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x4123d4
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.00413140
mov dword [esi], 0
cmp dword [esi + 4], 0
jne 0x4123e9
push 8
mov ecx, esi
call fcn.00413140
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push ebx
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [esi]
cmp dword [edi + 0x2c3c], 0
jle 0x41242c
xor ebx, ebx
mov eax, dword [edi + 0x2c44]
add eax, ebx
push esi
push eax
push edi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x2c3c]
jl 0x412407
cmp dword [esi + 8], 0
je 0x412437
mov esi, dword [esi]
dec esi
jmp 0x412439
xor esi, esi
mov eax, dword [edi + 0x2c38]
mov ebx, 0x4b5f4c
mov ecx, dword [ebp - 8]
test eax, eax
mov edx, 0x486c90
cmovne ebx, eax
call fcn.00402db0
mov edi, eax
test edi, edi
je 0x412471
push edi
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41f7a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47acb6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x49a080]
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 + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 2
mov eax, 0x3f
mov dword [esi + 4], 0x3f800000
mov word [esi + 0x3c], ax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0041f8f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42ef90
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x49a080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [0x4b6134]
xor ebx, ebx
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f030
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x224
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x42f030
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
nop
mov eax, str.PhysX3CharacterKinematic_x86.dll
lea ecx, [ebp - 0x208]
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42f010
test dl, dl
je 0x42f00c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42f010
add ecx, 2
add eax, 2
test dl, dl
jne 0x42eff0
xor eax, eax
jmp 0x42f015
sbb eax, eax
or eax, 1
test eax, eax
je 0x42f029
lea eax, [ebp - 0x228]
push eax
push esi
call edi
test eax, eax
jne 0x42efe0
jmp 0x42f02f
mov ebx, dword [ebp - 0x214]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00478b79
mov esp, ebp
pop ebp
ret