joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f819
Capabilities:
Get common file path

Disassembly:
push 0x4b8
mov eax, 0x44109b
call fcn.004306f3
mov dword [ebp - 0x4b0], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4bc], eax
lea eax, [ebp - 0x424]
push eax
xor esi, esi
push 0x104
mov dword [ebp - 0x4c4], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41f883
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x4c0], eax
push 0x442d98
lea eax, [ebp - 0x4c0]
push eax
call fcn.00430608
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x406844
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x41f8c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x4b8], eax
push 0x442d98
lea eax, [ebp - 0x4b8]
jmp 0x41f87d
push esi
push pe_nt_image_headers32
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x4ac], ebx
cmp ebx, 0xffffffff
jne 0x41f91b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x4b4], eax
push 0x442d98
lea eax, [ebp - 0x4b4]
jmp 0x41f87d
push 0x40684c
mov ecx, 0x44a310
call fcn.00427a0a
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4a8], eax
push 3
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x4a8]
call fcn.0040dec5
push dword [ebp - 0x4a8]
mov ecx, 0x44a310
mov dword [ebp - 4], esi
call fcn.00427a0a
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4a4]
cmp dword [ebp - 0x4a8], eax
je 0x41f97b
push dword [ebp - 0x4a8]
call fcn.0043040c
pop ecx
push 0x4012d4
mov ecx, 0x44a310
call fcn.00427a0a
push 0x4012d0
mov ecx, 0x44a310
call fcn.00427a0a
push dword [ebp - 0x4bc]
mov ecx, dword [ebp - 0x4b0]
push ebx
mov dword [ebp - 4], 1
call fcn.0041f62f
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.0040dbce
mov eax, edi
call fcn.0043074c
ret 8
Function at 0x4225fc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x44a7b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x9c
push edi
lea eax, [ebp - 0x2c0]
push 0
push eax
mov esi, ecx
mov bl, 1
call fcn.00431330
add esp, 0xc
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x2c0], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x42268a
lea eax, [ebp - 0x2c0]
push eax
mov dword [ebp - 0x2c0], 0x94
call edi
test eax, eax
jne 0x422688
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x2c4], eax
push 0x442d98
lea eax, [ebp - 0x2c4]
push eax
call fcn.00430608
xor bl, bl
mov eax, dword [ebp - 0x2bc]
imul eax, eax, 0x64
add eax, dword [ebp - 0x2b8]
mov edi, 0x4019ac
push eax
push edi
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call fcn.0040f964
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x4078cc
mov ecx, esi
call fcn.0042101c
mov eax, dword [ebp - 0x2b0]
mov ecx, esi
dec eax
je 0x4226dd
dec eax
je 0x4226d6
push 0x407920
jmp 0x4226e2
push 0x4078e4
jmp 0x4226e2
push 0x407914
push 0x4078f0
call fcn.0042101c
test bl, bl
je 0x422719
movzx ecx, word [ebp - 0x22c]
movzx eax, word [ebp - 0x22a]
imul ecx, ecx, 0x64
add ecx, eax
push ecx
push edi
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call fcn.0040f964
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
jmp 0x42271e
push 0x401340
push 0x407930
mov ecx, esi
call fcn.0042101c
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call fcn.0040f964
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x407950
mov ecx, esi
call fcn.0042101c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call fcn.0040f964
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x407978
mov ecx, esi
call fcn.0042101c
call dword [0x44a59c]
test al, al
mov eax, 0x4014ec
jne 0x422790
mov eax, 0x401e8c
push eax
push 0x40799c
mov ecx, esi
call fcn.0042101c
call dword [0x44a5a4]
sub eax, 0
je 0x4227d8
sub eax, 5
je 0x4227d1
dec eax
je 0x4227ca
sub eax, 3
je 0x4227c3
sub eax, 0xfff6
jne 0x4227e9
push 0x407920
jmp 0x4227dd
push 0x4079f4
jmp 0x4227dd
push 0x4079fc
jmp 0x4227dd
push 0x407a08
jmp 0x4227dd
push 0x4079c0
push 0x4079c8
mov ecx, esi
call fcn.0042101c
mov edi, 0x104
push edi
lea eax, [ebp - 0x224]
push eax
push 0
call dword [0x44a580]
test eax, eax
je 0x42284a
cmp eax, edi
je 0x42284a
lea eax, [ebp - 0x224]
push eax
push 0x407a10
mov ecx, esi
call fcn.0042101c
push 0x407a38
push 0x407a40
mov ecx, esi
call fcn.0042286e
push 0x401c90
push 0x407a58
mov ecx, esi
call fcn.0042286e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004305fa
leave
ret
mov esi, 0x44a310
push 0x405f50
mov ecx, esi
call fcn.00427a0a
push 0x4012d0
mov ecx, esi
call fcn.00427a0a
push 0x7b
jmp 0x422664
Function at 0x42286e
Capabilities:
Get common file path

Disassembly:
push 0x250
mov eax, 0x441434
call fcn.004306f3
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x117]
push ebx
push eax
mov dword [ebp - 0x25c], edi
mov byte [ebp - 0x118], bl
call fcn.00431330
add esp, 0xc
push 0x104
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4228f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x254], eax
push 0x442d98
lea eax, [ebp - 0x254]
push eax
call fcn.00430608
push 0xffffffffffffffff
push 0x407a7c
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00433376
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00433376
add esp, 0x20
mov esi, 0x44a310
push 0x407a80
mov ecx, esi
call fcn.00427a0a
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.00427a0a
push 0x4012d4
mov ecx, esi
call fcn.00427a0a
push 0x4012d0
mov ecx, esi
call fcn.00427a0a
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.00427d9b
cmp dword [ebp - 0x120], 0x10
mov eax, dword [ebp - 0x134]
mov byte [ebp - 4], 1
jae 0x42298a
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x244]
push 3
mov dword [ebp - 0x248], ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00412333
push dword [ebp - 0x248]
mov ecx, edi
push dword [ebp - 0x24c]
mov byte [ebp - 4], 2
call fcn.0042101c
lea eax, [ebp - 0x244]
cmp dword [ebp - 0x248], eax
je 0x4229d5
push dword [ebp - 0x248]
call fcn.0043040c
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.0040d9b8
call fcn.0043074c
ret 8
Function at 0x423841
Capabilities:
Query environment variable

Disassembly:
push 0xe0
mov eax, 0x441607
call fcn.004306bd
mov dword [ebp - 0xe4], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 7
mov dword [ebp - 0xe0], ebx
pop ecx
xor eax, eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ebx
mov dword [ebp - 0xec], esi
mov word [esi], ax
xor edx, edx
inc edx
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
push 2
pop eax
push 0x104
mov ecx, esi
mov byte [ebp - 4], al
call fcn.0041ebee
jmp 0x42394b
movzx edx, word [edi]
cmp edx, 0x24
je 0x4238e0
cmp dword [esi + 0x14], 8
jb 0x4238c1
mov ecx, dword [esi]
jmp 0x4238c3
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
push edx
push eax
lea eax, [ebp - 0xe8]
push eax
mov ecx, esi
call fcn.004202b6
push 2
pop eax
add edi, eax
jmp 0x42394b
push 2
pop eax
add edi, eax
cmp word [edi], bx
je 0x423958
add edi, eax
cmp word [edi], bx
je 0x423958
push 0x29
push edi
call fcn.0043356b
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x423956
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.0040db52
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x42391b
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0xe4]
push eax
call fcn.00421f49
test al, al
je 0x423946
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42393b
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x10]
mov ecx, esi
call fcn.004201e2
lea edi, [ebx + 2]
xor ebx, ebx
cmp word [edi], bx
jne 0x4238af
jmp 0x423958
xor ebx, ebx
cmp dword [esi + 0x14], 8
jb 0x423962
mov eax, dword [esi]
jmp 0x423964
mov eax, esi
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x423998
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0040df9c
push 0x442ba8
lea eax, [ebp - 0xdc]
push eax
call fcn.00430608
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431325
cmp dword [esi + 0x14], 8
pop ecx
mov ebx, eax
jb 0x4239bb
mov eax, dword [esi]
jmp 0x4239bd
mov eax, esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
mov ecx, esi
call fcn.0040dbce
push ebx
call fcn.004304b4
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040de7c
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0040de7c
mov eax, esi
call fcn.00430740
ret 8
Function at 0x42538e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4253da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 8]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x442d98
lea eax, [ebp + 8]
push eax
call fcn.00430608
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4253b8
lea eax, [esi + 1]
push eax
call fcn.00431325
pop ecx
mov dword [ebx], eax
test eax, eax
jne 0x42540a
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push 0x4455a8
lea eax, [ebp + 0xb]
jmp 0x4253d4
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4253b8
mov eax, dword [ebx]
push edi
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x42790f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x44a7b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push eax
xor ebx, ebx
push 0x103
mov esi, ecx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x42796c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x110]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x442d98
lea eax, [ebp - 0x10c]
push eax
call fcn.00430608
inc edi
push edi
lea eax, [ebp - 0x108]
push eax
push 0x408f9c
push 0x103
push esi
call fcn.00427a43
add esp, 0x14
test eax, eax
js 0x4279c0
push ebx
push ebx
push 1
push ebx
push ebx
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4279b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x42796c
jmp 0x4279cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0042788f
jmp 0x4279cf
push 0x408fb8
mov ecx, 0x44a310
call fcn.00427a0a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004305fa
leave
ret
Function at 0x42b5b4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x44a7b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42b5d0
sub ecx, edx
cmp ecx, 2
je 0x42b68f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42b68f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42b68f
cmp eax, 3
je 0x42b62e
push eax
lea ecx, [ebp - 0x110]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
push 0x442d98
lea eax, [ebp - 0x10c]
push eax
call fcn.00430608
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004314aa
add esp, 0x10
cmp eax, 0x50
jne 0x42b64e
push 0x7b
jmp 0x42b60a
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00431b31
pop ecx
pop ecx
test eax, eax
je 0x42b64a
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.0042b5b4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42b68f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42b609
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004305fa
leave
ret 4

Function at 0x42c313
Capabilities:
Create restart manager session

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp byte [esi + 0x46], 0
je 0x42c33d
lea ecx, [ebp - 2]
call fcn.0041a777
mov al, byte [eax]
mov byte [ebp - 1], al
push 0x444430
lea eax, [ebp - 1]
push eax
call fcn.00430608
lea eax, [esi + 4]
push eax
push 0
push esi
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
je 0x42c365
push eax
lea ecx, [ebp - 0xc]
call fcn.0040ec8b
mov eax, dword [eax]
mov dword [ebp - 8], eax
push 0x442d98
lea eax, [ebp - 8]
jmp 0x42c337
mov byte [esi + 0x46], 1
pop esi
leave
ret
Function at 0x42f1ba
Capabilities:
Reference sql statements

Disassembly:
push 0x10
mov eax, 0x44262a
call fcn.00430654
lea eax, [ebp - 0x14]
push eax
push 0x409db0
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x42f200
jle 0x42f1ef
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
push 0x446864
lea eax, [ebp + 0xc]
push eax
call fcn.00430608
push 1
call sub.msi.dll_MsiDatabaseExportA
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x42f21d
mov dword [ebp + 0xc], 0x80070008
jmp 0x42f1f2
push dword [ebp + 0xc]
push 1
push esi
call sub.msi.dll_MsiReinstallFeatureW
test eax, eax
je 0x42f230
jle 0x42f1ef
jmp 0x42f1e5
push esi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x42f22c
push 2
pop ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [ebp - 0x10], edi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x42f22c
mov word [ebp + 8], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x18], edi
call sub.msi.dll_MsiRecordSetStreamA
mov eax, dword [ebp - 0x18]
inc eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431325
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x42f29f
mov dword [ebp + 0xc], 0x8007000e
push 0x44690c
jmp 0x42f1f7
lea eax, [ebp - 0x18]
push eax
push ebx
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
mov edi, eax
test edi, edi
je 0x42f2d3
push ebx
call fcn.004304b4
pop ecx
test edi, edi
jle 0x42f2cb
and edi, 0xffff
or edi, 0x80070000
mov dword [ebp + 0xc], edi
jmp 0x42f1f2
cmp dword [ebp - 0x10], 0
je 0x42f2e1
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push esi
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x42f2f5
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, ebx
call fcn.0043072c
ret 8
Function at 0x4305fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a7b0]
jne fcn.004313aa
repz ret

Function at 0x4313aa
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x44ba90], eax
mov dword [0x44ba8c], ecx
mov dword [0x44ba88], edx
mov dword [0x44ba84], ebx
mov dword [0x44ba80], esi
mov dword [0x44ba7c], edi
mov word [0x44baa8], ss
mov word [0x44ba9c], cs
mov word [0x44ba78], ds
mov word [0x44ba74], es
mov word [0x44ba70], fs
mov word [0x44ba6c], gs
pushfd
pop dword [0x44baa0]
mov eax, dword [ebp]
mov dword [0x44ba94], eax
mov eax, dword [ebp + 4]
mov dword [0x44ba98], eax
lea eax, [ebp + 8]
mov dword [0x44baa4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x44b9e0], 0x10001
mov eax, dword [0x44ba98]
mov dword [0x44b994], eax
mov dword [0x44b988], 0xc0000409
mov dword [0x44b98c], 1
mov eax, dword [0x44a7b0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x44a7b4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x44b9d8], eax
push 1
call fcn.0043817a
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x409e78
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x44b9d8], 0
jne 0x431496
push 1
call fcn.0043817a
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4315c5
call fcn.004354b7
mov dword [eax], esi
call fcn.004354a4
push 0x16
pop esi
mov dword [eax], esi
call fcn.0043663c
mov eax, esi
jmp 0x43161a
test dword [ebp + 0xc], 0xfffffff9
jne 0x4315ab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4315f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004354ca
pop ecx
call fcn.004354a4
mov eax, dword [eax]
jmp 0x43161a
test al, 0x10
jne 0x431618
test al, 1
je 0x431618
test byte [ebp + 0xc], 2
je 0x431618
call fcn.004354b7
mov dword [eax], 5
call fcn.004354a4
mov dword [eax], 0xd
jmp 0x4315e9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x43a537
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a7b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00434ae4
and dword [ebp - 0x14], 0
cmp dword [0x44c5b0], 0
mov dword [ebp - 0x18], eax
jne 0x43a5ea
push 0x40adc4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43a692
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4096e0
push ebx
call edi
test eax, eax
je 0x43a692
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40adb4
push ebx
mov dword [0x44c5b0], eax
call edi
push eax
call esi
push 0x40ada0
push ebx
mov dword [0x44c5b4], eax
call edi
push eax
call esi
push 0x40ad84
push ebx
mov dword [0x44c5b8], eax
call edi
push eax
call esi
mov dword [0x44c5c0], eax
test eax, eax
je 0x43a5ea
push 0x40ad6c
push ebx
call edi
push eax
call esi
mov dword [0x44c5bc], eax
mov eax, dword [0x44c5bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43a643
cmp dword [0x44c5c0], ecx
je 0x43a643
push eax
call esi
push dword [0x44c5c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43a643
test ebx, ebx
je 0x43a643
call edi
test eax, eax
je 0x43a63a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43a63a
test byte [ebp - 8], 1
jne 0x43a643
or dword [ebp + 0x10], 0x200000
jmp 0x43a676
mov eax, dword [0x44c5b4]
cmp eax, dword [ebp - 0x18]
je 0x43a676
push eax
call esi
test eax, eax
je 0x43a676
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43a676
mov eax, dword [0x44c5b8]
cmp eax, dword [ebp - 0x18]
je 0x43a676
push eax
call esi
test eax, eax
je 0x43a676
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c5b0]
call esi
test eax, eax
je 0x43a692
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43a694
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004305fa
leave
ret
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.240128103039983690935612
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.240128103039983690935612]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.240128103039983690935612
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.240128103039983690935612]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret