joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dd74
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x14]
mov ebx, 0x100
lea esi, [ebx - 1]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00401f80
xor eax, eax
and dword [ebp - 0x114], eax
mov word [ebp - 0x108], ax
lea edi, [ebp - 0x106]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x10c]
add esp, 0xc
call fcn.00428a48
test eax, eax
je 0x45ddea
xor eax, eax
jmp 0x45dea1
push dword [ebp - 0x110]
lea edi, [ebp - 0x104]
push dword [ebp - 0x10c]
mov eax, edi
push esi
push eax
jmp 0x45de39
lea eax, [ebp - 0x104]
cmp edi, eax
je 0x45de13
push edi
call fcn.00401a00
pop ecx
add ebx, ebx
lea eax, [ebx + 0xa]
push eax
push 1
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45dde3
push dword [ebp - 0x110]
lea eax, [ebx - 1]
push dword [ebp - 0x10c]
push eax
push edi
call fcn.00402db4
add esp, 0x10
cmp eax, 0xffffffff
je 0x45de02
mov cx, word [ebp + 8]
mov word [ebp - 0x108], cx
mov cx, word [ebp + 0xc]
mov word [ebp - 0x106], cx
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp - 0x108]
push eax
push edi
call fcn.0045d525
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
test eax, eax
jne 0x45de8a
cmp byte [0x498753], al
jne 0x45de8a
mov byte [0x498753], 1
lea eax, [ebp - 0x104]
cmp edi, eax
je 0x45de9b
push edi
call fcn.00401a00
pop ecx
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x45df73
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x498d18]
push ebx
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x45dfb6
xor ebx, ebx
inc ebx
mov dword [0x498d1c], ebx
test eax, eax
je 0x45df9e
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x498d18]
test edi, edi
je 0x45dfa8
test eax, eax
jne 0x45df84
jmp 0x45dfb9
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x45e0b7
xor ebx, ebx
inc ebx
test edi, edi
je 0x45e0b5
push esi
mov esi, 0x498d20
push edi
mov ecx, 0x104
mov eax, esi
call fcn.00428a08
pop ecx
mov eax, edi
call fcn.00428a82
mov cl, byte [0x498d20]
xor edi, edi
xor edx, edx
xor eax, eax
jmp 0x45e014
cmp edx, edi
je 0x45dffe
cmp cl, 0x29
jne 0x45dff5
xor edx, edx
mov byte [eax + 0x498e28], 0x20
jmp 0x45e00d
cmp cl, 0x28
jne 0x45e007
mov edx, ebx
jmp 0x45dff5
mov byte [eax + 0x498e28], cl
mov cl, byte [eax + 0x498d21]
inc eax
test cl, cl
jne 0x45dfea
push 0x498e28
push esi
mov byte [eax + 0x498e28], cl
call fcn.004023a0
pop ecx
pop ecx
test eax, eax
je 0x45e096
mov dword [ebp + 8], edi
mov dword [0x498d1c], edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ebx, 0x498d1c
call fcn.0045dabf
test eax, eax
jne 0x45e08a
mov dword [0x498d18], 1
cmp dword [ebp + 8], eax
je 0x45e069
push 0x498e28
call edi
mov eax, 0x2ee
jmp 0x45e071
push esi
call edi
mov eax, 0x5dc
call fcn.004185b1
xor eax, eax
cmp dword [ebp + 8], eax
sete al
cmp dword [0x498d1c], 0
mov dword [ebp + 8], eax
je 0x45e043
push esi
call edi
and dword [0x498d18], 0
jmp 0x45e0b4
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x3e8
mov dword [0x498d18], edi
mov dword [0x498d1c], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4

Function at 0x45e6b4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
call fcn.0045dc4a
test eax, eax
je 0x45e6c5
xor eax, eax
inc eax
pop ebp
ret
pop ebp
jmp fcn.0045d7de
Function at 0x45fe0e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00411840
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0xffc
lea eax, [ebp - 0x1000]
mov edi, edx
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x100c], edi
mov dword [ebp - 0x1004], ebx
call fcn.00401f80
add esp, 0xc
mov dword [ebp - 0x1010], ebx
cmp edi, ebx
jne 0x45fe60
xor eax, eax
jmp 0x45ff02
shr esi, 2
mov eax, 0x40000
mov dword [ebp - 0x1008], esi
cmp esi, eax
jbe 0x45fe78
mov dword [ebp - 0x1008], eax
shr dword [ebp - 0x1008], 2
mov edi, 0x400
cmp dword [ebp - 0x1008], edi
jbe 0x45fea1
push 4
push dword [ebp - 0x1008]
call fcn.00401a3a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x45fead
mov dword [ebp - 0x1008], edi
lea esi, [ebp - 0x1004]
xor edi, edi
push dword [ebp - 0x100c]
push dword [ebp - 0x1008]
push 4
push esi
call fcn.00402244
add esp, 0x10
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x45fee2
xor ebx, ebx
test eax, eax
je 0x45fede
add edi, dword [esi + ebx*4]
inc ebx
cmp ebx, eax
jb 0x45fed6
add edi, eax
jmp 0x45feaf
test edi, edi
jne 0x45feeb
test ebx, ebx
je 0x45feeb
inc edi
test esi, esi
je 0x45ff00
lea eax, [ebp - 0x1004]
cmp esi, eax
je 0x45ff00
push esi
call fcn.00401a00
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret

Function at 0x45ffb4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x4d
lea eax, [ebp - 0x53]
push ebx
push eax
mov byte [ebp - 0x54], bl
call fcn.00401f80
add esp, 0xc
cmp esi, ebx
jne 0x45ffe5
or eax, 0xffffffff
jmp 0x460090
lea eax, [ebp - 0x54]
push eax
mov edx, str.____This_is_the_beginning_of_a_PAULA_Arkive_self_extracting_compilation.____
call fcn.00428fc7
push esi
call fcn.00401e22
push esi
mov dword [ebp - 0x58], ebx
call fcn.00401e7e
add esp, 0xc
cmp eax, 0xffffffff
je 0x46002c
push 1
push eax
lea eax, [ebp - 0x58]
lea ebx, [ebp - 0x54]
call fcn.004551e0
pop ecx
pop ecx
test eax, eax
jne 0x460089
push esi
call fcn.00401e7e
pop ecx
cmp eax, 0xffffffff
jne 0x46000a
xor ebx, ebx
push edi
push 2
push ebx
push esi
call fcn.0040287c
add esp, 0xc
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00401a80
pop ecx
push eax
lea eax, [ebp - 0x54]
push 1
push eax
call fcn.0040257f
mov edi, eax
lea eax, [ebp - 0x54]
push eax
call fcn.00401a80
add esp, 0x14
cmp edi, eax
pop edi
jne 0x45ffdd
push esi
call fcn.00401e22
push 2
push 0xffffffffffffffff
push esi
call fcn.0040287c
push esi
call fcn.00401e7e
push 2
push ebx
push esi
call fcn.0040287c
add esp, 0x20
push esi
call fcn.0040278d
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x462213
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x462232
mov esi, dword [0x588c98]
test esi, esi
je 0x462295
call fcn.0042ed79
and dword [0x588c98], 0
jmp 0x462295
mov eax, dword [0x588c98]
test eax, eax
jne 0x46224b
call fcn.0042edb6
mov dword [0x588c98], eax
test eax, eax
jne 0x46224b
pop esi
ret
push ebx
mov ebx, dword [esi + 0x130]
push edi
mov edi, eax
call fcn.0042ef48
test eax, eax
jne 0x462270
push dword [esi + 0x130]
mov ebx, dword [0x588c98]
call fcn.0042ed65
pop ecx
xor ebx, ebx
cmp dword [esi], ebx
jle 0x462293
lea edi, [esi + 4]
mov eax, dword [edi]
call fcn.00461fab
test eax, eax
je 0x46228b
mov ecx, dword [edi]
call fcn.0046208c
inc ebx
add edi, 4
cmp ebx, dword [esi]
jl 0x462279
pop edi
pop ebx
xor eax, eax
inc eax
pop esi
ret
Function at 0x4632ba
Capabilities:
Contain obfuscated stackstrings
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4832e4]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
call fcn.0043aeaf
test eax, eax
je 0x4632ee
xor eax, eax
jmp 0x4634c5
xor ebx, ebx
mov esi, str.Sound.c
cmp dword [0x588c94], ebx
jne 0x463420
cmp dword [0x588da8], ebx
jne 0x463420
push 0x103
lea eax, [esp + 0x55]
push ebx
push eax
mov dword [esp + 0x20], 0x46464952
mov dword [esp + 0x24], 0x32
mov dword [esp + 0x28], 0x45564157
mov dword [esp + 0x2c], 0x20746d66
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x34], 0x10001
mov dword [esp + 0x38], 0x5622
mov dword [esp + 0x3c], 0xac44
mov dword [esp + 0x40], 0x100002
mov dword [esp + 0x44], 0x61746164
mov dword [esp + 0x48], 0xe
mov dword [esp + 0x4c], 0xfe00fe01
mov dword [esp + 0x50], 0xff00
mov dword [esp + 0x54], 0xffff
mov word [esp + 0x58], 1
mov byte [esp + 0x5c], bl
call fcn.00401f80
add esp, 0xc
lea edi, [esp + 0x50]
mov dword [0x588da8], 1
call fcn.00457958
test eax, eax
jne 0x4633c1
mov eax, edi
push str.TempDummySound.wav
push eax
call fcn.00401ba0
pop ecx
pop ecx
push 0x52
push esi
mov edx, 0x46f608
lea ecx, [esp + 0x58]
call fcn.004580b0
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4633f3
push edi
push 0x3a
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0040257f
add esp, 0x10
mov ecx, edi
call fcn.0045a2fe
lea eax, [esp + 0x50]
push eax
call fcn.004632ba
pop ecx
test eax, eax
jne 0x46341a
lea eax, [esp + 0x50]
push str.SoundsNotifyWinIllegalKey.wav
push eax
call fcn.0043b1b7
push eax
call fcn.004632ba
add esp, 0xc
mov dword [0x588da8], ebx
push 1
push 0x724
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4632e7
cmp dword [0x588c94], ebx
jne 0x46344a
call fcn.0042edb6
mov dword [0x588c94], eax
mov ebx, dword [0x588c94]
push edi
call fcn.0042ed65
cmp dword [0x588c94], 0
pop ecx
jne 0x46346c
push edi
call fcn.00401a00
pop ecx
jmp 0x4632e7
lea ebx, [edi + 0x564]
push esi
push ebx
call fcn.00456cc8
pop ecx
pop ecx
mov esi, str.A_Sound_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.00456b53
mov eax, 0xdac
mov ecx, ebx
call fcn.00456b40
mov eax, edi
call fcn.00461cd3
mov edx, dword [esp + 0x10]
call fcn.00429ac3
test eax, eax
jne 0x4634c3
push dword [esp + 0x10]
mov ecx, edi
call fcn.00462d2d
pop ecx
test eax, eax
jne 0x4634c3
mov eax, edi
call fcn.004626ab
jmp 0x4632e7
mov eax, edi
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
Function at 0x463839
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
push 1
push 0x1f0
mov dword [ebp - 0x10c], eax
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x463871
xor eax, eax
jmp 0x463974
push 0x20a
push 1
call fcn.00401a3a
pop ecx
pop ecx
mov dword [edi], eax
test eax, eax
jne 0x46388e
push edi
call fcn.00401a00
pop ecx
jmp 0x46386a
and dword [edi + 4], 0
and dword [edi + 0xc], 0
inc dword [0x579864]
mov eax, dword [0x579864]
push ebx
mov ebx, dword [0x579860]
mov dword [edi + 0x2c], eax
mov dword [edi + 8], 0x200
test ebx, ebx
jne 0x4638c3
call fcn.0042edb6
mov ebx, eax
mov dword [0x579860], ebx
push edi
call fcn.0042ed65
cmp dword [0x579860], 0
pop ecx
jne 0x4638e9
push dword [edi]
call fcn.00401a00
push edi
call fcn.00401a00
pop ecx
pop ecx
xor eax, eax
jmp 0x463973
push esi
lea ebx, [edi + 0x30]
push str.Message.c
push ebx
call fcn.00456cc8
pop ecx
pop ecx
mov esi, str.A_Message_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.00456b53
mov eax, 0x7d0
mov ecx, ebx
call fcn.00456b40
cmp dword [ebp - 0x10c], 0
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
je 0x463969
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00401f80
push dword [ebp - 0x10c]
mov ecx, 0x104
lea eax, [ebp - 0x108]
call fcn.00428a08
mov esi, eax
call fcn.004288d0
mov eax, esi
push eax
push 0x16
lea eax, [edi + 0x14]
pop ecx
call fcn.00428a08
add esp, 0x14
mov eax, edi
call fcn.00463816
mov eax, edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401317
leave
ret

Function at 0x463fd0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
push edi
test ebx, ebx
je 0x464028
cmp byte [ebx], 0
je 0x464028
mov eax, esi
call fcn.0046399f
test eax, eax
je 0x464028
mov eax, esi
call fcn.00463823
test eax, eax
je 0x464028
xor edi, edi
mov ecx, ebx
inc edi
call fcn.00459add
test eax, eax
je 0x464003
xor edi, edi
push 0x4ad
push str.Message.c
mov edx, 0x470278
mov ecx, ebx
call fcn.004580b0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x46402d
mov eax, esi
call fcn.00463816
xor eax, eax
pop edi
pop ebx
ret
cmp dword [esi + 4], 0
jle 0x464077
test edi, edi
jne 0x464044
push ebx
push 0xa
call fcn.00401858
pop ecx
pop ecx
inc edi
jmp 0x464046
xor edi, edi
push ebx
push dword [esi + 4]
push 1
push dword [esi]
call fcn.0040257f
add edi, eax
add esp, 0x10
cmp edi, dword [esi + 4]
jge 0x464077
mov eax, dword [esi]
call fcn.00428a48
test eax, eax
jne 0x464077
inc dword [0x579a68]
mov ecx, ebx
call fcn.0045a2fe
jmp 0x464021
mov ecx, ebx
call fcn.0045a2fe
mov eax, esi
call fcn.00463816
xor eax, eax
inc eax
jmp 0x46402a
Function at 0x46408a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x100000
mov edi, eax
mov dword [ebp - 8], esi
call fcn.00429ac3
test eax, eax
je 0x4640b0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, edi
call fcn.0046399f
test eax, eax
je 0x4640a9
mov ecx, dword [ebp + 8]
call fcn.00459add
cmp eax, esi
jae 0x4640d5
mov dword [ebp - 8], eax
test eax, eax
jg 0x4640d5
mov dword [ebp - 8], 0x400
mov eax, edi
call fcn.00463823
test eax, eax
je 0x4640a9
mov ecx, dword [ebp + 8]
push 0x435
push str.Message.c
mov edx, 0x470b18
call fcn.004580b0
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x464109
mov eax, edi
call fcn.00463816
jmp 0x4640a9
mov ebx, dword [ebp - 8]
lea eax, [ebx + 0x400]
push 1
push eax
call fcn.00401a3a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x464100
push dword [ebp - 0xc]
push ebx
jmp 0x46416c
and dword [ebp - 4], 0
test ebx, ebx
jle 0x464166
mov eax, dword [edi + 0xc]
inc eax
cmp eax, dword [edi + 8]
jl 0x464142
call fcn.00463a25
test eax, eax
je 0x464182
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 4]
mov dl, byte [edx + esi]
mov ecx, dword [edi]
mov byte [eax + ecx], dl
inc dword [edi + 0xc]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 4]
jle 0x46415e
mov dword [edi + 4], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jl 0x464130
push dword [ebp - 0xc]
push dword [ebp - 8]
push 1
push esi
call fcn.00402244
mov ebx, eax
add esp, 0x10
test ebx, ebx
jg 0x464128
xor ebx, ebx
inc ebx
jmp 0x464184
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0045a2fe
mov eax, edi
call fcn.00463816
push esi
call fcn.00401a00
pop ecx
mov eax, ebx
jmp 0x4640ab
Function at 0x403300
Capabilities:
Enumerate gui resources
Get disk information

Disassembly:
mov eax, dword [0x2b9b67c]
mov ecx, dword [0x2b98588]
sub esp, 0x424
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x4033f7
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x2b9b67c], 0x959
jne 0x4033dd
call edi
push 0
lea eax, [esp + 0x34]
push eax
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0x402cb8
push 0x402d60
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x14]
push edx
call fcn.00403140
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403340
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x408e90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444c30]
jne 0x408e9a
repz ret
jmp fcn.0040b9ac

Function at 0x40b177
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.00405327
and dword [ebp - 4], 0
cmp dword [0x445fc4], 0
mov ebx, eax
jne 0x40b228
push 0x402ac4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b2d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ab8
push edi
call esi
test eax, eax
je 0x40b2d9
push eax
call fcn.004052b5
mov dword [esp], 0x402aa8
push edi
mov dword [0x445fc4], eax
call esi
push eax
call fcn.004052b5
mov dword [esp], 0x402a94
push edi
mov dword [0x445fc8], eax
call esi
push eax
call fcn.004052b5
mov dword [esp], 0x402a78
push edi
mov dword [0x445fcc], eax
call esi
push eax
call fcn.004052b5
pop ecx
mov dword [0x445fd4], eax
test eax, eax
je 0x40b228
push 0x402a60
push edi
call esi
push eax
call fcn.004052b5
pop ecx
mov dword [0x445fd0], eax
mov eax, dword [0x445fd0]
cmp eax, ebx
je 0x40b280
cmp dword [0x445fd4], ebx
je 0x40b280
push eax
call fcn.00405330
push dword [0x445fd4]
mov esi, eax
call fcn.00405330
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b280
test edi, edi
je 0x40b280
call esi
test eax, eax
je 0x40b277
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b277
test byte [ebp - 0xc], 1
jne 0x40b280
or dword [ebp + 0x10], 0x200000
jmp 0x40b2b9
mov eax, dword [0x445fc8]
cmp eax, ebx
je 0x40b2b9
push eax
call fcn.00405330
pop ecx
test eax, eax
je 0x40b2b9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2b9
mov eax, dword [0x445fcc]
cmp eax, ebx
je 0x40b2b9
push eax
call fcn.00405330
pop ecx
test eax, eax
je 0x40b2b9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445fc4]
call fcn.00405330
pop ecx
test eax, eax
je 0x40b2d9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b2db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015a1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4015d6
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4015d3
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4015df
add edx, 0x28
cmp edx, esi
jne 0x4015c1
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4015dc

Function at 0x401a24
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a63
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a63
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a63
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a63
cmp dword [ecx + 0x74], 0xe
jbe 0x401a63
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407845
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4078e2
push ebx
push esi
call fcn.0040780e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004077a4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40788f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4078e1
push edi
push eax
call fcn.00405920
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4078af
call fcn.004062f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4078e0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004077a4
add esp, 0x20
test eax, eax
jne 0x4078ce
push edi
call fcn.004062f0
jmp 0x4078d6
push ebx
call fcn.004062f0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40e6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e70d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x2e29cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [ebp - 0x14], eax
jmp 0x2e2a23
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push dword [esi - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2e2a54
cmp dword [ebp - 0x10], 4
jne 0x2e2a54
mov al, 1
jmp 0x2e2a56
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov edi, dword [eax]
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push 0x80000002
call esi
lea eax, [ebp - 4]
push eax
push 1
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push 0x80000001
call esi
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], esi
cmp byte [ebp + 0x10], bl
jne 0x2e2956
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0xc]
add esi, 4
mov dword [ebp + 0xc], 5
mov dword [ebp + 8], ebx
xor al, al
mov dword [ebp + 0x10], ebx
cmp dword [ebp + 0x10], 2
jae 0x2e2a5d
mov eax, dword [ebp + 0x10]
mov eax, dword [ebp + eax*4 - 0x18]
mov dword [ebp - 0xc], 4
cmp eax, ebx
jne 0x2e2996
xor al, al
inc dword [ebp + 0x10]
cmp al, bl
je 0x2e2a38
cmp al, bl
mov eax, dword [ebp + 8]
jne 0x2e2a67
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x2e2a9e
mov eax, dword [esi]
not eax
and edi, eax
add esi, 0xc
dec dword [ebp + 0xc]
jne 0x2e2a30
mov eax, dword [ebp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [eax], edi
cmp dword [ebp - 4], ebx
je 0x2e2a8e
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
jne 0x2e8db1
pop edi
pop esi
pop ebx
leave
ret 0x10
or edi, dword [esi]
jmp 0x2e2a71
push dword [ebp - 8]
call esi
jmp 0x2e2a97

Function at 0x2e4eb1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
push edi
xor edi, edi
mov ebx, 0x8007000e
cmp dword [0x2f4128], edi
jne 0x2e4ef9
push edi
push edi
push 0x2e5e88
push 0x2e4652
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x2e4ef9
push 2
push esi
mov dword [0x2f4128], 1
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x2f4120]
cmp eax, edi
jne 0x2e4f12
push 0x2e4f4c
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x2f4120], eax
cmp dword [0x2f4128], edi
je 0x2e4f41
cmp eax, edi
je 0x2e4f41
mov ecx, dword [0x2f40e0]
mov eax, dword [ecx]
push 0x4c
call dword [eax + 8]
cmp eax, edi
je 0x2e4f47
mov esi, eax
call fcn.002e4f75
mov dword [0x2f4124], eax
cmp eax, edi
je 0x2e4f41
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
ret
xor eax, eax
jmp 0x2e4f36