joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [esp]
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [section..rdata]
test eax, eax
jne 0x401e93
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esi + 1]
lea eax, [esi + esi]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
call fcn.00401d40
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
je 0x401e1b
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 1
jne 0x401e21
call ebp
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [0x41d00c]
mov edi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401e48
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 1
jne 0x401e4e
call ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
push esi
push eax
push esi
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
call dword [0x41d014]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0xc], 0
je 0x401e8e
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x20]
call dword [0x41d4b4]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x401ea0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x8ac
mov eax, dword [0x42cf18]
xor eax, esp
mov dword [esp + 0x8a8], eax
push ebx
mov ebx, dword [esp + 0x8b4]
push esi
xor esi, esi
cmp ebx, esi
je 0x402019
cmp dword [esp + 0x8c0], esi
je 0x401ef0
push ebx
call fcn.004018e0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x8a8]
xor ecx, esp
call fcn.0041648c
add esp, 0x8ac
ret
push 0x820
lea eax, [esp + 0x92]
push esi
push eax
mov word [esp + 0x98], si
call sub.MSVCR80.dll_memset
push 0x410
lea ecx, [esp + 0x9c]
push ecx
push str..htm
push 0x80000000
call fcn.00401db0
add esp, 0x1c
test eax, eax
jne 0x402032
push edi
mov edi, dword [0x41d0ac]
push str._shellopencommand
lea edx, [esp + 0x94]
push edx
call edi
push 0x410
lea eax, [esp + 0x94]
push eax
mov ecx, eax
push ecx
push 0x80000000
call fcn.00401db0
add esp, 0x10
test eax, eax
jne 0x402018
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_wcsstr]
lea edx, [esp + 0x94]
push str.__1_
push edx
call ebp
mov esi, eax
add esp, 8
test esi, esi
jne 0x401fbb
lea eax, [esp + 0x94]
push 0x41d9e4
push eax
call ebp
mov esi, eax
add esp, 8
test esi, esi
jne 0x401fbb
lea ecx, [esp + 0x94]
push ecx
call dword [0x41d06c]
lea esi, [esp + eax*2 + 0x92]
jmp 0x401fc0
mov word [esi], 0
push 0x41d9e0
push esi
call edi
push ebx
push esi
call edi
lea edx, [esp + 0x14]
mov dword [esp + 0x10], edx
call dword [0x42cf30]
push eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x18]
call fcn.00401a40
mov ecx, dword [esp + 0x8c4]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [0x41d0a8]
mov esi, eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
cmp eax, ecx
pop ebp
je 0x402018
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x8a8]
xor ecx, esp
call fcn.0041648c
add esp, 0x8ac
ret
mov edx, dword [esp + 0x8bc]
push edx
push esi
push esi
push ebx
push str.explore
push esi
call dword [0x41d70c]
mov ecx, dword [esp + 0x8b0]
pop esi
pop ebx
xor ecx, esp
call fcn.0041648c
add esp, 0x8ac
ret

Function at 0x402060
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x404040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
cmp dword [0x42e3b4], 0
mov dword [0x42e3b0], 0
je 0x40405c
xor eax, eax
add esp, 0xc
ret
mov eax, 0x42e3c0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404064
sub eax, edx
sar eax, 1
push esi
jne 0x4040e1
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSIDc6f7158b_a330_474c_b76e_ecf14355aabaInprocServer32
push 0x80000000
mov dword [esp + 0x18], 0
call dword [section..rdata]
test eax, eax
jne 0x4040f5
lea ecx, [esp + 0xc]
push ecx
push 0x42e3c0
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x208
call dword [0x41d004]
test eax, eax
jne 0x4040d2
cmp dword [esp + 8], 1
jne 0x4040d2
lea esi, [eax + 1]
mov ecx, dword [esp + 4]
push ecx
call dword [0x41d014]
test esi, esi
je 0x4040f5
push 0x42e3c0
call dword [0x41d048]
test eax, eax
mov dword [0x42e3b4], eax
jne 0x404111
cmp dword [0x42e3b0], 0
jle 0x404107
mov word [0x42e3b2], 0x8007
mov eax, 0x80004005
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x40606a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42cf18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push edi
call fcn.00417138
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x40609c
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x40611c
push esi
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
jne 0x4060b3
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x40611b
push esi
push dword [ebp - 0x18]
push 0
push edi
call fcn.00417132
test eax, eax
jne 0x4060d4
push esi
call dword [sym.imp.MSVCR80.dll_free]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x40611a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41f994
push esi
call fcn.0041712c
test eax, eax
je 0x4060c3
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00405f86
push esi
call dword [sym.imp.MSVCR80.dll_free]
lea esi, [ebp - 0x10]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041648c
leave
ret
Function at 0x4074c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41a686
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42cf18]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ecx + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x40750f
push 0x20000
push 0xd
lea ecx, [esp + 0x24]
call fcn.00409d10
push 0x424d1c
lea eax, [esp + 0x20]
push eax
call sub.MSVCR80.dll__CxxThrowException
push str.APPLICATION
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00409120
mov esi, eax
mov ecx, dword [esi]
cmp ecx, ebx
je 0x407692
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x407692
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov esi, eax
cmp esi, ebx
je 0x407692
mov edi, dword [esp + 0x7c]
mov ebp, dword [0x41d4ec]
mov edi, edi
push 0x41d964
push edi
call dword [0x41d4e4]
add esp, 8
test al, al
je 0x407617
lea ecx, [esp + 0x7c]
push ecx
push 0x41fc3c
mov ecx, esi
mov dword [esp + 0x84], ebx
call fcn.004084e0
test eax, eax
jne 0x40767f
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x7c], edx
jne 0x40767f
push str.subkey
mov ecx, esi
call fcn.004084c0
test eax, eax
je 0x4076b4
push eax
lea ecx, [esp + 0x20]
call dword [0x41d4ac]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x50]
mov ebx, 2
push eax
mov dword [esp + 0x78], ebx
call fcn.00406f80
add esp, 8
mov ecx, dword [esp + 0x80]
push eax
mov byte [esp + 0x74], 3
call dword [0x41d4cc]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], bl
call dword [0x41d4b8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], 0xffffffff
call dword [0x41d4a8]
jmp 0x4076c6
push str.name
mov ecx, esi
call fcn.004084c0
cmp eax, ebx
je 0x40767f
push eax
lea ecx, [esp + 0x20]
call dword [0x41d4ac]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x78], ebx
call fcn.00406f80
push edi
push eax
mov byte [esp + 0x80], 1
call ebp
add esp, 0x10
lea ecx, [esp + 0x4c]
mov bl, al
mov byte [esp + 0x70], 0
call dword [0x41d4b8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], 0xffffffff
call dword [0x41d4a8]
test bl, bl
jne 0x4075a5
mov ecx, esi
call fcn.00407be0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x407560
push 0x10000
push 0x65e
lea ecx, [esp + 0x40]
call fcn.00409d10
push 0x424d1c
lea eax, [esp + 0x3c]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [esp + 0x80]
push 0x41d964
call dword [0x41d4e8]
push str.folder
mov ecx, esi
call fcn.004084c0
test eax, eax
je 0x407745
push eax
lea ecx, [esp + 0x20]
call dword [0x41d4ac]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
mov ebx, 4
push edx
mov dword [esp + 0x78], ebx
call fcn.00406f80
add esp, 8
mov ecx, dword [esp + 0x84]
push eax
mov byte [esp + 0x74], 5
call dword [0x41d4cc]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], bl
call dword [0x41d4b8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], 0xffffffff
call dword [0x41d4a8]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x10
mov ecx, dword [esp + 0x84]
push 0x41d964
call dword [0x41d4e8]
jmp 0x40772f
Function at 0x407840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a6f1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x42cf18]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0x41d964
lea ecx, [esp + 0x10]
call dword [0x41d4c4]
lea eax, [esp + 0xc]
push eax
push 0
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.00409f60
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call dword [0x41d4b8]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x4086b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41a7f3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x42cf18]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x42e9d8
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.tinyxml::TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x42e9d8
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x41dadc
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0040a930
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40a070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x40a081
call fcn.0040a000
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 8
jb 0x40a090
mov eax, dword [eax + 4]
jmp 0x40a093
add eax, 4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push 0
push edx
push 0
push eax
mov eax, dword [esi + 0x1c]
push eax
call dword [0x41d004]
test eax, eax
pop esi
je 0x40a0cf
push 0x50000
push eax
lea ecx, [esp + 8]
call fcn.00409d10
push 0x424d1c
lea ecx, [esp + 4]
push ecx
call sub.MSVCR80.dll__CxxThrowException
add esp, 0x14
ret 0xc

Function at 0x40a0e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41ab22
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x42cf18]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.0040a070
cmp dword [esp + 0x14], 1
je 0x40a155
push 0x50000
push 0x65d
lea ecx, [esp + 0x34]
call fcn.00409d10
push 0x424d1c
lea edx, [esp + 0x30]
push edx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x54]
push ecx
add eax, 1
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], ebx
call fcn.00401d40
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x48], 1
je 0x40a189
mov edx, dword [esp + 0x24]
sub edx, eax
sar edx, 1
jne 0x40a193
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
cmp dword [edi + 0x18], 8
jb 0x40a19e
mov ecx, dword [edi + 4]
jmp 0x40a1a1
lea ecx, [edi + 4]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esi + 0x1c]
push ebx
push ebx
push ecx
push eax
call dword [0x41d004]
cmp eax, ebx
je 0x40a1d6
push 0x50000
push eax
lea ecx, [esp + 0x34]
call fcn.00409d10
push 0x424d1c
lea ecx, [esp + 0x30]
push ecx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40a1e8
mov edx, dword [esp + 0x24]
sub edx, eax
sar edx, 1
jne 0x40a1f2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
push eax
mov ecx, esi
call dword [0x41d4c4]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x18], 1
mov byte [esp + 0x48], bl
je 0x40a227
mov ecx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x24]
call dword [0x41d4b4]
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 8
Function at 0x4119f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [0x41d004]
cmp dword [esp], 4
je 0x411a2d
mov eax, 0xd
add esp, 8
ret 8

Function at 0x411c00
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41bc2a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42cf18]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], 0
cmp byte [ebp + 0x7c], 0
jne 0x411d76
cmp byte [ebp + 0x13c], 0
mov ebx, dword [esp + 0x28]
je 0x411cf0
lea esi, [ebp + 0x138]
push ebx
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 0x421e70
push 0x420f7c
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
lea edi, [ebp + 0x134]
push esi
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
push str._br_
push 0x420f7c
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
push 0x420f7c
push str._br_
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_5485]
push 0x420f7c
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
push 0
push 0x3c
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2260]
mov edi, eax
test edi, edi
jl 0x411cf0
lea ecx, [ecx]
push edi
push 0x3e
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2260]
cmp eax, edi
jle 0x411cde
sub eax, edi
add eax, 1
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_1906]
push 0
push 0x3c
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2260]
mov edi, eax
test edi, edi
jge 0x411cc0
push ebp
call sub.MFC80U.DLL_Ordinal_1091
cmp byte [ebp + 0x13c], 0
je 0x411d07
lea eax, [ebp + 0x138]
jmp 0x411d22
push ebx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.MFC80U.DLL_Ordinal_1118
test byte [esp + 0x14], 1
mov dword [ebp + 0x78], eax
je 0x411d48
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp byte [ebp + 0x7c], 0
mov eax, dword [ebp + 0x78]
je 0x411d79
cmp eax, 2
je 0x411d79
mov ecx, dword [ebp + 0x80]
mov edx, dword [ebp + 0x74]
push 4
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
push 4
push 0
push ecx
push edx
call dword [0x41d018]
mov eax, dword [ebp + 0x78]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x412bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41bdd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42cf18]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x14]
mov dword [esi + 0x10], ecx
push edx
lea ecx, [esi + 0x14]
call dword [0x41d4c0]
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
mov dword [esp + 0x1c], 0
call dword [0x41d4c0]
add edi, 0x4c
push edi
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1c], 1
call dword [0x41d4c0]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x415f90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41c2b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42cf18]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call dword [0x41d4c8]
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], edi
call dword [0x41d4c8]
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 1
call dword [0x41d4c8]
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x416010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41c2f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42cf18]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x10]
push eax
mov dword [esp + 0x18], 1
mov dword [esi], 0
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esi + 0x4c]
mov dword [esi + 0x10], 0
call dword [0x41d4b8]
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call dword [0x41d4b8]
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], 0xffffffff
call dword [0x41d4b8]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x401000
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401012
xor eax, eax
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
dec eax
ret

Function at 0x401024
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call esi
cmp eax, 0xffffffff
jne 0x40103b
xor eax, eax
jmp 0x401087
mov ebx, dword [esp + 0x10]
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push dword [esp + 0x18]
push 0x1001
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x401037
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401075
push ebx
call esi
cmp eax, 0xffffffff
je 0x401075
or eax, 0xffffffff
jmp 0x401087
push ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
neg eax
sbb eax, eax
neg eax
dec eax
pop esi
pop ebx
ret

Function at 0x40108a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
xor esi, esi
mov ebx, str.RacerMessageWindowccn_racerpc_ha
push esi
push ebx
mov dword [ebp - 8], eax
call edi
push esi
push str.RacerMessageWindowccn_racerpc_nm
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], esi
mov edi, eax
je 0x4010e8
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], esi
push edi
call fcn.00403850
inc eax
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x4a
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
inc eax
jmp 0x401152
cmp edi, esi
je 0x40110a
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], esi
push ebx
call fcn.00403850
inc eax
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x4a
mov dword [ebp - 0xc], ebx
push edi
jmp 0x4010dd
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xc00000
push esi
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401194
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
call sym.racer.exe_NR_StartupRegistry
test eax, eax
jne 0x401264
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x401264
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00403760
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.004038d0
and byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.xpicleanup.dat
push eax
call fcn.00403770
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401252
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
call sym.racer.exe_NR_RegOpen
pop ecx
test eax, eax
pop ecx
jne 0x401252
push esi
push dword [ebp - 4]
call fcn.0040145b
mov esi, eax
pop ecx
test esi, esi
je 0x401242
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0xffffffff
je 0x401228
lea eax, [ebp - 4]
push eax
call sym.racer.exe_NR_RegClose
pop ecx
pop esi
call sym.racer.exe_NR_ShutdownRegistry
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 7
pop eax
leave
ret