joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419880
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x42bf70], 0
jne 0x4198d2
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4198ad
mov dword [0x42bf70], 1
jmp 0x4198d2
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4198cb
mov dword [0x42bf70], 2
jmp 0x4198d2
xor eax, eax
jmp 0x419a00
cmp dword [0x42bf70], 2
jne 0x4198f6
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x419a00
cmp dword [0x42bf70], 1
jne 0x419a00
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
jne 0x419919
mov ecx, dword [0x42bde0]
mov dword [ebp + 0x18], ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41993b
xor eax, eax
jmp 0x419a00
push 0xd2
push str.aw_loc.c
push 2
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
call fcn.0040d460
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x419965
xor eax, eax
jmp 0x419a00
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x419981
jmp 0x4199f0
cmp dword [ebp + 0x14], 0
jne 0x4199b1
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
push 0x220
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4199af
jmp 0x4199f0
jmp 0x4199dd
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 0x220
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4199dd
jmp 0x4199f0
push 2
mov eax, dword [ebp - 8]
push eax
call fcn.0040def0
add esp, 8
mov eax, dword [ebp - 0xc]
jmp 0x419a00
push 2
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040def0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402842
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov ebx, edx
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x401204
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
test esi, esi
je 0x402876
test ebx, ebx
je 0x40287a
mov ecx, dword [ebp + 0xc]
dec ecx
cmp edi, ecx
je 0x402884
test ebx, ebx
jne 0x402889
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffe
cmp edi, eax
jne 0x402889
push 0xfffffffffffffffe
pop edi
jmp 0x40289e
push 0x401204
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40289e
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x402bbe
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov ebx, edx
mov dword [ebp - 0x408], ecx
lea edi, [eax + 0x20]
cmp edi, eax
jb 0x402d24
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x402d23
push 0x40eea4
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0x401060
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x404], 0x25
jne 0x402c65
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c34
sub ecx, edx
cmp byte [ebp + ecx - 0x405], 0x25
jne 0x402c65
dec ecx
cmp ecx, 0x400
jae 0x402d36
xor eax, eax
mov dword [ebp - 0x408], eax
mov byte [ebp + ecx - 0x404], al
jmp 0x402cc3
push 0x401214
mov edx, 0x400
lea ecx, [ebp - 0x404]
call fcn.00401a45
push ebx
mov edx, 0x400
lea ecx, [ebp - 0x404]
call fcn.00401acd
push 0x401214
mov edx, 0x400
lea ecx, [ebp - 0x404]
call fcn.00401acd
push 0x40eea4
lea eax, [ebp - 0x404]
push eax
push ebx
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x408], 1
cmp dword [ebp + 0x10], 0
mov edx, edi
mov ecx, esi
je 0x402cf3
push 0x401218
call fcn.00401a45
push dword [ebp + 8]
mov edx, edi
mov ecx, esi
call fcn.00401acd
push 0x401218
mov edx, edi
mov ecx, esi
call fcn.00401acd
jmp 0x402cfb
push dword [ebp + 8]
call fcn.00401a45
cmp dword [ebp - 0x408], 0
jne 0x402d0a
lea ebx, [ebp - 0x403]
push 0x40eea4
push esi
push ebx
push 0x40120c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret 0xc
call fcn.0040cc87
int3
Function at 0x402d98
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x38], edx
push edi
mov ecx, 0x40eea4
call fcn.004028ac
push eax
push 0x40
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor esi, esi
test edi, edi
jne 0x402de8
push esi
push 0x10
push esi
push esi
mov edx, 0x44c
xor ecx, ecx
call fcn.00402462
xor eax, eax
jmp 0x402e7b
mov dword [ebp - 0x40], edi
cmp dword [ebp - 0x38], esi
je 0x402e04
push ecx
push 0x40eea4
push dword [ebp - 0x3c]
mov edx, edi
mov ecx, ebx
call fcn.00406007
jmp 0x402e1a
push 0x40eea4
push dword [ebp - 0x3c]
push edi
push 0x401060
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0
je 0x402e61
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x402e2a
mov ecx, edi
jmp 0x402e45
push 0x40eea4
push 0x30
lea eax, [ebp - 0x34]
push eax
push 0x401060
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x34]
call fcn.00402d41
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402e4f
sub ecx, edx
inc edi
add edi, ecx
cmp byte [edi], al
jne 0x402e22
xor esi, esi
push 0x40eea4
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret

Function at 0x402e91
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov ecx, 0x40eea4
push edi
call fcn.004028ac
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x402ece
xor esi, esi
mov edx, 0x44c
push esi
push 0x10
push esi
push esi
xor ecx, ecx
call fcn.00402462
xor eax, eax
jmp 0x402f29
push 0x40eea4
push esi
push edi
push 0x401060
xor esi, esi
mov dword [ebp - 4], edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x402f08
xor edx, edx
mov ecx, edi
inc edx
call fcn.00402d98
test eax, eax
je 0x402f1e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402efc
sub ecx, edx
inc edi
add edi, ecx
cmp byte [edi], 0
jne 0x402ee9
push 0x40eea4
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f35
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x40e004]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
mov dword [esp + 0xc], ecx
mov ebx, 0x410a20
push edi
mov ecx, ebx
mov dword [esp + 0x14], edx
call fcn.004028ac
mov edi, 0x40eea4
mov esi, eax
mov ecx, edi
call fcn.004028ac
mov ecx, edi
cmp eax, esi
ja 0x402f7e
mov ecx, ebx
call fcn.004028ac
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x402fab
xor esi, esi
mov edx, 0x44c
push esi
push 0x10
push esi
push esi
xor ecx, ecx
call fcn.00402462
xor eax, eax
jmp 0x403023
push 0x410a20
push esi
push edi
push 0x401060
xor esi, esi
mov ebx, edi
push esi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x403012
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0x401060
mov edx, edi
call fcn.00402ad1
cmp eax, 0xffffffff
je 0x40301a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push esi
push 0x104
push eax
mov edx, edi
call fcn.00402bbe
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403006
sub ecx, edx
inc edi
add edi, ecx
cmp byte [edi], 0
jne 0x402fc8
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret

Function at 0x40357e
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push edx
push 0x104
lea eax, [ebp - 0x108]
xor esi, esi
push eax
push 0x401060
push esi
push ecx
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x108], 0
je 0x4035de
lea ecx, [ebp - 0x108]
inc esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4035c6
sub ecx, edx
inc ecx
add edi, ecx
lea ecx, [ebp - 0x108]
add ecx, edi
cmp byte [ecx], al
jne 0x4035c2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret
Function at 0x404d24
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
lea eax, [ebp - 0xc]
mov ebx, 0x104
push eax
push ebx
push 0x40f734
push 0x100
lea eax, [ebp - 0x30c]
xor edi, edi
push eax
push 3
lea eax, [ebp - 0x310]
mov esi, ecx
push eax
push 0x40f32c
inc edi
call dword [sym.imp.msvcrt.dll__splitpath_s]
add esp, 0x24
lea eax, [ebp - 0x310]
mov edx, ebx
mov ecx, 0x40f630
push eax
call fcn.00401a45
lea eax, [ebp - 0x30c]
mov edx, ebx
push eax
mov ecx, 0x40f630
call fcn.00401acd
mov edx, ebx
mov ebx, 0x40f838
push 0x40f630
mov ecx, ebx
call fcn.00401a45
push 0x401694
push 0x40f734
push 0x40169c
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.00401b0d
add esp, 0x14
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040c6bd
cmp byte [0x40fa40], 0
jne 0x404e2a
mov ebx, 0x40fa40
mov edx, 0x104
push 0x40f630
mov ecx, ebx
call fcn.00401a45
push 0x40f734
push 0x4016a4
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.00401b0d
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040c6bd
mov ebx, 0x40fb44
mov edx, 0x104
push 0x40f630
mov ecx, ebx
call fcn.00401a45
push 0x4016b4
push 0x40f734
push 0x40169c
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.00401b0d
add esp, 0x14
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040c6bd
cmp dword [0x4108b4], 0x866
mov ebx, 0x200
je 0x404eda
push 0x4016bc
push 0x40f734
push 0x40169c
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00401b0d
add esp, 0x14
mov edx, 0x104
mov ecx, 0x40f93c
push 0x40f630
call fcn.00401a45
lea eax, [ebp - 0x20c]
mov ecx, 0x40f93c
push eax
call fcn.0040c6bd
mov dword [0x4108a8], 0x4013d4
mov dword [0x4108ac], 7
cmp dword [0x40ee90], 0
je 0x404ef3
call fcn.00403832
test eax, eax
jne 0x404ef3
mov ecx, 0x421
jmp 0x404f21
mov ecx, esi
call fcn.00404fa4
test eax, eax
jne 0x404f05
mov ecx, 0x41f
jmp 0x404f21
cmp dword [0x4108b4], 0x866
je 0x404f6d
mov ecx, esi
call fcn.0040531a
test eax, eax
jne 0x404f51
mov ecx, 0x420
push ebx
lea edx, [ebp - 0x20c]
call fcn.00402774
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00405c5f
mov eax, dword [0x4108d4]
xor edi, edi
jmp 0x404f4b
and dword [eax + 8], 0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x404f44
jmp 0x404f8c
push ecx
push 0
mov edx, 0x4016c4
call fcn.00402b69
test eax, eax
jne 0x404f6d
push 0x40f93c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea edx, [ebp - 0x20c]
mov ecx, 0x422
call fcn.00402774
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00405c5f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret
Function at 0x406007
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40604e
test bl, 1
je 0x40604e
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40604e
push eax
push 0x10
push eax
push esi
mov edx, 0x47b
xor ecx, ecx
call fcn.00402462
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0xffffffffffffffff
push 0x4012a0
push 0x401298
call edi
cmp eax, 0xffffffff
jne 0x40607f
push esi
push eax
push 0x4012b0
push 0x401298
call edi
cmp eax, 0xffffffff
jne 0x40607f
or eax, eax
jmp 0x4060bc
push esi
push dword [ebp + 8]
push dword [ebp - 4]
cmp eax, 3
jge 0x406096
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x4060a6
push 0x401060
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
cmp ebx, 0xffffffff
je 0x4060ba
test bl, 1
je 0x4060ba
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4060f3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp byte [0x410b40], 0
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
jne 0x406130
push 0x104
push esi
push dword [0x40ee78]
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x406127
mov ecx, esi
call fcn.004060ca
mov ebx, eax
jmp 0x406144
xor ebx, ebx
cmp byte [esi], bl
setne bl
jmp 0x406144
push 0x410b40
mov edx, 0x104
mov ecx, esi
call fcn.00401a45
xor ebx, ebx
inc ebx
push edi
mov ecx, esi
call fcn.0040c6bd
test ebx, ebx
je 0x406160
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406160
xor eax, eax
jmp 0x406162
mov eax, ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x40616d
Capabilities:
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
cmp byte [edi], bl
je 0x40625c
push 0x5c
pop edx
mov ecx, edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call fcn.0040c724
mov esi, eax
test esi, esi
je 0x4061a4
mov al, byte [esi]
mov byte [ebp - 1], al
mov byte [esi], bl
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [ebp + 8], ebx
je 0x4061f4
cmp eax, 0xffffffff
jne 0x4061c2
push 4
pop eax
mov edx, 0x483
mov dword [ebp + 8], eax
jmp 0x4061d0
test al, 0x10
jne 0x4061f4
mov edx, 0x484
mov dword [ebp + 8], ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
push eax
push 0x20
push ebx
push edi
call fcn.00402462
cmp eax, 7
je 0x4061e7
cmp dword [ebp + 8], ebx
jne 0x4061f4
test esi, esi
je 0x4061f0
mov al, byte [ebp - 1]
mov byte [esi], al
xor eax, eax
jmp 0x40625e
test esi, esi
je 0x4061fd
mov al, byte [ebp - 1]
mov byte [esi], al
lea esi, [edi + 1]
mov al, byte [esi]
cmp al, 0x3a
jne 0x406213
cmp byte [edi + 2], 0x5c
jne 0x406213
lea esi, [edi + 3]
mov eax, ebx
jmp 0x406255
cmp byte [edi], 0x5c
jne 0x40620f
cmp al, 0x5c
jne 0x40620f
push 2
pop eax
lea esi, [edi + 2]
mov dword [ebp - 8], eax
jmp 0x406255
cmp byte [esi], 0x5c
jne 0x406249
cmp byte [esi - 1], 0x3a
je 0x406249
test eax, eax
je 0x40623c
dec eax
mov dword [ebp - 8], eax
jmp 0x406249
push ebx
push edi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov eax, dword [ebp - 8]
cmp byte [esi], bl
jne 0x406227
xor ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40634d
Capabilities:
Check if file exists
Enumerate gui resources
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, ecx
push 0
mov dword [ebp - 4], ebx
call edi
test ebx, ebx
jne 0x406375
push 0x57
call edi
xor eax, eax
jmp 0x40646e
push esi
push 0x1c
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4063ca
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x4063ca
and dword [ebx + 0x14], 0
push 0x104
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x4063bc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4063ce
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 8
jmp 0x406438
push dword [ebp - 4]
mov edx, 0x104
mov ecx, eax
call fcn.00401a45
push dword [ebx + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4063f9
push esi
jmp 0x40645c
test al, 0x17
je 0x40640b
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x13
jmp 0x406438
push 0x60
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40643c
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406465
push 0xc1
call edi
jmp 0x406465
mov edi, dword [ebp - 0xc]
push edi
push 0x40680b
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [edi + 0x14], 0
push esi
je 0x406469
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x40646d
call ebx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4065c0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
call esi
mov edi, eax
push dword [edi + 0x18]
call esi
mov ebx, eax
test ebx, ebx
jne 0x406623
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [edi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, eax
call ebx
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [edi + 0x18], 0
jmp 0x406719
push ebx
mov edx, 0x105
lea ecx, [ebp - 0x110]
call fcn.00401a45
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40663d
sub ecx, edx
lea eax, [ebp - 0x110]
add eax, ecx
jmp 0x40665b
lea ecx, [ebp - 0x110]
cmp eax, ecx
jb 0x406660
dec eax
cmp byte [eax], 0x5c
jne 0x406650
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov byte [eax + 1], 0
lea eax, [ebp - 0x110]
push eax
push 0
push 0x401828
push eax
call esi
test eax, eax
jne 0x4066c3
lea eax, [ebp - 0x110]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4066a4
mov word [ebp - 0x110], 0x5c2e
mov byte [ebp - 0x10e], al
lea eax, [ebp - 0x110]
push eax
push 0
push 0x401828
push eax
call esi
test eax, eax
jne 0x4066c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x406705
mov ecx, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0040921d
mov esi, eax
test esi, esi
jne 0x4066f1
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x406705
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebx
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, edi
call fcn.00406a00
mov edi, dword [ebp - 0x114]
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret
Function at 0x40bdc7
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x410c60
push 0x50
mov edi, 0x410340
mov ebx, 0x401060
push edi
push ebx
mov edx, 0x401370
mov ecx, 0x401064
call fcn.00402ad1
test eax, eax
je 0x40bfa8
xor eax, eax
mov byte [eax + 0x40e2e4], 0
add eax, 0x104
cmp eax, 0x820
jb 0x40be0a
push esi
push edi
push 0x200
lea eax, [ebp - 0x284]
mov edx, 0x40191c
push eax
push ebx
mov ecx, edi
call fcn.00402ad1
mov esi, 0x40e2e4
push 8
pop ebx
test eax, eax
je 0x40bf61
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x40bf5e
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40bf59
push edi
push ebx
push 0
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40bf52
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x288]
push eax
push 0x401928
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40beba
mov eax, dword [ebp - 0x288]
mov eax, dword [eax]
jmp 0x40bebf
mov eax, 0x4e40409
mov ecx, eax
mov dword [ebp - 0x28c], 8
shr ecx, 0x10
mov ebx, esi
mov dword [ebp - 0x294], ecx
mov esi, ecx
movzx ecx, ax
mov dword [ebp - 0x298], ecx
push dword [ebx - 4]
movzx eax, si
push eax
push ecx
push 0x401944
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00401b0d
add esp, 0x18
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40bf39
push 0xfe
push dword [ebp - 0x288]
mov edx, 0x100
mov ecx, ebx
call fcn.00401a82
mov ecx, dword [ebp - 0x298]
add ebx, 0x104
dec dword [ebp - 0x28c]
jne 0x40bee1
mov esi, 0x40e2e4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, 0x410340
push 8
pop ebx
mov edx, dword [esi - 4]
lea eax, [ebp - 0x284]
push edi
push 0x100
push eax
push 0x401060
mov ecx, edi
call fcn.00402ad1
test eax, eax
je 0x40bf99
push 0xfe
lea eax, [ebp - 0x284]
mov edx, 0x100
push eax
mov ecx, esi
call fcn.00401a82
add esi, 0x104
dec ebx
jne 0x40bf61
xor eax, eax
inc eax
pop esi
jmp 0x40bfaa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040cb2e
mov esp, ebp
pop ebp
ret