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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
call fcn.0040546f
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x42e731
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x8c]
push edx
push str.CITY_02dMAJOR
lea eax, [ebp - 0xb0]
push eax
call fcn.0046db10
add esp, 0xc
lea ecx, [ebp - 0x84]
push ecx
push 0
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00455923
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42e5ff
lea ecx, [ebp - 0x84]
push ecx
call fcn.00406a0b
add esp, 4
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x42e59f
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x88]
mov dword [edx + 0x14], eax
jmp 0x42e5fd
mov ecx, dword [ebp - 0x90]
cmp dword [ecx + 0x24], 0
jne 0x42e5c3
cmp dword [ebp - 0x88], 0
je 0x42e5f0
mov edx, dword [ebp - 0x88]
cmp dword [edx + 0x91], 1
je 0x42e5f0
mov eax, dword [ebp - 0x90]
add eax, 4
push eax
lea ecx, [ebp - 0x84]
push ecx
push 0x48cf00
call fcn.00450670
add esp, 0xc
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x14], 0
jmp 0x42e5fd
mov eax, dword [ebp - 0x90]
mov dword [eax + 0x14], 0
jmp 0x42e629
mov ecx, dword [ebp - 0x90]
cmp dword [ecx + 0x24], 0
je 0x42e629
mov edx, dword [ebp - 0x90]
add edx, 4
push edx
lea eax, [ebp - 0x84]
push eax
push 0x48cf1c
call fcn.00450670
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
push ecx
push str.CITY_02dWISE
lea edx, [ebp - 0xb0]
push edx
call fcn.0046db10
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push 0
lea ecx, [ebp - 0xb0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00455923
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42e6fc
lea eax, [ebp - 0x84]
push eax
call fcn.00406a0b
add esp, 4
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
je 0x42e69c
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0xb4]
mov dword [ecx + 0x18], edx
jmp 0x42e6fa
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x24], 0
jne 0x42e6c0
cmp dword [ebp - 0xb4], 0
je 0x42e6ed
mov ecx, dword [ebp - 0xb4]
cmp dword [ecx + 0x91], 1
je 0x42e6ed
mov edx, dword [ebp - 0x90]
add edx, 4
push edx
lea eax, [ebp - 0x84]
push eax
push 0x48cf44
call fcn.00450670
add esp, 0xc
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x18], 0
jmp 0x42e6fa
mov edx, dword [ebp - 0x90]
mov dword [edx + 0x18], 0
jmp 0x42e71a
mov eax, dword [ebp - 0x90]
add eax, 4
push eax
lea ecx, [ebp - 0x84]
push ecx
push 0x48cf60
call fcn.00450670
add esp, 0xc
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0xa6]
mov dword [ebp - 0x90], eax
jmp 0x42e510
mov esp, ebp
pop ebp
ret
Function at 0x450670
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1fc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1f8]
push eax
call fcn.0046e430
add esp, 0xc
mov dword [ebp - 0x1fc], 0
lea ecx, [ebp - 0x1f8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x29c], 0x94
lea edx, [ebp - 0x29c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x28c], 1
je 0x4506d8
jmp 0x450817
push str.DBWIN_BUFFER_READY
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 0
jne 0x4506fb
jmp 0x450817
push str.DBWIN_DATA_READY
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jne 0x45072b
mov eax, dword [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x450817
push str.DBWIN_BUFFER
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45076b
mov ecx, dword [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x450817
push 0x200
push 0
push 0
push 2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x200], eax
cmp dword [ebp - 0x200], 0
jne 0x4507ab
mov ecx, dword [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x450817
push 0xffffffffffffffff
mov eax, dword [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [ebp - 0x200]
mov dword [ecx], eax
lea edx, [ebp - 0x1f8]
push edx
push 0x492ac4
mov eax, dword [ebp - 0x200]
add eax, 4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x450d72
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
push str._nGroup
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 4], 0
je 0x450dac
mov edx, dword [ebp - 4]
push edx
push str.___08X
call fcn.00450670
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x450d8a
mov esp, ebp
pop ebp
ret
Function at 0x4524ae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x4524c4
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x452517
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x14
mov dword [ecx + 0x4c8c60], 0
mov edx, dword [ebp - 4]
imul edx, edx, 0x14
mov dword [edx + 0x4c8c64], 0
mov eax, dword [ebp - 4]
imul eax, eax, 0x14
mov dword [eax + 0x4c8c68], 0
mov ecx, dword [ebp - 4]
add ecx, 1
imul ecx, ecx, 0x14
add ecx, 0x4c8c60
mov edx, dword [ebp - 4]
imul edx, edx, 0x14
mov dword [edx + 0x4c8c70], ecx
jmp 0x4524bb
mov dword [0x4c8d00], 0
mov dword [0x4c8cfc], 0
mov dword [0x4c8c44], 0x4c8c60
mov dword [0x4c8710], 0
mov eax, dword [0x4c8710]
mov dword [0x4c8d04], eax
mov dword [ebp - 4], 0
jmp 0x45255b
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x20
jge 0x4525c2
mov edx, dword [ebp - 4]
imul edx, edx, 0x24
mov eax, dword [ebp - 4]
mov dword [edx + 0x4c87c0], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x24
mov dword [ecx + 0x4c87c4], 0
mov edx, dword [ebp - 4]
imul edx, edx, 0x24
mov dword [edx + 0x4c87c8], 0
mov eax, dword [ebp - 4]
imul eax, eax, 0x24
mov dword [eax + 0x4c87cc], 0
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x24
mov dword [ecx + 0x4c87d0], 0
mov edx, dword [ebp - 4]
imul edx, edx, 0x24
mov dword [edx + 0x4c87d4], 0
jmp 0x452552
mov dword [0x4c870c], 0
push 0x492b08
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x492b08
call fcn.00452460
add esp, 4
mov dword [0x492b00], 1
mov dword [0x492b04], 1
mov esp, ebp
pop ebp
ret

Function at 0x4541f2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x492c34]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
jmp 0x454216
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1a
jge 0x454244
mov ecx, dword [ebp - 4]
add ecx, 0x41
mov byte [ebp - 0x10], cl
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jne 0x454242
mov eax, dword [ebp - 4]
mov dword [0x492c30], eax
jmp 0x454244
jmp 0x45420d
mov eax, dword [0x492c30]
mov esp, ebp
pop ebp
ret

Function at 0x45424d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x492c38]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
jmp 0x454272
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x1a
jge 0x4542a1
mov eax, dword [ebp - 4]
add eax, 0x41
mov byte [ebp - 0x10], al
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jne 0x45429f
mov edx, dword [ebp - 4]
mov dword [0x492c30], edx
jmp 0x4542a1
jmp 0x454269
mov esp, ebp
pop ebp
ret
Function at 0x459061
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
enter 0x10, 0
push eax
push ebx
push ecx
push edx
push esi
push edi
mov eax, 0xff
imul eax, dword [ebp + 8]
xor edx, edx
idiv dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0x10]
mov ebx, 0xff
mov edi, 0xff
mov eax, edi
shr eax, 3
and eax, 0x1c
imul eax, dword [ebp - 8]
xor edx, edx
idiv ebx
and eax, 0xff
shr eax, 2
shl eax, 5
mov dword [ebp - 0x10], eax
mov eax, edi
shl eax, 3
and eax, 0xf8
imul eax, dword [ebp - 0xc]
xor edx, edx
idiv ebx
and eax, 0xff
shr eax, 3
or eax, dword [ebp - 0x10]
mov word [esi + edi*2], ax
mov eax, edi
shl eax, 5
and eax, 0xe0
imul eax, dword [ebp - 8]
xor edx, edx
idiv ebx
and eax, 0xff
shr eax, 2
shl eax, 5
mov dword [ebp - 0x10], eax
mov eax, edi
and eax, 0xf8
imul eax, dword [ebp - 4]
xor edx, edx
idiv ebx
and eax, 0xff
shr eax, 3
shl eax, 0xb
or eax, dword [ebp - 0x10]
mov word [esi + edi*2 + 0x200], ax
dec edi
jns 0x45908f
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
ret

Function at 0x46e200
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4a83cc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x46e21f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x4a83c8], 1
mov byte [0x4a83c4], bl
jne 0x46e279
mov ecx, dword [0x4d41d0]
test ecx, ecx
je 0x46e267
mov esi, dword [0x4d41cc]
sub esi, 4
cmp esi, ecx
jb 0x46e267
mov eax, dword [esi]
test eax, eax
je 0x46e260
call eax
mov ecx, dword [0x4d41d0]
sub esi, 4
cmp esi, ecx
jae 0x46e252
push 0x481060
push 0x481058
call fcn.0046e2b0
add esp, 8
push 0x48106c
push 0x481064
call fcn.0046e2b0
add esp, 8
test ebx, ebx
jne 0x46e2a0
push ebp
mov dword [0x4a83cc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x46ee00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f720
push 0x473958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4a839c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4a8398], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4a8394], ecx
shr eax, 0x10
mov dword [0x4a8390], eax
call fcn.004710e0
test eax, eax
jne 0x46ee6a
push 0x1c
call fcn.0046efd0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00473750
call fcn.00473740
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4d41c8], eax
call fcn.00473120
mov dword [0x4a83d0], eax
test eax, eax
je 0x46ee9d
mov eax, dword [0x4d41c8]
test eax, eax
jne 0x46eea7
push 0xffffffffffffffff
call fcn.0046e1c0
add esp, 4
call fcn.00472e70
call fcn.00472d80
call fcn.0046e190
mov esi, dword [0x4d41c8]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x46ef86
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x46eeee
test al, al
je 0x46eeee
and eax, 0xff
push eax
call fcn.00472d20
add esp, 4
test eax, eax
je 0x46eec8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x46eec8
cmp byte [esi], 0x22
jne 0x46eef7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x46ef07
cmp al, 0x20
ja 0x46ef07
inc esi
mov dword [ebp - 0x64], esi
jmp 0x46eef7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x46ef28
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x46ef2d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0046e1c0
jmp 0x46ef6b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x46eef7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x46ef86

Function at 0x46efd0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4a83d8], 1
jne 0x46efde
call fcn.00473a30
mov eax, dword [esp + 4]
push eax
call fcn.00473a70
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x473120
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4a8548]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x473162
call edi
mov esi, eax
test esi, esi
je 0x47314c
mov eax, 1
jmp 0x47315d
call ebp
mov ebx, eax
test ebx, ebx
je 0x47326f
mov eax, 2
mov dword [0x4a8548], eax
cmp eax, 1
jne 0x473202
test esi, esi
jne 0x47317b
call edi
mov esi, eax
test esi, esi
je 0x47326f
cmp word [esi], 0
mov eax, esi
je 0x473195
add eax, 2
cmp word [eax], 0
jne 0x473183
add eax, 2
cmp word [eax], 0
jne 0x473183
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4731f4
push edi
call fcn.0046f000
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4731f4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4731e6
push ebx
call fcn.0046e140
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x47326f
test ebx, ebx
jne 0x473213
call ebp
mov ebx, eax
test ebx, ebx
je 0x47326f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x47322b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47321b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47321b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0046f000
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x47324d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x473a70
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4a5b28
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x473a94
add eax, 8
inc ebp
cmp eax, 0x4a5bb8
jb 0x473a85
cmp ecx, dword [ebp*8 + 0x4a5b28]
jne 0x473c3b
mov eax, dword [0x4a83d8]
cmp eax, 1
je 0x473bfd
test eax, eax
jne 0x473ac0
cmp dword [0x4a36a8], 1
je 0x473bfd
cmp ecx, 0xfc
je 0x473c3b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x473afb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x473b44
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x47fbcc
add ebx, ecx
push ebx
call fcn.00475ba0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x47fbac
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4a5b2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00475ca0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4d40c0]
test eax, eax
je 0x473c0e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x473c18
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4a5b2c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x474d20
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4d41c0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x474ecd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4d40c0]
lea edi, [ecx*4 + 0x4d40c0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x474ecd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x474d8e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x474d9f
push 2
push ebp
push eax
call fcn.00474c60
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x474efe
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x474e49
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x474dfa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x474de7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x474dca
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x474eef
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x474e45
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x474dc6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x474ebe
mov eax, dword [esp + 0x18]
test eax, eax
je 0x474e92
cmp eax, 5
jne 0x474e7b
mov dword [0x4a8388], eax
mov dword [0x4a8384], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004772b0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x474eb2
cmp byte [ebp], 0x1a
jne 0x474eb2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4a8384], 0x1c
jmp 0x474ed7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4a8384], 9
pop edi
pop esi
pop ebp
mov dword [0x4a8388], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x474e45
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x474f2f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x474e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x474e49
Function at 0x47a607
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x214], 0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
mov ecx, dword [0x4a65c8]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47a6bc
mov dword [ebp - 0x210], 0x100
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4a8804
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47a6af
mov byte [ebp - 4], 1
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x314]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x4a65d0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret