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 0x5197e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x56d370]
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.0042a6c0
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.0042a6c0
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.0047f552
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.0047f552
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 0x519800
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x56d370]
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.0042a6c0
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.0047f552
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 0x51982b
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x56d370]
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.0042a6c0
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.0047f552
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.0047fc61
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 0x559830
push eax
call fcn.00481150
int3
Function at 0x410bf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5198e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x56d370]
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.0042c900
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.0042c090
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.0042c2e0
push 0
lea ecx, [ebp - 0x3c]
call fcn.0042c360
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x410c94
push 0
push esi
lea ecx, [ebp - 0x3c]
call fcn.0042c460
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.0042c210
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.0042a6c0
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.0047f552
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.0047f552
push dword [ebp - 0x38]
call fcn.0047f552
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 0x519940
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x56d370]
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.0042a240
lea ecx, [ebp - 0x278]
call fcn.0042a430
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.0042a430
test eax, eax
jne 0x410f60
lea ecx, [ebp - 0x278]
call fcn.0042a3e0
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.0042a6c0
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.0047f552
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.0047fc61
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 0x51997b
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x56d370]
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.00481640
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.0047f552
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.0047f552
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.0047fc61
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 0x5582d8
lea eax, [ebp - 0x360]
push eax
call fcn.00481150
int3
Function at 0x416ab0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a360
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x56d370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x572b38]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x571e60]
cmp eax, dword [ecx + 4]
jg 0x416be8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x416b0c
push eax
push 0x571e54
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 0x571e54
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.0047f552
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 [0x571e58]
mov dword [ebp - 4], 2
cmp dword [0x571e5c], edx
je 0x416b9f
xor ecx, ecx
mov dword [edx], eax
add dword [0x571e58], 4
jmp 0x416bb1
lea eax, [ebp + 0x10]
mov ecx, 0x571e54
push eax
push edx
call fcn.00401ff0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0047f552
mov ecx, dword [0x571e58]
add esp, 4
sub ecx, dword [0x571e54]
mov eax, dword [ebp + 8]
sar ecx, 2
dec ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x571e54]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x571e60
call fcn.0047fb55
add esp, 4
cmp dword [0x571e60], 0xffffffff
jne 0x416af5
push 0x527580
call fcn.0047f932
push 0x571e60
call fcn.0047fb0b
add esp, 8
jmp 0x416af5

Function at 0x416c20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a388
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x56d370]
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.0047f552
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 0x51a652
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x56d370]
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.0049f656
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.0047fc61
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 0x559148
push eax
call fcn.00481150
lea eax, [ebp - 0x158]
push str.Reading_from_file_failed
push eax
call fcn.00406390
add esp, 8
lea eax, [ebp - 0x158]
push 0x5598a4
push eax
call fcn.00481150
int3

Function at 0x418800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x56d370]
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.004a26a4
add esp, 0x10
cmp eax, 1
jne 0x41883f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
xor ecx, ebp
call fcn.0047fc61
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 0x5598a4
push eax
call fcn.00481150
int3
Function at 0x41b2a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x56d370]
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.0047fc61
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.0047fc61
mov esp, ebp
pop ebp
ret
push 0x70
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baselocwinutilwin.cxx
push str.name__0
lea ecx, [ebp - 0x154]
call fcn.00428e20
push eax
call fcn.00428ea0
push str.GetLocaleInfoEx
push 0x52c71c
lea ecx, [ebp - 0x148]
call fcn.00411280
push 0x55993c
lea eax, [ebp - 0x148]
push eax
call fcn.00481150
int3

Function at 0x41c080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ae88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x56d370]
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.0042a6c0
push str.BUILTINRESOURCE
push dword [ebp - 0x14]
push dword [0x572024]
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.0047f552
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 [0x572024]
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 [0x572024]
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 0x51c250
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x56d370]
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.0042a6c0
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.0047f552
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0047f552
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x429ca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c93d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x56d370]
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 0x429cf8
cmp byte [eax], 0
jne 0x429cfa
xor eax, eax
push 0xffffffffffffffff
push eax
call fcn.00407040
add esp, 8
mov dword [edi + 8], eax
push dword [0x572328]
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 0x429d3c
push eax
push str.setting_locale__s
push 0x571de4
call fcn.004158f0
add esp, 0xc
push edi
push dword [0x572328]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 8]
test eax, eax
je 0x429e32
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.0042a010
push 0x18
call fcn.0047f514
add esp, 0x1c
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x429da3
mov ecx, eax
call fcn.0042e7a0
jmp 0x429da5
xor eax, eax
mov esi, dword [edi + 0x10]
mov byte [ebp - 4], 3
mov dword [edi + 0x10], eax
test esi, esi
je 0x429dc5
mov ecx, esi
call fcn.0042e800
push 0x18
push esi
call fcn.0047f544
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 0x429e70
mov ebx, dword [ebp - 0x1c]
cmp esi, ebx
je 0x429e04
nop dword [eax]
push dword [esi]
call fcn.0047f552
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x429df0
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x429e26
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429e86
push ecx
push esi
call fcn.0047f544
add esp, 8
jmp 0x429e70
mov eax, dword [edi + 0xc]
test eax, eax
je 0x429e43
push eax
mov ecx, edi
call fcn.00429f90
jmp 0x429e70
push 0x572300
mov dword [ebp + 8], 0x572300
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x572318
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00429f90
push 0x572300
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.0048ad3d
int3
Function at 0x429ec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c960
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x56d370]
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 [0x572328]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
jne 0x429f6c
push dword [esi + 0xc]
push dword [0x572328]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esi + 8], 0
je 0x429f26
push str.restoring_locale
push 0x571de4
call fcn.004158f0
add esp, 8
mov edi, dword [esi + 0x10]
test edi, edi
je 0x429f3f
mov ecx, edi
call fcn.0042e800
push 0x18
push edi
call fcn.0047f544
add esp, 8
push dword [esi + 8]
call fcn.0047f552
push dword [esi]
call fcn.0047f552
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.0047fc61
mov esp, ebp
pop ebp
ret
push 0x2f
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.12.xlabelcon_windows_64_rvcore_baseloclocalesetter.cxx
push str.thrInst__this
lea ecx, [ebp - 0x160]
call fcn.00428e20
push eax
call fcn.00428ea0
int3

Function at 0x42b0a0
Capabilities:
Compare security identifiers

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