joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d1c8ef8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x6d1c8f07
pop dword [ebp - 0x20]
mov eax, 0x13c200ef
add eax, 0x595a8e18
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xe1e98ec5
add dword [ebp - 0x30], 0x6c68b686
mov dword [ebp - 0x2c], 0x3724980d
sub dword [ebp - 0x2c], 0x4f14bc8
mov dword [ebp - 0x28], 0x80c9d052
sub dword [ebp - 0x28], 0x347d8c24
mov dword [ebp - 0x24], 0xac5bace3
add dword [ebp - 0x24], 0x53a4531d
lea eax, [ebp - 0x30]
push eax
mov eax, 0xf8afd88d
sub eax, 0x8b932871
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2b46d4c2
sub dword [ebp - 0x30], 0xb6d46b6c
mov dword [ebp - 0x2c], 0x327637ba
add dword [ebp - 0x2c], 0xef629bb
mov dword [ebp - 0x28], 0xb184723
add dword [ebp - 0x28], 0x58572549
mov dword [ebp - 0x24], 0x49d0f25d
add dword [ebp - 0x24], 0xb62f0da3
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xddb9bf09
add eax, 0x8f62f10f
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x359cc
push 0
call eax
mov ecx, 0x973ce10b
sub ecx, 0x973c9d94
mov edi, eax
mov ebx, 0x33525c99
sub ebx, 0xc6343499
add ebx, dword [ebp - 0x20]
mov edx, 0x34991e60
sub edx, 0xef0d1a81
xor dword [ebp - 8], 0x743c5525
mov esi, dword [ebx]
sub dword [ebp - 0x14], edx
xor esi, edx
xor dword [ebp - 0x14], 0x1a3046f0
mov dword [edi], esi
sub dword [ebp - 0xc], eax
add edi, 0xc96b022
sub edi, 0xc96b01e
add ebx, 0x914b8841
add ebx, 0x6eb477c3
loop 0x6d1c9029
add eax, 0xbe7fb41
sub eax, 0xbe6fa92
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xf71e1955
add ecx, 0x75fce6ab
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x6d1c932c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d1d54cc]
jne 0x6d1c9336
repz ret
jmp fcn.6d1c99bc
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401c66
pop dword [ebp - 0x1c]
mov eax, 0x401c66
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x8bcefad1
add dword [ebp - 0x2c], 0xc2834a7a
mov dword [ebp - 0x28], 0xba9f8481
add dword [ebp - 0x28], 0x7793c7c4
mov dword [ebp - 0x24], 0xe160ba68
sub dword [ebp - 0x24], 0x9514763a
mov dword [ebp - 0x20], 0x1abb0d5c
sub dword [ebp - 0x20], 0x1abb0d5c
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x72fc6028
sub dword [ebp - 0x2c], 0xfe89f6d2
mov dword [ebp - 0x28], 0x54c52115
sub dword [ebp - 0x28], 0x1358bfa0
mov dword [ebp - 0x24], 0x3e4e4ed6
sub dword [ebp - 0x24], 0xdadee26a
mov dword [ebp - 0x20], 0x19a434c0
add dword [ebp - 0x20], 0xe65bcb40
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37a6e
push 0
call eax
mov ecx, 0x4caf
mov ebx, eax
mov edi, 0x407000
add edi, dword [ebp - 0x1c]
mov edx, 0x508c76e0
mov esi, dword [edi]
sub dword [ebp - 8], 0x1843325c
xor esi, edx
add dword [ebp - 0x14], eax
mov dword [ebx], esi
xor dword [ebp - 0x18], 0xf07bdaca
add ebx, 4
add edi, 0x9aae994b
add edi, 0x655166b9
loop 0x401d67
add eax, 0x666e762
sub eax, 0x665c1d3
mov ebx, eax
add eax, 0x3b99b0ea
sub eax, 0x3b99b0e5
mov ecx, 0x9e3c5a77
add ecx, 0x6203a589
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x414ca0
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x42e725
call fcn.0042c599
mov esi, ecx
mov dword [ebp - 0x34], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
jne 0x414cc2
xor eax, eax
jmp 0x414e15
mov eax, dword [esi + 0x24]
mov edx, dword [eax]
test edx, edx
je 0x414cec
mov edi, dword [esi + 0x34]
mov eax, dword [edi]
add eax, edx
cmp edx, eax
jae 0x414cec
dec dword [edi]
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x414e13
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x414e13
cmp dword [esi + 0x3c], 0
jne 0x414d1a
push eax
movsx eax, cl
push eax
call dword [sym.imp.msvcrt.dll_fputc]
pop ecx
pop ecx
cmp eax, ebx
je 0x414e13
mov ebx, dword [ebp + 8]
jmp 0x414e13
push ecx
mov byte [ebp - 0x2d], cl
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004182e5
and dword [ebp - 4], 0
lea eax, [esi + 0x44]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x414d43
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
push dword [ebp - 0x38]
call dword [0x437220]
mov ecx, edi
call dword [esi + 0x14]
test eax, eax
js 0x414e07
cmp eax, 1
jg 0x414de8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x414d8d
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x414dbb
cmp eax, 0x10
jae 0x414d9c
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x34]
push dword [esi + 0x4c]
push edi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x414e07
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x414dbe
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x2d]
mov byte [esi + 0x41], 1
cmp dword [ebp - 0x40], edx
jne 0x414e04
test edi, edi
jne 0x414d37
cmp dword [ebp - 0x18], 0x20
jae 0x414e07
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00418405
jmp 0x414d31
cmp eax, 3
jne 0x414e07
mov eax, dword [ebp - 0x34]
push dword [eax + 0x4c]
movsx eax, byte [ebp - 0x2d]
push eax
call dword [sym.imp.msvcrt.dll_fputc]
pop ecx
pop ecx
cmp eax, ebx
je 0x414e07
mov ebx, dword [ebp + 8]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040e768
mov eax, ebx
call fcn.0042c548
ret 4
Function at 0x414fda
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x42e788
call fcn.0042c599
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
je 0x4150d2
cmp byte [ebx + 0x41], 0
je 0x4150d2
push 0xffffffffffffffff
call fcn.00414ca0
cmp eax, 0xffffffff
jne 0x41500f
xor al, al
jmp 0x4150d4
push ecx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004182e5
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x41502f
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x3c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x44]
mov ecx, dword [esi + 0x18]
push eax
call dword [0x437220]
mov ecx, edi
call dword [esi + 0x18]
sub eax, 0
je 0x415065
sub eax, 1
je 0x415069
dec eax
sub eax, 1
je 0x4150c0
xor bl, bl
jmp 0x4150c2
mov byte [ebx + 0x41], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x415079
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4150a2
cmp eax, 0x10
jae 0x415088
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x415061
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x41], 0
je 0x4150c0
test esi, esi
jne 0x415023
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00418405
jmp 0x41501d
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040e768
mov al, bl
jmp 0x4150d4
mov al, 1
call fcn.0042c548
ret
Function at 0x418150
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x42e725
call fcn.0042c599
mov esi, ecx
mov dword [ebp - 0x34], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x418175
xor eax, eax
jmp 0x4182dd
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4181a1
mov edx, dword [esi + 0x34]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4181a1
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x24]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x4182dd
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4182da
cmp dword [esi + 0x3c], 0
jne 0x4181cd
push eax
push edi
call dword [sym.imp.msvcrt.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x4182da
movzx ebx, di
jmp 0x4182da
push ecx
push ecx
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x30], di
call fcn.004182e5
and dword [ebp - 4], 0
lea eax, [esi + 0x44]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4181f7
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x14]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
call dword [0x437220]
mov ecx, edi
call dword [esi + 0x14]
test eax, eax
js 0x4182ce
cmp eax, 1
jg 0x4182aa
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x418241
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x41826f
cmp eax, 0x10
jae 0x418250
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x34]
push dword [esi + 0x4c]
push edi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4182a2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x418272
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x40], edx
jne 0x41829c
test edi, edi
jne 0x4181eb
cmp dword [ebp - 0x18], 0x20
jae 0x4182a5
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00418405
jmp 0x4181e5
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
movzx ebx, bx
jmp 0x4182cb
cmp eax, 3
jne 0x4182ce
mov eax, dword [ebp - 0x34]
push dword [eax + 0x4c]
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x4182cb
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040e768
mov ax, bx
call fcn.0042c548
ret 4
Function at 0x418456
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x42e788
call fcn.0042c599
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
je 0x418555
cmp byte [ebx + 0x42], 0
je 0x418555
mov esi, 0xffff
push esi
call fcn.00418150
movzx eax, ax
cmp si, ax
jne 0x418492
xor al, al
jmp 0x418557
push ecx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004182e5
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4184b2
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x3c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x44]
mov ecx, dword [esi + 0x18]
push eax
call dword [0x437220]
mov ecx, edi
call dword [esi + 0x18]
sub eax, 0
je 0x4184e8
sub eax, 1
je 0x4184ec
dec eax
sub eax, 1
je 0x418543
xor bl, bl
jmp 0x418545
mov byte [ebx + 0x42], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x4184fc
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x418525
cmp eax, 0x10
jae 0x41850b
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4184e4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x42], 0
je 0x418543
test esi, esi
jne 0x4184a6
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00418405
jmp 0x4184a0
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040e768
mov al, bl
jmp 0x418557
mov al, 1
call fcn.0042c548
ret

Function at 0x4187ca
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x436110]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41882f
cmp dword [ebp - 0x114], 6
ja 0x41882b
jne 0x418824
cmp dword [ebp - 0x110], 2
jae 0x41882b
mov eax, 0x8007047e
jmp 0x418841
xor eax, eax
jmp 0x418841
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x418841
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c400
leave
ret
Function at 0x419ab7
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xc
mov eax, 0x42eecc
call fcn.0042c566
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, ecx
cmp dword [ebp + 0x20], 8
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
jae 0x419ae1
lea eax, [ebp + 0xc]
push ecx
push 0x80
push 3
push ecx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x419bc9
cmp edi, 0xffffffff
je 0x419bc9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x419be7
xor esi, esi
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x419b3e
mov esi, 0x80004005
jmp 0x419be7
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x419b5b
mov esi, 0x80004005
jmp 0x419bdc
mov esi, dword [ebp - 0x14]
push esi
push 0
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push ecx
mov esi, dword [eax]
push ecx
push eax
mov ecx, dword [esi + 0x14]
call dword [0x437220]
call dword [esi + 0x14]
mov esi, eax
test esi, esi
js 0x419bce
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push ecx
push dword [ebp - 0x10]
mov eax, dword [eax]
push edx
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x10]
call dword [0x437220]
call dword [esi + 0x10]
mov esi, eax
test esi, esi
js 0x419bce
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push ecx
push ecx
push ecx
mov eax, dword [eax]
push ecx
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x14]
call dword [0x437220]
call dword [esi + 0x14]
mov esi, eax
jmp 0x419bce
mov esi, 0x80004005
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x419bdc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ebx, ebx
je 0x419be7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x419bf2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040e4cd
mov eax, esi
call fcn.0042c534
ret 0x1c
Function at 0x42c1d3
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x435770
call fcn.0042c958
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x436574
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x42c218
cmp eax, esi
jne 0x42c20b
xor esi, esi
inc esi
mov edi, esi
jmp 0x42c21b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42c1ef
xor esi, esi
inc esi
cmp dword [0x436578], esi
jne 0x42c22d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x42c267
cmp dword [0x436578], ebx
jne 0x42c261
mov dword [0x436578], esi
push 0x40141c
push 0x401410
call fcn.0042c34c
pop ecx
pop ecx
test eax, eax
je 0x42c267
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42c33c
mov dword [0x436124], esi
cmp dword [0x436578], esi
jne 0x42c28a
push 0x40140c
push 0x4013f4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x436578], 2
test edi, edi
jne 0x42c297
xor eax, eax
mov ecx, 0x436574
xchg dword [ecx], eax
cmp dword [0x43657c], 0
je 0x42c2c3
push 0x43657c
call fcn.0042c7b0
pop ecx
test eax, eax
je 0x42c2c3
push ebx
push 2
push ebx
mov esi, dword [0x43657c]
mov ecx, esi
call dword [0x437220]
call esi
push dword [0x436130]
push dword [0x43612c]
push dword [0x436128]
call fcn.0040d66e
add esp, 0xc
mov dword [0x436120], eax
cmp dword [0x436138], 0
jne 0x42c321
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x436124], 0
jne 0x42c335
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x436120]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.005b1000
jmp 0x42c1d3

Function at 0x42c6a4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x435790
call fcn.0042c958
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x42c704
cmp eax, 0xffffffff
je 0x42c704
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x42c6fd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x42c6fd
cmp edx, 0x10000000
jae 0x42c6fd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x42c6fa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42c760
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42c79e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x42c796
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x42c7a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x42c786
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42c870
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x42c8a1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42c8a1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x42c8a1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001f50
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.10012060
mov eax, dword [0x1001b010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push eax
call fcn.1000a373
add esp, 4
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x1000
mov ebx, eax
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.10007980
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x800
push eax
push sym.Rockstar32.dll_Ordinal_101
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1004]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001fc0
sub eax, edx
sar eax, 1
push 4
push 0x1000
lea esi, [eax*2 + 2]
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
mov edi, eax
lea eax, [ebp - 0x1004]
push esi
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005d0e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10002da0
Capabilities:
Accept command line arguments
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.10012060
mov eax, dword [0x1001b010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.10007980
add esp, 0xc
lea eax, [ebp - 0x1004]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x10002e0e
nop dword [eax + eax]
movzx ecx, word [ebp + esi*2 - 0x1004]
push ecx
call fcn.1000a51e
mov word [ebp + esi*2 - 0x1004], ax
add esp, 4
inc esi
cmp esi, edi
jb 0x10002df0
lea eax, [ebp - 0x1004]
push str.steam.exe
push eax
call fcn.1000717a
add esp, 8
test eax, eax
jne 0x10002f74
lea eax, [ebp - 0x1004]
push str.socialclubhelper.exe
push eax
call fcn.1000717a
add esp, 8
test eax, eax
je 0x10002f07
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.__type
push eax
call fcn.1000717a
add esp, 8
test eax, eax
jne 0x10002f74
push str...Social_Club
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.libcef.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.cef_string_utf8_to_utf16
push edi
call esi
push str.cef_string_wide_to_utf16
push edi
mov dword [0x1001c2dc], eax
call esi
push str.cef_string_userfree_utf16_free
push edi
mov dword [0x1001c2d8], eax
call esi
push str.cef_dictionary_value_create
push edi
mov dword [0x1001c2d4], eax
call esi
push str.cef_browser_host_create_browser_sync
push edi
mov dword [0x1001c2e0], eax
call esi
push str.cef_initialize
push edi
mov dword [0x1001c2d0], eax
call esi
push str.cef_browser_host_create_browser
push edi
mov dword [0x1001c2c8], eax
call esi
mov dword [0x1001c2cc], eax
call fcn.100047c0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10004ca0
push 0x100028d0
push 0x1001c2c8
call fcn.10004240
push 0x10002810
push 0x1001c2cc
jmp 0x10002f6a
lea eax, [ebp - 0x1004]
push str.play
push eax
call fcn.1000717a
add esp, 8
test eax, eax
jne 0x10002f4f
lea eax, [ebp - 0x1004]
push str.launcherpatcher.exe
push eax
call fcn.1000717a
add esp, 8
test eax, eax
jne 0x10002f4f
lea eax, [ebp - 0x1004]
push str.launcher.exe
push eax
call fcn.1000717a
add esp, 8
test eax, eax
je 0x10002f74
call fcn.100047c0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10004ca0
push 0x10002c30
push 0x1001c2c0
call fcn.10004240
call fcn.10004820
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10005d0e
mov esp, ebp
pop ebp
ret