joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc09
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x41f51a
call fcn.00414f0c
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ecx], 0x4208c0
mov al, byte [ebp - 0xd]
xor ebx, ebx
xor edx, edx
mov dword [ebp - 4], 1
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 2
lea edi, [ecx + 0x18]
mov eax, dword [edi + 4]
test eax, eax
je 0x40fc8f
mov esi, dword [edi + 8]
sub esi, eax
sar esi, 2
cmp ebx, esi
jae 0x40fc8f
mov eax, dword [ecx + 0x1c]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x40fc86
cmp dword [esi + 0x40], 0xffffffff
je 0x40fc86
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40fc86
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x48], 0
lea eax, [esi + 0x48]
je 0x40fc86
push eax
lea ecx, [ebp - 0x28]
call fcn.0041093c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
inc ebx
jmp 0x40fc43
cmp dword [ebp - 0x24], 0
je 0x40fce3
sub edx, dword [ebp - 0x24]
sar edx, 2
mov ebx, edx
test ebx, ebx
jle 0x40fce3
mov eax, ebx
shl eax, 2
push eax
call fcn.00414b28
mov esi, eax
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40fccd
mov edx, dword [ebp - 0x20]
sub edx, ecx
sar edx, 2
cmp eax, edx
jae 0x40fccd
mov ecx, dword [ecx + eax*4]
mov dword [esi + eax*4], ecx
inc eax
jmp 0x40fcb1
push 0x1388
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push esi
call fcn.0041455b
pop ecx
and dword [ebp - 0x14], 0
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 4]
test eax, eax
je 0x40fd46
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
cmp dword [ebp - 0x14], ecx
jae 0x40fd46
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40fd41
mov eax, dword [esi + 0x50]
cmp eax, 0xffffffff
je 0x40fd22
push 0
push eax
call ebx
or dword [esi + 0x50], 0xffffffff
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x40fd33
push 0
push eax
call ebx
or dword [esi + 0x40], 0xffffffff
mov ecx, esi
call fcn.0040fadc
push esi
call fcn.0041455b
pop ecx
inc dword [ebp - 0x14]
jmp 0x40fced
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call fcn.0041094d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040a4ba
and byte [ebp - 4], 0
mov ecx, edi
call fcn.0040a4ba
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [eax + 4]
call fcn.0040389d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40fd96
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x41f52c
call fcn.00414f0c
sub esp, 0x1a0
lea eax, [ebp - 0x1ac]
push esi
push eax
mov esi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40fe11
cmp byte [ebp - 0x1ac], 2
jne 0x40fe0b
mov al, byte [ebp - 0x1ab]
cmp al, 2
jne 0x40fe0b
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0040ffc2
push dword [0x420340]
and dword [ebp - 4], 0
lea ecx, [esi + 4]
push 0
push eax
call fcn.004037bf
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040389d
cmp dword [esi + 0xc], 0
je 0x40fe0b
push 1
pop eax
jmp 0x40fe13
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40fe26
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x41f54f
call fcn.00414f0c
sub esp, 0x94
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov eax, dword [eax + 4]
push edi
cmp eax, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0xc], 0x42034c
je 0x40fe52
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], ebx
jne 0x40fe5b
xor esi, esi
jmp 0x40fe89
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004162c0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, ebx
jne 0x40fec9
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.0040389d
mov esi, 0x42a110
push esi
call fcn.00415945
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040396c
mov dword [ebp - 0x10], 1
mov eax, edi
jmp 0x40ffad
push 0x80
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.00415790
mov eax, dword [esi + 0xc]
add esp, 0xc
cmp dword [eax], ebx
je 0x40ff41
xor edi, edi
movsx ecx, word [esi + 0xa]
push ecx
push dword [edi + eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.00415450
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x426d28
lea eax, [ebp - 0xa0]
push 0x7f
push eax
call fcn.00414f2b
lea eax, [ebp - 0xa0]
push str.127.0.0.1
push eax
call fcn.00416380
add esp, 0x18
test eax, eax
jne 0x40ff41
mov byte [ebp - 0xa0], bl
mov eax, dword [esi + 0xc]
add edi, 4
cmp dword [edi + eax], ebx
jne 0x40fee7
lea eax, [ebp - 0xa0]
test eax, eax
jne 0x40ff4f
xor edi, edi
jmp 0x40ff84
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004162c0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0xa0]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.0040389d
push edi
call fcn.00415945
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0040396c
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ffc2
Capabilities:
Get hostname

Disassembly:
mov eax, 0x41f57b
call fcn.00414f0c
sub esp, 0x114
push ebx
push esi
push edi
lea eax, [ebp - 0x120]
xor ebx, ebx
push 0x100
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x410023
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.0040389d
mov esi, 0x42a110
push esi
call fcn.00415945
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040396c
mov dword [ebp - 0x10], 1
mov eax, edi
jmp 0x4100ac
lea eax, [ebp - 0x120]
test eax, eax
jne 0x410031
xor edi, edi
jmp 0x410066
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004162c0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x120]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.0040389d
push edi
call fcn.00415945
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.0040396c
push 1
lea eax, [ebp - 0x20]
pop esi
push eax
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.0040fe26
pop ecx
mov dword [ebp - 0x10], esi
pop ecx
mov byte [ebp - 4], bl
push esi
lea ecx, [ebp - 0x20]
call fcn.0040389d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x12c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410746
Capabilities:
Create thread

Disassembly:
mov eax, 0x41f5aa
call fcn.00414f0c
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
cmp dword [ebx + 0xc], esi
je 0x4108f3
mov eax, dword [ebp + 8]
cmp dword [eax + 8], esi
je 0x4108f3
cmp word [ebp + 0xc], si
je 0x4108f3
mov ecx, dword [ebx + 0x1c]
lea eax, [ebx + 0x18]
cmp ecx, esi
mov dword [ebp - 0x18], eax
je 0x410798
mov eax, dword [eax + 8]
sub eax, ecx
and al, 0xfc
cmp eax, 0x9c40
jge 0x4108f3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 8], esi
je 0x4108f3
mov ecx, ebx
call fcn.004100c3
cmp ax, si
mov dword [ebp - 0x14], eax
je 0x4108f3
push 0x58
call fcn.00414b28
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x4107d2
call fcn.0040fa39
jmp 0x4107d4
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
or dword [ebp - 4], 0xffffffff
push esi
push esi
push 1
push esi
mov dword [ebp - 0x10], eax
call edi
mov ecx, dword [ebp - 0x10]
push esi
push esi
push 1
push esi
mov dword [ecx + 0x44], eax
call edi
mov ecx, dword [ebp - 0x10]
push esi
push esi
push 1
push esi
mov dword [ecx + 0x48], eax
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x44], esi
je 0x4108e1
cmp dword [ecx + 0x48], esi
je 0x4108e1
cmp dword [ecx + 0x54], esi
je 0x4108e1
push dword [0x420340]
lea eax, [ebx + 4]
add ecx, 4
push esi
push eax
call fcn.004037bf
mov eax, dword [ebp - 0x10]
mov cx, word [ebp - 0x14]
mov word [eax + 0x14], cx
push dword [0x420340]
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
lea ecx, [eax + 0x18]
call fcn.004037bf
mov eax, dword [ebp - 0x10]
mov cx, word [ebp + 0xc]
mov word [eax + 0x28], cx
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x38]
add eax, 0x34
push ecx
push eax
push dword [ebp + 0x10]
call fcn.00410683
mov eax, dword [ebp + 0x1c]
add esp, 0xc
cmp eax, esi
je 0x410885
mov eax, dword [eax]
jmp 0x410888
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 0x14]
mov byte [eax + 0x4c], cl
push dword [ebp - 0x10]
push esi
push 0x4105ee
call fcn.004159d2
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov dword [ecx + 0x40], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x40], 0xffffffff
je 0x4108e1
mov eax, dword [ebp + 0x18]
mov dword [ecx], ecx
cmp eax, esi
je 0x4108d0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.0041093c
push 1
pop eax
jmp 0x4108f5
cmp ecx, esi
mov edi, ecx
je 0x4108f3
call fcn.0040fadc
push edi
call fcn.0041455b
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x401550
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40157d
push 0x180
push esi
xor edi, edi
call fcn.00404010
add esp, 8
mov eax, edi
pop edi
pop esi
ret
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
ret

Function at 0x401610
Capabilities:
Get disk size

Disassembly:
sub esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
lea edx, [esp]
push eax
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x401662
mov ecx, dword [esp]
push edi
push esi
mov esi, dword [esp + 0x18]
imul esi, ecx
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
imul esi, edx
mov dword [edi], esi
mov esi, dword [esp + 0x10]
imul esi, ecx
imul esi, edx
mov edx, dword [esp + 0x20]
mov dword [edx], esi
pop esi
pop edi
add esp, 0xc
ret
Function at 0x401c70
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1078
call fcn.00403fe0
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 8], 0xffffffff
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x1084]
mov eax, 1
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6c], ax
or edi, eax
mov eax, dword [esp + 0x1088]
mov dword [esp + 0x68], edi
push eax
push ecx
call fcn.00401bc0
add esp, 8
mov edi, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
push edi
push 0
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401d2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [esp + 0x80]
push esi
push str.CreateOUIProcess__
push str.Error_in__s:__d__n
push ecx
call fcn.004043a0
add esp, 0x10
lea edx, [esp + 0x80]
push edx
call fcn.00401ba0
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x1078
ret
mov eax, dword [esp + 0x14]
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1094]
test eax, eax
je 0x401db7
mov ebp, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push 0x40
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push 0
push ecx
push 1
call ebp
test eax, eax
je 0x401db3
cmp eax, 1
jne 0x401d5f
push eax
push 0
push 0
lea edx, [esp + 0x34]
push 0
push edx
call esi
test eax, eax
je 0x401d5f
cmp dword [esp + 0x2c], 0x12
je 0x401d5f
lea eax, [esp + 0x28]
push eax
call edi
lea ecx, [esp + 0x28]
push ecx
call ebx
push 1
push 0
push 0
lea edx, [esp + 0x34]
push 0
push edx
call esi
test eax, eax
jne 0x401d89
jmp 0x401d5f
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401dd1
mov esi, dword [esp + 0x10]
jmp 0x401dd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004042a0
add esp, 4
mov eax, esi
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x1078
ret
Function at 0x4024c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x800
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x400]
push esi
push edi
mov edi, dword [esp + 0x818]
push str.oraparam.ini
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40c]
push ecx
call fcn.00401e00
mov edi, dword [esp + 0x81c]
mov ecx, dword [esp + 0x814]
add esp, 8
lea edx, [esp + 0x408]
lea eax, [esp + 8]
push edx
push 0x400
push eax
push edi
push ecx
push str.Oracle
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 8]
test al, al
jne 0x40255e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x81c]
cmp eax, 1
je 0x4025a8
cmp eax, 2
je 0x4025a8
cmp eax, 3
jne 0x402579
mov byte [esp + 9], 0
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x810]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x800
ret
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x810]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x800
ret
Function at 0x403d20
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [str.temp_value]
mov ecx, dword [0x40d6e0]
mov dx, word [0x40d6e4]
mov dword [esp + 0x10c], eax
mov al, byte [0x40d6e6]
push esi
push edi
mov dword [esp + 0x118], ecx
mov byte [esp + 0x11e], al
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x11f]
mov word [esp + 0x11c], dx
mov edx, dword [0x40d6d4]
rep stosd dword es:[edi], eax
mov ecx, dword [str.Software]
mov al, byte [0x40d6d8]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 8]
mov dword [esp + 0x18], edx
push ecx
push 0xf003f
lea edx, [esp + 0x1c]
push 0
push edx
push 0x80000002
mov byte [esp + 0x30], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403db4
xor eax, eax
pop edi
pop esi
add esp, 0x20c
ret
mov eax, dword [str.oracle_oui_tmp]
mov ecx, dword [0x40d6c4]
mov dword [esp + 0x14], eax
mov ax, word [0x40d6cc]
mov dword [esp + 0x18], ecx
mov cl, byte [0x40d6ce]
mov word [esp + 0x20], ax
mov byte [esp + 0x22], cl
mov edx, dword [0x40d6c8]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x114]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403e2c
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
add esp, 0x20c
ret
mov eax, dword [esp + 8]
push str.oracle_oui_tmp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push str.temp_key
lea eax, [esp + 0x2c]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403e75
xor eax, eax
pop edi
pop esi
add esp, 0x20c
ret
mov edx, dword [esp + 8]
push str.oracle_oui_tmp
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x20c
ret

Function at 0x404010
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40403a
test byte [esp + 0xc], 0x80
je 0x40402c
and al, 0xfe
jmp 0x40402e
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40404e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405a10
add esp, 4
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x405810
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c278
push 0x4091d8
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 [0x410400], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4103fc], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4103f8], ecx
shr eax, 0x10
mov dword [0x4103f4], eax
call fcn.00406220
test eax, eax
jne 0x40587a
push 0x1c
call fcn.004059e0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405d50
call fcn.00407d40
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x411bc4], eax
call fcn.00408f80
mov dword [0x410198], eax
test eax, eax
je 0x4058ad
mov eax, dword [0x411bc4]
test eax, eax
jne 0x4058b7
push 0xffffffffffffffff
call fcn.00407ee0
add esp, 4
call fcn.00408cd0
call fcn.00408be0
call fcn.00407eb0
mov esi, dword [0x411bc4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x405996
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4058fe
test al, al
je 0x4058fe
and eax, 0xff
push eax
call fcn.00408b80
add esp, 4
test eax, eax
je 0x4058d8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4058d8
cmp byte [esi], 0x22
jne 0x405907
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x405917
cmp al, 0x20
ja 0x405917
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405907
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x405938
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40593d
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.00407ee0
jmp 0x40597b
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 0x405907
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405996

Function at 0x4059e0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4101a0], 1
jne 0x4059ee
call fcn.004092b0
mov eax, dword [esp + 4]
push eax
call fcn.004092f0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407f20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x410430]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x407f3f
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 [0x41042c], 1
mov byte [0x410428], bl
jne 0x407f99
mov ecx, dword [0x410a84]
test ecx, ecx
je 0x407f87
mov esi, dword [0x410a80]
sub esi, 4
cmp esi, ecx
jb 0x407f87
mov eax, dword [esi]
test eax, eax
je 0x407f80
call eax
mov ecx, dword [0x410a84]
sub esi, 4
cmp esi, ecx
jae 0x407f72
push 0x40d01c
push 0x40d014
call fcn.00407fd0
add esp, 8
push 0x40d024
push 0x40d020
call fcn.00407fd0
add esp, 8
test ebx, ebx
jne 0x407fc0
push ebp
mov dword [0x410430], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x408f80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x410628]
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 0x408fc2
call edi
mov esi, eax
test esi, esi
je 0x408fac
mov eax, 1
jmp 0x408fbd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4090cf
mov eax, 2
mov dword [0x410628], eax
cmp eax, 1
jne 0x409062
test esi, esi
jne 0x408fdb
call edi
mov esi, eax
test esi, esi
je 0x4090cf
cmp word [esi], 0
mov eax, esi
je 0x408ff5
add eax, 2
cmp word [eax], 0
jne 0x408fe3
add eax, 2
cmp word [eax], 0
jne 0x408fe3
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 0x409054
push edi
call fcn.004042f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x409054
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 0x409046
push ebx
call fcn.004042a0
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 0x4090cf
test ebx, ebx
jne 0x409073
call ebp
mov ebx, eax
test ebx, ebx
je 0x4090cf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40908b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40907b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40907b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004042f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4090ad
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