joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428e28
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x428e5d
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004037a0
jmp 0x428e67
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403754
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x429a60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x429a98
mov eax, esi
call fcn.0041ee70
test al, al
je 0x429a98
mov eax, dword [ebx + 0x64]
call fcn.0041ecfc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x429a98
push 0
mov eax, dword [ebx + 0x64]
call fcn.0041ecfc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42e118
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [esi + 0x28]
cmp eax, 0xc8
jle 0x42e158
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x24]
cmp eax, 0x20
jle 0x42e158
mov eax, dword [esi + 0x38]
mov ecx, 3
cdq
idiv ecx
cmp eax, dword [esi + 0x30]
jle 0x42e152
cmp dword [esi + 0x24], 0
je 0x42e15c
cmp dword [esi + 0x24], 0
jne 0x42e15c
xor eax, eax
jmp 0x42e15e
mov al, 1
mov byte [esp], al
imul eax, ebx, 0x64
cdq
idiv dword [esi + 0x38]
mov edi, eax
cmp edi, dword [esi + 0x2c]
jne 0x42e175
cmp byte [esp], 0
je 0x42e1c2
mov eax, edi
push eax
mov al, byte [esp + 4]
push eax
mov eax, dword [esi + 0x30]
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x24]
xor eax, eax
call fcn.0040af0c
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x20]
push eax
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xfffd
call fcn.00402d08
cmp byte [esp], 0
je 0x42e1bf
mov eax, dword [esi + 0x30]
mov dword [esi + 0x24], eax
call sub.kernel32.dll_GetTickCount
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
inc dword [esi + 0x30]
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x42ee88
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
test dl, dl
je 0x42ee96
add esp, 0xfffffff0
call fcn.00402e24
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.00402c1c
push 0x40
push 0x1000
push 0x800
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esi + 4], eax
test bl, bl
je 0x42eec7
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4428d4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x442a6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00442800
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
jmp 0x442909
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x44291e
mov eax, ebx
mov edx, dword [0x422774]
call fcn.00402ca4
test al, al
je 0x442906
test ebx, ebx
jne 0x442943
lea edx, [ebp - 8]
mov eax, dword [0x44fff4]
call fcn.004046b8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4411cc]
call fcn.00408190
call fcn.00403198
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00442750
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
mov eax, dword [ebp - 4]
mov byte [eax + 0x45], 1
xor eax, eax
push ebp
push 0x442a16
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
mov dl, 1
mov eax, dword [0x44255c]
call fcn.004418e8
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], esi
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
test byte [eax + 0x4c], 1
setne al
mov byte [esi + 0xc], al
mov ecx, esi
mov dl, 1
mov eax, dword [0x441124]
call fcn.00441b48
mov edi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], edi
mov edx, 0x44fab0
mov eax, edi
call fcn.00441cd8
test al, al
jne 0x4429fb
lea edx, [ebp - 8]
mov eax, dword [0x44fdd4]
call fcn.004046b8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea eax, [ebp - 0x10]
push eax
push 0
lea edx, [ebp - 0x14]
mov eax, dword [0x44ff54]
call fcn.004046b8
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4411cc]
call fcn.004081c4
call fcn.00403198
mov eax, dword [ebp - 4]
mov byte [eax + 0x44], 1
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00442afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x442a2d
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.00442750
mov eax, dword [ebp - 4]
mov byte [eax + 0x25], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [ebp - 4]
call fcn.00442ae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442a73
lea eax, [ebp - 0x14]
call fcn.004036bc
lea eax, [ebp - 8]
call fcn.004036bc
ret

Function at 0x444434
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00403afc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x444470
push ebp
call fcn.004443c4
pop ecx
mov eax, dword [ebp - 8]
call fcn.00443f30
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x445e04
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
xor ecx, ecx
mov edx, 0x94
call fcn.00402968
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x445e49
cmp dword [esp + 4], 6
jg 0x445e41
cmp dword [esp + 4], 6
jne 0x445e45
cmp dword [esp + 8], 2
jl 0x445e45
mov al, 1
jmp 0x445e4b
xor eax, eax
jmp 0x445e4b
xor eax, eax
add esp, 0x94
ret

Function at 0x445f0c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403aec
xor eax, eax
push ebp
push 0x445fdf
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x445f9b
lea eax, [ebp - 8]
mov ecx, 0x445ff4
mov edx, dword [ebp - 4]
call fcn.00403984
lea eax, [ebp - 0xc]
mov ecx, 0x446008
mov edx, dword [ebp - 8]
call fcn.00403984
mov eax, dword [ebp - 0xc]
call fcn.00403afc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x445f75
test al, 0x10
je 0x445f75
mov bl, 1
jmp 0x445f9b
push 0
mov eax, dword [ebp - 8]
call fcn.00403afc
push eax
call sub.kernel32.dll_CreateDirectoryA
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403afc
push eax
call sub.kernel32.dll_CreateDirectoryA
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x445fab
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00403754
jmp 0x445fc4
lea edx, [ebp - 0x10]
mov eax, dword [0x44ff30]
mov eax, dword [eax]
call fcn.004295d0
mov eax, dword [ebp - 0x10]
mov edx, esi
call fcn.00406c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445fe6
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004036e0
ret

Function at 0x4462d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x44631c
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 4]
mov ecx, 0x446330
mov edx, dword [0x45369c]
call fcn.00403984
mov eax, dword [ebp - 4]
call fcn.00403afc
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446323
lea eax, [ebp - 4]
call fcn.004036bc
ret

Function at 0x447034
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
push 0x447050
push 0
push 0
call sub.shell32.dll_ShellExecuteA
call fcn.00446a08
ret
Function at 0x447cd4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x447ee5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x44fe78]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
call fcn.004036bc
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], 0x44faf4
mov eax, dword [0x44fe78]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x38], edx
mov al, 1
call fcn.0044707c
lea eax, [ebp - 4]
call fcn.004036bc
mov eax, dword [ebp - 0x14]
movzx esi, byte [eax]
test esi, esi
jle 0x447d6f
mov edi, 1
mov ebx, 0x4537b8
cmp dword [ebx], 0
jle 0x447d68
mov eax, edi
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
lea edx, [ebp - 0x18]
call fcn.00406aa4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.00403940
inc edi
add ebx, 0xc
dec esi
jne 0x447d44
cmp dword [ebp - 4], 0
je 0x447da0
push dword [ebp - 8]
push 0x447efc
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00406aa4
push dword [ebp - 0x18]
push 0x447f0c
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 5
call fcn.004039f8
inc dword [ebp - 0xc]
inc dword [ebp - 0x14]
cmp dword [ebp - 0xc], 3
jne 0x447d14
mov eax, dword [0x44fe78]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x38], edx
cmp dword [ebp - 0x10], 2
je 0x447dca
mov al, 1
call fcn.0044707c
lea eax, [ebp - 8]
mov edx, 0x447f18
call fcn.00403940
mov al, byte [0x44fcc0]
sub al, 6
je 0x447de6
sub al, 2
je 0x447df8
jmp 0x447e5b
lea eax, [ebp - 8]
mov edx, 0x447f2c
call fcn.00403940
jmp 0x447e95
push dword [ebp - 8]
push 0x447f38
lea edx, [ebp - 0x18]
mov eax, dword [0x44fe78]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
call fcn.00406aa4
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004039f8
mov eax, dword [0x44fdf4]
mov eax, dword [eax]
cmp byte [eax + 8], 0
je 0x447e95
push dword [ebp - 8]
push 0x447f48
lea edx, [ebp - 0x18]
mov eax, dword [0x44fdf4]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
call fcn.00406aa4
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004039f8
jmp 0x447e95
push dword [ebp - 8]
lea edx, [ebp - 0x18]
mov eax, dword [0x44fe78]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
call fcn.00406aa4
push dword [ebp - 0x18]
push 0x447f48
lea edx, [ebp - 0x1c]
mov eax, dword [0x453680]
call fcn.00406aa4
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004039f8
push 1
push 0
push 0
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edx, 0x447f54
call fcn.00403984
mov eax, dword [ebp - 0x18]
call fcn.00403afc
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447eec
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004036e0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004036e0
ret

Function at 0x45b340
Capabilities:
Packed with generic packer

Disassembly:
xchg dword [esp], edx
pop edx
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
call fcn.00556236
jmp loc.00456d02
Function at 0x555900
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
push ecx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]

Function at 0x55708b
Capabilities:
Packed with generic packer

Disassembly:
sub edi, 0xc8d4530f
jb 0x459311
jmp 0x554871
xchg dword [esp], eax
pop eax
call fcn.00551b9b
push 0xb3715705
call fcn.005696b5
sub dword [ebp - 0x7b16302f], esp
mov ecx, 0x8968ffff
push esp
mov gs, word [ebp + 0x5f]
add edi, 0xd79314f8
jb 0x45d8b7

Function at 0x55b061
Capabilities:
Hash data using murmur3

Disassembly:
jl 0x55e92b
sbb ebp, eax
ror ebp, 0x17
jmp 0x55e929
jmp 0x456fae
jmp 0x54dae8
xchg dword [esp], eax
pop eax
rol dx, 3
push eax
push 0x1024b75e
jmp 0x55e4d9
pop eax
xor eax, 0x1fdde27a
cmp eax, 0x5bd9b956
jmp 0x550683
xor ebp, ecx
and eax, 0x69af9f6e
sub eax, 0x47d117d3
or eax, 0xc602555a
jmp 0x54eed5
Function at 0x82e3c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f9000]
push edi
jmp 0x82e3da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x82e3e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x82e3d0
mov eax, 1
add ebx, ebx
jne 0x82e3f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x82e404
jne 0x82e423
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x82e423
dec eax
add ebx, ebx
jne 0x82e410
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x82e3e8
add ebx, ebx
jne 0x82e41f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x82e475
xor ecx, ecx
sub eax, 3
jb 0x82e43b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x82e4aa
sar eax, 1
mov ebp, eax
jmp 0x82e446
add ebx, ebx
jne 0x82e446
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x82e414
inc ecx
add ebx, ebx
jne 0x82e454
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x82e414
add ebx, ebx
jne 0x82e461
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x82e456
jne 0x82e472
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x82e456
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x82e494
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x82e486
jmp 0x82e3d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x82e494
add edi, ecx
jmp 0x82e3d6
pop esi
mov edi, esi
mov ecx, 0x87a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x82e4b2
cmp byte [edi], 0x37
jne 0x82e4b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x82e4b7
lea edi, [esi + 0x42a000]
mov eax, dword [edi]
or eax, eax
je 0x82e52f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x440078]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4401b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x82e4e4
mov ecx, edi
jns 0x82e513
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4401bc]
or eax, eax
je 0x82e529
mov dword [ebx], eax
add ebx, 4
jmp 0x82e501
call dword [esi + 0x4401cc]
mov ebp, dword [esi + 0x4401c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x82e563
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x32030263
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x32030272
pop dword [ebp - 0x48]
mov eax, 0xe40ef0a3
add eax, 0x4df411cf
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x2da84cb8
add dword [ebp - 0x58], 0x20a9f893
mov dword [ebp - 0x54], 0x61184a5c
add dword [ebp - 0x54], 0xd11b01e9
mov dword [ebp - 0x50], 0x1346cbb8
sub dword [ebp - 0x50], 0xc6fa878a
mov dword [ebp - 0x4c], 0xd00a70d9
add dword [ebp - 0x4c], 0x2ff58f27
lea eax, [ebp - 0x58]
push eax
mov eax, 0x7166280
add eax, 0x2aeece04
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xf1753303
sub dword [ebp - 0x58], 0x7d02c9ad
mov dword [ebp - 0x54], 0xe02270f2
sub dword [ebp - 0x54], 0x9eb60f7d
mov dword [ebp - 0x50], 0x44eb0059
sub dword [ebp - 0x50], 0xe17b93ed
mov dword [ebp - 0x4c], 0xe1808e70
add dword [ebp - 0x4c], 0x1e7f7190
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x4c2c1
push 0
call eax
mov ecx, 0x4dd735b5
add ecx, 0xb2292594
mov edx, eax
mov ebx, 0xd0564f39
sub ebx, 0x9e4ead39
add ebx, dword [ebp - 0x48]
mov esi, 0xc5f4577f
sub dword [ebp - 0x28], ebx
mov edi, dword [ebx]
sub dword [ebp - 0x30], ebx
add edi, esi
xor dword [ebp - 0xc], edx
mov dword [edx], edi
xor dword [ebp - 0x1c], ebx
add edx, 4
add ebx, 0xaf2983c9
add ebx, 0x50d67c3b
loop 0x32030389
add eax, 0x15ff7
xor ebx, ebx
add ebx, eax
add eax, 0xc9104b9e
add eax, 0x36efb467
mov ecx, 0xd3e9c97a
sub ecx, 0xa1e9c97a
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x401040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
call dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [esp + 0xc], 5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.unk_2
sub esp, 0x10
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x4011a0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40123b
cmp ax, 9
je 0x401228
cmp ax, 0x20
je 0x401228
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x401290
cmp ax, 0x22
je 0x4012a0
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40123b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4011e0
test edi, 1
jne 0x4011e0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x401228
cmp ax, 0x20
je 0x401228
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4012b8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.unk_1
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x4011fb
and dword [ebp - 0x6c], 1
jne 0x4011f4
xor edi, 1
jmp 0x4011fb
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x401254

Function at 0x4012d0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.unk_7
call sym.unk_9
call sym.unk_5
mov esi, dword [eax]
call sym.unk_6
mov edi, dword [eax]
call sym.unk_8
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.unk_10
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x401160
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x220
mov dword [esp + 0x10], eax
mov esi, ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x224
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40127f
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x401257
nop
lea ecx, [esp + 0x30]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4011d7
sub ecx, edx
cmp ebx, ecx
jne 0x401243
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x30]
mov esi, ebx
sub esi, 4
jb 0x401204
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x401209
add edx, 4
add eax, 4
sub esi, 4
jae 0x4011f3
cmp esi, 0xfffffffc
je 0x40123d
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x401236
cmp esi, 0xfffffffd
je 0x40123d
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x401236
cmp esi, 0xfffffffe
je 0x40123d
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x401236
cmp esi, 0xffffffff
je 0x40123d
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x40123d
sbb eax, eax
or eax, 1
jmp 0x40123f
xor eax, eax
test eax, eax
je 0x401279
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x4011d0
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00401a5e
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x24]
jmp 0x401259
mov ecx, dword [esp + 0x23c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401a5e
mov esp, ebp
pop ebp
ret 8
Function at 0x402263
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4022a2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4022a2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4022a2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4022a2
cmp dword [ecx + 0x74], 0xe
jbe 0x4022a2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4041f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40bf60
cmp edx, dword [eax]
je 0x40421b
add eax, 8
inc ecx
cmp eax, 0x40bff0
jl 0x40420c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40bf60]
jne 0x404349
mov eax, dword [0x40e9d8]
cmp eax, 1
je 0x404323
test eax, eax
jne 0x40424c
cmp dword [0x40bd34], 1
je 0x404323
cmp edx, 0xfc
je 0x404349
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404283
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403720
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4042c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403720
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408464
push edi
call fcn.00406bd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406680
lea eax, [ebp - 0xa0]
push 0x408444
push eax
call fcn.00406680
push dword [esi + 0x40bf64]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406b3f
add esp, 0x2c
pop edi
jmp 0x404349
lea eax, [ebp + 8]
lea esi, [esi + 0x40bf64]
push 0
push eax
push dword [esi]
call fcn.00403720
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