joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x40688c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41a6c0
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x41a6c4], eax
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00403bc4
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebx]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [0x41a6c4], eax
cmp dword [0x41a6c4], 0
jne 0x40685f
mov eax, dword [ebx]
call fcn.00403a94
mov edx, eax
mov eax, ebx
call fcn.0040384c
jmp 0x406866
mov eax, ebx
call fcn.0040371c
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406893
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret

Function at 0x40689c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
mov eax, dword [ebp + 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406970
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x41a6c0
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
mov dword [0x41a6c4], eax
cmp dword [ebp + 8], 0
jne 0x406909
lea eax, [ebp + 8]
mov edx, 0x406988
call fcn.004037b4
mov eax, dword [ebp + 8]
call fcn.00403894
push eax
lea eax, [ebp + 8]
call fcn.00403aec
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x41a6c4], eax
cmp dword [0x41a6c4], 0
sete bl
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406977
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
lea eax, [ebp + 8]
call fcn.0040371c
ret
Function at 0x40698c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406a31
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x41a6c0
push 0
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
mov dword [0x41a6c4], eax
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [0x41a6c4], eax
cmp dword [0x41a6c4], 0
sete bl
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a38
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret

Function at 0x406a44
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406ac6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, 0x406adc
call fcn.00405830
test al, al
jne 0x406ab0
mov eax, dword [ebp - 4]
call fcn.00403a94
mov ebx, eax
push ebx
push esi
call sub.advapi32.dll_RegDeleteKeyA
push 0
push 0x41a6c0
push 0
push 6
push 2
push 0
push 0
push ebx
push esi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
sete al
mov ebx, eax
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406acd
lea eax, [ebp - 4]
call fcn.0040371c
ret

Function at 0x406b70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406bff
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x406bb0
lea eax, [ebp - 8]
mov edx, 0x406c18
call fcn.004037b4
mov eax, dword [ebp - 8]
call fcn.00403894
push eax
lea eax, [ebp - 8]
call fcn.00403aec
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push ebx
call sub.advapi32.dll_RegSetValueExA
mov dword [0x41a6c4], eax
cmp dword [0x41a6c4], 0
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c06
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret
Function at 0x406c1c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406c7f
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push ebx
call sub.advapi32.dll_RegSetValueExA
mov dword [0x41a6c4], eax
cmp dword [0x41a6c4], 0
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c86
lea eax, [ebp - 4]
call fcn.0040371c
ret

Function at 0x406c90
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x406d26
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41a6c0
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [0x41a6c4], eax
mov eax, dword [ebp - 8]
call fcn.00403a94
push eax
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov dword [0x41a6c4], eax
cmp dword [0x41a6c4], 0
sete bl
mov eax, dword [0x41a6c0]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d2d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret
Function at 0x406e7c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov ebx, 0x41ab70
mov esi, 0x41ab14
xor eax, eax
push ebp
push 0x407017
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41ab78
push 0xf003f
push 0
push 0x407024
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
mov edx, dword [0x419258]
mov dword [edx], eax
mov eax, dword [0x419258]
cmp dword [eax], 0
je 0x406ed9
mov eax, 0x40705c
call fcn.004176d4
jmp 0x406ffc
mov eax, esi
mov edx, 0x40706c
call fcn.00403770
push 0x4070f0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebx], eax
mov eax, esi
mov edx, 0x407108
call fcn.00403770
push 0xffffffffffffffff
mov eax, dword [ebx]
push eax
push 0xf
push 0xffffffffffffffff
mov eax, dword [0x41ab78]
push eax
call sub.advapi32.dll_RegNotifyChangeKeyValue
mov edx, dword [0x419258]
mov dword [edx], eax
mov eax, dword [0x419258]
cmp dword [eax], 0
je 0x406f38
mov eax, 0x4071d4
call fcn.004176d4
jmp 0x406ffc
mov eax, esi
mov edx, 0x4071e8
call fcn.00403770
jmp 0x406fd0
push 0xffffffffffffffff
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x406fd0
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_ResetEvent
push 0xffffffffffffffff
mov eax, dword [ebx]
push eax
push 0xf
push 0xffffffffffffffff
mov eax, dword [0x41ab78]
push eax
call sub.advapi32.dll_RegNotifyChangeKeyValue
cmp dword [0x4191e8], 0x64
jge 0x406fd0
mov eax, esi
mov edx, 0x407290
call fcn.00403770
inc dword [0x4191e8]
mov eax, esi
mov edx, 0x407360
call fcn.00403770
call fcn.00407480
lea edx, [ebp - 8]
mov eax, dword [0x4191e8]
call fcn.00405350
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4073bc
call fcn.004038e0
mov eax, dword [ebp - 4]
call fcn.004176d4
mov eax, esi
mov edx, 0x4073d8
call fcn.00403770
cmp byte [0x4191e0], 0
jne 0x406f49
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
mov edx, 0x4073d8
call fcn.00403770
mov eax, dword [0x41ab78]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40701e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret
Function at 0x407480
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x40770b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, 0x407720
mov edx, dword [0x41aadc]
call fcn.004038e0
mov eax, dword [ebp - 4]
push eax
mov ecx, int.00407734
mov edx, 0x407744
mov eax, 0x80000002
call fcn.0040689c
lea eax, [ebp - 8]
mov ecx, 0x407720
mov edx, dword [0x41aadc]
call fcn.004038e0
mov eax, dword [ebp - 8]
push eax
mov ecx, int.00407734
mov edx, 0x40777c
mov eax, 0x80000001
call fcn.0040689c
lea eax, [ebp - 0xc]
mov ecx, 0x407720
mov edx, dword [0x41aadc]
call fcn.004038e0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, int.00407734
mov edx, 0x4077c4
mov eax, 0x80000002
call fcn.0040689c
mov eax, 0x41ab14
mov edx, 0x407804
call fcn.00403770
lea eax, [ebp - 0x10]
mov ecx, 0x407868
mov edx, dword [0x41aadc]
call fcn.004038e0
mov eax, dword [ebp - 0x10]
push eax
mov edx, 0x407744
mov ecx, 0x40787c
mov eax, 0x80000001
call fcn.0040689c
mov eax, 0x41ab14
mov edx, 0x40788c
call fcn.00403770
lea eax, [ebp - 0x14]
mov ecx, 0x40794c
mov edx, dword [0x41aadc]
call fcn.004038e0
mov eax, dword [ebp - 0x14]
push eax
mov edx, 0x40777c
mov ecx, 0x407960
mov eax, 0x80000002
call fcn.0040689c
cmp byte [0x41ab58], 0
jne 0x4076f0
push 0
mov ecx, 0x407970
mov edx, 0x407988
mov eax, 0x80000002
call fcn.0040689c
push 0x4079bc
mov edx, 0x407988
mov ecx, 0x4079cc
mov eax, 0x80000002
call fcn.0040689c
push 0x4079e4
mov edx, 0x407988
mov ecx, 0x407a1c
mov eax, 0x80000002
call fcn.0040689c
mov eax, 0x41ab14
mov edx, 0x407a30
call fcn.00403770
push 0x407ad0
mov edx, 0x407988
mov ecx, 0x407aec
mov eax, 0x80000002
call fcn.0040689c
push 0x407b00
mov edx, 0x407988
mov ecx, 0x407b14
mov eax, 0x80000002
call fcn.0040689c
push 0x407b24
mov edx, 0x407988
mov ecx, 0x407b38
mov eax, 0x80000002
call fcn.0040689c
lea eax, [ebp - 0x18]
mov ecx, 0x407720
mov edx, dword [0x41aadc]
call fcn.004038e0
mov eax, dword [ebp - 0x18]
push eax
mov edx, 0x407988
mov ecx, 0x407b4c
mov eax, 0x80000002
call fcn.0040689c
push 1
mov edx, 0x407988
mov ecx, 0x407b60
mov eax, 0x80000002
call fcn.0040698c
mov eax, 0x41ab14
mov edx, 0x407b78
call fcn.00403770
push 3
mov edx, 0x407988
mov ecx, 0x407be8
mov eax, 0x80000002
invalid
invalid
Function at 0x40afd4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40afdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov edi, 0x41ac6c
xor eax, eax
push ebp
push fcn.0040bd39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab14
mov edx, 0x40bd50
call fcn.00403770
call fcn.00408040
mov eax, dword [ebp - 8]
call fcn.0040371c
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00403894
cmp eax, 0x7f
jge 0x40b05c
push 0
push 0x41abe0
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.kernel32.dll_OpenFile
mov dword [0x41ab8c], eax
cmp dword [0x41ab8c], 0xffffffff
jne 0x40b08f
mov ebx, 1
jmp 0x40b08f
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403a94
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [0x41ab8c], eax
cmp dword [0x41ab8c], 0xffffffff
jne 0x40b08f
mov ebx, 2
mov eax, 0x41ab14
mov edx, 0x40bd88
call fcn.00403770
test ebx, ebx
jbe 0x40b111
mov eax, 0x41ab14
mov edx, 0x40be30
call fcn.00403770
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
cmp eax, 0xcf
ja 0x40b0c8
bt dword [0x40beec], eax
jb 0x40b101
cmp ebx, 0x4cf
je 0x40b101
push 0x40bf10
push dword [ebp - 4]
push 0x40bf20
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00406240
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0xc]
call fcn.004176d4
mov eax, dword [0x41ab8c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40bd16
mov eax, 0x41ab14
mov edx, 0x40bf2c
call fcn.00403770
mov eax, 0x41abbc
call fcn.0040371c
mov eax, 0x41abc0
call fcn.0040371c
mov eax, 0x41abc4
call fcn.0040371c
xor eax, eax
mov dword [0x41abb0], eax
xor eax, eax
mov dword [0x41abb4], eax
mov eax, 0x41ab14
mov edx, 0x40bf90
call fcn.00403770
xor eax, eax
mov dword [0x41abb8], eax
xor eax, eax
mov dword [0x41abac], eax
mov eax, 0x41abc8
mov edx, 0x12
call fcn.00403bc4
mov eax, 0x41abcc
mov edx, 0x20
call fcn.00403bc4
mov eax, 0x41abd0
mov edx, 0x1a
call fcn.00403bc4
mov eax, 0x41abd4
mov edx, 0x2f
call fcn.00403bc4
mov eax, 0x41abd8
mov edx, 0x12
call fcn.00403bc4
mov eax, 0x41abdc
mov edx, 0x20
call fcn.00403bc4
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x40bc29
Function at 0x40d8f4
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x40d8fc
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x40db33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab14
mov edx, 0x40db4c
call fcn.00403770
lea eax, [ebp - 4]
push eax
push ebx
push 0x13
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40db18
mov eax, 0x41ab14
mov edx, 0x40dbb4
call fcn.00403770
mov dword [ebp - 0xc], 0x7e0
mov eax, dword [ebp - 0xc]
call fcn.004024d0
mov esi, eax
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00402bd8
mov dword [ebp - 8], 0x3f
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
je 0x40d991
cmp eax, 0xea
jne 0x40dae3
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x40d969
inc eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov edi, ebx
shl edi, 2
test byte [esi + edi*8 + 0xc], 2
je 0x40d9b3
lea eax, [esi + edi*8]
call fcn.0040d8f4
cmp dword [esi + edi*8 + 8], 3
jne 0x40dad4
lea eax, [ebp - 0x14]
mov edx, dword [esi + edi*8 + 0x14]
call fcn.0040384c
mov edx, dword [ebp - 0x14]
mov eax, 0x41aafc
mov ecx, 0x40dc78
call fcn.004038e0
inc dword [0x41ab40]
mov eax, dword [0x41ab40]
cmp eax, dword [0x41ab44]
jl 0x40dad4
mov eax, dword [0x41ab40]
push eax
mov ecx, 0x40dc84
mov edx, 0x40dc94
mov eax, 0x80000002
call fcn.0040698c
mov eax, dword [0x41aafc]
push eax
mov edx, 0x40dc94
mov ecx, 0x40dcdc
mov eax, 0x80000002
call fcn.0040689c
xor eax, eax
mov dword [0x41ab3c], eax
mov word [0x4191f0], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x41aad8]
call fcn.00403894
mov ecx, eax
mov edx, 3
mov eax, dword [0x41aafc]
call fcn.00403af4
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00405398
mov eax, dword [ebp - 0x18]
mov edx, dword [0x41aad8]
call fcn.004039e0
jne 0x40da8e
lea eax, [ebp - 0x20]
mov ecx, dword [0x41aafc]
mov edx, 0x40dcec
call fcn.004038e0
mov eax, dword [ebp - 0x20]
call fcn.004176d4
jmp 0x40dab3
mov eax, dword [0x41aafc]
call fcn.0040ce84
lea eax, [ebp - 0x24]
mov ecx, dword [0x41aafc]
mov edx, 0x40dd00
call fcn.004038e0
mov eax, dword [ebp - 0x24]
call fcn.004176d4
xor eax, eax
mov dword [0x41ab38], eax
mov eax, dword [0x41ab38]
push eax
mov edx, 0x40dc94
mov ecx, 0x40dd10
mov eax, 0x80000002
call fcn.0040698c
inc ebx
dec dword [ebp - 0x10]
jne 0x40d99f
jmp 0x40d969
mov eax, esi
call fcn.004024f0
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
je 0x40db09
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00406240
mov eax, dword [ebp - 0x28]
call fcn.004176d4
mov eax, 0x41ab14
mov edx, 0x40dd20
call fcn.00403770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db3a
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00403740
ret
Function at 0x40e074
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
Function at 0x40ed40
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0
push 0x40ed80
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x40ed8c
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x40edac
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x40fda8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40fe5c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xfa
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040387c
mov eax, 0x41ab14
mov edx, 0x40fe74
call fcn.00403770
mov edx, dword [ebp - 4]
mov eax, 0x40fea8
call fcn.00403b7c
test eax, eax
jne 0x40fe35
mov edx, dword [ebp - 4]
mov eax, 0x40feb8
call fcn.00403b7c
test eax, eax
jne 0x40fe35
mov edx, dword [ebp - 4]
mov eax, 0x40fecc
call fcn.00403b7c
test eax, eax
jne 0x40fe35
xor ebx, ebx
jmp 0x40fe37
mov bl, 1
mov eax, 0x41ab14
mov edx, 0x40fee4
call fcn.00403770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe63
lea eax, [ebp - 4]
call fcn.0040371c
ret
Function at 0x413b74
Capabilities:
Find taskbar
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x413d63
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
xor eax, eax
call fcn.0040272c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004053d4
mov edx, dword [ebp - 4]
mov eax, 0x41aae8
call fcn.00403770
cmp byte [0x41ab59], 0
jne 0x413bd0
mov eax, dword [0x41aae8]
push eax
mov ecx, 0x413d78
mov edx, 0x413d88
mov eax, 0x80000002
call fcn.0040689c
mov eax, 0x41ab14
mov edx, 0x413dd0
call fcn.00403770
cmp byte [0x41ab59], 0
je 0x413bf2
call fcn.0041426c
jmp 0x413d48
mov eax, 0x41ab14
mov edx, 0x413e04
call fcn.00403770
xor ebx, ebx
push 0
push 0x413e20
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jne 0x413c21
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x413c03
mov eax, 0x41ab14
mov edx, 0x413e38
call fcn.00403770
push 0xea60
call sub.kernel32.dll_Sleep
push 0
push 0x413e64
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
mov eax, 0x41ab14
mov edx, 0x413e74
call fcn.00403770
push 0x413f04
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov eax, 0x41ab14
mov edx, 0x413f18
call fcn.00403770
test esi, esi
jne 0x413c85
push 0x413fd8
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x413cf9
push 0x413fe4
push esi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x413cf9
call eax
push 0xbb8
call sub.kernel32.dll_Sleep
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
push 0xd
push 0x101
push ebx
call sub.user32.dll_SendMessageA
push 0xc8
call sub.kernel32.dll_Sleep
mov eax, 0x413ffc
call fcn.00404d98
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, 0x41ab14
mov edx, 0x41400c
call fcn.00403770
mov eax, 0x41ab14
mov edx, 0x4140b0
call fcn.00403770
mov edx, 0x414164
mov eax, 0x41ab6c
mov ecx, 0xbb8
call fcn.00406610
test al, al
je 0x413d48
call fcn.0041426c
mov eax, 0x41ab14
mov edx, 0x414194
call fcn.00403770
call fcn.00417490
mov eax, 0x41ab14
mov edx, 0x4141c4
call fcn.00403770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d6a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret
Function at 0x4176d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x4177cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab14
mov edx, 0x4177e4
call fcn.00403770
cmp dword [0x41ab60], 0
jne 0x417715
call fcn.00417640
push 2
push 0
push 0
mov eax, dword [0x41ab60]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
jne 0x417730
call fcn.00417640
lea edx, [ebp - 0xc]
mov al, byte [0x41ab5a]
call fcn.00405410
push dword [ebp - 0xc]
push 0x41788c
push dword [ebp - 4]
push 0x417898
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403954
mov byte [0x41ab5a], 0
mov eax, 0x41ab14
mov edx, 0x4178a4
call fcn.00403770
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403894
push eax
lea eax, [ebp - 4]
call fcn.00403aec
push eax
mov eax, dword [0x41ab60]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x41779e
mov dword [ebp - 8], 0xffffffff
mov eax, 0x41ab14
mov edx, 0x4178ec
call fcn.00403770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4177d2
lea eax, [ebp - 0xc]
call fcn.0040371c
lea eax, [ebp - 4]
call fcn.0040371c
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret