joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ccb14
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004733fc
pop ecx
test eax, eax
je 0x4ccb2e
mov eax, 1
pop ebx
pop ebp
ret
mov byte [0x5e3ab8], bl
xor edx, edx
mov dword [0x5e3abc], edx
xor ecx, ecx
mov dword [0x5e3ac0], ecx
mov eax, dword [0x5e3ab4]
push eax
call sub.USER32.dll_IsWindow
test eax, eax
je 0x4ccb81
push 5
mov edx, dword [0x5e3ab4]
push edx
call sub.USER32.dll_ShowWindow
push 0
push 0x12c
push 0x7c6
mov ecx, dword [0x5e3ab4]
push ecx
call sub.USER32.dll_SetTimer
mov eax, 1
pop ebx
pop ebp
ret
push 0
mov edx, dword [0x529070]
push 0
push edx
push 0x5e3ac4
call fcn.0040de38
add esp, 0x10
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x4cd738
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4cd753
push 0
call fcn.004ccc00
pop ecx
push edi
call fcn.004794f0
pop ecx
push edi
push 0x60288b
mov edx, dword [ebp + 0x10]
push edx
call fcn.004d75f8
add esp, 0xc
push 0
push esi
call sub.USER32.dll_ShowWindow
xor ebx, ebx
push 0
push 0
push ebx
push esi
call sub.USER32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x4cd7a1
push 1
push edi
push ebx
call fcn.00455530
add esp, 0xc
push 0
push 0
call fcn.00401400
add esp, 8
jmp 0x4cd776
push 0x1c0001
push 0xd
push pe_nt_image_headers32
push esi
call sub.USER32.dll_SendMessageA
push 0x1c0001
push 0xd
push 0x102
push esi
call sub.USER32.dll_SendMessageA
push 0xc01c0001
push 0xd
push 0x101
push esi
call sub.USER32.dll_SendMessageA
push 1
push 1
push 0x111
push esi
call sub.USER32.dll_SendMessageA
push 2
call fcn.004dee84
pop ecx
push esi
call fcn.004cd678
pop ecx
push esi
call sub.USER32.dll_IsWindow
test eax, eax
je 0x4cd81e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4cd80b
call fcn.004ccc40
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4cd81a
push 0
call fcn.004ccfb4
pop ecx
xor eax, eax
jmp 0x4cd823
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4ce130
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_GetParent
mov ebx, eax
test ebx, ebx
jne 0x4ce14e
xor eax, eax
jmp 0x4ce1f8
push 0x40
lea edx, [ebp - 0x40]
push edx
push ebx
call sub.USER32.dll_GetClassNameA
test eax, eax
je 0x4ce1c8
lea eax, [ebp - 0x40]
mov edx, 0x6028e4
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4ce1c8
test cl, cl
je 0x4ce182
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4ce1c8
add eax, 2
add edx, 2
test cl, cl
jne 0x4ce166
jne 0x4ce1c8
push 0x6028f9
push 0x6028ed
call sub.USER32.dll_FindWindowA
mov esi, eax
push esi
call sub.USER32.dll_GetParent
cmp ebx, eax
jne 0x4ce1a6
mov eax, 1
jmp 0x4ce1f8
push 0x60290e
push 0x602902
call sub.USER32.dll_FindWindowA
mov esi, eax
push esi
call sub.USER32.dll_GetParent
cmp ebx, eax
jne 0x4ce1c8
mov eax, 1
jmp 0x4ce1f8
mov byte [ebp - 0x40], 0
push 0x3f
lea edx, [ebp - 0x40]
push edx
push ebx
call sub.USER32.dll_GetWindowTextA
push 0xb
push 0x602923
lea ecx, [ebp - 0x40]
push ecx
call fcn.004d3138
add esp, 0xc
test eax, eax
jne 0x4ce1f6
mov eax, 1
jmp 0x4ce1f8
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d911c
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
dec eax
je 0x4d9138
call fcn.004d975c
jmp 0x4d91a7
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
jne 0x4d9154
call fcn.004d975c
jmp 0x4d91a7
cmp dword [0x643874], 1
je 0x4d91a5
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004dd210
pop ecx
cmp al, 0x41
jl 0x4d91a5
cmp al, 0x5a
jg 0x4d91a5
cmp byte [ebp - 0x107], 0x3a
jne 0x4d91a5
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.dll_SetEnvironmentVariableA
dec eax
je 0x4d91a5
call fcn.004d975c
jmp 0x4d91a7
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4d91ec
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4d9232
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
je 0x4d9220
cmp eax, dword [ebp + 0x10]
jle 0x4d92bb
call fcn.004de258
mov dword [eax], 8
xor eax, eax
jmp 0x4d9328
cmp dword [0x643874], 1
jne 0x4d9277
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x4d92bb
xor eax, eax
jmp 0x4d9328
call sub.KERNEL32.dll_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4d92b7
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
jmp 0x4d92bb
xor eax, eax
jmp 0x4d9328
lea edx, [ebp - 0x10c]
push edx
call fcn.004d2f1c
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4d92dc
call fcn.004de258
mov dword [eax], 0x22
xor eax, eax
jmp 0x4d9328
test edi, edi
jne 0x4d92ff
mov edx, dword [ebp + 0x10]
push edx
call fcn.004ddb28
pop ecx
mov edi, eax
test eax, eax
jne 0x4d92ff
call fcn.004de258
mov dword [eax], 8
xor eax, eax
jmp 0x4d9328
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d99f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004d9330
test byte [ebp + 0xd], 0xc0
jne 0x4d9a1c
mov eax, dword [0x604454]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4d9a29
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4d9a56
je 0x4d9a68
sub ecx, 0x100
je 0x4d9a76
sub ecx, 0x100
je 0x4d9a7d
sub ecx, 0x100
je 0x4d9a6f
jmp 0x4d9a84
sub ecx, 0x600
je 0x4d9a7d
sub ecx, 0x100
je 0x4d9a68
jmp 0x4d9a84
mov edi, 1
jmp 0x4d9a89
mov edi, 2
jmp 0x4d9a89
mov edi, 4
jmp 0x4d9a89
mov edi, 5
jmp 0x4d9a89
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4d9ab0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x604a2c]
test al, 0x80
je 0x4d9aa9
mov ebx, 0x80
jmp 0x4d9ac2
mov ebx, 1
jmp 0x4d9ac2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4d9ac2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4d9ad4
je 0x4d9add
dec eax
je 0x4d9ae6
jmp 0x4d9aef
mov dword [ebp - 4], 0x80000000
jmp 0x4d9afe
mov dword [ebp - 4], 0x40000000
jmp 0x4d9afe
mov dword [ebp - 4], 0xc0000000
jmp 0x4d9afe
push 1
call fcn.004d96f0
pop ecx
mov ebx, eax
jmp 0x4d9bea
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4d9b1a
sub eax, 0x10
je 0x4d9b21
sub eax, 0x10
je 0x4d9b2a
sub eax, 0x10
je 0x4d9b33
jmp 0x4d9b33
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4d9b3a
mov dword [ebp - 8], 1
jmp 0x4d9b3a
mov dword [ebp - 8], 2
jmp 0x4d9b3a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4d9ba3
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4d9b98
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4d9b98
add ebx, 0xffffffb2
push ebx
call fcn.004d96f0
pop ecx
mov ebx, eax
jmp 0x4d9bea
mov edi, esi
push edi
call fcn.004d995c
pop ecx
test eax, eax
je 0x4d9bb7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4d9bc3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004d9430
add esp, 8
mov ebx, eax
inc eax
jne 0x4d9bea
push 4
call fcn.004d96f0
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.004d9364
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4dde28
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4de2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x605444], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4de378
cmp byte [0x4e2062], 0
je 0x4de332
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.004dd1b8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4de31b
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.004dd1b8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4de31b
lea ebx, [ebp - 0x54]
jmp 0x4de31c
inc ebx
call fcn.004de278
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4de399
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x605448
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004d2f1c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x60544b
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x4de399
cmp dword [0x605444], 0xffffffff
je 0x4de399
mov eax, dword [0x605444]
test eax, eax
je 0x4de399
cmp byte [eax], 0
je 0x4de399
push esi
push eax
call fcn.004de428
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4de9e8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x643904], 0
jne 0x4dea69
cmp dword [0x643920], 0
jne 0x4dea18
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x643920], eax
test eax, eax
jne 0x4dea18
push 0x605568
call fcn.004de3b0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x643920]
jmp 0x4dea2c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004d2f1c
pop ecx
mov edi, eax
test eax, eax
jne 0x4dea24
lea edi, [ebp + 1]
push edi
call fcn.004ddb28
pop ecx
mov ebx, eax
mov dword [0x643908], ebx
test ebx, ebx
jne 0x4dea56
xor eax, eax
jmp 0x4deb2c
push edi
mov edx, dword [0x643920]
push edx
push ebx
call fcn.004d2d2c
add esp, 0xc
jmp 0x4dea89
xor esi, esi
mov ebx, dword [0x643904]
jmp 0x4dea83
push eax
call fcn.004d2f1c
pop ecx
test eax, eax
jne 0x4dea7f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4dea73
lea ebx, [esi + 4]
push 4
mov dword [0x64390c], ebx
inc ebx
push ebx
call fcn.004dd22c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4deaac
xor eax, eax
jmp 0x4deb2c
cmp dword [0x643904], 0
jne 0x4deadd
xor esi, esi
mov ebx, dword [0x643908]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4deace
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004d2f1c
pop ecx
mov edi, eax
test eax, eax
jne 0x4deac4
jmp 0x4deb0e
xor esi, esi
mov ebx, dword [0x643904]
mov eax, dword [esp]
mov edi, eax
jmp 0x4deb08
push eax
call fcn.004d2f1c
pop ecx
test eax, eax
je 0x4deafd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4deb01
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4deaec
mov eax, dword [0x643904]
test eax, eax
je 0x4deb1e
push eax
call fcn.004dda14
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x643904], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4dff44
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x4dff6a
test esi, esi
je 0x4dff6a
call fcn.004de258
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x4dffd6
call fcn.004dfd20
mov ebx, eax
test eax, eax
jne 0x4dff85
call fcn.004de258
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x4dffd6
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
mov dword [ebx + 4], edx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
push eax
mov edx, dword [ebp + 0x18]
push edx
push ebx
push 0x4dfeb4
push esi
mov ecx, dword [ebp + 0x14]
push ecx
call sub.KERNEL32.dll_CreateThread
test eax, eax
jne 0x4dffca
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x718
jne 0x4dffc3
push 0x59
call fcn.004d96f0
pop ecx
jmp 0x4dffd6
call fcn.004d975c
jmp 0x4dffd6
mov dword [ebx + 8], eax
test edi, edi
je 0x4dffd6
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c004]
jne 0x401010
repz ret
jmp fcn.0040161b

Function at 0x407cd6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404e6b
and dword [ebp - 4], 0
cmp dword [0x41e184], 0
mov ebx, eax
jne 0x407d87
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407e38
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407e38
push eax
call fcn.00404df9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41e184], eax
call esi
push eax
call fcn.00404df9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41e188], eax
call esi
push eax
call fcn.00404df9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41e18c], eax
call esi
push eax
call fcn.00404df9
pop ecx
mov dword [0x41e194], eax
test eax, eax
je 0x407d87
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404df9
pop ecx
mov dword [0x41e190], eax
mov eax, dword [0x41e190]
cmp eax, ebx
je 0x407ddf
cmp dword [0x41e194], ebx
je 0x407ddf
push eax
call fcn.00404e74
push dword [0x41e194]
mov esi, eax
call fcn.00404e74
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407ddf
test edi, edi
je 0x407ddf
call esi
test eax, eax
je 0x407dd6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407dd6
test byte [ebp - 0xc], 1
jne 0x407ddf
or dword [ebp + 0x10], 0x200000
jmp 0x407e18
mov eax, dword [0x41e188]
cmp eax, ebx
je 0x407e18
push eax
call fcn.00404e74
pop ecx
test eax, eax
je 0x407e18
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407e18
mov eax, dword [0x41e18c]
cmp eax, ebx
je 0x407e18
push eax
call fcn.00404e74
pop ecx
test eax, eax
je 0x407e18
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41e184]
call fcn.00404e74
pop ecx
test eax, eax
je 0x407e38
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407e3a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDE846F0A0_D367_11D1_8286_00A0C9231C29InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x417c3e
xor eax, eax
pop esi
add esp, 8
ret 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x104
push ecx
push edx
push 0
push 0
push str.ThreadingModel
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417c6d
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x4452e4
Capabilities:
Encode data using xor

Disassembly:
or bl, al
ficom word [edx - 0x80]
push edx
xor dh, 0xc
mov dl, 0xad
cmp al, 0x6f
xor edx, ebp
call 0x71ddc88d
mov al, 0x6d
neg byte [eax - 0x16867927]
jbe 0x4452d1
stosb byte es:[edi], al
cdq
push eax
clc
invalid
push ds

Function at 0x4ba761
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33c8
cmp edx, dword [eax]
je 0x4ba783
add eax, 8
inc ecx
cmp eax, 0x4c3458
jl 0x4ba774
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33c8]
jne 0x4ba8b1
mov eax, dword [0x4c7d4c]
cmp eax, 1
je 0x4ba88b
test eax, eax
jne 0x4ba7b4
cmp dword [0x4c32f0], 1
je 0x4ba88b
cmp edx, 0xfc
je 0x4ba8b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba7eb
lea eax, [ebp - 0x1a4]
push 0x4bfa78
push eax
call fcn.004bb140
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb5d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba82e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb5d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfa74
push edi
call fcn.004bd4a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfa58
push eax
call fcn.004bb140
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb150
lea eax, [ebp - 0xa0]
push 0x4bfa54
push eax
call fcn.004bb150
push dword [esi + 0x4c33cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb150
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfa2c
push eax
call fcn.004bd414
add esp, 0x2c
pop edi
jmp 0x4ba8b1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33cc]
push 0
push eax
push dword [esi]
call fcn.004bb5d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40725b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], edi
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.0040719f
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add ebx, 0x23f
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov esi, dword [ebp - 8]
mov eax, esi
mov ecx, dword [0x714074]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4072e6
push 0x401130
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x714074]
mov edx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x7140b8]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x7140b8], eax
mov eax, dword [0x7140c0]
cmove eax, dword [ebp - 0x24]
mov dword [0x7140c0], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x7140bc], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
shl eax, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add ebx, 0x61c88647
mov dword [ebp - 0x14], ebx
dec edi
jne 0x4072ab
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4073c5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x407403
cmp dword [0x714074], 0x959
jne 0x4073f3
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0040725b
add edi, 8
dec esi
jne 0x4073d5
pop edi
pop esi
pop ebp
ret 4
Function at 0x410bbf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4353b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a7f3
mov dword [ebp - 0x14], eax
cmp dword [0x714e54], esi
jne 0x410cb2
push 0x800
push esi
push 0x40512c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410c3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410d92
push esi
push esi
push 0x40512c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410d92
push 0x405144
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410d92
push eax
call ebx
push 0x405150
push edi
mov dword [0x714e54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405160
push edi
mov dword [0x714e58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405174
push edi
mov dword [0x714e5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x714e64], eax
test eax, eax
je 0x410caf
push 0x405190
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x714e60], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410cd7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410cca
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410cec
push 4
pop eax
jmp 0x410d94
cmp dword [ebp - 0x14], esi
je 0x410cec
push dword [0x714e54]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410cd1
mov eax, dword [0x714e60]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410d4a
cmp dword [0x714e64], edi
je 0x410d4a
push eax
call ebx
push dword [0x714e64]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410d4a
test eax, eax
je 0x410d4a
call ecx
test eax, eax
je 0x410d3f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410d3f
test byte [ebp - 8], 1
jne 0x410d4a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410d7a
mov eax, dword [0x714e58]
cmp eax, edi
je 0x410d77
push eax
call ebx
test eax, eax
je 0x410d77
call eax
mov esi, eax
test esi, esi
je 0x410d77
mov eax, dword [0x714e5c]
cmp eax, edi
je 0x410d77
push eax
call ebx
test eax, eax
je 0x410d77
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x714e54]
call ebx
test eax, eax
je 0x410d92
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410d94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e2e
mov esp, ebp
pop ebp
ret