joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ad64
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4bbbe8]
cmp dword [eax + 0x30], 0
je 0x46ae0e
cmp dword [ebx + 0x94], 0
jne 0x46ae08
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46acf4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46ae08
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46adce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46ae08
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041e50c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46addd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46b970
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46b9a5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b78
jmp 0x46b9b2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404adc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46ca04
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46ca45
mov eax, esi
call fcn.00452c70
test al, al
je 0x46ca45
mov eax, dword [ebx + 0x84]
call fcn.0045296c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46ca45
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045296c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4a27a4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00409dc4
add esp, 0x108
pop ebx
ret

Function at 0x4a95b0
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a95c2
add esp, 0xfffffff0
call fcn.0040403c
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004067e0
xor eax, eax
push ebp
push 0x4a9636
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00403ca8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004a9724
mov dl, 1
mov eax, dword [0x41c33c]
call fcn.00403ca8
mov dword [esi + 0x28], eax
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4a9620
push 0x4a965c
call sub.user32.dll_RegisterClipboardFormatA
mov dword [0x4bbcf4], eax
call sub.user32.dll_CloseClipboard
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a963d
lea eax, [ebp - 4]
call fcn.0040676c
ret
Function at 0x4af470
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4af478
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4af92b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20e], 0
jne 0x4af908
call fcn.00437c7c
mov dx, 1
call fcn.00437c44
test al, al
je 0x4af900
call fcn.00437c7c
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4af51a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x4af4ee
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
jmp 0x4af4f3
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af521
cmp dword [ebp - 0x10], 0
je 0x4af50f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
call fcn.00437c7c
mov edx, dword [eax]
call dword [edx + 0x14]
ret
mov eax, dword [ebp - 4]
call fcn.004b2894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af932
lea eax, [ebp - 0x58]
mov edx, 0xf
call fcn.00404aac
lea eax, [ebp - 0x18]
call fcn.00404a88
ret

Function at 0x4b5428
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4b543b
add esp, 0xfffffff0
call fcn.0040403c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00439764
call sub.kernel32.dll_GetVersion_1
mov esi, eax
mov eax, esi
mov edi, eax
and edi, 0xff
mov eax, esi
call fcn.00407ad0
and eax, 0xff
cmp edi, 5
ja 0x4b5479
cmp edi, 5
jne 0x4b5475
cmp eax, 1
jae 0x4b5479
xor eax, eax
jmp 0x4b547b
mov al, 1
mov byte [ebx + 0x18b], al
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b5498
call fcn.00404094
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40228b
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x402400
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, str._1d_:_DSuygac
push 0x6f
pop ebx
push ebx
push ebp
call fcn.00404087
xor byte [esi + edi], 0x83
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x56
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x31
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x77
push ebx
push ebp
call fcn.00404087
xor byte [esi + edi], 0xda
push ebx
push ebp
call fcn.00404087
xor byte [esi + edi], 0x3a
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0xa5
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x49
add esp, 0x40
push ebx
push ebp
call fcn.00404087
xor byte [esi + edi], 0xd8
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0xf7
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0xb8
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x7a
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0xd6
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x52
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x90
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x16
add esp, 0x40
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x33
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0xc1
push ebx
push ebp
call fcn.00404087
xor byte [esi + edi], 0xb3
push ebx
push ebp
call fcn.00404087
xor byte [esi + edi], 0x79
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x42
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x83
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x65
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0xf2
add esp, 0x40
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0xd9
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0xbb
push ebx
push ebp
call fcn.00404087
xor byte [esi + edi], 0xd4
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0xe
push ebx
push ebp
call fcn.00404087
add byte [esi + edi], 0x5d
add esp, 0x28
inc esi
cmp esi, dword [esp + 0x18]
jb 0x4022a7
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x4025dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x438814]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402654
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040164b
test esi, esi
je 0x402641
cmp dword [esp + 0x38], 3
jbe 0x402641
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004026cf
pop ecx
pop ecx
test eax, eax
je 0x402641
cmp eax, dword [esp + 0x38]
je 0x40266c
lea ecx, [esp + 0x14]
add edi, 4
call fcn.0040213d
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40260d
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040601d
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.0040213d
jmp 0x402656

Function at 0x4026cf
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x10], ebp
jb 0x4026f4
mov esi, dword [esi]
mov dword [esp + 0x18], esi
shr edi, 2
test edi, edi
je 0x402755
mov ebp, esi
mov esi, edi
push str.GYAUs87atedyuw3
push 0x4397b0
call fcn.00401150
push eax
call fcn.00401551
push 4
lea eax, [esp + 0x2c]
push ebp
push eax
call fcn.00406df0
imul ecx, dword [esp + 0x34], 0x5bd1e991
add esp, 0x18
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x1c], eax
sub esi, 1
jne 0x4026ff
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40277e
sub eax, 1
je 0x402774
sub eax, 1
jne 0x40278c
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret
Function at 0x4167e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041665a

Function at 0x416be3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406da0
mov eax, dword [0x438814]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041462d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416c25
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416d81
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004220e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43a390]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417bda
mov ecx, dword [esi*4 + 0x43a390]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x416d7a
cmp eax, dword [edi + ecx + 0x24]
jne 0x416d7a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416d7a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417bda
add esp, 0x14
test edx, edx
jl 0x416d7a
jg 0x416cf0
test eax, eax
jb 0x416d7a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x416d7a
jl 0x416d0a
cmp dword [ebp - 0x1008], eax
ja 0x416d7a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x416d28
test ebx, ebx
je 0x416d61
cmp ecx, edi
jae 0x416d61
mov al, byte [ecx]
cmp al, 0xd
jne 0x416d42
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416d4e
cmp byte [ecx + 1], 0xa
jne 0x416d4e
inc ecx
jmp 0x416d4e
movzx eax, al
movsx eax, byte [eax + 0x438ac0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x416d28
cmp edx, ebx
jne 0x416d28
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416d7f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040601d
leave
ret
Function at 0x417078
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43a390]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4170b8
cmp byte [ebx], 0xa
jne 0x4170b8
or byte [eax + edi + 0x28], 4
jmp 0x4170bd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4171bb
mov al, byte [edx]
cmp al, 0x1a
je 0x41719d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4170ec
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417111
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41711b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4170ce
jmp 0x4171bb
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417198
cmp dword [ebp - 0xc], 0
je 0x417198
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43a390]
test byte [eax + edi + 0x28], 0x48
je 0x417172
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41715d
mov byte [esi], dl
jmp 0x41716e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43a390]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4171bb
cmp byte [ebp - 1], 0xa
jne 0x417181
cmp esi, ebx
jne 0x417181
mov byte [esi], 0xa
jmp 0x4171ba
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417bf8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4171bb
mov byte [esi], 0xd
jmp 0x4171ba
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43a390]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4171b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4171bb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4171c4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43a390]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417207
cmp word [esi], dx
jne 0x417207
or byte [edi + eax + 0x28], 4
jmp 0x41720c
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41735f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41733f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41724e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417284
cmp eax, edx
jae 0x417290
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417226
jmp 0x41735f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41733b
cmp dword [ebp - 0x14], 0
je 0x41733b
mov eax, dword [ebx*4 + 0x43a390]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417313
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4172dc
mov word [esi], cx
jmp 0x41730f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43a390]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43a390]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43a390]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41735f
pop ebx
cmp word [ebp - 4], bx
jne 0x417324
cmp esi, dword [ebp + 0xc]
jne 0x417324
mov word [esi], bx
jmp 0x41735c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00417bf8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41735f
push 0xd
jmp 0x417358
mov ecx, dword [ebx*4 + 0x43a390]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417356
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41735f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41af6d
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 0x41b00a
push ebx
push esi
call fcn.0041af36
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.00419bbb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41afb7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b009
push edi
push eax
call fcn.0041373c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41afd7
call fcn.00412c3b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b008
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00419bbb
add esp, 0x20
test eax, eax
jne 0x41aff6
push edi
call fcn.00412c3b
jmp 0x41affe
push ebx
call fcn.00412c3b
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 0x421ee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421f0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421f0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x402bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404840], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40410c], ecx
mov dword [0x4047c0], 0x30
mov dword [0x4047c4], 2
mov dword [0x4047cc], 0
mov dword [0x4047d0], 0
mov dword [0x4047c8], 0x402f50
jmp 0x402c23
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4047d4], eax
mov dword [0x4047e0], 0xf
mov dword [0x4047e8], 0x404767
mov dword [0x404104], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4047d8], eax
mov dword [0x4047ec], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4047dc], eax
push 0x4047c0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x404104]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.litform
push str.ndcls
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404838], eax
xor eax, eax
jmp 0x402cc2
push eax
push dword [0x404838]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404838]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4047f0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402d08
push 0x4047f0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4047f0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402cdb
mov eax, dword [0x4047f8]
jmp 0x402d15
call 0x4022b2
ret
Function at 0x418d0f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429388]
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.0040d3e1
mov dword [ebp - 0x14], eax
cmp dword [0x42ba40], esi
jne 0x418e02
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x418d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x418ee2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x418ee2
push 0x423ce4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418ee2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42ba40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42ba44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42ba48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42ba50], eax
test eax, eax
je 0x418dff
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42ba4c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x418e27
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x418e1a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x418e3c
push 4
pop eax
jmp 0x418ee4
cmp dword [ebp - 0x14], esi
je 0x418e3c
push dword [0x42ba40]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x418e21
mov eax, dword [0x42ba4c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x418e9a
cmp dword [0x42ba50], edi
je 0x418e9a
push eax
call ebx
push dword [0x42ba50]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x418e9a
test eax, eax
je 0x418e9a
call ecx
test eax, eax
je 0x418e8f
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 0x418e8f
test byte [ebp - 8], 1
jne 0x418e9a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x418eca
mov eax, dword [0x42ba44]
cmp eax, edi
je 0x418ec7
push eax
call ebx
test eax, eax
je 0x418ec7
call eax
mov esi, eax
test esi, esi
je 0x418ec7
mov eax, dword [0x42ba48]
cmp eax, edi
je 0x418ec7
push eax
call ebx
test eax, eax
je 0x418ec7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42ba40]
call ebx
test eax, eax
je 0x418ee2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x418ee4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c61b
mov esp, ebp
pop ebp
ret