joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
push 0x104
call fcn.004028c0
push eax
lea eax, [esp + 8]
push eax
call fcn.0040a2c0
mov al, byte [esp]
test al, al
jne 0x405237
push 0x104
push 0x42af80
lea ecx, [esp + 8]
push ecx
call fcn.0040a2c0
push 0x104
push str.d2exp.mpq
lea edx, [esp + 8]
push edx
call fcn.00424db0
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov eax, 0x4263c0
jne 0x405265
mov eax, 0x4263b0
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ecx
push edx
push 2
push eax
push str.Diablo_II
call fcn.00405290
add esp, 0x118
ret

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

Disassembly:
sub esp, 0x104
push 0x104
call fcn.004028c0
push eax
lea eax, [esp + 8]
push eax
call fcn.0040a2c0
mov al, byte [esp]
test al, al
jne 0x405387
push 0x104
push 0x42af80
lea ecx, [esp + 8]
push ecx
call fcn.0040a2c0
push 0x104
push str.icons_WAR3.bni
lea edx, [esp + 8]
push edx
call fcn.00424db0
lea eax, [esp]
push eax
call fcn.00401bd0
add esp, 4
push 0x104
call fcn.004028c0
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0040a2c0
mov al, byte [esp]
test al, al
push 0x104
push str.war3x.mpq
jne 0x4053db
lea edx, [esp + 8]
push edx
call fcn.0040a2c0
jmp 0x4053e5
lea eax, [esp + 8]
push eax
call fcn.00424db0
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov ecx, 0x4263d8
mov eax, edx
test eax, eax
jne 0x405408
mov ecx, 0x4263d0
mov edx, dword [esp + 0x10c]
push edx
mov edx, dword [esp + 0x10c]
push edx
xor edx, edx
test eax, eax
setne dl
inc edx
push edx
push ecx
push str.Warcraft_III
call fcn.00405290
add esp, 0x118
ret

Function at 0x405990
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 1
push 0x430dcc
push 0x430dcc
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x406220
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov dl, 0x2c
mov ecx, edi
call fcn.0040a1e0
mov esi, eax
test esi, esi
je 0x406238
mov byte [esi], 0
lea eax, [esp + 0xc]
push eax
push edi
call fcn.004028e0
add esp, 8
test esi, esi
je 0x40624d
mov byte [esi], 0x2c
test eax, eax
jne 0x406254
pop edi
pop esi
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406289
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406289
mov eax, dword [esp + 0xc]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x407c50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push ebx
call edi
push 0x3eb
push ebx
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x407d3c
test edi, edi
je 0x407d3c
push ebp
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push 0
je 0x407cc8
push esi
call ebp
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 1
push edi
call ebp
push 5
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [0x430ed4]
lea eax, [edx + ecx]
jmp 0x407ceb
push edi
call ebp
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 1
push esi
call ebp
push 5
push esi
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [0x430ed0]
add eax, ecx
mov edx, dword [esp + 0x18]
push 1
mov dword [esp + 0x20], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x28]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
pop ebp
je 0x407d23
push 0x3e9
push ebx
call esi
test eax, eax
jne 0x407d35
push 1
push ebx
call esi
test eax, eax
jne 0x407d35
push 2
push ebx
call esi
test eax, eax
je 0x407d3c
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x407f10
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
push ebx
push eax
push esi
call fcn.00405070
add esp, 0xc
test eax, eax
je 0x407fdc
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push ebx
call fcn.0040f660
test eax, eax
je 0x407f7a
push 0
push 0
push 2
mov ecx, 0x430edc
call fcn.004084a0
mov edx, dword [esp + 0x18]
push 0xf0
push str.C:SrcBattle.netPatcher_bnupdate_srcfile.cpp
mov edi, eax
push ebx
mov dword [edi + 8], edx
call fcn.0040a410
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
jmp 0x407f85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x407fbf
test esi, esi
je 0x407fb6
lea esp, [esp]
mov dl, 0x3b
mov ecx, esi
mov edi, esi
call fcn.0040a1e0
mov esi, eax
test esi, esi
je 0x407fa5
mov byte [esi], 0
inc esi
push edi
call fcn.00407ff0
add esp, 4
test eax, eax
je 0x407fdc
test esi, esi
jne 0x407f90
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0
push 0
push ebx
push 0x81
call fcn.00402630
push ebx
push str.ERROR:_unable_to_open_archive__s_n_n
call fcn.00424640
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4080b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x214
push ebx
mov ebx, dword [esp + 0x220]
push esi
push edi
mov edi, dword [esp + 0x224]
push ebx
xor esi, esi
push esi
push esi
push edi
mov dword [eax], 1
call fcn.0040f660
test eax, eax
je 0x4080ef
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x214
ret
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 0x104
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp eax, esi
je 0x40821b
cmp eax, 0x104
ja 0x40821b
lea edx, [esp + 0x10]
push edx
push edi
call fcn.00401ff0
add esp, 8
test eax, eax
je 0x40821b
mov al, byte [esp + 0x1c]
test al, al
lea esi, [esp + 0x1c]
je 0x40821b
mov eax, dword [esp + 0x10]
push 0x7fffffff
push eax
push esi
call fcn.0040a280
test eax, eax
push esi
je 0x408169
call fcn.0040a460
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x408141
jmp 0x40821b
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
call ebp
sub eax, 5
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
je 0x40821b
mov dl, 0x5c
mov ecx, edi
call fcn.0040a210
test eax, eax
je 0x408193
lea edi, [eax + 1]
mov al, byte [esp + 0x1c]
test al, al
lea esi, [esp + 0x1c]
je 0x4081f3
nop
push esi
call ebp
cmp eax, 5
jne 0x4081e4
push 0x104
push esi
lea ecx, [esp + 0x128]
push ecx
call fcn.0040a2c0
push 0x104
push edi
lea edx, [esp + 0x128]
push edx
call fcn.00424db0
push ebx
push 0
push 0
lea eax, [esp + 0x12c]
push eax
call fcn.0040f660
test eax, eax
jne 0x40823b
push esi
call fcn.0040a460
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4081a0
push 0
push 0
push edi
push 0x83
call fcn.00402630
add esp, 0x10
test eax, eax
jne 0x408193
call fcn.00405dd0
mov ecx, dword [esp + 0x230]
mov dword [ecx], 0
mov eax, dword [esp + 0x10]
test eax, eax
pop ebp
je 0x40822d
push eax
call fcn.00402060
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x214
ret
mov dword [esp + 0x14], 1
jmp 0x40821b

Function at 0x408b50
Capabilities:
Terminate process

Disassembly:
xor eax, eax
cmp ecx, 8
sete al
push 1
push 0
push 0
mov dword [0x433020], eax
mov eax, dword [esp + 0x10]
push eax
push edx
push ecx
call fcn.0040b0b0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4092d0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 4]
mov eax, 1
cmp ecx, eax
mov dword [0x433024], eax
jbe 0x4092fb
shl eax, 1
cmp eax, ecx
jb 0x4092f0
mov dword [0x433024], eax
add esp, 0x24
ret
Function at 0x4095b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, dword [edi]
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
xor ebp, ebp
cmp esi, eax
mov dword [esp + 0x10], edi
jae 0x409642
mov edi, edi
movzx edi, word [esi]
xor eax, eax
mov al, byte [esi + 3]
add edi, esi
test al, 0x82
je 0x4095e7
and eax, 0x80
or ebp, eax
jmp 0x409633
test al, 0x40
jne 0x40962a
mov eax, dword [0x433d88]
test eax, eax
lea edx, [ebx + 0x6c]
jne 0x409607
mov eax, dword [ebx + 0x68]
push eax
mov ecx, 0x8510007e
call fcn.00409670
jmp 0x40962a
mov ecx, dword [ebx + 0x68]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.Storm_Error_:_memory_never_released_____s___i_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, esi
mov ecx, ebx
call fcn.00409330
cmp edi, dword [ebx + 0x20]
mov esi, edi
jb 0x4095d0
test ebp, ebp
jne 0x409656
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.00408d80
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xcc
ret

Function at 0x40a8f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40a906
push 0x57
call fcn.0040bec0
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40a913
mov eax, 0x7fed7fed
mov cl, byte [esp + 0xc]
push ebx
push ebp
test cl, 1
movzx ecx, byte [esi]
push edi
mov edx, 0xeeeeeeee
je 0x40a961
test ecx, ecx
je 0x40a9ab
nop
add eax, edx
imul edx, edx, 0x21
mov edi, ecx
mov ebx, ecx
shr edi, 4
mov edi, dword [edi*4 + 0x426490]
and ebx, 0xf
mov ebp, dword [ebx*4 + 0x426490]
inc esi
add edx, ecx
movzx ecx, byte [esi]
sub edi, ebp
xor eax, edi
test ecx, ecx
lea edx, [edx + eax + 3]
jne 0x40a930
jmp 0x40a9ab
test ecx, ecx
je 0x40a9ab
inc esi
cmp ecx, 0x61
jb 0x40a973
cmp ecx, 0x7a
ja 0x40a973
sub ecx, 0x20
cmp ecx, 0x2f
jne 0x40a97d
mov ecx, 0x5c
add eax, edx
imul edx, edx, 0x21
mov edi, ecx
mov ebx, ecx
shr edi, 4
mov edi, dword [edi*4 + 0x426490]
and ebx, 0xf
mov ebp, dword [ebx*4 + 0x426490]
add edx, ecx
movzx ecx, byte [esi]
sub edi, ebp
xor eax, edi
test ecx, ecx
lea edx, [edx + eax + 3]
jne 0x40a965
test eax, eax
pop edi
pop ebp
pop ebx
jne 0x40a9b7
mov eax, 1
pop esi
ret 0xc
Function at 0x40b9d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40b9e7
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b9fd
cmp eax, 5
je 0x40b9fd
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ba0d
xor eax, eax
pop esi
ret
movzx eax, al
shr eax, 4
and eax, 1
pop esi
ret

Function at 0x40bb90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
xor eax, eax
push esi
push edi
mov ebx, edx
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + edi + 4]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 8], ebx
call fcn.00424fa0
mov ecx, esp
xor esi, esi
test edi, edi
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
mov eax, 2
mov byte [ebp - 1], 0
jbe 0x40bc04
jmp 0x40bbe0
mov ebx, dword [ebp - 8]
nop
lea esp, [esp]
mov dl, byte [esi + ebx]
cmp dl, 0xa
jne 0x40bbf3
cmp byte [ebp - 1], 0xd
je 0x40bbf3
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], dl
inc eax
inc esi
cmp esi, edi
mov byte [ebp - 1], dl
jb 0x40bbd8
cmp dl, 0xa
je 0x40bc0e
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], 0xa
inc eax
push 0
lea edx, [ebp - 0x10]
push edx
push eax
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bdd0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x4339d0]
sub esp, 0x1c8
test eax, eax
jne 0x40bdff
push 0x4339d4
push 0
push str.Debug_Memory
push str.Internal
mov dword [0x4339d0], 1
call fcn.00410ea0
mov eax, dword [0x4339d4]
test eax, eax
je 0x40beb3
mov eax, dword [esp + 0x1d0]
test eax, eax
je 0x40be3e
cmp byte [eax], 0
je 0x40be3e
push eax
mov eax, dword [esp + 0x1d0]
push eax
push str._s___s_
lea ecx, [esp + 0xc]
push pe_nt_image_headers32
push ecx
call fcn.0040a6b0
add esp, 0x14
jmp 0x40be5d
mov edx, dword [esp + 0x1cc]
push edx
push 0x42bb50
lea eax, [esp + 8]
push pe_nt_image_headers32
push eax
call fcn.0040a6b0
add esp, 0x10
mov eax, dword [0x433d8c]
test eax, eax
jne 0x40be86
push 1
push 1
push 0
push 0xfffffffffffffffd
lea ecx, [esp + 0x10]
push ecx
push 0x8510007f
call fcn.0040b0b0
add esp, 0x1c8
ret 8
lea edx, [esp]
push edx
push str.Storm_Error_:_handle_never_released_____s_n
lea eax, [esp + 0x108]
push 0xc8
push eax
call fcn.0040a6b0
add esp, 0x10
lea ecx, [esp + 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1c8
ret 8

Function at 0x40c520
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x4339e4]
test eax, eax
jne 0x40c562
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x433a70
push 0
push 0
push 0x40c570
push 0
push 0
mov dword [0x433a64], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push eax
mov dword [0x4339e4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret
Function at 0x40d3f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
shr edx, 2
test edx, edx
mov eax, 0xeeeeeeee
je 0x40d44b
push ebx
push ebp
push esi
push edi
mov edi, edx
mov edx, dword [esp + 0x14]
mov ebx, dword [0x433a7c]
mov esi, edx
and esi, 0xff
mov ebp, dword [ebx + esi*4 + 0x1000]
mov ebx, dword [ecx]
add eax, ebp
lea esi, [eax + edx]
imul eax, eax, 0x21
xor ebx, esi
mov esi, ebx
lea eax, [eax + esi + 3]
mov esi, edx
not esi
shl esi, 0x15
add esi, 0x11111111
shr edx, 0xb
mov dword [ecx], ebx
add ecx, 4
or edx, esi
dec edi
jne 0x40d406
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40d4e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov dword [esp + 0x10], edx
mov edi, ecx
xor ebp, ebp
cmp edi, 0xffffffff
je 0x40d506
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push 0
push esi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esi]
mov ecx, dword [esp + 0x10]
add edx, edi
test eax, eax
mov dword [ecx], edx
jne 0x40d576
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x42bb60]
sub ecx, 0
je 0x40d592
dec ecx
je 0x40d554
dec ecx
jne 0x40d4f5
mov edx, dword [esp + 0x28]
push 1
push 0
push 0
push 0xfffffffffffffffc
push edx
push eax
call fcn.0040b0b0
jmp 0x40d4f5
mov edx, dword [0x433a44]
test edx, edx
je 0x40d592
mov ecx, ebp
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
inc ebp
call edx
test eax, eax
jne 0x40d4f5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
mov ecx, dword [esp + 0x20]
cmp dword [esi], ecx
jne 0x40d58b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0x14
push 0x26
call fcn.0040bec0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x14
Function at 0x40f330
Capabilities:
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
not eax
shr eax, 4
and eax, 1
ret

Function at 0x40f4a0
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40f4b0
mov dword [edi], 0
push 0x4339e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.0040e520
test eax, eax
push 0x4339e8
jne 0x40f4df
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x110], 0xffffffff
je 0x40f505
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x110]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
ret 8
mov ecx, dword [esi + 0x118]
mov esi, dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x410d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20019
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410de1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push eax
push edx
mov edx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x14

Function at 0x410fd0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x1c]
mov edi, edx
push eax
mov edx, ebx
xor ebp, ebp
call fcn.00410bd0
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
and cl, 4
lea edx, [esp + 0x14]
push edx
push ebp
neg cl
push 0x20006
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push eax
sbb ecx, ecx
neg ecx
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x411099
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x411092
test bl, 8
je 0x411073
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
test esi, esi
jne 0x411092
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x411092
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret 0x10
mov edx, dword [esp + 0x10]
push edx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10c
ret 0x10
Function at 0x4118d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
inc ecx
test eax, eax
mov dword [edi + 4], ecx
jne 0x411a12
push 0x433dd8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x433dd8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4119de
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StackWalk
push esi
call ebx
test eax, eax
mov dword [edi + 8], eax
je 0x4119d7
push str.SymFunctionTableAccess
push esi
call ebx
test eax, eax
mov dword [edi + 0xc], eax
je 0x4119d7
push str.SymGetLineFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x10], eax
je 0x4119d7
push str.SymGetModuleBase
push esi
call ebx
test eax, eax
mov dword [edi + 0x14], eax
je 0x4119d7
push str.SymGetModuleInfo
push esi
call ebx
test eax, eax
mov dword [edi + 0x18], eax
je 0x4119d7
push str.SymGetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x1c], eax
je 0x4119d7
push str.SymGetSymFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x20], eax
je 0x4119d7
push str.SymInitialize
push esi
call ebx
test eax, eax
mov dword [edi + 0x24], eax
je 0x4119d7
push str.SymCleanup
push esi
call ebx
test eax, eax
mov dword [edi + 0x28], eax
je 0x4119d7
push str.SymSetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x2c], eax
je 0x4119d7
push str.SymEnumerateModules
push esi
call ebx
test eax, eax
mov dword [edi + 0x30], eax
je 0x4119d7
push str.SymEnumerateSymbols
push esi
call ebx
test eax, eax
mov dword [edi + 0x34], eax
jne 0x4119fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x433dd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x433dd8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push str.MiniDumpWriteDump
push esi
call ebx
push 0x433dd8
mov dword [edi + 0x38], eax
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x411d10
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, 0x433df0
jmp fcn.004118d0

Function at 0x411f50
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
mov esi, edx
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x411f87
mov cl, byte [eax + str._unknown_]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x411f78
lea edx, [esp + 0xc]
push edx
push str.User:
push str.__10s_s
push esi
call edi
add esp, 0x10
pop edi
pop esi
add esp, 0x108
ret
Function at 0x411fb0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
mov esi, edx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x411fe4
mov cl, byte [eax + str._unknown_]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x411fd5
lea edx, [esp + 0xc]
push edx
push str.Computer:
push str.__10s_s
push esi
call edi
add esp, 0x10
pop edi
pop esi
add esp, 0x14
ret