joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407bb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407c18
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404170
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405d7c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c1f
lea eax, [ebp - 0xc]
call fcn.00403f28
ret
Function at 0x401000
Capabilities:
Create directory
Encode data using base64
Query or enumerate registry value

Disassembly:
mov dword [0x480d80], 0xee10
mov eax, dword [0x480d80]
mov dword [0x480883], eax
mov dword [0x48106a], 0
mov eax, dword [0x48106a]
mov dword [0x480ae0], eax
xor eax, eax
mov edx, 0x766
mov eax, 0x11d3
add edx, eax
test edx, 0x1f98
je 0x40106f
mov ebx, 0x739
imul edx, ebx, 0x2c
mov eax, 0xea7
add edx, eax
add edx, 0x4d9
add edx, dword [0x480790]
mov eax, edx
sub eax, dword [0x480098]
ror eax, 4
inc eax
shl eax, 4
ror eax, 5
mov ebx, eax
shl ebx, 1
add dword [0x480716], ebx
jmp fcn.00402b14
Function at 0x43aa98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x43aaa7
pop dword [ebp - 0x3c]
mov eax, 0x8b389a3c
add eax, 0x750b106b
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x4fdcc
push 0
mov eax, 0x9589b89e
add eax, 0x6abafa12
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x73c44a35
add ecx, 0x8c3bf872
xor esi, esi
add esi, eax
mov edx, 0x475e00
add edx, dword [ebp - 0x3c]
mov ebx, 0x32afd005
add ebx, 0x3cd3141
add dword [ebp - 0x34], 0x41cb4b2b
mov edi, dword [edx]
sub dword [ebp - 0x28], eax
xor edi, ebx
sub dword [ebp - 0x34], 0x20877a89
mov dword [esi], edi
add dword [ebp - 0x10], 0xc3fdadb6
add esi, 4
add edx, 0xacdb3000
sub edx, 0xacdb2ffc
loop 0x43ab02
add eax, 0x3567a984
sub eax, 0x3566ac15
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xcdd08c3
add ecx, 0xf362f73d
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x40a561
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0040a5e0
jae 0x40a56d
xor ecx, ecx
call fcn.0040a5e0
jae 0x40a597
xor eax, eax
call fcn.0040a5e0
jae 0x40a5a8
mov al, 0x10
call fcn.0040a5e0
adc al, al
jae 0x40a589
jne 0x40a5d5
stosb byte es:[edi], al
jmp 0x40a56e
call fcn.0040a5ec
dec ecx
loop 0x40a5b4
mov eax, ebp
call fcn.0040a5ea
jmp 0x40a5d6
lodsb al, byte [esi]
shr eax, 1
je 0x40a5fc
adc ecx, 2
mov ebp, eax
jmp 0x40a5d6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040a5ea
cmp eax, 0x7d00
jae 0x40a5d4
cmp eax, 0x500
jae 0x40a5d5
cmp eax, 0x7f
ja 0x40a5d6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40a56e
pop ebp
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401bb8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x401c0d
sub al, 7
je 0x401c81
dec al
je 0x401bdb
sub al, 2
je 0x401c05
sub al, 3
je 0x401bf7
jmp 0x401c0d
mov eax, dword [0x408230]
cmp eax, dword [0x4080f0]
jle 0x401c81
dec dword [0x408230]
jmp 0x401c81
mov edi, dword [0x4080f0]
mov dword [0x408230], edi
jmp 0x401c81
inc dword [0x408220]
jmp 0x401c81
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x4080e0]
mov word [ebp - 2], ax
mov eax, dword [0x408230]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x408220]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x408230]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x408220]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x408140]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x408230]
mov eax, dword [0x408230]
cmp eax, dword [0x408110]
jle 0x401caf
mov edi, dword [0x4080f0]
mov dword [0x408230], edi
inc dword [0x408220]
jmp 0x401caf
push 1
call fcn.00401d58
dec dword [0x408220]
mov eax, dword [0x408220]
cmp eax, dword [0x408120]
jg 0x401ca2
leave
ret 4
Function at 0x10068720
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1006890d
pushal
mov esi, section.DATA
lea edi, [esi - 0x39000]
push edi
or ebp, 0xffffffff
jmp 0x1006874a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10068751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10068740
mov eax, 1
add ebx, ebx
jne 0x10068763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10068774
jne 0x10068793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10068793
dec eax
add ebx, ebx
jne 0x10068780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10068758
add ebx, ebx
jne 0x1006878f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x100687e5
xor ecx, ecx
sub eax, 3
jb 0x100687ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1006881a
sar eax, 1
mov ebp, eax
jmp 0x100687b6
add ebx, ebx
jne 0x100687b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10068784
inc ecx
add ebx, ebx
jne 0x100687c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10068784
add ebx, ebx
jne 0x100687d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100687c6
jne 0x100687e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100687c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10068804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100687f6
jmp 0x10068746
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10068804
add edi, ecx
jmp 0x10068746
pop esi
mov edi, esi
mov ecx, 0xea6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10068822
cmp byte [edi], 0x11
jne 0x10068822
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10068827
lea edi, [esi + 0x65000]
mov eax, dword [edi]
or eax, eax
je 0x1006889f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x68000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x680b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10068854
mov ecx, edi
jns 0x10068883
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x680b8]
or eax, eax
je 0x10068899
mov dword [ebx], eax
add ebx, 4
jmp 0x10068871
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100688d0
cmp al, 0xef
ja 0x100688c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100688a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100688b2
mov ebp, dword [esi + 0x680bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10068904
sub esp, 0xffffff80
jmp 0x10020269
Function at 0x401970
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push esi
push str.SOFTWARENational_InstrumentsLabVIEW_Run_Time
lea eax, [ebp - 0xd4]
push 0xc8
push eax
call fcn.00402760
add esp, 0xc
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push eax
push 1
push 0
lea eax, [ebp - 0xd4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a28
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.NILVRunTimeManagerPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 2
mov dword [ebp - 4], 0
jne 0x401a21
push esi
lea eax, [ebp - 0x1d8]
push 0x104
push eax
call fcn.00402760
add esp, 0xc
lea eax, [ebp - 0x1d8]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x401a36
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x485
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401d10
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x401d6b
push esi
call fcn.00402780
add esp, 4
test eax, eax
je 0x401d6b
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push eax
push 0x43f794
push eax
push esi
call fcn.00402730
add esp, 0xc
push eax
call fcn.00402730
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x401d6b
cmp eax, 0xffffffff
je 0x401d6b
test al, 0x10
mov ecx, 1
movzx eax, bl
pop esi
cmove eax, ecx
pop ebx
pop ebp
ret
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x402380
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402553
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00402780
mov esi, eax
add esp, 4
test esi, esi
je 0x4023dd
lea eax, [ebp - 0x104]
cmp byte [eax + esi - 1], 0x5c
je 0x4023d0
sub esi, 1
jne 0x4023c2
jmp 0x4023dd
test esi, esi
je 0x4023dd
dec esi
mov byte [ebp + esi - 0x104], 0
push ebx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00402760
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push 0x104
push eax
call fcn.00401d10
add esp, 0x18
test al, al
je 0x40242f
lea ecx, [ebp - 0x208]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00402760
add esp, 0xc
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40250c
test esi, esi
je 0x40250c
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [eax]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00402760
add esp, 0xc
lea eax, [ebp - 0x208]
push edi
push 0x104
push 0x43f794
push 0x104
push eax
call fcn.00402730
add esp, 0xc
push eax
call fcn.00402730
lea eax, [ebp - 0x208]
push eax
call fcn.00402780
add esp, 0x10
test eax, eax
je 0x4024e1
push ebx
push 0x104
push 0x43f794
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00402730
add esp, 0xc
push eax
call fcn.00402730
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x4024e1
cmp eax, 0xffffffff
je 0x4024e1
test al, 0x10
je 0x402535
lea eax, [ebp - 0x104]
push eax
call fcn.00402780
add esp, 4
test eax, eax
je 0x40250c
lea ecx, [ebp - 0x104]
nop word [eax + eax]
cmp byte [ecx + eax - 1], 0x5c
je 0x402518
sub eax, 1
jne 0x402500
pop edi
pop ebx
mov eax, 0x485
pop esi
mov esp, ebp
pop ebp
ret
sub eax, 1
mov byte [ebp + eax - 0x104], 0
jne 0x402450
pop edi
pop ebx
mov eax, 0x485
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00402760
add esp, 0xc
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret

Function at 0x415cde
Capabilities:
Create thread
Print debug messages

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

Function at 0x4176c0
Capabilities:
Set environment variable

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

Function at 0x4176cb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004170e0
Function at 0x401140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401159
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401194
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401190
lea ebx, [ebx]
cmp esi, eax
jae 0x401194
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401180
cmp esi, eax
jb 0x40119a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401b90
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, 1
cmp dword [esp + 8], esi
mov edi, eax
jle 0x401c06
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
lea esp, [esp]
mov eax, dword [edi + esi*4]
cmp word [eax], 0x2f
jne case.0x401bdc.69
movzx eax, word [eax + 2]
add eax, 0xffffffbc
cmp eax, 0x28
ja case.0x401bdc.69
movzx ecx, byte [eax + 0x401c20]
jmp dword [ecx*4 + 0x401c14]
mov edx, dword [edi + esi*4 + 4]
add esi, 1
push edx
mov ecx, ebx
call fcn.00401990
jmp case.0x401bdc.69
mov dword [ebp], 1
add esi, 1
cmp esi, dword [esp + 0x10]
jl 0x401bc0
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ecx
ret 8

Function at 0x4020c0
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43a5b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45b2ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
lea ecx, [esp + 0xb]
call fcn.00407d90
mov esi, dword [esp + 0x20]
push esi
lea ecx, [esp + 0xf]
mov dword [esp + 0x18], 0
call fcn.00407c90
test eax, eax
je 0x402141
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x402141
lea ecx, [esp + 0xb]
mov dword [esp + 0x14], 0xffffffff
call fcn.00407c80
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0xb]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.00407c80
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x402270
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43a5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x45b2ec]
xor eax, esp
mov dword [esp + 0x16c], eax
push esi
mov eax, dword [0x45b2ec]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, dword [esp + 0x188]
push 0x167
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.004259a0
add esp, 0xc
push esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x43d844
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xb]
call fcn.00407d90
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xf]
mov dword [esp + 0x184], 0
call fcn.00407c90
test eax, eax
je 0x40234b
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40234b
lea ecx, [esp + 0xb]
mov dword [esp + 0x180], 0xffffffff
call fcn.00407c80
xor eax, eax
jmp 0x402364
lea ecx, [esp + 0xb]
mov dword [esp + 0x180], 0xffffffff
call fcn.00407c80
mov eax, 1
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.00424ba6
add esp, 0x17c
ret 4

Function at 0x406740
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x110
mov eax, dword [0x45b2ec]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
mov ecx, dword [ecx + 0x20]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x100
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00405d50
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 0x10
push 6
push eax
push ecx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x110]
pop esi
xor ecx, esp
call fcn.00424ba6
add esp, 0x110
ret 4

Function at 0x406860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
call fcn.0040ed55
mov eax, dword [eax + 0xc]
mov dword [esi + 0x26c], eax
mov ecx, esi
pop esi
jmp fcn.0040c81e
Function at 0x407a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ae0
mov eax, dword [esp + 0x14]
push esi
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x407ae0
cmp dword [esp + 0xc], 4
jne 0x407ae0
mov eax, 1
add esp, 8
ret 0xc
xor eax, eax
add esp, 8
ret 0xc

Function at 0x407b20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x45b2ec]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x12c]
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407bfd
push 0x107
push eax
lea edx, [esp + 0x1d]
push edx
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0x20], al
call fcn.004259a0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push esi
push eax
mov dword [esp + 0x28], 0x108
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407bfd
cmp dword [esp + 0xc], 1
jne 0x407bfd
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jg 0x407bfd
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00401d00
lea eax, [esi + 1]
jmp 0x407bff
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
call fcn.00424ba6
add esp, 0x118
ret 0xc

Function at 0x407c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407ca5
xor eax, eax
ret 4
shr eax, 4
not eax
and eax, 1
ret 4

Function at 0x407cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x407cc9
mov eax, 1
pop esi
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407cdb
xor eax, eax
pop esi
ret 4
xor eax, 0x10
neg eax
sbb eax, eax
add eax, 1
pop esi
ret 4