joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403b89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403bc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403bc0
lea ebx, [ebx]
cmp esi, eax
jae 0x403bc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403bb0
cmp esi, eax
jb 0x403bca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404120
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4985d0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4041a3
cmp byte [ebx], 0
mov eax, ebx
je 0x4041a3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
push edi
nop
push 0x48517c
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov edi, eax
test edi, edi
je 0x4041a0
mov esi, edi
sub esi, ebx
test esi, esi
jle 0x404197
push 0x105
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0044bb00
add esp, 0xc
add esi, 1
push esi
push ebx
lea ecx, [esp + 0x14]
push ecx
call ebp
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [edi + 1], 0
lea eax, [edi + 1]
jne 0x404150
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00449014
add esp, 0x10c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4794d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0046323d
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x404781
mov eax, dword [esi + 0x1c]
push eax
call fcn.00425b76
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40b040
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x47bc57
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x485d2c
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.0040bf90
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0040c9b0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x49dd8c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40c9b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x47946b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00464f51
push 4
mov dword [esp + 0x20], 0
call fcn.00425b4b
mov edi, eax
add esp, 4
test edi, edi
je 0x40ca30
call fcn.0046333c
mov dword [edi], eax
call fcn.00463212
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00463184
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40ca25
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004631a5
jmp 0x40ca32
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40dcd0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47a3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.0042f84b
mov byte [esp + 0x30], 1
call fcn.0042eb29
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dd27
push 0x80004005
call fcn.00403740
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x30], 2
mov esi, dword [0x49dc64]
add esi, 0x74
cmp dword [esi + 0x18], 0x10
jb 0x40dd50
mov ebx, dword [esi + 4]
jmp 0x40dd53
lea ebx, [esi + 4]
call fcn.00404120
cmp dword [esi + 0x18], 0x10
jb 0x40dd63
mov esi, dword [esi + 4]
jmp 0x40dd66
add esi, 4
test esi, esi
jne 0x40dd6e
xor eax, eax
jmp 0x40dd7e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dd73
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00403ef0
mov edi, dword [esp + 0x38]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.0040cf70
push 4
push str..txt
lea ecx, [esp + 0x1c]
call fcn.0040cf70
mov esi, dword [esp + 0x14]
mov ebx, 1
cmp dword [esi - 4], ebx
jle 0x40ddca
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403810
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebp, 0xffffffff
cmp eax, ebp
je 0x40dddc
test al, 0x10
je 0x40dde8
mov edx, dword [esp + 0x3c]
mov dword [edx], 0
jmp 0x40de56
push 0
push 0
push esi
lea ecx, [esp + 0x24]
call fcn.0042fc8d
test eax, eax
je 0x40de4c
lea ecx, [esp + 0x18]
call fcn.0042f73e
add eax, ebx
push eax
call fcn.00425b7b
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0042f73e
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x20]
call fcn.0042f559
lea ecx, [esp + 0x18]
call fcn.0042f73e
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
mov byte [eax + edx], 0
call fcn.0042f7e9
jmp 0x40de56
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
lea eax, [esi - 0x10]
mov edx, ebp
lea ecx, [eax + 0xc]
mov byte [esp + 0x30], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.0042f958
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
mov dword [esp + 0x30], ebp
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40dea0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40e710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479218
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.004309b0
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.CHTTPClient.0
call fcn.0042f84b
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x840], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x440]
mov ecx, 0x400
jmp 0x40e780
mov byte [eax - 0x400], bl
mov byte [eax], bl
add eax, 1
sub ecx, 1
jne 0x40e780
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40e860
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x4985d0]
xor eax, esp
mov dword [esp + 0x10], eax
push edi
mov edi, ecx
test edi, edi
jne 0x40e88a
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00449014
add esp, 0x14
ret 4
cmp dword [esi + 0x34], 0
je 0x40e8b2
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x40e8ab
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x40e8b2
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esi + 0x3c], eax
jne 0x40e8d7
mov eax, 0xfffffffe
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00449014
add esp, 0x14
ret 4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 4], eax
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x38]
mov word [esp + 6], ax
push 0x10
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40e937
mov eax, 0xfffffffd
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00449014
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x14]
pop edi
xor ecx, esp
mov dword [esi + 0x34], 1
xor eax, eax
call fcn.00449014
add esp, 0x14
ret 4
Function at 0x40ebb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push esi
mov esi, eax
or eax, 0xffffffff
cmp dword [esi + 0x38], eax
jne 0x40ebc1
xor eax, eax
pop esi
pop ecx
ret
cmp dword [esi + 0x840], 0
push ebx
push ebp
push edi
jne 0x40ec7f
mov ebp, dword [sym.imp.WS2_32.dll_recv]
mov byte [esp + 0x13], 0
xor edi, edi
mov dword [esi + 0x30], eax
mov bl, 0xa
mov ecx, dword [esi + 0x38]
push 0
push 1
lea eax, [esp + 0x1b]
push eax
push ecx
call ebp
mov dl, byte [esp + 0x13]
mov byte [esi + edi + 0x440], dl
add edi, 1
cmp edi, 4
jne 0x40ec36
cmp byte [esi + 0x440], 0x48
je 0x40ebe3
cmp byte [esi + 0x441], 0x54
je 0x40ebe3
cmp byte [esi + 0x442], 0x54
je 0x40ebe3
cmp byte [esi + 0x443], 0x50
je 0x40ebe3
call fcn.0040e830
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
pop ecx
ret
jle 0x40ec5e
cmp byte [edi + esi + 0x43c], 0xd
jne 0x40ec5e
cmp byte [edi + esi + 0x43d], bl
jne 0x40ec5e
cmp byte [edi + esi + 0x43e], 0xd
jne 0x40ec5e
cmp byte [edi + esi + 0x43f], bl
je 0x40ec6a
cmp edi, 0x400
jl 0x40ebe3
mov dword [esi + 0x30], edi
mov byte [edi + esi + 0x440], 0
mov dword [esi + 0x840], 1
pop edi
pop ebp
pop ebx
lea eax, [esi + 0x440]
pop esi
pop ecx
ret
Function at 0x40f290
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x479a1b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CIndiSetWnd.0
mov dword [esp + 0x18], 0xd
mov eax, dword [esi + 0x3e4]
test eax, eax
je 0x40f2f8
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x3e4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x470]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f31a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x3ec]
call fcn.00430b65
mov byte [esp + 0x18], 0xc
mov eax, dword [esi + 0x3e8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f34c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x280]
mov byte [esp + 0x18], 0xb
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x23c]
mov byte [esp + 0x18], 0xa
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x1f8]
mov byte [esp + 0x18], 9
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x1f0]
mov byte [esp + 0x18], 8
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x170]
mov byte [esp + 0x18], 7
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x164]
mov byte [esp + 0x18], 6
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x15c]
mov byte [esp + 0x18], 5
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x154]
mov byte [esp + 0x18], 4
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x14c]
mov byte [esp + 0x18], 3
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0x12c]
mov byte [esp + 0x18], 2
mov dword [ecx], vtable.CGdiObject.0
call fcn.0042bef2
lea ecx, [esi + 0xc0]
mov byte [esp + 0x18], 1
mov dword [ecx], vtable.CCheckBox.0
call fcn.00425ba2
lea ecx, [esi + 0x54]
mov byte [esp + 0x18], 0
mov dword [ecx], vtable.CCheckBox.0
call fcn.00425ba2
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00428f7f
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x412cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47aed8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 4]
mov esi, dword [edi + 0x14]
sub eax, 2
cmp esi, eax
mov ebx, 1
ja 0x412d59
cmp dword [edi + 0x18], eax
je 0x412d59
push ebx
push eax
mov ecx, edi
call fcn.00401800
test al, al
je 0x412d59
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], esi
jb 0x412d52
mov eax, dword [edi + 4]
jmp 0x412d55
lea eax, [edi + 4]
mov byte [eax + esi], 0
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add esi, ebx
cmp esi, ecx
mov dword [esp + 0x10], ecx
je 0x412f39
jmp 0x412d75
mov ecx, dword [esp + 0x10]
mov al, byte [esi]
add esi, ebx
cmp al, 0x22
mov byte [esp + 0x18], al
je 0x412f39
cmp al, 0x5c
jne 0x412e73
cmp esi, ecx
je 0x412e8f
mov al, byte [esi]
movsx eax, al
add esi, ebx
add eax, 0xffffffde
cmp eax, 0x53
mov dword [esp + 0x84], esi
ja case.0x412db6.35
movzx eax, byte [eax + 0x412f78]
jmp dword [eax*4 + 0x412f50]
push 0x22
jmp 0x412e78
push 0x2f
jmp 0x412e78
push 0x5c
jmp 0x412e78
push 8
jmp 0x412e78
push 0xc
jmp 0x412e78
push 0xa
jmp 0x412e78
push 0xd
jmp 0x412e78
push 9
jmp 0x412e78
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
lea ecx, [esp + 0x90]
mov edx, ebp
call fcn.00412fd0
test al, al
je 0x412eca
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x38]
call fcn.00411330
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov dword [esp + 0x84], ebx
call fcn.004018c0
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x50], 0x10
jb 0x412e55
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00425b76
add esp, 4
mov esi, dword [esp + 0x84]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jmp 0x412e80
mov edx, dword [esp + 0x18]
push edx
push ebx
mov ecx, edi
call fcn.0040be10
cmp esi, dword [esp + 0x10]
jne 0x412d71
jmp 0x412f39
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x58]
call fcn.00403250
mov edx, dword [esp + 0x80]
push esi
push ebp
lea ecx, [esp + 0x5c]
mov dword [esp + 0x80], 0
call fcn.00413290
cmp dword [esp + 0x6c], 0x10
mov bl, al
jb 0x412f39
mov eax, dword [esp + 0x58]
push eax
jmp 0x412f31
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
push 0x1d
push str.Bad_escape_sequence_in_string
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00401680
mov edx, dword [esp + 0x80]
push esi
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], 2
call fcn.00413290
cmp dword [esp + 0x34], 0x10
mov bl, al
jb 0x412f39
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00425b76
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
Function at 0x415ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47a0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esi + 0x50]
push 0x20
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.0040c8c0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + 0x30]
mov dword [esp + 0x34], 0
call fcn.004018c0
cmp dword [esp + 0x1c], 0x10
jb 0x415d54
mov ecx, dword [esp + 8]
push ecx
call fcn.00425b76
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
Function at 0x41ca80
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x47ac38
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.00403900
push eax
mov ecx, esi
mov dword [esp + 0x10], 0
call fcn.0040d940
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cae6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41cb0a
mov al, 1
mov byte [esi + 4], al
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
push 0
push 0x4857f2
mov ecx, esi
call fcn.00403ef0
mov byte [esi + 4], 0
xor al, al
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x41d0c0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x47ab86
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x4985d0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ebx
call fcn.0042eb29
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41d121
push 0x80004005
call fcn.00403740
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
push 0xc8
lea ecx, [esp + 0x38]
push ecx
push ebx
mov dword [esp + 0x1dc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x41d193
push str.None_VerSion_Supprot
mov ecx, edi
call fcn.00403900
lea eax, [ebp - 0x10]
mov dword [esp + 0x1d0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d2bf
mov ecx, dword [eax]
push eax
jmp 0x41d2b8
push esi
call fcn.00425b7b
add esp, 4
mov edi, eax
push edi
push esi
push ebx
lea ecx, [esp + 0x40]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
xor esi, esi
test dword [esp + 0x14], 0xfffffffc
jbe 0x41d286
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea ebx, [ebx]
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x104]
push str.StringFileInfo_04x_04xProductVersion
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x104]
push eax
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call fcn.00403900
mov byte [esp + 0x1d0], 1
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0040cf70
mov byte [esp + 0x1d0], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d270
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
add esi, 1
shr ecx, 2
cmp esi, ecx
jb 0x41d1e0
mov ebp, dword [esp + 0x1c]
lea esi, [ebp - 0x10]
push esi
call fcn.0040d8b0
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x1d0], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41d2bf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00449014
add esp, 0x1c0
ret
Function at 0x41d360
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x20006
push 0
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41d390
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
pop ecx
ret
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41d395
mov ecx, dword [esp + 4]
sub eax, edx
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
pop ecx
ret