joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4104e0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5195d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
call fcn.0042a7b0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410549
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x410549
xor bl, bl
jmp 0x4105be
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
call fcn.0042a7b0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
je 0x4105a7
test ecx, ecx
je 0x4105a7
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp byte [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 1
je 0x4105e4
test ecx, ecx
je 0x4105e4
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x20]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410830
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5195f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
call fcn.0042a7b0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
je 0x4108ad
test ecx, ecx
je 0x4108ad
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
cmp ebx, 0xffffffff
je 0x4108d2
test bl, 0x10
je 0x4108d2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4108f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51961b
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x15c], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x164]
mov dword [ebp - 4], 0
call fcn.0042a7b0
push 0
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
cmp byte [ebp - 0x15c], 0
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 4], 1
je 0x410999
test ecx, ecx
je 0x410999
mov eax, dword [ebp - 0x164]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x160]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4109ca
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00410830
add esp, 4
test al, al
je 0x4109fa
cmp byte [ebp + 0xc], 0
je 0x4109f6
cmp byte [ebp + 0x10], 0
je 0x4109f6
push esi
push 0xffffffffffffffff
call fcn.0040fb30
add esp, 8
xor al, al
jmp 0x4109af
push esi
push edi
lea eax, [ebp - 0x158]
push str.mkDir__s_
push eax
call fcn.0040e910
add esp, 0x10
lea eax, [ebp - 0x158]
push 0x559658
push eax
call fcn.00480e30
int3
Function at 0x410bf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5196d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
call fcn.00410830
add esp, 4
test al, al
je 0x410c55
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test ecx, ecx
jne 0x410c36
test eax, eax
je 0x410c41
push eax
push ecx
push edi
call fcn.0042c9f0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
call fcn.0042c180
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x410c82
push 0
push 1
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0042c3d0
push 0
lea ecx, [ebp - 0x3c]
call fcn.0042c450
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x410c94
push 0
push esi
lea ecx, [ebp - 0x3c]
call fcn.0042c550
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0042c300
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
test ebx, ebx
jne 0x410ccd
test esi, esi
je 0x410cd0
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0042a7b0
push edi
push str.CreateDirectory_failed_for__s
push esi
push dword [ebp - 0x14]
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
movzx eax, al
push eax
call fcn.0040ef80
add esp, 0xc
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
je 0x410d40
test ecx, ecx
je 0x410d40
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0047f232
mov eax, dword [ebp - 0x1c]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x410d60
push eax
call esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x410d71
push eax
call esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x410d82
push eax
call esi
push dword [ebp - 0x34]
call fcn.0047f232
push dword [ebp - 0x38]
call fcn.0047f232
mov eax, dword [ebp - 0x3c]
add esp, 8
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x410da6
push eax
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410f00
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519730
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x410fa1
push 0
push 0x52c48c
push esi
lea ecx, [ebp - 0x278]
call fcn.0042a330
lea ecx, [ebp - 0x278]
call fcn.0042a520
test eax, eax
je 0x410f96
nop dword [eax + eax]
mov eax, dword [ebp - 0x278]
shr eax, 4
test al, 1
je 0x410f7c
push 1
push dword [ebp - 0x18]
call fcn.00410f00
add esp, 8
jmp 0x410f87
push dword [ebp - 0x18]
call fcn.004101b0
add esp, 4
lea ecx, [ebp - 0x278]
call fcn.0042a520
test eax, eax
jne 0x410f60
lea ecx, [ebp - 0x278]
call fcn.0042a4d0
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov byte [ebp - 0x27c], 0
call fcn.0042a7b0
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
cmp byte [ebp - 0x27c], 0
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 4], 0
je 0x411014
test ecx, ecx
je 0x411014
mov eax, dword [ebp - 0x284]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x280]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret
Function at 0x411070
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51976b
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x370], edi
mov dword [ebp - 0x374], edi
mov dword [edi], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00481320
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4111d6
cmp eax, 0x104
jae 0x4111d6
push 1
push 0xffffffffffffffff
push 0xfde9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x36c]
call fcn.00411420
mov esi, dword [ebp - 0x368]
push dword [edi]
mov dword [ebp - 0x368], 0
mov dword [ebp - 0x36c], 0
call fcn.0047f232
add esp, 4
mov dword [edi], esi
cmp byte [ebp - 0x364], 0
mov eax, dword [ebp - 0x368]
mov byte [ebp - 4], 1
je 0x411160
test eax, eax
je 0x411160
push dword [ebp - 0x36c]
push eax
call fcn.00408000
mov eax, dword [ebp - 0x368]
add esp, 8
push eax
call fcn.0047f232
add esp, 4
mov byte [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x411195
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x411195
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4111e4
mov esi, dword [edi]
push esi
call fcn.00407160
add esp, 4
cmp byte [eax + esi - 1], 0x5c
jne 0x4111b7
push esi
call fcn.00407160
mov ecx, dword [edi]
add esp, 4
mov byte [eax + ecx - 1], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x52c678
jmp 0x4111ec
call esi
push eax
push str.CreateDirectory
lea ecx, [ebp - 0x360]
call fcn.00402910
push 0x558100
lea eax, [ebp - 0x360]
push eax
call fcn.00480e30
int3
Function at 0x416ab0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a150
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x571b70]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x570e98]
cmp eax, dword [ecx + 4]
jg 0x416be8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x416b0c
push eax
push 0x570e8c
call fcn.00416dd0
add esp, 8
jmp 0x416b6e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x18]
call fcn.00411420
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
push 0x570e8c
call fcn.00416dd0
add esp, 8
cmp byte [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
je 0x416b5e
test eax, eax
je 0x416b5e
push dword [ebp - 0x18]
push eax
call fcn.00408000
mov eax, dword [ebp - 0x14]
add esp, 8
push eax
call fcn.0047f232
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0xffffffffffffffff
push 0
call fcn.00407040
add esp, 8
mov dword [ebp + 0x10], eax
mov edx, dword [0x570e90]
mov dword [ebp - 4], 2
cmp dword [0x570e94], edx
je 0x416b9f
xor ecx, ecx
mov dword [edx], eax
add dword [0x570e90], 4
jmp 0x416bb1
lea eax, [ebp + 0x10]
mov ecx, 0x570e8c
push eax
push edx
call fcn.00401ff0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0047f232
mov ecx, dword [0x570e90]
add esp, 4
sub ecx, dword [0x570e8c]
mov eax, dword [ebp + 8]
sar ecx, 2
dec ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x570e8c]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x570e98
call fcn.0047f835
add esp, 4
cmp dword [0x570e98], 0xffffffff
jne 0x416af5
push 0x527340
call fcn.0047f612
push 0x570e98
call fcn.0047f7eb
add esp, 8
jmp 0x416af5

Function at 0x416c20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a178
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x416c67
push eax
push dword [ebp + 8]
call fcn.00416dd0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x18]
call fcn.00411420
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.00416dd0
add esp, 8
cmp byte [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
je 0x416cb7
test eax, eax
je 0x416cb7
push dword [ebp - 0x18]
push eax
call fcn.00408000
mov eax, dword [ebp - 0x14]
add esp, 8
push eax
call fcn.0047f232
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4182e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a442
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x160], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x15c], 0
push dword [eax + 4]
mov dword [ebp - 4], 0
call fcn.0040f7f0
mov edi, eax
mov ecx, edx
mov eax, dword [ebp + 0xc]
add esp, 4
cdq
cmp ecx, edx
jl 0x418350
jg 0x4183cf
cmp edi, eax
ja 0x4183cf
push edi
lea eax, [ebp - 0x168]
mov dword [esi], 0
push eax
mov ecx, esi
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
call fcn.00417f40
mov eax, dword [ebp - 0x160]
mov dword [ebp - 4], 0
mov dword [ebp - 0x15c], 1
push dword [eax + 4]
push edi
push 1
push dword [esi + 4]
call fcn.0049f336
add esp, 0x10
test eax, eax
jle 0x4183fb
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x154]
push ecx
push edi
push str.Error:_file_is_too_large___lld____d_
push 1
push eax
call fcn.00409fd0
add esp, 0x18
lea eax, [ebp - 0x154]
push 0x558f70
push eax
call fcn.00480e30
lea eax, [ebp - 0x158]
push str.Reading_from_file_failed
push eax
call fcn.00406390
add esp, 8
lea eax, [ebp - 0x158]
push 0x5596cc
push eax
call fcn.00480e30
int3

Function at 0x418800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
push eax
call fcn.004a2384
add esp, 0x10
cmp eax, 1
jne 0x41883f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x14c]
push str.writing_to_file_failed
push eax
call fcn.00406390
add esp, 8
lea eax, [ebp - 0x14c]
push 0x5596cc
push eax
call fcn.00480e30
int3
Function at 0x41b2a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
call fcn.0041ad40
cmp dword [eax], 0
je 0x41b2ea
call fcn.0041ad40
mov eax, dword [eax]
test eax, eax
je 0x41b32d
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push esi
call eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x41b310
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047f941
mov esp, ebp
pop ebp
ret
push 0x70
push str.C:ent_slave_rootworkspaceVNCConnectBuildsClientsVNC_7.13.xlabelcon_windows_64_rvcore_baselocwinUtilWin.cxx
push str.name__0
lea ecx, [ebp - 0x154]
call fcn.00428f10
push eax
call fcn.00428f90
push str.GetLocaleInfoEx
push 0x52c71c
lea ecx, [ebp - 0x148]
call fcn.00411280
push 0x559764
lea eax, [ebp - 0x148]
push eax
call fcn.00480e30
int3

Function at 0x41c080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ac78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0042a7b0
push str.BUILTINRESOURCE
push dword [ebp - 0x14]
push dword [0x57105c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
je 0x41c110
test ecx, ecx
je 0x41c110
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0047f232
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test edi, edi
jne 0x41c14c
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [0x57105c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c12b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [0x57105c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4265d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c040
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push str.__s:__s_r_n
push eax
call fcn.00402670
add esp, 0x10
mov eax, dword [eax]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0042a7b0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
je 0x426669
test ecx, ecx
je 0x426669
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x1c]
add esp, 8
push ecx
call fcn.0047f232
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0047f232
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429d90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c6fd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x56c36c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0xffffffffffffffff
push 0x52d190
call fcn.00407040
mov dword [edi], eax
add esp, 8
mov dword [edi + 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
test eax, eax
je 0x429de8
cmp byte [eax], 0
jne 0x429dea
xor eax, eax
push 0xffffffffffffffff
push eax
call fcn.00407040
add esp, 8
mov dword [edi + 8], eax
push dword [0x571360]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov eax, dword [edi + 8]
mov byte [ebp - 4], 2
test eax, eax
je 0x429e2c
push eax
push str.setting_locale__s
push 0x570e1c
call fcn.004158f0
add esp, 0xc
push edi
push dword [0x571360]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 8]
test eax, eax
je 0x429f22
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
push ecx
push eax
call fcn.004196d0
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0042a100
push 0x18
call fcn.0047f1f4
add esp, 0x1c
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x429e93
mov ecx, eax
call fcn.0042e890
jmp 0x429e95
xor eax, eax
mov esi, dword [edi + 0x10]
mov byte [ebp - 4], 3
mov dword [edi + 0x10], eax
test esi, esi
je 0x429eb5
mov ecx, esi
call fcn.0042e8f0
push 0x18
push esi
call fcn.0047f224
add esp, 8
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.00415fe0
mov ecx, eax
call fcn.00416630
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x429f60
mov ebx, dword [ebp - 0x1c]
cmp esi, ebx
je 0x429ef4
nop dword [eax]
push dword [esi]
call fcn.0047f232
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x429ee0
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x429f16
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429f76
push ecx
push esi
call fcn.0047f224
add esp, 8
jmp 0x429f60
mov eax, dword [edi + 0xc]
test eax, eax
je 0x429f33
push eax
mov ecx, edi
call fcn.0042a080
jmp 0x429f60
push 0x571338
mov dword [ebp + 8], 0x571338
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x571350
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0042a080
push 0x571338
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0048aa1d
int3
Function at 0x429fb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c720
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [0x571360]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x42a05c
push dword [esi + 0xc]
push dword [0x571360]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esi + 8], 0
je 0x42a016
push str.restoring_locale
push 0x570e1c
call fcn.004158f0
add esp, 8
mov edi, dword [esi + 0x10]
test edi, edi
je 0x42a02f
mov ecx, edi
call fcn.0042e8f0
push 0x18
push edi
call fcn.0047f224
add esp, 8
push dword [esi + 8]
call fcn.0047f232
push dword [esi]
call fcn.0047f232
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret
push 0x2f
push str.C:ent_slave_rootworkspaceVNCConnectBuildsClientsVNC_7.13.xlabelcon_windows_64_rvcore_baselocLocaleSetter.cxx
push str.thrInst__this
lea ecx, [ebp - 0x160]
call fcn.00428f10
push eax
call fcn.00428f90
int3

Function at 0x42b190
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x42b1b2
mov eax, dword [ecx]
test eax, eax
je 0x42b1b2
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x42b1b2
mov al, 1
pop ebp
ret 4
xor al, al
pop ebp
ret 4