joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b400
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x114
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [0x503e3c]
test eax, eax
jne 0x40b55a
cmp dword [0x503e44], 0
je 0x40b55a
xor esi, esi
cmp byte [0x503e50], 0
jne 0x40b54c
mov byte [0x503e50], 1
lea edi, [esp + 0xa]
push edi
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40b54c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
push 0
push 0
push eax
push edi
push str._sputty__lu__llu.chm
call fcn.00438d90
add esp, 0x14
mov esi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40b506
mov dword [esp], ebp
xor ebp, ebp
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x40b54c
push esi
call fcn.00439860
add esp, 4
add ebp, 1
adc edi, 0
push edi
push ebp
push dword [esp + 8]
lea eax, [esp + 0x16]
push eax
push str._sputty__lu__llu.chm
call fcn.00438d90
add esp, 0x14
mov esi, eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40b4b0
mov ebx, eax
xor edi, edi
mov ebp, dword [0x503e44]
mov eax, dword [0x503e4c]
sub eax, edi
jbe 0x40b5c4
mov dword [esp + 4], 0
lea ecx, [edi + ebp]
push 0
lea edx, [esp + 8]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [esp + 4]
test eax, eax
jne 0x40b510
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40b5d3
push esi
call fcn.00439860
add esp, 4
mov eax, dword [0x503e3c]
test eax, eax
je 0x40b5ab
mov ecx, dword [esp + 0x12c]
mov edi, dword [esp + 0x128]
test ecx, ecx
je 0x40b598
push ecx
push eax
push str._s::__s.html_main
call fcn.00438d90
add esp, 0xc
mov esi, eax
push 0
push 0
push eax
push edi
call dword [0x503e38]
push esi
call fcn.00439860
add esp, 4
jmp 0x40b5a4
push 0
push 0
push eax
push edi
call dword [0x503e38]
mov byte [0x503e48], 1
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0049fc40
add esp, 0x114
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x503e3c], esi
mov byte [0x503e40], 1
xor esi, esi
push esi
call fcn.00439860
add esp, 4
cmp ebx, 0xffffffff
je 0x40b555
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b555
Function at 0x415ba0
Capabilities:
Contain obfuscated stackstrings
Parse credit card information
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x112c], 2
jl 0x415bff
mov eax, dword [esp + 0xc]
cmp dword [esi + 0x1124], eax
jne 0x415bff
mov dword [esi + 0xe28], 0
mov dword [esi + 0xe34], 0
mov dword [esi + 0xe38], 0
mov dword [esi + 0xe3c], 0
mov dword [esi + 0xe40], 0
push esi
call fcn.0040b640
add esp, 4
mov ecx, esi
xor edx, edx
pop esi
jmp fcn.00412070
pop esi
ret

Function at 0x41dc20
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0x41dc60
push 0
push 0x6f
push dword [0x502be8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop esi
ret

Function at 0x41e780
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x503e6c]
test eax, eax
jne 0x41e7b5
push 0
push 0x41e7c0
push dword [esp + 0xc]
push 0x6e
push dword [0x502be8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x503e6c], eax
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x503e6c]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
ret
Function at 0x4260b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push edi
push esi
cmp dword [0x504b44], 0
jne 0x4260eb
push 0x426200
call fcn.0043a970
add esp, 4
mov dword [0x504b44], eax
push 0x426260
call fcn.0043a970
add esp, 4
mov dword [0x504b48], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x504b40], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x504b40], eax
push 0
push dword [0x504b44]
call fcn.0043b130
add esp, 8
test eax, eax
je 0x426199
mov esi, eax
mov edi, dword [esp + 0x14]
jmp 0x42614f
push 0
push dword [0x504b44]
call fcn.0043b740
add esp, 8
push esi
call fcn.00439860
add esp, 4
push 0
push dword [0x504b44]
call fcn.0043b130
add esp, 8
mov esi, eax
test eax, eax
je 0x426199
push 0
push dword [esi + 4]
push dword [0x504b48]
call fcn.0043b700
add esp, 0xc
test eax, eax
je 0x426120
mov ecx, dword [0x504b40]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
add edx, 0xfffffff6
sub ecx, edx
mov ebx, eax
sub ebx, edx
cmp ecx, ebx
jbe 0x42619d
push 0
push dword [0x504b44]
call fcn.0043b740
add esp, 8
push dword [esi + 8]
push dword [esi + 4]
call dword [esi]
jmp 0x42612d
xor eax, eax
jmp 0x4261a1
mov dword [edi], eax
mov al, 1
pop esi
pop edi
pop ebx
ret

Function at 0x429240
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x270
mov edi, dword [esp + 0x284]
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 0x26c], eax
lea esi, [esp + 0x25]
push 0x107
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call fcn.004b32c0
add esp, 4
mov word [esp + eax + 0x25], 0x2a5c
mov byte [esp + eax + 0x27], 0
lea ebx, [esp + 0x12c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4292ba
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x140
push ebx
call edi
add esp, 8
push ebx
push esi
call ebp
test eax, eax
jne 0x4292a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], eax
mov eax, esp
push 4
push eax
call edi
add esp, 8
lea esi, [esp + 5]
push 0x20
push esi
call fcn.00429130
add esp, 8
test al, al
je 0x4292f3
push 0x20
push esi
call edi
add esp, 8
push 0x20
push esi
call fcn.00467170
add esp, 8
push edi
call fcn.00434ad0
add esp, 4
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0049fc40
add esp, 0x270
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x429320
Capabilities:
Get memory capacity

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x2c]
push 4
push esi
push 9
call fcn.00428ed0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xa
call fcn.00428ed0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xb
call fcn.00428ed0
add esp, 0xc
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
push 0xc
call fcn.00428ed0
add esp, 0xc
lea esi, [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
push esi
push 0xd
call fcn.00428ed0
add esp, 0xc
mov esi, esp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x20
push esi
push 6
call fcn.00428ed0
add esp, 0xc
lea ebp, [esp + 0x48]
lea ebx, [esp + 0x40]
lea edi, [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea esi, [esp + 0x30]
push ebp
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
push 0x20
push esi
push 0xe
call fcn.00428ed0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push 0x20
push esi
push 0xf
call fcn.00428ed0
add esp, 0xc
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049fc40
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42ea90
Capabilities:
Get session user name

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x3a
push esi
call fcn.00437d40
add esp, 8
cmp byte [eax], 0
je 0x42eab0
push eax
call fcn.0043ef00
add esp, 4
pop esi
ret
push 0x3b
push esi
call fcn.00437b40
add esp, 8
test al, al
je 0x42eac5
pop esi
jmp fcn.00468350
xor eax, eax
pop esi
ret
Function at 0x434ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x408
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 0x404], eax
mov ecx, 1
call fcn.00434b80
cmp eax, 0xffffffff
je 0x434b59
mov esi, eax
mov eax, esp
lea ebx, [esp + 4]
push 0
push eax
push 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x434b52
mov eax, dword [esp]
test eax, eax
je 0x434b52
mov ebp, dword [esp + 0x41c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
push ebx
call ebp
add esp, 8
push 0
lea eax, [esp + 4]
push eax
push 0x400
push ebx
push esi
call edi
test eax, eax
je 0x434b52
mov eax, dword [esp]
test eax, eax
jne 0x434b30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0049fc40
add esp, 0x408
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x434b80
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x214
mov esi, ecx
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 0x210], eax
push 0
push str.SoftwareSimonTathamPuTTY
push 0x80000001
push 0
push 0
call fcn.0043c110
add esp, 0x14
test eax, eax
je 0x434bf7
mov ebx, eax
push str.RandSeedFile
push eax
call fcn.0043c340
add esp, 8
mov edi, eax
push ebx
call fcn.0043c1e0
add esp, 4
test edi, edi
je 0x434bf7
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00435220
add esp, 4
mov ebx, eax
push edi
call fcn.00439860
add esp, 4
test bl, bl
jne 0x434dad
cmp byte [0x504bb0], 0
je 0x434c0f
mov ecx, dword [0x504bb8]
test ecx, ecx
jne 0x434c4c
jmp 0x434cdd
push str.shell32.dll
call fcn.0043bfb0
add esp, 4
mov dword [0x504bb4], eax
test eax, eax
je 0x434c35
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x434c37
xor ecx, ecx
mov dword [0x504bb8], ecx
mov byte [0x504bb0], 1
test ecx, ecx
je 0x434cdd
lea ebp, [esp + 0x10b]
push ebp
push 0
push 0
push 0x1c
push 0
call ecx
test eax, eax
js 0x434c96
push 0
push str.PUTTY.RND
push ebp
call fcn.00438b80
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00435220
add esp, 4
mov ebx, eax
push edi
call fcn.00439860
add esp, 4
test bl, bl
jne 0x434dad
push ebp
push 0
push 0
push 0x1a
push 0
call dword [0x504bb8]
test eax, eax
js 0x434cdd
push 0
push str.PUTTY.RND
push ebp
call fcn.00438b80
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00435220
add esp, 4
mov ebx, eax
push edi
call fcn.00439860
add esp, 4
test bl, bl
jne 0x434dad
lea eax, [esp + 0x10b]
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x104
push eax
push str.HOMEDRIVE
call ebp
mov edi, eax
lea ebx, [esp + 7]
push 0x104
push ebx
push str.HOMEPATH
call ebp
test edi, edi
jne 0x434d16
mov byte [esp + 0x10b], 0
cmp edi, 0x103
ja 0x434d63
cmp eax, 0x103
ja 0x434d63
test eax, eax
je 0x434d63
push 0
push str.PUTTY.RND
push ebx
lea ebp, [esp + 0x117]
push ebp
call fcn.00438b80
add esp, 0x10
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00435220
add esp, 4
mov ebx, eax
push edi
call fcn.00439860
add esp, 4
test bl, bl
jne 0x434dad
jmp 0x434d6a
lea ebp, [esp + 0x10b]
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x434db2
push 0
push str.PUTTY.RND
push ebp
call fcn.00438b80
add esp, 0xc
mov edi, eax
mov eax, esp
mov ecx, edi
mov edx, esi
push eax
call fcn.00435220
add esp, 4
mov ebx, eax
push edi
call fcn.00439860
add esp, 4
test bl, bl
je 0x434db2
mov esi, dword [esp]
jmp 0x434db7
mov esi, 0xffffffff
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0049fc40
mov eax, esi
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x434de0
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 4], eax
mov ecx, 2
call fcn.00434b80
cmp eax, 0xffffffff
je 0x434e1b
mov esi, eax
mov eax, esp
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049fc40
add esp, 8
pop esi
ret

Function at 0x435220
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [esp + 0x10]
test edx, edx
je 0x43526b
xor ecx, ecx
xor eax, eax
cmp edx, 2
setne cl
sete al
lea ecx, [ecx + ecx*2]
mov ebx, 0x40000000
mov edx, 0x80000000
cmove edx, ebx
mov ebx, eax
shl ebx, 7
xor eax, 3
push 0
push ebx
push eax
push 0
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi], eax
cmp eax, 0xffffffff
setne al
jmp 0x4352a7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x43529f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43529f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043d3e0
add esp, 4
push eax
push esi
push str.Unable_to_delete__s:__s
call fcn.00406290
add esp, 0xc
mov dword [edi], 0xffffffff
xor eax, eax
pop esi
pop edi
pop ebx
ret
Function at 0x43c200
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 4], eax
mov dword [esp], 0x105
mov ebx, 0x105
push 0
push 1
push 0x105
call fcn.004397d0
add esp, 0xc
mov esi, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, esp
nop
nop
nop
nop
nop
nop
nop
push ebx
push esi
push dword [esp + 0x28]
push dword [esp + 0x28]
call ebp
cmp eax, 0xea
jne 0x43c26e
push 0
push 1
push dword [esp + 8]
push 1
push edi
push esi
call fcn.00439870
add esp, 0x18
mov esi, eax
mov ebx, dword [esp]
jmp 0x43c240
test eax, eax
je 0x43c27d
push esi
call fcn.00439860
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049fc40
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43c2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [0x502034]
xor esi, esp
mov dword [esp + 8], esi
mov dword [esp], 4
mov esi, esp
lea edi, [esp + 4]
push esi
push edx
push edi
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
xor ecx, 4
or ecx, eax
mov eax, dword [esp + 4]
xor eax, 4
or eax, ecx
sete bl
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0049fc40
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
ret

Function at 0x43c300
Capabilities:
Set registry value

Disassembly:
push ebx
push eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x502034]
xor edx, esp
mov dword [esp], edx
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov ecx, dword [esp]
xor ecx, esp
call fcn.0049fc40
mov eax, ebx
add esp, 4
pop ebx
ret

Function at 0x43c340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x20]
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 8], eax
mov ebx, esp
lea eax, [esp + 4]
push ebx
push 0
push eax
push 0
push dword [esp + 0x34]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
test eax, eax
jne 0x43c3df
cmp dword [esp + 4], 1
jne 0x43c3df
mov ebp, dword [esp]
add ebp, 1
push 0
push 1
push ebp
call fcn.004397d0
add esp, 0xc
mov ecx, edi
mov edi, eax
push ebx
push eax
lea eax, [esp + 0xc]
push eax
push 0
push dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43c3d6
cmp dword [esp + 4], 1
jne 0x43c3d6
mov eax, dword [esp]
cmp eax, ebp
jb 0x43c3ce
push 0x6c
push str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_windows_utils_registry.c
push str.size___allocsize
call fcn.004af403
add esp, 0xc
mov eax, dword [esp]
mov byte [edi + eax], 0
mov esi, edi
jmp 0x43c3df
push edi
call fcn.00439860
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0049fc40
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43c400
Capabilities:
Set registry value

Disassembly:
push ebx
push edi
push esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004b32c0
add esp, 4
add eax, 1
push eax
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
pop esi
pop edi
pop ebx
ret

Function at 0x43c440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x502034]
xor eax, esp
mov dword [esp + 8], eax
mov ebp, esp
lea ebx, [esp + 4]
push ebp
push 0
push ebx
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
test eax, eax
jne 0x43c4ec
cmp dword [esp + 4], 7
jne 0x43c4ec
call fcn.00439d90
mov edi, eax
mov eax, dword [esp]
add eax, 2
push eax
push edi
call fcn.00439cb0
add esp, 8
push ebp
push eax
push ebx
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43c4e3
cmp dword [esp + 4], 7
jne 0x43c4e3
push dword [esp]
push edi
call fcn.00439cf0
add esp, 8
nop
nop
nop
nop
nop
nop
push 0
push edi
call fcn.00439d60
add esp, 8
test al, al
jne 0x43c4c0
mov eax, edi
add eax, 0xc
push 0
push eax
call fcn.00439010
add esp, 8
mov esi, edi
jmp 0x43c4ec
push edi
call fcn.00439e50
add esp, 4
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0049fc40
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43c510
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
add ecx, 1
push ecx
push dword [eax]
push 7
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
ret
Function at 0x43c920
Capabilities:
Link many functions at runtime

Disassembly:
cmp byte [0x5052c4], 1
jne 0x43c92f
mov al, byte [0x5052c5]
ret
mov byte [0x5052c4], 1
push str.advapi32.dll
call fcn.0043bfb0
add esp, 4
mov dword [0x5052c8], eax
test eax, eax
je 0x43ca77
push str.GetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5052cc], eax
test eax, eax
je 0x43ca77
mov eax, dword [0x5052c8]
test eax, eax
je 0x43ca3d
push str.SetSecurityInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5052d0], eax
test eax, eax
je 0x43ca77
mov eax, dword [0x5052c8]
test eax, eax
je 0x43ca49
push str.OpenProcessToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5052d4], eax
test eax, eax
je 0x43ca77
mov eax, dword [0x5052c8]
test eax, eax
je 0x43ca55
push str.GetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5052d8], eax
test eax, eax
je 0x43ca77
mov eax, dword [0x5052c8]
test eax, eax
je 0x43ca61
push 0x4e337f
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5052dc], eax
test eax, eax
je 0x43ca77
mov eax, dword [0x5052c8]
test eax, eax
je 0x43ca6d
push 0x4e368f
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x5052e0], eax
xor eax, eax
test ecx, ecx
je 0x43ca79
mov ecx, dword [0x5052c8]
test ecx, ecx
je 0x43ca31
push str.SetEntriesInAclA
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5052e4], eax
test eax, eax
setne al
jmp 0x43ca79
mov dword [0x5052d0], 0
jmp 0x43ca77
mov dword [0x5052d4], 0
jmp 0x43ca77
mov dword [0x5052d8], 0
jmp 0x43ca77
mov dword [0x5052dc], 0
jmp 0x43ca77
mov dword [0x5052e0], 0
xor eax, eax
mov byte [0x5052c5], al
ret

Function at 0x43f600
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push esi
cmp byte [0x505370], 0
jne 0x43f6ee
push str.winspool.drv
call fcn.0043bfb0
add esp, 4
mov esi, eax
push str.spoolss.dll
call fcn.0043bfb0
add esp, 4
test esi, esi
je 0x43f69a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumPrintersA
push esi
call edi
mov dword [0x50536c], eax
push str.OpenPrinterA
push esi
call edi
mov dword [0x505350], eax
push str.ClosePrinter
push esi
call edi
mov dword [0x505364], eax
push str.StartDocPrinterA
push esi
call edi
mov dword [0x505354], eax
push str.EndDocPrinter
push esi
call edi
mov dword [0x505360], eax
push str.StartPagePrinter
push esi
call edi
mov dword [0x505358], eax
push str.EndPagePrinter
push esi
call edi
mov dword [0x50535c], eax
push str.WritePrinter
push esi
call edi
jmp 0x43f6e2
mov dword [0x50536c], 0
mov dword [0x505350], 0
mov dword [0x505364], 0
mov dword [0x505354], 0
mov dword [0x505360], 0
mov dword [0x505358], 0
mov dword [0x50535c], 0
xor eax, eax
mov dword [0x505368], eax
mov byte [0x505370], 1
pop esi
pop edi
ret
Function at 0x449ee0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x108
mov esi, dword [esp + 0x120]
mov edi, dword [esp + 0x11c]
mov al, byte [esp + 0x124]
mov ecx, dword [0x502034]
xor ecx, esp
mov dword [esp + 0x104], ecx
xor ebp, ebp
mov ebx, 0
test al, al
je 0x449f32
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xffffffff
cmp eax, 0x103
setb bl
mov al, byte [esp + 0x128]
mov dword [esi], 0x4c
test edi, edi
je 0x449f4b
xor ebp, ebp
cmp byte [edi], 0
cmovne ebp, edi
mov dword [esi + 0x2c], ebp
test al, al
je 0x449f5b
push esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x449f62
push esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov esi, eax
test edi, edi
je 0x449f83
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
ja 0x449f83
mov byte [edi], 0
test bl, bl
je 0x449f90
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test esi, esi
setne bl
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0049fc40
mov eax, ebx
add esp, 0x108
pop esi
pop edi
pop ebx
pop ebp
ret