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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004137ce
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4cb3de
call fcn.004cb005
mov dword [esi + 0xc], 1
jmp 0x4cb3e3
call fcn.004cb005
cmp dword [esi], 0
je 0x4cb42c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4cb404
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00407e1c
jmp 0x4cb416
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401660
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004064b7
jmp 0x4cb450
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4cb450
push dword [esi]
push dword [ebp + 8]
call fcn.00441f59
pop esi
pop ebp
ret 0xc

Function at 0x4d05a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d05be
mov edi, dword [esi + 0xc]
jmp 0x4d05fe
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d05d7
call fcn.00413ece
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d05ec
call fcn.00413ece
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d05fe
call fcn.00413ece
call fcn.0043ec9b
cmp dword [eax + 0x3c], 0
je 0x4d0613
push edi
mov ecx, ebx
call fcn.004cf3e2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d04c0
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d0631
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d063d
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4fad38
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5662d0]
jne 0x4fad42
repz ret
jmp fcn.00501ab4
Function at 0x50d6a0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5662d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00503538
and dword [ebp - 0x14], 0
cmp dword [0x56dd60], 0
mov dword [ebp - 0x18], eax
jne 0x50d753
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x50d7fb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x50d7fb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x546f74
push ebx
mov dword [0x56dd60], eax
call edi
push eax
call esi
push 0x546f60
push ebx
mov dword [0x56dd64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x56dd68], eax
call edi
push eax
call esi
mov dword [0x56dd70], eax
test eax, eax
je 0x50d753
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x56dd6c], eax
mov eax, dword [0x56dd6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x50d7ac
cmp dword [0x56dd70], ecx
je 0x50d7ac
push eax
call esi
push dword [0x56dd70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x50d7ac
test ebx, ebx
je 0x50d7ac
call edi
test eax, eax
je 0x50d7a3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x50d7a3
test byte [ebp - 8], 1
jne 0x50d7ac
or dword [ebp + 0x10], 0x200000
jmp 0x50d7df
mov eax, dword [0x56dd64]
cmp eax, dword [ebp - 0x18]
je 0x50d7df
push eax
call esi
test eax, eax
je 0x50d7df
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50d7df
mov eax, dword [0x56dd68]
cmp eax, dword [ebp - 0x18]
je 0x50d7df
push eax
call esi
test eax, eax
je 0x50d7df
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x56dd60]
call esi
test eax, eax
je 0x50d7fb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x50d7fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fad38
leave
ret
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401160
lea ebx, [ebx]
cmp esi, eax
jae 0x401164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401150
cmp esi, eax
jb 0x40116a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
movzx ecx, word [esp + 4]
push esi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4011dc
pop esi
ret
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40124c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40124c
mov edx, dword [esp + 0x18]
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40124c
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
ret
pop edi
pop ebx
xor eax, eax
pop esi
ret

Function at 0x401260
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x430d5c]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push 0x104
lea eax, [esp + 8]
push 0
push eax
call fcn.00414650
mov ecx, dword [esp + 0x224]
push ecx
push 0
push esi
call fcn.00414650
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4012e6
push esi
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041463c
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041463c
add esp, 0x20c
ret
Function at 0x403d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x403d5b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x403e39
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427a78]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x427a78]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x427a78]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427a78]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427a78]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427a78]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427a78]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x427a78]
inc ecx
sub edx, 8
sub esi, 1
jne 0x403d75
pop edi
test edx, edx
je 0x403e5b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x427a78]
inc ecx
sub edx, 1
jne 0x403e40
not eax
pop esi
ret

Function at 0x403e60
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x427a78]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x427a78]
mov dword [edx + 8], ecx
ret

Function at 0x4043f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x404432
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404426
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x404443
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call fcn.00414b70
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x405440
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x430d5c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x405480
push esi
call ebp
cmp eax, 0xffffffff
jne 0x405480
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x405566
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x40549f
cmp ax, 0x5c
jne 0x4054a1
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x405493
push edi
cmp ecx, ebx
je 0x4054e4
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.00414b70
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00405440
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x40550f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x405500
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x405500
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405513
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x405530
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x405530
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x405566
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041463c
add esp, 0x414
ret
Function at 0x406d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x406d3a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x406d2f
cmp dword [edi + 0x7c], ebx
je 0x406d4d
push edi
call fcn.00404d20
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00404b40
add esp, 0x10
test eax, eax
je 0x406d74
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.00414ff2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x406db5
push 0x4000
call fcn.00414ff2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x406dc1
push esi
call fcn.00414f15
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x406e0d
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00404110
add esp, 4
test eax, eax
jne 0x406e0d
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x406e37
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x406e40
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
neg ecx
sbb ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x406e87
mov edi, edi
movzx eax, byte [ebp]
test al, al
je 0x406e87
push eax
push ebx
call fcn.00403e60
add esp, 8
add ebp, 1
jne 0x406e70
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x407110
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x4071e5
cmp dword [ebx + 4], 0xffffffff
jne 0x4071e5
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407140
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x407179
cmp ax, 0x2f
je 0x407179
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407166
mov eax, dword [0x427f9c]
mov dword [edi], eax
mov edi, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
cmp edi, 1
jne 0x4071a4
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4071a4
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.004041c0
add esp, 0x10
test eax, eax
jne 0x4071c6
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.00406b50
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x407c80
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x430d5c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.00414650
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.00401260
lea eax, [esp + 0x20]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407cc3
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
lea edi, [esi + 0xa4]
push edx
mov ecx, edi
call fcn.00401c80
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esi, 0xa8
push edi
mov ecx, esi
call fcn.00407980
push 0x4264ac
mov ecx, esi
call fcn.004025a0
push str.UpdateWizard.exe
mov ecx, esi
call fcn.004025a0
xor esi, esi
mov eax, dword [edi]
push eax
call fcn.00402ba0
add esp, 4
test eax, eax
jne 0x407d2d
inc esi
cmp esi, 3
jl 0x407d18
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov eax, dword [edi]
push eax
call fcn.00402d70
add esp, 4
test eax, eax
jne 0x407d51
push 0x12c
call esi
inc ebx
cmp ebx, 3
jl 0x407d35
xor ebx, ebx
mov eax, dword [edi]
push eax
call fcn.00402c40
add esp, 4
test eax, eax
jne 0x407d6f
push 0x12c
call esi
inc ebx
cmp ebx, 3
jl 0x407d53
xor ebx, ebx
mov eax, dword [edi]
push eax
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x407d8d
push 0x12c
call esi
inc ebx
cmp ebx, 3
jl 0x407d71
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041463c
add esp, 0x20c
ret

Function at 0x41463c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430d5c]
jne 0x414646
repz ret
jmp fcn.004193d5
Function at 0x41e162
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.00418725
and dword [ebp - 4], 0
cmp dword [0x434bb0], 0
mov ebx, eax
jne 0x41e213
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e2c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41e2c4
push eax
call fcn.004186b3
mov dword [esp], 0x42a888
push edi
mov dword [0x434bb0], eax
call esi
push eax
call fcn.004186b3
mov dword [esp], 0x42a874
push edi
mov dword [0x434bb4], eax
call esi
push eax
call fcn.004186b3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434bb8], eax
call esi
push eax
call fcn.004186b3
pop ecx
mov dword [0x434bc0], eax
test eax, eax
je 0x41e213
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004186b3
pop ecx
mov dword [0x434bbc], eax
mov eax, dword [0x434bbc]
cmp eax, ebx
je 0x41e26b
cmp dword [0x434bc0], ebx
je 0x41e26b
push eax
call fcn.0041872e
push dword [0x434bc0]
mov esi, eax
call fcn.0041872e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41e26b
test edi, edi
je 0x41e26b
call esi
test eax, eax
je 0x41e262
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e262
test byte [ebp - 0xc], 1
jne 0x41e26b
or dword [ebp + 0x10], 0x200000
jmp 0x41e2a4
mov eax, dword [0x434bb4]
cmp eax, ebx
je 0x41e2a4
push eax
call fcn.0041872e
pop ecx
test eax, eax
je 0x41e2a4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41e2a4
mov eax, dword [0x434bb8]
cmp eax, ebx
je 0x41e2a4
push eax
call fcn.0041872e
pop ecx
test eax, eax
je 0x41e2a4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434bb0]
call fcn.0041872e
pop ecx
test eax, eax
je 0x41e2c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e2c6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xdbf274
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdbf27e
pushal
call 0xdbf284
pop ebp
sub ebp, 0x10
sub ebp, 0x9bf274
jmp 0xdbf29a
mov eax, 0x9bf274
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a2
mov edx, 0xf3def243
xor byte [eax], dl
inc eax
dec ecx
jne 0xdbf2b1
jmp 0xdbf2c4
enter 0xffffffffffffc88e, 0xffffffffffffffca
jg 0xdbf30d
inc ebx
inc ebx
ret 0xbb82
outsd dx, dword [esi]
sub eax, dword [bx]
cmp al, 0xc2
stosd dword es:[edi], eax
inc esi
inc ebx
inc ebx
inc ebx
stosb byte es:[edi], al
imul eax, dword [ebx + 0x43], 0x43
push ss
pop ss
push ds
enter 0x4bc6, 0x43
dec ebx
inc ebx
inc ebx
inc ebx
enter 0x4fd6, 0x43
inc ebx
inc ebx
enter 0x53ce, 0x43
inc ebx
inc ebx
sub byte [edx - 0x3fbe8dbf], 0x81
inc edi
or cl, byte [esi + eax*8 - 0x49]
mov esp, 0x811ebcbc
dec edi
inc ebx
enter 0x67cf, 0x47
inc ebx
inc ebx
inc ebx
sub ecx, dword [edi - 0x23]
bound eax, qword [ebx + 0x2b]
sub edx, dword [edi]
cmp dword [ebx + 0x42], eax
outsd dx, dword [esi]
adc ch, byte [bp + di + 0x4346]
inc ebx
inc ebx
stosb byte es:[edi], al
js 0xdbf38e
inc ebx
inc ebx
into
daa
mov edi, 0xce676fca
das
inc ebx
mov esp, 0x36bc4f36
dec ebx
stosd dword es:[edi], eax
and eax, 0xc8434343
dec byte [ebx + 0x43]
inc ebx
inc ebx
jo 0xdbf2f7
jo 0xdbf300
shr byte [ebx - 0x38b3f4ba], 0xd
inc ebx
inc ebx
inc ebx
dec esp
retf
stosb byte es:[edi], al
dec esp
invalid
Function at 0x401d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d58
cmp byte [esi + ebx - 1], 0xa
je 0x401d2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4038f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x402c40
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
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.__set_app_type
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
nop
nop
nop
Function at 0x415f98
Capabilities:
Hide graphical window

Disassembly:
push esi
push ebx
sub esp, 0x74
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
mov esi, dword [eax + 8]
inc dword [ebx + 0x5c]
mov dword [esp + 4], 0
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [esi + 0x98]
mov edx, eax
and edx, 0xfffffffe
mov dword [esi + 0x98], edx
test eax, 0x10000
je 0x416019
mov dword [esp + 0x10], 0x12
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.00416878
xor eax, eax
add esp, 0x74
pop ebx
pop esi
ret