joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4523a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x4a7018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], 0
cmp byte [esi + 0x30], 0
mov dword [ebp - 0x58], eax
je 0x4523ee
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
jmp 0x4523f3
mov ecx, dword [esi + 0x18]
xor eax, eax
lea edx, [ebp - 0x50]
push edx
push 0
push 0x40
push eax
push ecx
mov ecx, esi
call fcn.00454f80
test al, al
jne 0x45248e
push ecx
lea ecx, [ebp - 0x100]
call fcn.004064e0
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x68], str..._.._snapshot_win_pe_image_reader.cc
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x154
mov dword [ebp - 0x5c], 1
call fcn.0041b720
mov dword [ebp - 4], 1
mov edx, str.could_not_read_dos_header_from
mov dword [ebp - 0x54], 1
lea ecx, [ebp - 0x100]
call fcn.00405b50
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x45246f
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004082b0
add esp, 4
lea ecx, [ebp - 0x100]
call fcn.0041b540
xor al, al
jmp 0x4525c3
mov eax, 0x5a4d
cmp word [ebp - 0x50], ax
je 0x4524ec
push ecx
lea ecx, [ebp - 0x100]
call fcn.004064e0
mov dword [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x68], str..._.._snapshot_win_pe_image_reader.cc
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x15a
mov dword [ebp - 0x5c], 1
call fcn.0041b720
mov dword [ebp - 4], 3
mov edx, str.invalid_e_magic_in_dos_header_of
mov dword [ebp - 0x54], 2
jmp 0x45245a
cmp byte [esi + 0x30], 0
je 0x4524fd
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x54], eax
jmp 0x452507
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x58]
cdq
mov ebx, eax
mov eax, edx
add ebx, ecx
mov ecx, esi
push 0
adc eax, dword [ebp - 0x54]
push pe_nt_image_headers32
push eax
push ebx
mov dword [ebp - 0x54], eax
call fcn.00454f80
test al, al
jne 0x452560
push 1
push 0x162
push str..._.._snapshot_win_pe_image_reader.cc
push ecx
lea ecx, [ebp - 0x100]
call fcn.0041b3c0
mov dword [ebp - 4], 4
mov edx, str.could_not_read_nt_headers_from
mov dword [ebp - 0x54], 4
mov ecx, eax
jmp 0x452460
mov eax, dword [ebp - 0x58]
cmp dword [eax], 0x4550
je 0x4525b5
push 1
push 0x168
push str..._.._snapshot_win_pe_image_reader.cc
push ecx
lea ecx, [ebp - 0x1a8]
call fcn.0041b3c0
mov dword [ebp - 4], 5
mov edx, str.invalid_signature_in_nt_headers_of
mov ecx, eax
mov dword [ebp - 0x54], 8
call fcn.00405b50
mov edx, esi
mov ecx, eax
call fcn.00405ed0
lea ecx, [ebp - 0x1a8]
call fcn.0041b540
xor al, al
jmp 0x4525c3
test edi, edi
je 0x4525c1
mov eax, dword [ebp - 0x54]
mov dword [edi], ebx
mov dword [edi + 4], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00457ec6
mov esp, ebp
pop ebp
ret 8
Function at 0x4525f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x4a7018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], 0
cmp byte [esi + 0x30], 0
mov dword [ebp - 0x58], eax
je 0x45263e
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
jmp 0x452643
mov ecx, dword [esi + 0x18]
xor eax, eax
lea edx, [ebp - 0x50]
push edx
push 0
push 0x40
push eax
push ecx
mov ecx, esi
call fcn.00454f80
test al, al
jne 0x4526de
push ecx
lea ecx, [ebp - 0x100]
call fcn.004064e0
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x68], str..._.._snapshot_win_pe_image_reader.cc
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x154
mov dword [ebp - 0x5c], 1
call fcn.0041b720
mov dword [ebp - 4], 1
mov edx, str.could_not_read_dos_header_from
mov dword [ebp - 0x54], 1
lea ecx, [ebp - 0x100]
call fcn.00405b50
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x4526bf
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004082b0
add esp, 4
lea ecx, [ebp - 0x100]
call fcn.0041b540
xor al, al
jmp 0x452813
mov eax, 0x5a4d
cmp word [ebp - 0x50], ax
je 0x45273c
push ecx
lea ecx, [ebp - 0x100]
call fcn.004064e0
mov dword [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x68], str..._.._snapshot_win_pe_image_reader.cc
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x15a
mov dword [ebp - 0x5c], 1
call fcn.0041b720
mov dword [ebp - 4], 3
mov edx, str.invalid_e_magic_in_dos_header_of
mov dword [ebp - 0x54], 2
jmp 0x4526aa
cmp byte [esi + 0x30], 0
je 0x45274d
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x54], eax
jmp 0x452757
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x58]
cdq
mov ebx, eax
mov eax, edx
add ebx, ecx
mov ecx, esi
push 0
adc eax, dword [ebp - 0x54]
push 0xf8
push eax
push ebx
mov dword [ebp - 0x54], eax
call fcn.00454f80
test al, al
jne 0x4527b0
push 1
push 0x162
push str..._.._snapshot_win_pe_image_reader.cc
push ecx
lea ecx, [ebp - 0x100]
call fcn.0041b3c0
mov dword [ebp - 4], 4
mov edx, str.could_not_read_nt_headers_from
mov dword [ebp - 0x54], 4
mov ecx, eax
jmp 0x4526b0
mov eax, dword [ebp - 0x58]
cmp dword [eax], 0x4550
je 0x452805
push 1
push 0x168
push str..._.._snapshot_win_pe_image_reader.cc
push ecx
lea ecx, [ebp - 0x1a8]
call fcn.0041b3c0
mov dword [ebp - 4], 5
mov edx, str.invalid_signature_in_nt_headers_of
mov ecx, eax
mov dword [ebp - 0x54], 8
call fcn.00405b50
mov edx, esi
mov ecx, eax
call fcn.00405ed0
lea ecx, [ebp - 0x1a8]
call fcn.0041b540
xor al, al
jmp 0x452813
test edi, edi
je 0x452811
mov eax, dword [ebp - 0x54]
mov dword [edi], ebx
mov dword [edi + 4], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00457ec6
mov esp, ebp
pop ebp
ret 8
Function at 0x455df0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48586c
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
push ebx
push esi
push edi
mov eax, dword [0x4a7018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov eax, ecx
cdq
mov esi, eax
mov edi, edx
mov eax, ebx
cdq
sub eax, esi
mov ecx, edx
sbb ecx, edi
add eax, 1
mov dword [ebp - 0x24], eax
adc ecx, 0
push ecx
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [ebp - 0x20], ecx
call fcn.0047be40
mov ebx, dword [ebp - 0x14]
mov edi, eax
not edi
mov esi, edx
add edi, 0xffffffff
not esi
adc esi, 0xffffffff
push 8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x455ed4
push ecx
lea ecx, [ebp - 0xd0]
call fcn.004064e0
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x38], str..._.._third_party_mini_chromium_mini_chromium_base_rand_util.cc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x7d
mov dword [ebp - 0x2c], 4
call fcn.0041b720
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xd0]
or ebx, 1
mov edx, str.Check_failed:_success
mov dword [ebp - 0x1c], ebx
call fcn.00405b50
mov edx, 0x494710
mov ecx, eax
call fcn.00405b50
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x455eee
lea ecx, [ebp - 0xd0]
and ebx, 0xfffffffe
call fcn.0041b540
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
ja 0x455e60
mov eax, dword [ebp - 0x18]
jb 0x455f06
cmp eax, edi
ja 0x455e60
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ecx
push eax
call fcn.0047be40
add eax, dword [ebp - 0x28]
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 0x46206b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x487eb0
push esi
call fcn.0046f381
pop ecx
pop ecx
test eax, eax
jne 0x462099
xor al, al
jmp 0x462116
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00461da0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4620d3
push dword [ebp - 0x210]
call fcn.00461658
xor al, al
jmp 0x462114
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4620d9
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4620f9
push edx
call fcn.00461fa2
pop ecx
test al, al
je 0x4620c4
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x462107
mov bl, 1
push dword [ebp - 0x210]
call fcn.00461658
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00457ec6
leave
ret
Function at 0x46a55d
Capabilities:
Parse pe header

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

Function at 0x46c8dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x489d28
push 0x489d20
push str.FlsAlloc
push 0x1f
call fcn.0046c748
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c911
push dword [ebp + 8]
mov ecx, esi
call dword [0x4862c4]
call esi
jmp 0x46c917
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46c95b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x489d38
push 0x489d30
push str.FlsGetValue
push 0x21
call fcn.0046c748
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c992
push dword [ebp + 8]
mov ecx, esi
call dword [0x4862c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x46c99a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x489d40
push 0x489d38
push str.FlsSetValue
push 0x22
call fcn.0046c748
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46c9d4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4862c4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4739de
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4a7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x473a29
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00473b79
test al, al
jne 0x473a23
sub edx, 2
cmp edx, edi
jne 0x473a09
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x473a4b
lea eax, [edi + 2]
cmp edx, eax
je 0x473a4b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0047392a
add esp, 0x10
jmp 0x473b45
push esi
lea ecx, [ebp - 0x255]
call fcn.00473b79
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x473a8e
push dword [ebp - 0x25c]
jmp 0x473a3b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x473acb
cmp word [ebp - 0x226], 0
je 0x473aec
cmp word [ebp - 0x226], ax
jne 0x473acb
cmp word [ebp - 0x224], 0
je 0x473aec
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0047392a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x473b38
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x473aa5
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x473b20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x473b45
push 0x47375a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047a9d0
add esp, 0x10
jmp 0x473b15
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457ec6
leave
ret
Function at 0x474442
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 0x4744df
push ebx
push esi
call fcn.0047440b
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.00472b5f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x47448c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4744de
push edi
push eax
call fcn.0046cf10
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4744ac
call fcn.0046c469
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4744dd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00472b5f
add esp, 0x20
test eax, eax
jne 0x4744cb
push edi
call fcn.0046c469
jmp 0x4744d3
push ebx
call fcn.0046c469
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 0x4744e2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4744f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0047440b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046cf10
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47451b
push ebx
push esi
push edi
call fcn.00459850
add esp, 0xc
push 0
call fcn.0046c469
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x474c75
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474790

Function at 0x476c43
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0046e316
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x476cb2
cmp esi, dword [ebp - 4]
je 0x476cad
cmp dword [ebp + 0xc], 0
je 0x476cad
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x476c8a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00476795
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x476cb4
xor eax, eax
inc eax
jmp 0x476cb4
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x476d19
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a7018]
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.0046e316
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.0046e316
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 0x476d90
cmp word [ecx], dx
je 0x476d90
mov eax, dword [0x48aa8c]
push edi
dec eax
push eax
push 0x48a978
call fcn.00476cb8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x476e03
cmp word [eax], dx
je 0x476e03
mov eax, dword [edi]
test eax, eax
je 0x476db4
cmp word [eax], dx
je 0x476db4
lea eax, [ebp - 0x10]
push eax
call fcn.0047669b
jmp 0x476dbd
lea eax, [ebp - 0x10]
push eax
call fcn.00476736
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x476e2d
mov eax, dword [0x48a974]
push dword [ebp - 0x14]
dec eax
push eax
push 0x48a668
call fcn.00476cb8
add esp, 0xc
test al, al
je 0x476e2d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x476df8
cmp word [eax], di
je 0x476df8
lea eax, [ebp - 0x10]
push eax
call fcn.0047669b
pop ecx
jmp 0x476e2f
lea eax, [ebp - 0x10]
push eax
call fcn.00476736
jmp 0x476df5
mov eax, dword [edi]
test eax, eax
je 0x476e1a
cmp word [eax], dx
je 0x476e1a
lea eax, [ebp - 0x10]
push eax
call fcn.00476650
pop ecx
jmp 0x476e2d
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 0x476ef8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00476b3d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x476ef8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x476ef8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x476ef8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x476e85
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0046cada
test ebx, ebx
je 0x476ef3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0046cada
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x476ef8
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 0x476ef8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0047b0d2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x476efa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457ec6
leave
ret
Function at 0x4795e2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x479625
call fcn.00462df1
mov dword [eax], 0xf
call fcn.00462e04
mov dword [eax], 0xd
call fcn.004614f9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457ec6
leave
ret
test eax, eax
jne 0x47962c
inc eax
jmp 0x479619
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x479617
xor eax, eax
cmp ecx, 1
setne al
jmp 0x479619
Function at 0x412745
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x412832
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x412818
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x4127f8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x4127d9
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x4127f6
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x30]
call fcn.00431f15
mov dword [eax], 0x46db5052
jmp 0x4127ce
jmp 0x412816
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x412816
push 0
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x412830
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
push 0
push 0x4862
push dword [ebp - 0x44]
call fcn.00412cf4
add esp, 0xc
jmp 0x412872
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push 0
push dword [ebp - 0x5c]
call fcn.00408bf0
add esp, 0x1c
mov esp, ebp
pop ebp
ret