joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9360
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
xor eax, eax
push esi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov ebp, 0x2800
call fcn.004a88b0
push 0
push 0x8020
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.004c70c0
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4a93ce
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov esi, ecx
or esi, edx
je 0x4a93bf
test edx, edx
ja 0x4a93e8
jb 0x4a93e6
cmp ecx, ebp
jae 0x4a93e8
mov ebp, ecx
mov ecx, dword [edi + 0x6c]
push ebp
push ecx
push eax
call fcn.004c9b22
mov edx, dword [edi + 0x6c]
add esp, 0xc
mov esi, eax
push esi
push edx
push ebx
mov ecx, edi
mov ebp, esi
call fcn.004a9050
test esi, esi
je 0x4a9465
jmp 0x4a9410
mov eax, dword [esp + 0x14]
xor edx, edx
cmp edx, eax
ja 0x4a9465
jb 0x4a9422
cmp ebp, dword [esp + 0x10]
ja 0x4a9465
mov ecx, dword [esp + 0x10]
sub ecx, ebp
sbb eax, edx
test eax, eax
ja 0x4a943e
jb 0x4a9438
cmp ecx, 0x2800
jae 0x4a943e
mov esi, dword [esp + 0x10]
sub esi, ebp
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x1c]
push esi
push eax
push ecx
call fcn.004c9b22
mov edx, dword [edi + 0x6c]
add esp, 0xc
mov esi, eax
push esi
push edx
push ebx
mov ecx, edi
add ebp, esi
call fcn.004a9050
test esi, esi
jne 0x4a9410
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c71aa
add esp, 4
push ebx
lea ecx, [edi + 4]
push ecx
mov ecx, edi
call fcn.004a9100
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x4a9490
Capabilities:
Hash data with md5

Disassembly:
push ebx
push esi
push edi
mov di, word [esp + 0x18]
xor eax, eax
cmp di, ax
mov esi, ecx
je 0x4a94a7
cmp di, 3
jne 0x4a94c9
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x14], 0x67452301
mov dword [esi + 0x18], 0xefcdab89
mov dword [esi + 0x1c], 0x98badcfe
mov dword [esi + 0x20], 0x10325476
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea ebx, [esi + 0x14]
push ebx
mov ecx, esi
call fcn.004a9050
cmp di, 2
je 0x4a94ea
cmp di, 3
jne 0x4a94f6
push ebx
lea edx, [esi + 4]
push edx
mov ecx, esi
call fcn.004a9100
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4a96b0
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0xa8]
push edi
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp byte [esp + 0x14], bl
je 0x4a9775
mov eax, dword [esi + 0x50]
cmp dword [esi + 0x54], eax
mov dword [esi], 3
jae 0x4a96e4
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x44]
cmp dword [esi + 0x54], eax
jbe 0x4a96ef
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
push ebp
mov dword [esi + 0x50], eax
xor ebp, ebp
call fcn.00419310
mov ecx, eax
mov eax, dword [esi + 0x54]
xor edx, edx
div dword [ecx + 0xac]
test eax, eax
jle 0x4a9745
lea edi, [esi + 0x58]
mov eax, dword [edi]
cmp eax, ebx
mov dword [edi + 0x28], 4
je 0x4a9729
push eax
call fcn.004abf30
add esp, 4
mov dword [edi], ebx
add ebp, 1
add edi, 4
call fcn.00419310
mov ecx, eax
mov eax, dword [esi + 0x54]
xor edx, edx
div dword [ecx + 0xac]
cmp ebp, eax
jl 0x4a9711
mov eax, dword [esi + 0x44]
cmp dword [esi + 0x54], eax
pop ebp
jb 0x4a97bd
mov dword [esi + 0x54], eax
mov dword [esi], 4
cmp dword [esi + 0x38], 8
jb 0x4a9769
mov esi, dword [esi + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4a97bd
add esi, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4a97bd
mov dword [esi], 1
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
xor edi, edi
call fcn.00419310
cmp dword [eax + 0xb0], ebx
jle 0x4a97bd
add esi, 0x58
mov eax, dword [esi]
cmp eax, ebx
mov dword [esi + 0x28], ebx
je 0x4a97aa
push eax
call fcn.004abf30
add esp, 4
mov dword [esi], ebx
add edi, 1
add esi, 4
call fcn.00419310
cmp edi, dword [eax + 0xb0]
jl 0x4a9796
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x4a97e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4ed9a4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0xc2]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], 2
je 0x4a982e
push eax
call fcn.004aef39
add esp, 4
mov dword [esi + 0xc2], ebp
xor ebx, ebx
call fcn.00419310
cmp dword [eax + 0xb0], ebp
jle 0x4a9864
lea edi, [esi + 0x58]
mov eax, dword [edi]
cmp eax, ebp
je 0x4a9851
push eax
call fcn.004abf30
add esp, 4
mov dword [edi], ebp
add ebx, 1
add edi, 4
call fcn.00419310
cmp ebx, dword [eax + 0xb0]
jl 0x4a9840
mov ebx, 8
cmp dword [esi + 0x38], ebx
jb 0x4a9873
mov eax, dword [esi + 0x24]
jmp 0x4a9876
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [esi + 0x38], ebx
jb 0x4a989b
mov ecx, dword [esi + 0x24]
push ecx
call fcn.004aef39
add esp, 4
mov edi, 7
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], ebp
mov word [esi + 0x24], bp
cmp dword [esi + 0x1c], ebx
jb 0x4a98bb
mov edx, dword [esi + 8]
push edx
call fcn.004aef39
add esp, 4
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], ebp
mov word [esi + 8], bp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4aabe0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 8
jb 0x4aabf4
mov eax, dword [edi + 8]
jmp 0x4aabf7
lea eax, [edi + 8]
xor ebp, ebp
push ebp
push 0x10000000
push 3
push ebp
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4aac23
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, ebp
je 0x4aac17
lea ebp, [edi + 0xa8]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
sub eax, 0
mov ebx, dword [edi + 0x3c]
mov esi, dword [edi + 0x40]
je 0x4aac7d
sub eax, 1
je 0x4aac71
sub eax, 1
jne 0x4aac8a
mov ecx, dword [edi + 0x44]
add ebx, ecx
jmp 0x4aac87
cmp dword [edi], 1
jge 0x4aac8a
mov edx, dword [edi + 0x44]
add ebx, edx
jmp 0x4aac87
cmp dword [edi], 3
jge 0x4aac8a
mov eax, dword [edi + 0x44]
add ebx, eax
adc esi, 0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [esp + 0x14]
ja 0x4aaca7
jb 0x4aac17
cmp ebx, dword [esp + 0x10]
jbe 0x4aac17
call fcn.00419310
mov ebp, dword [eax + 0xac]
call fcn.00419310
mov eax, dword [eax + 0xac]
mov ecx, ebx
sub ecx, dword [esp + 0x10]
cdq
sbb esi, dword [esp + 0x14]
cmp esi, edx
ja 0x4aacdc
jb 0x4aacd2
cmp ecx, eax
jae 0x4aacdc
mov ecx, dword [esp + 0x10]
sub ebx, ecx
mov ebp, ebx
jmp 0x4aace0
mov ecx, dword [esp + 0x10]
xor eax, eax
test ebp, ebp
jbe 0x4aad30
mov ecx, dword [edi + 0xda]
push 0x50f550
push ecx
call fcn.00418e20
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esp, 8
push 0x80
push 0x68c820
push ebp
push edx
push eax
sub esp, 0x1c
lea eax, [edi + 4]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.00406510
mov ecx, edi
call fcn.004a98e0
test eax, eax
jl 0x4aad40
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4aad40
sub ecx, dword [edx + 0x3c]
add ecx, eax
mov dword [edx + 0x4c], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x4ac8a0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x510174
push 1
push 0
lea esi, [ecx + 4]
push 0x510164
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jge 0x4ac8f3
push edi
push 0x50fe58
call fcn.004c7277
add esp, 8
mov eax, edi
pop edi
pop esi
add esp, 8
ret
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
test edi, edi
jge 0x4ac92c
push edi
push 0x50fe7c
call fcn.004c7277
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, edi
pop edi
pop esi
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push eax
call edx
mov esi, eax
test esi, esi
jge 0x4ac94d
push esi
push 0x50fea0
call fcn.004c7277
add esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x4afa8d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x670f1c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4afaca
push 0x510bb0
push 4
push eax
call fcn.004c0258
push eax
call fcn.00407120
add esp, 0x10
jmp 0x4afadc
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4afb47
push edi
call fcn.004ca0a9
mov edi, dword [eax]
call fcn.004ca0a9
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004c67a6
add esp, 0x18
mov ebx, eax
call fcn.004ca0a9
cmp dword [eax], 0
je 0x4afb27
call fcn.004ca0a9
push dword [eax]
call fcn.004afa24
pop ecx
jmp 0x4afb2e
call fcn.004ca0a9
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4afb47
cmp ebx, esi
jae 0x4afb47
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4afb49
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfdfd
leave
ret
Function at 0x4b1e8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4ee180
call fcn.004c9cc3
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004b7d05
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4b1ed5
call fcn.004b7d05
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4b1ee6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4b1ef3
or eax, 0xffffffff
jmp 0x4b204f
mov ecx, esi
call fcn.004b19dc
mov dword [ebp - 0x14], eax
call fcn.004b47a9
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4b1f71
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4b1f71
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4b1f71
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004afa74
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4b1f71
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4b1f71
mov ecx, ebx
call fcn.004b9224
test eax, eax
je 0x4b1f71
push 0
mov ecx, ebx
call fcn.004b923f
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004b61d1
push dword [ebp - 0x14]
call fcn.004b4701
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004b1c92
xor edi, edi
cmp eax, edi
je 0x4b1fce
test byte [esi + 0x3c], 0x10
je 0x4b1fb8
push 4
pop edi
mov ecx, esi
call fcn.004b90be
test ax, 0x100
je 0x4b1fae
push 5
pop edi
push edi
mov ecx, esi
call fcn.004b4297
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4b1fce
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004b92a6
or dword [ebp - 4], 0xffffffff
jmp 0x4b1ff9
cmp dword [ebp - 0x28], edi
je 0x4b2007
push 1
mov ecx, ebx
call fcn.004b923f
cmp dword [ebp - 0x2c], edi
je 0x4b2017
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4b2030
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4b2030
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004b1a16
cmp dword [esi + 0x58], edi
je 0x4b204c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004c9d2f
ret
Function at 0x4b57c7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4b5800
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b5760
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00406a70
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4b72eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4b732e
call fcn.004b7d05
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b732e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4b7349
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004b6ea5
test ebx, ebx
mov esi, eax
je 0x4b7347
test edi, edi
je 0x4b7347
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4bb5bf
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4bb5e8
call fcn.004b7d05
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x4bb60b
push eax
push dword [esi + 4]
call fcn.004bb54a
push esi
push eax
mov ecx, 0x78e4e4
call fcn.004bb29e
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4bb94c
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4ee7f3
call fcn.004c9c90
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call fcn.004bb90e
and dword [ebp - 4], 0
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [esi], vtable.CFtpConnection.0
call fcn.00407400
push dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00406c50
push dword [esi + 8]
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x4bb9cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
call fcn.004bb54a
push dword [esi + 0xc]
mov ecx, 0x78e4e4
push eax
call fcn.004bb29e
mov eax, esi
call fcn.004c9d2f
ret 0x1c

Function at 0x4bfdfd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x670f1c]
jne 0x4bfe07
repz ret
jmp fcn.004ccb80
Function at 0x4cb908
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 + 0x671238]
je 0x4cb923
inc edi
cmp edi, 0x17
jb 0x4cb914
cmp edi, 0x17
jae 0x4cbaa3
push ebp
push 3
call fcn.004dbd4c
cmp eax, 1
pop ecx
je 0x4cba6f
push 3
call fcn.004dbd4c
test eax, eax
pop ecx
jne 0x4cb957
cmp dword [0x670ef8], 1
je 0x4cba6f
cmp ebx, 0xfc
je 0x4cbaa2
push 0x513508
mov ebx, 0x314
push ebx
mov ebp, 0x78e8f0
push ebp
call fcn.004c1687
add esp, 0xc
test eax, eax
je 0x4cb98d
push esi
push esi
push esi
push esi
push esi
call fcn.004bfeec
add esp, 0x14
push 0x104
mov esi, 0x78e909
push esi
push 0
mov byte [0x78ea0d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4cb9d1
push 0x5134f0
push 0x2fb
push esi
call fcn.004c1687
add esp, 0xc
test eax, eax
je 0x4cb9d1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004bfeec
add esp, 0x14
push esi
call fcn.004c0ce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4cba16
push esi
call fcn.004c0ce0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x78ec04
push 0x5134ec
sub ecx, eax
push ecx
push eax
call fcn.004c8f25
add esp, 0x14
test eax, eax
je 0x4cba16
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004bfeec
add esp, 0x14
jmp 0x4cba18
xor esi, esi
push 0x5134e8
push ebx
push ebp
call fcn.004c9c1f
add esp, 0xc
test eax, eax
je 0x4cba38
push esi
push esi
push esi
push esi
push esi
call fcn.004bfeec
add esp, 0x14
push dword [edi*8 + 0x67123c]
push ebx
push ebp
call fcn.004c9c1f
add esp, 0xc
test eax, eax
je 0x4cba5a
push esi
push esi
push esi
push esi
push esi
call fcn.004bfeec
add esp, 0x14
push 0x12010
push 0x5134c0
push ebp
call fcn.004dbb8f
add esp, 0xc
jmp 0x4cbaa2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4cbaa2
cmp ebp, 0xffffffff
je 0x4cbaa2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x67123c]
push dword [esi]
call fcn.004c0ce0
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 0x4dbb8f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004cc4b8
xor ebx, ebx
cmp dword [0x78f344], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4dbc65
push 0x518c5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4dbd45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x518c50
push edi
call esi
cmp eax, ebx
je 0x4dbd45
push eax
call fcn.004cc44a
mov dword [esp], 0x518c40
push edi
mov dword [0x78f344], eax
call esi
push eax
call fcn.004cc44a
mov dword [esp], 0x518c2c
push edi
mov dword [0x78f348], eax
call esi
push eax
call fcn.004cc44a
mov dword [0x78f34c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004c9dfb
test eax, eax
pop ecx
pop ecx
je 0x4dbc33
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004bfeec
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4dbc65
push 0x518c10
push edi
call esi
push eax
call fcn.004cc44a
cmp eax, ebx
pop ecx
mov dword [0x78f354], eax
je 0x4dbc65
push 0x518bf8
push edi
call esi
push eax
call fcn.004cc44a
pop ecx
mov dword [0x78f350], eax
mov eax, dword [0x78f350]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4dbcea
cmp dword [0x78f354], ecx
je 0x4dbcea
push eax
call fcn.004cc4c1
push dword [0x78f354]
mov esi, eax
call fcn.004cc4c1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4dbcea
cmp edi, ebx
je 0x4dbcea
call esi
cmp eax, ebx
je 0x4dbcb7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4dbcb7
test byte [ebp - 0x18], 1
jne 0x4dbcea
lea eax, [ebp - 0x10]
push eax
call fcn.004c9e32
test eax, eax
pop ecx
je 0x4dbcd2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004bfeec
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4dbce1
or dword [ebp + 0x10], 0x200000
jmp 0x4dbd25
or dword [ebp + 0x10], 0x40000
jmp 0x4dbd25
mov eax, dword [0x78f348]
cmp eax, dword [ebp - 8]
je 0x4dbd25
push eax
call fcn.004cc4c1
cmp eax, ebx
pop ecx
je 0x4dbd25
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4dbd25
mov eax, dword [0x78f34c]
cmp eax, dword [ebp - 8]
je 0x4dbd25
push eax
call fcn.004cc4c1
cmp eax, ebx
pop ecx
je 0x4dbd25
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x78f344]
call fcn.004cc4c1
cmp eax, ebx
pop ecx
je 0x4dbd45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4dbd47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e30e3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x670f1c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004e3078
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.004c16f0
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 0x4e3132
cmp dword [ebp - 0x1c], 5
jb 0x4e314a
jmp 0x4e3146
cmp dword [ebp - 0x10], 1
jne 0x4e314a
cmp dword [ebp - 0x1c], 4
ja 0x4e3146
jne 0x4e314a
cmp dword [ebp - 0x18], 0
jbe 0x4e314a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x5196b4
call fcn.004e2f4c
test eax, eax
jge 0x4e316b
mov byte [0x78f7b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004bfdfd
add ebp, 0x78
leave
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret