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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40430c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40415f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40430c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40415f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404328
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4041e8
xor eax, eax
push ebp
push 0x4041e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403f24
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404348
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041c6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4041e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404302
cmp byte [ebp - 0xd], 0
jne 0x40422f
cmp byte [ebp - 0x12], 0
je 0x404302
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404248
dec ebx
cmp byte [ebx], 0x2e
je 0x404257
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404247
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404302
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404294
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404302
cmp byte [ebp - 0xd], 0
je 0x404302
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404302
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404498
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4044fe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004039e8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040284c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4044e8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404505
lea eax, [ebp - 0x10]
call fcn.004037a0
ret

Function at 0x4096ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409725
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403890
jmp 0x40972e
mov eax, ebx
mov edx, esi
call fcn.004037f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409738
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409759
mov al, byte [esp]
jmp 0x40975b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409de0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409c58
mov eax, dword [0x4207c8]
cmp byte [eax], 0
je 0x409e5c
mov eax, dword [0x4206d0]
call fcn.00402784
call fcn.004025fc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004087a0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409ea4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409e92
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4206a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x421660]
call fcn.00403ee8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40a850
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 0x40a8b4
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.004039e8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004085e0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a8bb
lea eax, [ebp - 0xc]
call fcn.004037a0
ret

Function at 0x40bfcc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
xor ecx, ecx
mov cl, byte [eax + 0xf]
and cl, 0x10
xor ebx, ebx
add cl, 2
mov bl, 0xd
add ecx, edx
inc eax
mov edx, eax
xor eax, eax
mov al, byte [edx + 0xf]
inc edx
mov ah, byte [edx]
xor ah, byte [ecx]
or al, ah
inc ecx
inc edx
dec ebx
jne 0x40bfe8
pop ecx
mov ah, byte [edx + 1]
or ah, al
lahf
and ah, 0x40
mov dl, byte [edx]
shr dl, 7
xor dl, 0xff
add dl, 1
xor dl, 0xff
and al, dl
mov dh, ah
xor dh, 0x40
or al, dh
and al, dl
not ah
xor ah, dh
xor edx, edx
mov dx, ax
pop ebx
ret

Function at 0x40ca34
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40cb00
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0xff
call fcn.00403c60
push 0xff
mov eax, dword [ebp - 8]
call fcn.00403c14
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00403c20
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00408660
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00403838
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403c14
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x40cad8
lea edx, [ebp - 4]
lea eax, [ebp - 0x14]
mov ecx, 4
call fcn.0040264c
jmp 0x40cadd
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb07
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004037c4
lea eax, [ebp - 8]
call fcn.004037a0
ret
Function at 0x411f28
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
add eax, 0xdc
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x411fa2
cmp dword [ebp - 8], 0
je 0x411fa2
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00411fb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x411f97
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x411fac
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 2
pop ecx
pop ecx
pop ebp
ret
Function at 0x4181b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x2e]
imul edx, dword [ebx + 0x28], 0x8088405
inc edx
mov dword [ebx + 0x28], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4011b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
push 0x104
mov ecx, edi
mov dword [esp + 0xc], 0x104
mov dword [esp + 0x10], 1
call sub.MFC42u.DLL_CString::GetBuffer
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x403130
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40121e
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x24]
push 0x403260
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42u.DLL_CString::ReleaseBuffer
pop edi
pop esi
add esp, 8
ret

Function at 0x401650
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov cx, word [esp + 0x64]
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0
mov word [esp + 0x5c], cx
mov ecx, dword [esp + 0x74]
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x4016c1
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 8]
push eax
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret 8
Function at 0x401920
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402270
push 0x401bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
or ebx, 0xffffffff
mov dword [0x4053fc], ebx
mov dword [0x405400], ebx
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4053f0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4053ec]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4053f8], ecx
call fcn.00401be0
mov eax, dword [0x403258]
test eax, eax
jne 0x4019ac
push 0x401bd0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00401bb0
push 0x403018
push 0x403014
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4053e8]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x4053e4]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
add esp, 0x14
push 0x403010
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__wcmdln]
mov esi, dword [edx]
test esi, esi
jne 0x401a1e
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x74], esi
cmp word [esi], 0x22
jne 0x401af7
add esi, 2
mov dword [ebp - 0x74], esi
mov ax, word [esi]
test ax, ax
je 0x401a3f
cmp ax, 0x22
jne 0x401a2b
cmp word [esi], 0x22
jne 0x401a4b
add esi, 2
mov dword [ebp - 0x74], esi
mov ax, word [esi]
test ax, ax
je 0x401a61
cmp ax, 0x20
ja 0x401a61
add esi, 2
mov dword [ebp - 0x74], esi
jmp 0x401a4b
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x30], 1
je 0x401a82
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401a87
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi], 0x20
jbe 0x401a4b
add esi, 2
mov dword [ebp - 0x74], esi
jmp 0x401af7
Function at 0x1001f5e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
push 0x10085c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x10085b4]
test eax, eax
mov edi, dword [ebp + 8]
je 0x1001f8a
mov ecx, dword [edi + 4]
cmp dword [eax + 4], ecx
je 0x1001fda
mov eax, dword [eax]
test eax, eax
jne 0x1001f7f
push esi
push 8
call fcn.01003b1c
mov esi, eax
test esi, esi
pop ecx
je 0x1001fd9
call fcn.01001d65
mov eax, dword [0x10085b4]
mov dword [esi], eax
mov dword [0x10085b4], esi
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x1001d93
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001fd4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001fd9
call fcn.01001d35
pop esi
push 0x10085c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
leave
ret 4
Function at 0x1002f47
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x10082e4], esi
jne 0x1002f65
call fcn.01002bdd
cmp eax, esi
jl 0x1003018
push ebx
push edi
push esi
push 1
mov edi, 0x8ba
push edi
push 2
push 0x1008044
call fcn.01002e26
mov ebx, eax
cmp ebx, esi
jl 0x1002fe8
push esi
push esi
push esi
push 2
push 0x1008048
call fcn.01002e26
mov ebx, eax
cmp ebx, esi
jl 0x1002fe8
push 1
push esi
push edi
push 1
push 0x1008540
call fcn.01002e26
mov ebx, eax
cmp ebx, esi
jl 0x1002fe8
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1002b16
push esi
push esi
call edi
cmp eax, esi
mov dword [0x1008544], eax
je 0x1002fe3
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10035b6
push esi
push esi
call edi
cmp eax, esi
mov dword [0x1008528], eax
jne 0x100300a
mov ebx, 0x80004005
push 0x1008044
call fcn.01002f18
push 0x1008048
call fcn.01002f18
push 0x1008540
call fcn.01002f18
mov eax, ebx
jmp 0x1003016
mov dword [0x10082e0], 1
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1003881
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1008050]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001414
push 0x80000002
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], 0x50
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x78], esi
call ebx
test eax, eax
je 0x10038eb
xor eax, eax
jmp 0x10039ac
push edi
mov eax, dword [ebp + 0x10]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x70]
inc dword [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1003990
lea eax, [ebp - 0x68]
push eax
push 0x20019
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
call ebx
test eax, eax
jne 0x10038ec
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
push 0x100140c
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100395b
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10038ec
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.01003804
mov edi, dword [ebp + 8]
push 4
pop ecx
lea esi, [ebp - 0x64]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x1003987
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x10038ec
mov dword [ebp - 0x78], 1
xor esi, esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
cmp eax, esi
pop edi
je 0x10039ac
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x84]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01003c13
leave
ret 0x10
Function at 0x1004138
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1008050]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1008060]
je 0x1004162
inc eax
cmp eax, 0x12
jb 0x1004153
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1008060]
mov dword [ebp - 0x110], esi
jne 0x100430d
mov eax, dword [0x10082f4]
cmp eax, 1
je 0x10042db
test eax, eax
jne 0x1004198
cmp dword [0x1008058], 1
je 0x10042db
cmp ecx, 0xfc
je 0x100430d
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10041d3
push 5
pop ecx
mov esi, 0x10017c4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041de
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1004216
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041f6
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10017c0
push ebx
call fcn.01004f90
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100421b
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1008064]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1004235
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01004d10
mov edx, esp
push 6
pop ecx
mov esi, 0x10017a4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004261
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100426d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1004286
mov eax, dword [ebp - 0x110]
mov esi, 0x10017a0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1008064]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042a4
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10042b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001778
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01004e90
add esp, 0xc
jmp 0x100430d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100430d
mov esi, dword [esi + 0x1008064]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10042f2
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01003c13
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100484c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1008458]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1004898
call esi
mov edi, eax
cmp edi, ebx
je 0x100487e
mov dword [0x1008458], 1
jmp 0x100489d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1004893
push 2
pop eax
mov dword [0x1008458], eax
jmp 0x1004898
mov eax, dword [0x1008458]
cmp eax, 1
jne 0x1004915
cmp edi, ebx
jne 0x10048a9
call esi
mov edi, eax
cmp edi, ebx
je 0x100491e
cmp word [edi], bx
mov eax, edi
je 0x10048be
inc eax
inc eax
cmp word [eax], bx
jne 0x10048b0
inc eax
inc eax
cmp word [eax], bx
jne 0x10048b0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100490c
push eax
call fcn.010055bc
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100490c
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1004909
push dword [ebp - 4]
call fcn.010054f7
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100496d
cmp eax, 2
je 0x1004922
cmp eax, ebx
je 0x1004922
xor eax, eax
jmp 0x100496f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100491e
cmp byte [esi], bl
je 0x100493f
inc eax
cmp byte [eax], bl
jne 0x1004935
inc eax
cmp byte [eax], bl
jne 0x1004935
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.010055bc
cmp eax, ebx
pop ecx
je 0x1004966
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004e90
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100847c], ebx
push esi
push edi
jne 0x1004f12
push 0x1001840
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004f4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001834
push edi
call esi
test eax, eax
mov dword [0x100847c], eax
je 0x1004f4d
push 0x1001824
push edi
call esi
push 0x1001810
push edi
mov dword [0x1008480], eax
call esi
cmp dword [0x1008304], 2
mov dword [0x1008484], eax
jne 0x1004f12
push 0x10017f4
push edi
call esi
test eax, eax
mov dword [0x100848c], eax
je 0x1004f12
push 0x10017dc
push edi
call esi
mov dword [0x1008488], eax
mov eax, dword [0x1008488]
test eax, eax
je 0x1004f57
call eax
test eax, eax
je 0x1004f3e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100848c]
test eax, eax
je 0x1004f3e
test byte [ebp - 8], 1
jne 0x1004f57
cmp dword [0x1008310], 4
jb 0x1004f51
or byte [ebp + 0x12], 0x20
jmp 0x1004f76
xor eax, eax
jmp 0x1004f86
or byte [ebp + 0x12], 4
jmp 0x1004f76
mov eax, dword [0x1008480]
test eax, eax
je 0x1004f76
call eax
mov ebx, eax
test ebx, ebx
je 0x1004f76
mov eax, dword [0x1008484]
test eax, eax
je 0x1004f76
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100847c]
pop edi
pop esi
pop ebx
leave
ret