joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db34
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x44b540]
test eax, eax
je 0x40db94
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x40dbb4
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x40dbd4
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40dc24
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x40db56
jmp 0x40dbb4
call sym._fc_key_init_once
mov eax, dword [0x44b540]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x40db5d
jmp 0x40dbd4
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40db85
lea esi, [esi]
mov eax, dword [0x44b540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dc71
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40dc7d
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40dc52
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40dc41
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dc41
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
jmp 0x40dc30
call sym._fc_key_init_once
mov eax, dword [0x44b540]
jmp 0x40dc37
Function at 0x40dc94
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x44b540]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40dd28
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x40dd44
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x40dd64
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40dd1c
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40dde3
mov eax, dword [0x44b540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40ddba
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x40ddd4
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x40dd94
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x40dcd9
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x40dcb4
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x44b540]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x40dcbf
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40dcc2
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40dd0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dd0b
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x40dcfd
nop
lea esi, [esi]
call sym._fc_key_init_once
mov eax, dword [0x44b540]
jmp 0x40dcfd
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40ddf4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40de86
mov eax, dword [0x44b540]
test eax, eax
je 0x40de7a
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x40def5
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x40de9b
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40df13
mov eax, dword [0x44b540]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dee6
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x40df04
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x40dec7
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
jmp 0x40de16
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40de2b
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40de69
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40de69
call sym.___w32_sharedptr_initialize
mov eax, dword [0x44b540]
jmp 0x40de54
call sym._fc_key_init_once
mov eax, dword [0x44b540]
jmp 0x40de21
call sym._fc_key_init_once
mov eax, dword [0x44b540]
jmp 0x40de5f
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40e0f4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40e124
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0x41562c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init

Function at 0x415f9c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x415fec
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10001320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov byte [ebp - 0x24], 0x47
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x53
mov byte [ebp - 0x20], 0x79
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6d
mov byte [ebp - 0x1b], 0x44
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0x72
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x63
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x79
mov byte [ebp - 0x12], 0x41
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x24]
push eax
call fcn.10001430
add esp, 4
mov dword [ebp - 0x10], eax
push 0x1c368da0
call fcn.10001220
add esp, 4
mov dword [ebp - 0xc], eax
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ecx]
mov byte [ebp - 0x41], dl
add dword [ebp - 0x3c], 1
cmp byte [ebp - 0x41], 0
jne 0x100013b0
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x48]
mov byte [ecx - 2], 0
push 0x100050f0
mov edx, dword [ebp + 8]
push edx
call fcn.100012b0
add esp, 8
call dword [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
call entry0
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100012b0
add esp, 8
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x78
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.100012b0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x10001590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push 0x74e3bb2e
call fcn.10001220
add esp, 4
mov dword [ebp - 0x16c], eax
push 0x3749ca10
call fcn.10001220
add esp, 4
mov dword [ebp - 0x14], eax
push 0x49f43cb7
call fcn.10001220
add esp, 4
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x28], 0x23ec5044
mov dword [ebp - 0x24], 0x33af2093
push 0
push 2
call dword [ebp - 0x16c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x158], 0x128
lea eax, [ebp - 0x158]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [ebp - 0x14]
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x33
mov byte [ebp - 7], 0x32
mov byte [ebp - 6], 0x2e
mov byte [ebp - 5], 0x64
mov byte [ebp - 4], 0x6c
mov byte [ebp - 3], 0x6c
mov byte [ebp - 2], 0
lea edx, [ebp - 0xc]
push edx
call dword [0x1000504c]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
jne 0x10001657
lea eax, [ebp - 0xc]
push eax
call dword [0x10005040]
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x164], 0x45
mov byte [ebp - 0x163], 0x6e
mov byte [ebp - 0x162], 0x75
mov byte [ebp - 0x161], 0x6d
mov byte [ebp - 0x160], 0x57
mov byte [ebp - 0x15f], 0x69
mov byte [ebp - 0x15e], 0x6e
mov byte [ebp - 0x15d], 0x64
mov byte [ebp - 0x15c], 0x6f
mov byte [ebp - 0x15b], 0x77
mov byte [ebp - 0x15a], 0x73
mov byte [ebp - 0x159], 0
lea ecx, [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x168]
push edx
call dword [0x10005004]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.10001460
add esp, 8
test eax, eax
je 0x10001741
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x150]
push eax
call fcn.10001460
add esp, 8
test eax, eax
je 0x10001741
lea ecx, [ebp - 0x134]
push ecx
push 0x100050d0
call dword [0x1000500c]
test eax, eax
je 0x10001741
mov dword [0x10007128], 0
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x174], edx
lea eax, [ebp - 0x174]
push eax
push 0x10001550
call dword [ebp - 0x10]
cmp dword [0x10007128], 0xa
jbe 0x1000173d
mov eax, 1
jmp 0x100017a3
xor eax, eax
jmp 0x100017a3
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [ebp - 0x170]
test eax, eax
jne 0x100016c2
mov byte [ebp - 0x20], 0x4d
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x6e
mov byte [ebp - 0x1d], 0x69
mov byte [ebp - 0x1c], 0x53
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x69
mov byte [ebp - 0x19], 0x66
mov byte [ebp - 0x18], 0x66
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0
lea eax, [ebp - 0x20]
push eax
push 0
call dword [0x10005098]
test eax, eax
je 0x100017a1
mov eax, 1
jmp 0x100017a3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402b03
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
push 7
xor ebx, ebx
mov word [ebp - 0x24], bx
pop ecx
xor eax, eax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
call fcn.00409657
pop ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402b74
push dword [ebp - 0x28]
call fcn.00409c6d
push dword [ebp - 0x30]
call fcn.00409657
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x402c2e
cmp edi, ebx
mov dword [ebp - 0x34], edi
je 0x402c2e
jmp 0x402b99
mov edi, dword [ebp - 0x34]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x38], 0
je 0x402bb6
push 6
lea eax, [edi + 0x194]
push eax
push dword [ebp - 0x38]
call fcn.00408db0
add esp, 0xc
lea esi, [edi + 0x1ac]
test esi, esi
je 0x402c1d
lea edi, [esi + 4]
push edi
call fcn.0040b5f0
cmp eax, 0x10
pop ecx
jle 0x402bd2
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402bf1
cmp ecx, eax
jne 0x402be2
and word [ebp + ecx*2 - 0x24], 0
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402bda
lea eax, [ebp - 0x24]
push eax
call fcn.00402ced
test eax, eax
pop ecx
je 0x402c13
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push 0x10
push dword [eax + ebx*4]
call fcn.00409115
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402bc0
mov edi, dword [ebp - 0x34]
test ebx, ebx
jg 0x402c2e
mov edi, dword [edi]
test edi, edi
mov dword [ebp - 0x34], edi
jne 0x402b96
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402c45
push dword [ebp - 0x28]
call fcn.00409c6d
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
jmp section..htext

Function at 0x402e73
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00408c40
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402ef7
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x402ee1
test eax, eax
jne 0x402ed0
cmp word [ebp + 0x94], 4
jb 0x402ef7
inc esi
cmp eax, 2
jne 0x402ed7
push eax
pop esi
jae 0x402ede
cmp eax, 1
jne 0x402ef7
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x402ef7
test eax, eax
jne 0x402eef
push 4
jmp 0x402ef6
cmp eax, 1
jne 0x402ef7
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408c2e
add ebp, 0xa0
leave
ret
Function at 0x43186b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4318aa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4318aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4318aa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4318aa
cmp dword [ecx + 0x74], 0xe
jbe 0x4318aa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x437428
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4374c5
push ebx
push esi
call fcn.004373f1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00437385
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x437472
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4374c4
push edi
push eax
call fcn.00435d8b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x437492
call fcn.00435dd9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4374c3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00437385
add esp, 0x20
test eax, eax
jne 0x4374b1
push edi
call fcn.00435dd9
jmp 0x4374b9
push ebx
call fcn.00435dd9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4386d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4400d8
push 0x4400d0
push str.FlsAlloc
push 0x1f
call fcn.00438593
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438708
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e134]
call esi
jmp 0x43870e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x438752
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4400e8
push 0x4400e0
push str.FlsGetValue
push 0x21
call fcn.00438593
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438789
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x438791
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4400f0
push 0x4400e8
push str.FlsSetValue
push 0x22
call fcn.00438593
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4387cb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43db90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43dbbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43dbbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401110
Capabilities:
Get file version info

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push eax
mov esi, ecx
push edi
mov dword [esp + 0x18], 0
call fcn.00401270
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x401147
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
push ebx
call fcn.00403d57
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x401162
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
mov edx, dword [esp + 0x10]
push ebp
push ebx
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401186
push ebp
call fcn.00403c6e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
push edi
mov ecx, esi
call fcn.004013c0
push edi
mov ecx, esi
mov ebx, eax
call fcn.004013c0
push eax
lea ecx, [esi + 0x14]
call fcn.00413549
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ebp
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004011f0
mov edi, eax
test edi, edi
jne 0x4011d3
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ebp
push edx
push eax
push ebx
mov ecx, esi
call fcn.00401340
mov edi, eax
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00403c6e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14

Function at 0x401270
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
cmp eax, 3
push ebx
push edi
ja case.default.0x40128d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp dword [eax*4 + 0x40132c]
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4012f4
pop edi
pop ebx
add esp, 0x104
ret 8
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4012f4
pop edi
xor eax, eax
pop ebx
add esp, 0x104
ret 8
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x4012c3
lea eax, [esp + 8]
push 0x428d00
push eax
call ebx
jmp 0x401300
lea ecx, [esp + 8]
push 0x4250d4
push ecx
call edi
push esi
mov esi, dword [esp + 0x114]
lea edx, [esp + 0xc]
push esi
push edx
call edi
lea eax, [esp + 0xc]
push eax
push esi
call ebx
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0x104
ret 8
Function at 0x4013c0
Capabilities:
Get file version info
Identify system language via api

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], 0
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401522
lea ecx, [esi + 1]
push ecx
call fcn.00403d57
mov edx, dword [esp + 0x1c]
add esp, 4
mov ebp, eax
push ebp
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401515
push str.VarFileInfoTranslation
push 0x428d04
call fcn.004040ce
add esp, 8
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x428d04
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401475
cmp dword [esp + 0x18], 4
jne 0x401475
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov cl, byte [esp + 0x12]
mov edx, eax
push ecx
shr edx, 0x18
push edx
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
push ecx
push edx
push str.StringFileInfo_02X_02X_02X_02XFileVersion
push 0x428d04
call fcn.004040ce
add esp, 0x18
jmp 0x401493
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
push eax
push 0x4250dc
push 0x428d04
call fcn.004040ce
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x428d04
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401515
cmp dword [esp + 0x18], 0x100
jae 0x4014dc
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x428d04
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4014fa
mov eax, dword [esp + 0xc]
push 0xfa
push eax
push 0x428d04
call fcn.00403fd0
add esp, 0xc
mov byte [0x428dfe], 0
test ebp, ebp
je 0x401507
push ebp
call fcn.00403c6e
add esp, 4
pop edi
pop esi
mov eax, 0x428d04
pop ebp
add esp, 8
ret 4
test ebp, ebp
je 0x401522
push ebp
call fcn.00403c6e
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 4