joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401950
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x260
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ecx], ebx
lea edi, [ebp - 0x26a]
mov word [edi + 0x208], bx
mov word [edi], bx
mov dword [ebp - 0x10], ebx
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x401a39
sub esp, 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
lea esi, [ebp - 0x10]
mov dword [esp + 0x14], esi
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x401a39
test byte [ebp - 0x10], 8
mov bl, 1
je 0x401a3b
mov dword [ebp - 0x10], 0
push esi
call fcn.004018b0
add esp, 4
xor ebx, ebx
test al, al
je 0x401a3b
mov word [ebp - 0x12], bx
mov word [ebp - 0x26a], bx
push str.D:PAI_A__FA___BA__A_OIIOCI_GA___BA__A__FA___SY__A_OIIOCI_GA___SY__A_OIIOCI_GA___CO__A__FA___
push 0x12c
push edi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401a4a
push dword [ebp - 0x10]
push 0x12c
push edi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401a48
push 0x456124
push 0x12c
push edi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401a48
push 0
push dword [ebp + 0xc]
push 1
push edi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
setne bl
jmp 0x401a4a
mov bl, 1
mov eax, ebx
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401a3b
Function at 0x401a60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push edi
push 0x104
push ebx
call fcn.00402e50
add esp, 0xc
test al, al
je 0x401b79
push 0x456128
push 0x104
push ebx
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401b79
mov esi, 0x104
push esi
push ebx
call fcn.00402e20
add esp, 8
mov ecx, eax
mov dword [ebp - 0x10], eax
sub esi, eax
xor ebx, ebx
cmp esi, 0xb
jb 0x401b7b
lea eax, [ebp - 0x28]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov byte [eax + 8], 0
mov dword [eax - 4], 0xc
push eax
push edi
call fcn.00401950
add esp, 8
lea ecx, [ebp - 0x28]
mov byte [ecx + 8], al
test al, al
je 0x401b7b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 0xc
xor ecx, eax
lea eax, [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x1c], eax
add ecx, 5
mov dword [ebp - 0x18], ecx
mov ebx, 0xfffffff6
push esi
push dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00402db0
add esp, 0x10
test al, al
je 0x401b75
cmp dword [ebp - 0x18], 0x103
ja 0x401b42
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov word [eax + ecx*2 + 0xa], 0
push 0x456130
push 0x104
mov edi, dword [ebp + 0xc]
push edi
call fcn.00402e90
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
lea ecx, [ebp - 0x2c]
cmovne eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401b85
inc dword [ebp - 0x14]
inc ebx
jne 0x401b16
xor ebx, ebx
jmp 0x401b9c
xor ebx, ebx
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x45613a
push 0x104
push dword [ebp + 0xc]
call fcn.00402e90
add esp, 0xc
mov ebx, eax
cmp byte [ebp - 0x20], 0
je 0x401b7b
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x401b7b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401b7b

Function at 0x401bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x216]
mov word [edi + 0x208], ax
mov word [edi], ax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x401c05
mov bl, 1
push esi
push edi
call fcn.00401a60
add esp, 8
test al, al
jne 0x401c42
push 0x104
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x401c40
push eax
push edi
call fcn.00402f60
add esp, 8
test eax, eax
je 0x401c40
mov word [eax], 0
push esi
push edi
call fcn.00401a60
add esp, 8
mov ebx, eax
jmp 0x401c42
xor ebx, ebx
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401da0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x664
xor eax, eax
lea esi, [ebp - 0x670]
mov word [esi + 0x208], ax
mov word [esi], ax
push dword [ebp + 8]
push 0x104
push esi
call fcn.00402e50
add esp, 0xc
test al, al
je 0x401f14
push dword [ebp + 0xc]
push 0x104
push esi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401f14
push 0x456148
push 0x104
push esi
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401f14
xor edi, edi
lea ebx, [ebp - 0x25c]
push 0x250
push edi
push ebx
call fcn.00401f80
add esp, 0xc
push edi
push edi
push 1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
cmp eax, 0xffffffff
je 0x401f14
mov esi, eax
xor eax, eax
lea ecx, [ebp - 0x466]
mov word [ecx + 0x208], ax
mov word [ecx], ax
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [ebp - 0x25c], 0x10
je 0x401efb
movzx eax, word [ebp - 0x28]
mov ecx, 0x2c
lea ebx, [ebp - 0x230]
test ax, ax
je 0x401e7b
mov ecx, 0x234
lea ebx, [ebp - 0x28]
test ebx, ebx
je 0x401eb8
cmp word [ebp + ecx - 0x25c], 0x2e
jne 0x401eb8
lea ecx, [ebp - 0x22e]
test ax, ax
je 0x401e98
lea ecx, [ebp - 0x26]
movzx ecx, word [ecx]
test ecx, ecx
je 0x401efb
cmp ecx, 0x2e
jne 0x401eb8
lea ecx, [ebp - 0x22c]
test ax, ax
je 0x401eb2
lea ecx, [ebp - 0x24]
cmp word [ecx], 0
je 0x401efb
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x466]
push eax
call fcn.00402e50
add esp, 0xc
test al, al
je 0x401efb
push ebx
push 0x104
lea eax, [ebp - 0x466]
push eax
call fcn.00402e90
add esp, 0xc
test al, al
je 0x401efb
lea eax, [ebp - 0x466]
push eax
call fcn.00401c50
add esp, 4
lea eax, [ebp - 0x25c]
push eax
push esi
call edi
test eax, eax
jne 0x401e52
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0x664
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x20c
xor eax, eax
lea esi, [ebp - 0x20e]
mov word [esi + 0x208], ax
mov word [esi], ax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x401f6c
push 0x456128
push esi
call fcn.00401da0
add esp, 8
push str.chrome_
push esi
call fcn.00401da0
add esp, 8
add esp, 0x20c
pop esi
pop ebp
ret
Function at 0x4027c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x208
mov eax, dword [0x460728]
test eax, eax
jne 0x40288c
lea esi, [ebp - 0x210]
push 0x208
push 0
push esi
call fcn.00401f80
add esp, 0xc
mov edi, 0x104
push edi
push esi
push str._WINDIR__system32cabinet.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, edi
jae 0x402817
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x460728], eax
jmp 0x40281c
mov eax, dword [0x460728]
test eax, eax
jne 0x40288c
mov word [ebp - 0x210], 0
push edi
push esi
push str._SYSTEMROOT__system32cabinet.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, edi
jae 0x40284d
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x460728], eax
jmp 0x402852
mov eax, dword [0x460728]
test eax, eax
jne 0x40288c
mov word [ebp - 0x210], 0
push edi
push esi
push str.C:Windows_system32cabinet.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, edi
jae 0x402883
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x460728], eax
jmp 0x402888
mov eax, dword [0x460728]
test eax, eax
je 0x4028c3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
call esi
mov dword [0x46071c], eax
push str.FDIDestroy
push dword [0x460728]
call esi
mov dword [0x460724], eax
push str.FDICopy
push dword [0x460728]
call esi
mov dword [0x460720], eax
xor eax, eax
cmp dword [0x46071c], 0
je 0x4028e1
cmp dword [0x460724], 0
je 0x4028e1
cmp dword [0x460720], 0
setne al
add esp, 0x208
pop esi
pop edi
pop ebp
ret
Function at 0x40b650
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov ecx, dword [ebp + 8]
mov eax, dword [0x45d010]
xor eax, ebp
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x40b877
cmp dword [0x45ea28], 0xe69e32f3
jne 0x40b87a
mov edi, 0x308
mov edx, 0x20
mov esi, 0x20
add edi, dword [ecx + 0xc]
mov byte [esp + 0xf], 0xff
mov al, byte [ecx + 2]
je 0x40b6a4
bsr esi, edi
xor esi, 0x1f
mov ecx, 0x458a58
sub ecx, esi
mov cl, byte [ecx]
mov ebx, edi
shr ebx, cl
sub edx, esi
and ebx, 7
lea ecx, [ebx + edx*8]
mov edx, dword [edx*4 + 0x458a5c]
and edx, edi
cmp edx, 1
mov edx, dword [ebp + 8]
lea esi, [edx + 0x48]
sbb ecx, 0xffffffff
movzx ecx, word [ecx + ecx + 0x458824]
test al, al
mov dword [esp], edi
jne 0x40b6f3
cmp edi, 0x41
setae al
cmp cx, 0x76
setb dl
and dl, al
movzx eax, dl
or eax, ecx
mov ecx, eax
movzx ebx, cx
shl ebx, 5
mov dword [esp + 4], esi
lea edi, [esi + ebx]
mov eax, dword [ebp + 8]
lea esi, [eax + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x40b83f
mov dword [esp + 8], esi
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x40b7e7
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x40b838
mov edx, dword [esp + 4]
mov ebx, dword [edx + ebx + 0xc]
bswap ecx
mov edx, ecx
xor edx, esi
cmp edx, 0x1fffff
ja 0x40b84b
mov edx, ecx
and edx, 0x1fc000
je 0x40b84b
prefetcht0 byte [ecx]
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov edi, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x1180]
mov dword [edi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, esi
push edi
call fcn.00410900
push esi
push dword [0x461318]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x45fac4]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x90], esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00417663
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0xf]
mov ecx, edi
push eax
push 0x4000
push dword [esp + 8]
push 2
mov edi, dword [ebp + 8]
push edi
call fcn.00415240
test eax, eax
je 0x40b87d
mov esi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x40b77b
xor ecx, ecx
jmp 0x40b75f
mov ecx, esi
call fcn.004111f0
jmp 0x40b715
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.0044d2b0
push edi
call fcn.00401060
add esp, 4
mov ecx, ebx
call fcn.0044d330
int3
int3
xor esi, esi
jmp 0x40b79e
Function at 0x40cb30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x40cb47
test eax, eax
je 0x40cb47
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x40cb55
mov ecx, dword [0x46e48c]
test ecx, ecx
jne 0x40cb91
cmp dword [0x46e484], 0
je 0x40cb41
mov esi, dword [0x46e488]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x40cb9b
test esi, esi
je 0x40cb41
mov ecx, dword [0x46e484]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x40cb41
call dword [section..00cfg]
call ecx
jmp 0x40cb55
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40cb79
Function at 0x417253
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417292
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417292
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417292
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x417292
cmp dword [ecx + 0x74], 0xe
jbe 0x417292
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42556d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4603d8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4255ad
cmp byte [ebx], 0xa
jne 0x4255ad
or byte [edi + eax + 0x28], 4
jmp 0x4255b2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4256b1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x425694
inc eax
cmp dl, 0xd
je 0x4255de
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x425604
cmp eax, ecx
jae 0x425612
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4255c6
jmp 0x4256b1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42568f
cmp dword [ebp - 0x10], 0
je 0x42568f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4603d8]
test byte [eax + edi + 0x28], 0x48
je 0x425669
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425654
mov byte [esi], dl
jmp 0x425665
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4603d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4256b1
cmp byte [ebp - 1], 0xa
jne 0x425678
cmp esi, ebx
jne 0x425678
mov byte [esi], 0xa
jmp 0x4256b0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00432ff8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4256b1
mov byte [esi], 0xd
jmp 0x4256b0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4603d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4256ae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4256b1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4256ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4603d8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425700
cmp word [ebx], dx
jne 0x425700
or byte [eax + edi + 0x28], 4
jmp 0x425705
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x425868
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x425848
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x425746
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42577c
cmp eax, edx
jae 0x42578a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x425721
jmp 0x425868
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425843
cmp dword [ebp - 0x18], 0
je 0x425843
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4603d8]
test byte [eax + edi + 0x28], 0x48
je 0x425819
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4257dd
mov word [esi], cx
jmp 0x425814
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4603d8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4603d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4603d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x425868
pop eax
cmp word [ebp - 4], ax
jne 0x425829
cmp esi, ebx
jne 0x425829
mov word [esi], ax
jmp 0x425865
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00432ff8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x425868
push 0xd
pop eax
jmp 0x425824
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4603d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x425862
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x425868
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b1d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b1fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b1fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42c286
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x45147c
push str.FlsAlloc
push 0x1f
call fcn.0042c739
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c2ba
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x42c2c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42c304
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4514a0
push str.FlsGetValue
push 0x21
call fcn.0042c739
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c33b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42c343
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4514b4
push str.FlsSetValue
push 0x22
call fcn.0042c739
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c37d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430447
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042baba
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042baba
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4304be
cmp word [ecx], dx
je 0x4304be
mov eax, dword [0x451e74]
push edi
dec eax
push eax
push 0x451d60
call fcn.00430637
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x430531
cmp word [eax], dx
je 0x430531
mov eax, dword [edi]
test eax, eax
je 0x4304e2
cmp word [eax], dx
je 0x4304e2
lea eax, [ebp - 0x10]
push eax
call fcn.00430698
jmp 0x4304eb
lea eax, [ebp - 0x10]
push eax
call fcn.00430993
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43055b
mov eax, dword [0x451d5c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x451a50
call fcn.00430637
add esp, 0xc
test al, al
je 0x43055b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x430526
cmp word [eax], di
je 0x430526
lea eax, [ebp - 0x10]
push eax
call fcn.00430698
pop ecx
jmp 0x43055d
lea eax, [ebp - 0x10]
push eax
call fcn.00430993
jmp 0x430523
mov eax, dword [edi]
test eax, eax
je 0x430548
cmp word [eax], dx
je 0x430548
lea eax, [ebp - 0x10]
push eax
call fcn.00430ad5
pop ecx
jmp 0x43055b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x430626
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00430bc7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x430626
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x430626
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x430626
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4305b3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042c57c
test ebx, ebx
je 0x430621
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042c57c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430626
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430626
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00437ec3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x430628
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417663
leave
ret