joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4886d9
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x4d7464]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push 0x9a
lea eax, [ebp - 0x27]
push 0
push eax
mov byte [ebp - 0x28], 0
call fcn.0048a3a0
add esp, 0xc
push 0x9b
lea eax, [ebp - 0x28]
push eax
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x488730
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x488730
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049333c
add ebp, 0x78
leave
ret

Function at 0x488742
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], 0x288
push dword [ebp - 4]
call fcn.0048930f
mov edi, eax
test edi, edi
pop ecx
je 0x48878f
push dword [ebp - 4]
push 0
push edi
call fcn.0048a3a0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov esi, eax
cmp esi, 0x6f
jne 0x488795
push edi
call fcn.0048a41a
pop ecx
xor edi, edi
inc ebx
cmp ebx, 2
jl 0x488758
test esi, esi
jne 0x4887dc
test edi, edi
mov esi, edi
je 0x4887e7
push 6
lea eax, [esi + 0x10c]
push str.vmware
push eax
call fcn.0048ff39
add esp, 0xc
test eax, eax
jne 0x4887c1
mov esi, dword [esi]
test esi, esi
jne 0x48879f
jmp 0x4887dc
push 8
add esi, 0x194
push esi
push dword [ebp + 8]
call fcn.0048a740
add esp, 0xc
mov dword [ebp - 8], 1
test edi, edi
je 0x4887e7
push edi
call fcn.0048a41a
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4887ef
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b33e7
mov eax, dword fs:[0]
push eax
mov eax, 0x385c
call fcn.0049d480
mov eax, dword [0x4d7464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x371c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3718], eax
lea eax, [ebp - 0x3760]
or esi, 0xffffffff
call fcn.00422c92
lea eax, [ebp - 0x3710]
call fcn.0042b600
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x4dd4b4]
mov ecx, 0x4dd4b4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x3714], ebx
push 0x18e
lea eax, [ebp - 0x19e]
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x1a0], di
call fcn.0048a3a0
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
jne 0x488967
mov edi, dword [ebp - 0x371c]
lea eax, [ebp - 0x3760]
push eax
lea eax, [ebp - 0x3710]
push eax
mov dword [ebp - 0x375c], str.POST
call fcn.0042b74b
test al, al
je 0x488961
cmp dword [ebp - 0x1c4], 0xc8
jne 0x488961
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x2648]
push dword [ebp - 0x1bc]
add ecx, eax
add ecx, dword [ebp - 0x1b4]
lea eax, [ebp - 0x3714]
push ecx
call fcn.0042641c
push 0x4bd6b8
lea eax, [ebp - 0x3714]
push eax
call fcn.004263f9
mov ebx, dword [ebp - 0x3714]
push ebx
lea esi, [ebp - 0x3864]
call fcn.0040208e
mov byte [ebp - 4], 2
push dword [eax]
push dword [ebp - 0x3718]
call fcn.00401af8
lea eax, [ebp - 0x3860]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3864], eax
je 0x488954
push dword [ebp - 0x3864]
call fcn.0048b29e
pop ecx
mov eax, dword [ebp - 0x3718]
call fcn.004264da
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
call fcn.0040151c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3710]
call fcn.00427354
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049333c
leave
ret
Function at 0x488a7f
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x80
lea ebp, [esp - 4]
mov eax, dword [0x4d7464]
xor eax, ebp
mov dword [ebp + 0x80], eax
push 0x128
mov eax, 0x4b3091
call fcn.00493a17
mov eax, dword [ebp + 0x8c]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
push 0x7f
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp + 1]
push ebx
inc edi
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 5
mov byte [ebp], bl
call fcn.0048a3a0
add esp, 0xc
push str.mo:_72Bilrqgb8ls5kn8z
lea esi, [ebp - 0xb4]
call fcn.00427339
mov dword [ebp - 4], edi
mov esi, dword [eax]
cmp esi, ebx
je 0x488b36
push esi
call fcn.0048c010
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
jle 0x488b36
mov dword [ebp - 0x10], esi
lea eax, [ebp]
sub dword [ebp - 0x10], eax
mov eax, ebx
cdq
push 5
pop esi
idiv esi
lea ecx, [ebp + ebx]
mov al, byte [ebp + edx*4 - 0x30]
mov edx, dword [ebp - 0x10]
xor al, byte [edx + ecx]
inc ebx
cmp ebx, dword [ebp - 0x1c]
mov byte [ecx], al
jl 0x488b18
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0
cmp dword [ebp - 0xb4], eax
je 0x488b54
push dword [ebp - 0xb4]
call fcn.0048b29e
pop ecx
lea eax, [ebp]
push eax
lea esi, [ebp - 0x134]
call fcn.0040208e
mov dword [ebp - 4], 2
push dword [eax]
mov eax, dword [ebp - 0x14]
call fcn.00401994
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x134], eax
mov dword [ebp - 0x18], edi
je 0x488b95
push dword [ebp - 0x134]
call fcn.0048b29e
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.0049333c
add ebp, 0x84
leave
ret

Function at 0x488db3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d7464]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00488cf2
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0048a3a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x488e02
cmp dword [ebp - 0x1c], 5
jb 0x488e1a
jmp 0x488e16
cmp dword [ebp - 0x10], 1
jne 0x488e1a
cmp dword [ebp - 0x1c], 4
ja 0x488e16
jne 0x488e1a
cmp dword [ebp - 0x18], 0
jbe 0x488e1a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b495c
call fcn.00438604
test eax, eax
jge 0x488e3b
mov byte [0x4dea6c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049333c
add ebp, 0x78
leave
ret
Function at 0x489283
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4dd4d0], 0
push esi
jne 0x4891f6
call fcn.00489121
test eax, eax
je 0x489239
mov eax, dword [0x4dd4d0]
cmp eax, 1
jne 0x489217
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x489239
pop esi
ret
push eax
call dword [0x4dd4d8]
test eax, eax
jne 0x489281
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x48923d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4dd4d0]
call dword [0x4dd4d8]
mov edi, eax
test edi, edi
je 0x489264
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x489280
lea edi, [esi + 0xff0]
push esi
push dword [0x4dd4d0]
call dword [0x4dd4d4]
add esi, 0x10
cmp esi, edi
jb 0x48926a
mov eax, esi
pop edi
pop esi
ret
jmp 0x4891e3

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48c0c8
call fcn.0048f6ae
mov dword [eax], esi
call fcn.0048f69b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048c2ff
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x48c0a4
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48c0f7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0048f6c1
pop ecx
call fcn.0048f69b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x48c11e
test al, 1
je 0x48c11e
test byte [esp + 0xc], 2
je 0x48c11e
call fcn.0048f6ae
mov dword [eax], 5
call fcn.0048f69b
mov dword [eax], 0xd
jmp 0x48c0ee
xor eax, eax
pop esi
ret
Function at 0x491128
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x491165
cmp dword [ebp + 0x14], edi
je 0x491165
cmp ecx, edi
jne 0x49116c
call fcn.0048f69b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048c2ff
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x491180
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4911a1
cmp ebx, 0xffffffff
je 0x491190
push ebx
push edi
push ecx
call fcn.0048a3a0
add esp, 0xc
cmp esi, edi
je 0x49114d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x49114d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4911bd
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4911c4
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4912b5
test word [esi + 0xc], 0x10c
je 0x491218
mov eax, dword [esi + 4]
test eax, eax
je 0x491218
jl 0x491316
cmp ebx, eax
mov edi, ebx
jb 0x4911e9
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4912bd
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048a6b7
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4912ad
cmp ebx, dword [ebp - 0xc]
jb 0x491285
cmp dword [ebp - 0xc], 0
je 0x491242
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x491237
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x49123e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x49124d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x49124d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4912e9
push eax
push dword [ebp - 8]
push esi
call fcn.0049f49e
pop ecx
push eax
call fcn.0049f3a1
add esp, 0xc
test eax, eax
je 0x491328
cmp eax, 0xffffffff
je 0x491316
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4912ad
push esi
call fcn.0049ecc0
cmp eax, 0xffffffff
pop ecx
je 0x49131a
cmp dword [ebp - 4], 0
je 0x4912e9
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4911cc
mov eax, dword [ebp + 0x14]
jmp 0x491167
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4912d4
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0048a3a0
add esp, 0xc
call fcn.0048f69b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x49115d
cmp dword [ebp + 0xc], 0xffffffff
je 0x4912ff
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0048a3a0
add esp, 0xc
call fcn.0048f69b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x49115d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x491167
or dword [esi + 0xc], 0x10
jmp 0x49131a
Function at 0x49333c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d7464]
jne 0x493346
repz ret
jmp fcn.004a3629

Function at 0x498f6a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d75d8]
je 0x498f85
inc edi
cmp edi, 0x17
jb 0x498f76
cmp edi, 0x17
jae 0x499105
push ebp
push 3
call fcn.004a51ad
cmp eax, 1
pop ecx
je 0x4990d1
push 3
call fcn.004a51ad
test eax, eax
pop ecx
jne 0x498fb9
cmp dword [0x4d7460], 1
je 0x4990d1
cmp ebx, 0xfc
je 0x499104
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4dd910
push ebp
call fcn.00490162
add esp, 0xc
test eax, eax
je 0x498fef
push esi
push esi
push esi
push esi
push esi
call fcn.0048c203
add esp, 0x14
push 0x104
mov esi, 0x4dd929
push esi
push 0
mov byte [0x4dda2d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x499033
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00490162
add esp, 0xc
test eax, eax
je 0x499033
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048c203
add esp, 0x14
push esi
call fcn.0048c010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x499078
push esi
call fcn.0048c010
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ddc24
push 0x4b5cd4
sub ecx, eax
push ecx
push eax
call fcn.0049e273
add esp, 0x14
test eax, eax
je 0x499078
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048c203
add esp, 0x14
jmp 0x49907a
xor esi, esi
push 0x4b5cd0
push ebx
push ebp
call fcn.0049e202
add esp, 0xc
test eax, eax
je 0x49909a
push esi
push esi
push esi
push esi
push esi
call fcn.0048c203
add esp, 0x14
push dword [edi*8 + 0x4d75dc]
push ebx
push ebp
call fcn.0049e202
add esp, 0xc
test eax, eax
je 0x4990bc
push esi
push esi
push esi
push esi
push esi
call fcn.0048c203
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a4ff0
add esp, 0xc
jmp 0x499104
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x499104
cmp ebp, 0xffffffff
je 0x499104
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d75dc]
push dword [esi]
call fcn.0048c010
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a4ff0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004998da
xor ebx, ebx
cmp dword [0x4de2e8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4a50c6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a51a6
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4a51a6
push eax
call fcn.0049986c
mov dword [esp], 0x4b81a8
push edi
mov dword [0x4de2e8], eax
call esi
push eax
call fcn.0049986c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4de2ec], eax
call esi
push eax
call fcn.0049986c
mov dword [0x4de2f0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00498cf7
test eax, eax
pop ecx
pop ecx
je 0x4a5094
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048c203
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4a50c6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0049986c
cmp eax, ebx
pop ecx
mov dword [0x4de2f8], eax
je 0x4a50c6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049986c
pop ecx
mov dword [0x4de2f4], eax
mov eax, dword [0x4de2f4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4a514b
cmp dword [0x4de2f8], ecx
je 0x4a514b
push eax
call fcn.004998e3
push dword [0x4de2f8]
mov esi, eax
call fcn.004998e3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4a514b
cmp edi, ebx
je 0x4a514b
call esi
cmp eax, ebx
je 0x4a5118
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a5118
test byte [ebp - 0x18], 1
jne 0x4a514b
lea eax, [ebp - 0x10]
push eax
call fcn.00498d2e
test eax, eax
pop ecx
je 0x4a5133
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048c203
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4a5142
or dword [ebp + 0x10], 0x200000
jmp 0x4a5186
or dword [ebp + 0x10], 0x40000
jmp 0x4a5186
mov eax, dword [0x4de2ec]
cmp eax, dword [ebp - 8]
je 0x4a5186
push eax
call fcn.004998e3
cmp eax, ebx
pop ecx
je 0x4a5186
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a5186
mov eax, dword [0x4de2f0]
cmp eax, dword [ebp - 8]
je 0x4a5186
push eax
call fcn.004998e3
cmp eax, ebx
pop ecx
je 0x4a5186
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4de2e8]
call fcn.004998e3
cmp eax, ebx
pop ecx
je 0x4a51a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a51a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x12c
mov eax, dword [0x447d10]
mov dword [esp + 0x128], eax
mov al, byte [0x449d54]
test al, al
jne 0x4090da
lea eax, [esp]
push eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [esp + 4]
push ecx
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409031
mov eax, dword [esp + 4]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x409043
lea eax, [esp + 0x24]
push 0x4398b8
push eax
call fcn.00416f3f
add esp, 8
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409053
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00403ef0
push 8
push str.VALLEY_
lea ecx, [esp + 0x10]
call fcn.00408870
push 0x16
push str.Ahmed___Hassan___WE_11
lea ecx, [esp + 0x10]
call fcn.00408870
push 1
push 0x439890
lea ecx, [esp + 0x10]
call fcn.00408870
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4090aa
lea eax, [esp + 0xc]
push 0x410
push eax
push 0x449388
call fcn.004171a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
mov byte [0x449d54], 1
jb 0x4090da
mov eax, dword [esp + 0xc]
push eax
call fcn.0042cfc9
add esp, 4
mov ecx, dword [esp + 0x128]
mov eax, 0x449388
call fcn.004164ae
add esp, 0x12c
ret

Function at 0x40c553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c568
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40c57a
xor eax, eax
jmp 0x40c5ac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40c59e
cmp esi, eax
jae 0x40c576
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40c590
cmp esi, eax
jae 0x40c576
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x402d24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40c00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402dbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d9c
xor eax, eax
push ebp
push 0x402d95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402dd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40c00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40c00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403710
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41f044], 0
je 0x403771
cmp word [0x41f218], 0xd7b2
jne 0x403739
cmp dword [0x41f220], 0
jbe 0x403739
mov eax, 0x41f214
call dword [0x41f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40c04c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403798
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40c018], 0
jne 0x40378d
push 0
push 0x40c06c
push 0x40c04c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404594
Capabilities:
Get geographical location
Query or enumerate registry value

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 0x4047c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404617
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4047c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404617
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4047e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4046a0
xor eax, eax
push ebp
push 0x404699
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004043dc
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 0x40467e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404800
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40467e
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 0x4046a0
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 0x4047ba
cmp byte [ebp - 0xd], 0
jne 0x4046e7
cmp byte [ebp - 0x12], 0
je 0x4047ba
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404700
dec ebx
cmp byte [ebx], 0x2e
je 0x40470f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4046ff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4047ba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40474c
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 0x4047ba
cmp byte [ebp - 0xd], 0
je 0x4047ba
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 0x4047ba
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 0x406640
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40667b
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x406662
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x406673
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40667d
inc edi
add eax, 0x28
cmp edi, esi
jb 0x406658
xor eax, eax
pop edi
pop esi
ret