joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8868
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004047f8
mov eax, dword [ebp - 8]
call fcn.004047f8
xor eax, eax
push ebp
push 0x4e89bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [0x4f7de8]
mov edx, dword [edx]
mov edx, dword [edx + 0x40]
call fcn.00404754
jne 0x4e893b
mov eax, dword [0x4f7de8]
mov eax, dword [eax]
cmp byte [eax + 0x34], 0
je 0x4e88d4
push 0x4e89cc
push 0
call sub.user32.dll_FindWindowA
call fcn.004e8740
jmp 0x4e892e
mov eax, dword [0x4f79c4]
mov eax, dword [eax]
call fcn.004f0518
push 5
push dword [ebp - 4]
push 0x4e89e4
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046c8
mov eax, dword [ebp - 0xc]
call fcn.00404808
push eax
call sub.kernel32.dll_WinExec
jmp 0x4e8916
mov eax, dword [0x4f7c58]
mov eax, dword [eax]
call fcn.0046ee30
mov eax, dword [0x4f7de8]
mov eax, dword [eax]
mov edx, dword [eax + 0x44]
mov eax, dword [0x4e8344]
call fcn.004e84bc
test eax, eax
je 0x4e890a
mov eax, dword [0x4f7de8]
mov eax, dword [eax]
mov byte [eax + 0x34], 1
jmp 0x4e89a2
mov eax, dword [ebp - 4]
mov edx, dword [0x4f7de8]
mov edx, dword [edx]
mov edx, dword [edx + 0x50]
call fcn.00404754
jne 0x4e8992
mov eax, dword [0x4f7de8]
mov eax, dword [eax]
cmp byte [eax + 0x3c], 0
jne 0x4e89a2
push 5
push dword [ebp - 4]
push 0x4e89e4
push dword [ebp - 8]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004046c8
mov eax, dword [ebp - 0x10]
call fcn.00404808
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [0x4f7de8]
mov eax, dword [eax]
mov byte [eax + 0x3c], 1
jmp 0x4e89a2
push 5
mov eax, dword [ebp - 4]
call fcn.00404808
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e89c4
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040436c
ret

Function at 0x4e8d0c
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4e8d1f
add esp, 0xfffffff0
call fcn.00403798
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004047f8
mov eax, dword [ebp + 0xc]
call fcn.004047f8
mov eax, dword [ebp + 8]
call fcn.004047f8
xor eax, eax
push ebp
push 0x4e8dae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [edi + 0x10]
mov edx, dword [ebp - 4]
call fcn.0040439c
lea eax, [edi + 0x14]
mov edx, dword [ebp + 0xc]
call fcn.0040439c
lea eax, [edi + 0x18]
mov edx, dword [ebp + 8]
call fcn.0040439c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4c833c]
call fcn.004be76c
mov esi, eax
mov dword [edi + 8], esi
mov byte [esi + 0x30], 1
mov eax, edi
call fcn.004e915c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8db5
lea eax, [ebp - 4]
call fcn.00404348
lea eax, [ebp + 8]
mov edx, 2
call fcn.0040436c
ret
Function at 0x4ee93c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 4], edx

Function at 0x4f0f6c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x4f1031
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4f1048
call fcn.004043e0
mov eax, dword [edi + 0x114a8]
call fcn.004a0334
mov eax, dword [edi + 0x114a8]
call fcn.004b7780
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [edi + 0x114a8]
call fcn.004b7780
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [edi + 0x114a8]
call fcn.004a031c
jmp 0x4f100c
mov edx, 0x4f1078
mov eax, esi
call fcn.004a1598
mov edx, dword [eax]
call dword [edx + 0x58]
sub eax, 3
je 0x4f0ff3
sub eax, 2
je 0x4f0ff7
sub eax, 3
je 0x4f0ffb
sub eax, 8
je 0x4f0fff
jmp 0x4f1001
mov bl, 3
jmp 0x4f1001
xor ebx, ebx
jmp 0x4f1001
mov bl, 1
jmp 0x4f1001
mov bl, 2
mov eax, dword [edi + 0x114a8]
call fcn.004a31b4
mov esi, dword [edi + 0x114a8]
cmp byte [esi + 0xa1], 0
je 0x4f0fcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1038
lea eax, [ebp - 4]
call fcn.00404348
ret

Function at 0x4f1080
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4f112b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4f1144
call fcn.004043e0
mov eax, dword [ebx + 0x114a8]
call fcn.004a0334
mov eax, dword [ebx + 0x114a8]
call fcn.004b7780
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x114a8]
call fcn.004b7780
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x114a8]
call fcn.004a031c
mov esi, dword [ebx + 0x114a8]
cmp byte [esi + 0xa1], 0
jne 0x4f110e
mov edx, 0x4f1174
mov eax, esi
call fcn.004a1598
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 8]
call fcn.00409350
mov ebx, eax
jmp 0x4f1110
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1132
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040436c
ret
Function at 0x4f1290
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004047f8
xor eax, eax
push ebp
push 0x4f134b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f1364
push dword [ebp - 4]
push 0x4f139c
lea eax, [ebp - 8]
mov edx, 3
call fcn.004046c8
mov eax, dword [ebx + 0x114a8]
call fcn.004a0334
mov eax, dword [ebx + 0x114a8]
call fcn.004b7780
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x114a8]
call fcn.004b7780
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x114a8]
call fcn.004a031c
mov esi, dword [ebx + 0x114a8]
cmp byte [esi + 0xa1], 0
jne 0x4f1330
mov edx, 0x4f13a8
mov eax, esi
call fcn.004a1598
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 0x60]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1352
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040436c
ret
Function at 0x4f13b4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004047f8
xor eax, eax
push ebp
push 0x4f1563
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404348
mov eax, dword [ebx + 0x114a8]
call fcn.004a0334
mov eax, dword [ebx + 0x114a8]
call fcn.004b7780
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x114a8]
call fcn.004b7780
push eax
push 0x4f157c
push dword [ebp - 4]
push 0x4f15b4
lea eax, [ebp - 8]
mov edx, 3
call fcn.004046c8
mov edx, dword [ebp - 8]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x114a8]
call fcn.004a031c
mov eax, dword [ebx + 0x114a8]
call fcn.004a2efc
mov esi, dword [ebx + 0x114a8]
cmp byte [esi + 0xa1], 0
jne 0x4f1468
mov edx, 0x4f15c0
mov eax, esi
call fcn.004a1598
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [edi]
mov edx, 0x4f15d0
call fcn.00404754
jne 0x4f1548
mov eax, 0x32
call fcn.00402e14
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
call fcn.00402bbc
mov esi, eax
mov eax, dword [ebx + 0x114a8]
call fcn.004a0334
mov eax, dword [ebx + 0x114a8]
call fcn.004b7780
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x114a8]
call fcn.004b7780
mov edx, 0x4f15dc
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x114a8]
call fcn.004a031c
mov eax, dword [ebx + 0x114a8]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jle 0x4f153c
mov eax, dword [ebx + 0x114a8]
mov edx, dword [eax]
call dword [edx + 0x14c]
push eax
mov eax, esi
pop edx
mov ecx, edx
cdq
idiv ecx
mov esi, edx
mov eax, dword [ebx + 0x114a8]
call fcn.004a2efc
jmp 0x4f1527
mov edx, 0x4f1618
mov eax, dword [ebx + 0x114a8]
call fcn.004a1598
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 0x60]
dec esi
mov eax, dword [ebx + 0x114a8]
call fcn.004a31b4
test esi, esi
jl 0x4f1548
mov eax, dword [ebx + 0x114a8]
cmp byte [eax + 0xa1], 0
je 0x4f1504
jmp 0x4f1548
mov eax, edi
mov edx, 0x4f15d0
call fcn.0040439c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f156a
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040436c
ret
Function at 0x4f3aa0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f3c81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404348
mov eax, dword [ebp - 4]
cmp dword [eax + 0x358], 0
jne 0x4f3af4
mov dl, 1
mov eax, dword [0x41d0dc]
call fcn.00403444
mov edx, dword [ebp - 4]
mov dword [edx + 0x358], eax
mov dl, 1
mov eax, dword [0x41d0dc]
call fcn.00403444
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4f3c59
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x114]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsA
mov esi, eax
test esi, esi
jns 0x4f3b2b
add esi, 3
sar esi, 2
test esi, esi
jl 0x4f3bd4
inc esi
lea ebx, [ebp - 0x114]
lea eax, [ebp - 0x118]
mov dl, byte [ebx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x11c]
call fcn.00402cd8
lea eax, [ebp - 0x120]
mov dl, byte [ebx + 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x11c]
mov cl, 2
call fcn.00402ca8
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x124]
call fcn.00402cd8
lea eax, [ebp - 0x120]
mov dl, byte [ebx + 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x124]
mov cl, 3
call fcn.00402ca8
lea edx, [ebp - 0x124]
lea eax, [ebp - 0xc]
call fcn.004045ac
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 4
dec esi
jne 0x4f3b3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x358]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f3c32
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4f3c32
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x128]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x358]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x4f3c2e
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0xc]
jmp 0x4f3c32
inc ebx
dec esi
jne 0x4f3bf8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x358]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3c60
mov eax, dword [ebp - 0x10]
call fcn.00403474
ret
Function at 0x405e10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x474acb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4040f4
call fcn.00406a71
push 4
mov dword [esp + 0x18], 0
call fcn.00407a64
mov edi, eax
add esp, 4
test edi, edi
je 0x405e84
push ebx
call fcn.00406949
mov dword [edi], eax
call fcn.00406708
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406a32
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405e78
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406a5a
pop ebx
jmp 0x405e86
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4084d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x478f08]
jne 0x4084db
repz ret
jmp fcn.0040d33c
Function at 0x4117a2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x478f08]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a5fd
and dword [ebp - 0x14], 0
cmp dword [0x47d64c], 0
mov dword [ebp - 0x18], eax
jne 0x411855
push 0x40379c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4118fd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403790
push ebx
call edi
test eax, eax
je 0x4118fd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403780
push ebx
mov dword [0x47d64c], eax
call edi
push eax
call esi
push 0x40376c
push ebx
mov dword [0x47d650], eax
call edi
push eax
call esi
push 0x403750
push ebx
mov dword [0x47d654], eax
call edi
push eax
call esi
mov dword [0x47d65c], eax
test eax, eax
je 0x411855
push 0x403738
push ebx
call edi
push eax
call esi
mov dword [0x47d658], eax
mov eax, dword [0x47d658]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4118ae
cmp dword [0x47d65c], ecx
je 0x4118ae
push eax
call esi
push dword [0x47d65c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4118ae
test ebx, ebx
je 0x4118ae
call edi
test eax, eax
je 0x4118a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4118a5
test byte [ebp - 8], 1
jne 0x4118ae
or dword [ebp + 0x10], 0x200000
jmp 0x4118e1
mov eax, dword [0x47d650]
cmp eax, dword [ebp - 0x18]
je 0x4118e1
push eax
call esi
test eax, eax
je 0x4118e1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4118e1
mov eax, dword [0x47d654]
cmp eax, dword [ebp - 0x18]
je 0x4118e1
push eax
call esi
test eax, eax
je 0x4118e1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47d64c]
call esi
test eax, eax
je 0x4118fd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4118ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084d1
leave
ret
Function at 0x4729d0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0x8013e4], 0x37
jne 0x472a66
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x410]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0x8023d8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x482434]
mov byte [ecx + esi], al
add esp, 0x80c
ret
Function at 0x472ce0
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x8013e4]
mov ecx, dword [0x482434]
sub esp, 0x584
push ebx
push ebp
shr eax, 3
xor ebp, ebp
push esi
push edi
cmp eax, ebp
jbe 0x472edf
mov esi, ecx
mov dword [esp + 0x38], 0x9e3779b9
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
jmp 0x472d24
mov esi, dword [esp + 0x2c]
cmp dword [0x8013e4], 0x1c
jne 0x472d3b
lea eax, [esp + 0x48]
push eax
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x4792c0]
mov edi, dword [0x4792c8]
mov ebx, dword [0x4792cc]
mov dword [esp + 0x18], ecx
mov ecx, dword [str.O_n_b]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0xc6ef3720
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], 0x20
jmp 0x472d84
mov eax, dword [esp + 0x20]
mov edx, eax
shr edx, 5
add edx, ebx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x1c]
mov ecx, eax
shl ecx, 4
add ecx, edi
add edx, eax
xor ecx, edx
mov dword [esp + 0x14], ecx
mov dword [0x801354], ebp
mov eax, dword [esp + 0x28]
add dword [0x801354], eax
mov eax, dword [0x801354]
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x44]
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
sub dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
shl edx, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x40]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add esi, eax
cmp dword [0x8013e4], 0x1be
jne 0x472e1e
lea edx, [esp + 0x4c]
push edx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x18]
shr eax, 5
add eax, dword [esp + 0x3c]
cmp dword [0x8013e4], 0x979
mov dword [0x801358], 0xff6b3619
mov dword [0x80135c], 0xffffffff
mov dword [esp + 0x28], eax
jne 0x472e59
push ebp
lea eax, [esp + 0x194]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
xor dword [esp + 0x14], esi
mov eax, dword [esp + 0x28]
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
sub dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x38]
add dword [esp + 0x24], eax
sub dword [esp + 0x1c], eax
dec dword [esp + 0x34]
jne 0x472d80
cmp dword [0x8013e4], 0x8d4
jne 0x472e99
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
cmp dword [0x8013e4], 0x17
jne 0x472ece
push ebp
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x50]
push eax
push 0x403f3c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x30]
mov dword [esp + 0x2c], esi
jne 0x472d20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x584
ret
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.004023c0
add esp, 0xc
test al, al
push ebp
jne 0x40253d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x110011d4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x11043aec
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x11001254
arpl word [edx + esi], si
mov cl, 0x84
mov dword [edx], eax
add al, 0x28
nop
dec edx
invalid
in eax, 0x3f
faddp st(1)
pop edx
cmp ebp, dword [esp + ecx + 0x52350f97]
invalid
sub bh, byte [ebx]
dec edx
mov ch, 0x9b
lea esp, [ebp + 0x2d0ef7d7]
idiv dl
push cs
jmp 0x1100122f