joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca6f
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x41dfd6
call fcn.00411a1c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00404449
xor ebx, ebx
lea esi, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040df07
push 0x20
mov eax, esi
call fcn.0040cb4f
push dword [ebp + 0xc]
mov eax, esi
push eax
call fcn.0040c9ab
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x40cac0
push dword [esi - 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.004081a5
mov esi, dword [ebp - 0x10]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00411200
mov dword [ebp - 0x54], edi
mov edi, dword [ebp + 0x10]
xor eax, eax
stosd dword es:[edi], eax
add esp, 0xc
push dword [ebp + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40cafd
call fcn.0040d8c8
mov ebx, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, ebx
call fcn.00411abb
ret

Function at 0x40cd2b
Capabilities:
Enumerate files on windows

Disassembly:
push 0x264
mov eax, 0x41e4b8
call fcn.00411a85
xor esi, esi
push 0x250
lea eax, [ebp - 0x260]
push esi
push eax
mov dword [ebp - 0x26c], esi
call fcn.00411200
add esp, 0xc
push edi
lea eax, [ebp - 0x268]
push eax
call fcn.00404449
push 0x5c
lea eax, [ebp - 0x268]
mov dword [ebp - 4], esi
call fcn.0040cb4f
push 0x421d60
lea eax, [ebp - 0x268]
push eax
call fcn.0040c9ab
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x270], ebx
cmp ebx, 0xffffffff
mov byte [ebp - 4], 1
jne 0x40cdd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40cdca
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, esi
call fcn.00411acf
ret
call fcn.0040d8c8
mov esi, eax
jmp 0x40cdb4
test byte [ebp - 0x260], 0x10
jne 0x40ce57
push edi
lea eax, [ebp - 0x264]
push eax
call fcn.00404449
push 0x5c
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.0040cb4f
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40ce03
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
call fcn.0040c9f7
mov esi, dword [ebp - 0x264]
call fcn.0040c3e2
test eax, eax
jge 0x40ce45
push dword [ebp - 0x264]
call fcn.0040c432
pop ecx
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.00405ed3
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cdd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40ce83
call fcn.0040d8c8
mov dword [ebp - 0x26c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x26c]
jmp 0x40cdb4
Function at 0x40ce95
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e6fd
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x426200]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
mov eax, dword [0x426200]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, edi
call fcn.0040d0b4
test al, al
jne 0x40cf0a
mov eax, 0x80004005
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.00410457
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cf2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40cf25
xor eax, eax
jmp 0x40cee7
call fcn.0040d8c8
jmp 0x40cee7
test al, 0x10
je 0x40cee2
call fcn.0040cd2b
push 0x250
mov esi, eax
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00411200
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
call fcn.00404449
and dword [esp + 0x280], 0
push 2
push 0x421d64
lea eax, [esp + 0x1c]
call fcn.0040c9f7
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
mov byte [esp + 0x280], 1
jne 0x40cfb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40cfac
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00405ed3
mov eax, esi
jmp 0x40cee7
call fcn.0040d8c8
test esi, esi
jl 0x40cf99
mov esi, eax
jmp 0x40cf99
test byte [esp + 0x1c], 0x10
je 0x40d061
push 2
mov eax, 0x421728
lea edx, [esp + 0x4c]
call fcn.0040eb71
test eax, eax
pop ecx
je 0x40d061
push 3
mov eax, 0x421ce8
lea edx, [esp + 0x4c]
call fcn.0040eb71
test eax, eax
pop ecx
je 0x40d061
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00404449
push 1
push 0x421c6c
lea eax, [esp + 0x18]
mov byte [esp + 0x288], 2
call fcn.0040c9f7
lea eax, [esp + 0x48]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40d01c
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
call fcn.0040c9f7
push dword [esp + 0x10]
call fcn.0040ce95
test esi, esi
pop ecx
jl 0x40d04d
test eax, eax
jge 0x40d04d
mov esi, eax
mov byte [esp + 0x280], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00405ed3
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cfb9
mov byte [esp + 0x280], al
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40cf99
push edi
call fcn.0040c432
test esi, esi
pop ecx
jl 0x40cf99
test eax, eax
jge 0x40cf99
jmp 0x40cfb5
Function at 0x40d83a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0x40
jae 0x40d84b
mov eax, 0x80004005
leave
ret
mov ax, word [ecx]
mov dword [ebp - 4], 0x5a4d
cmp ax, word [ebp - 4]
jne 0x40d844
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 0xa0]
cmp dword [ebp + 8], edx
jb 0x40d844
add eax, ecx
mov ecx, dword [eax]
mov edx, 0x4550
cmp ecx, edx
jne 0x40d844
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x58], ecx
xor eax, eax
leave
ret

Function at 0x40d880
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0x40
jae 0x40d891
mov eax, 0x80004005
leave
ret
mov ax, word [ecx]
mov dword [ebp - 4], 0x5a4d
cmp ax, word [ebp - 4]
jne 0x40d88a
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 0xa0]
cmp dword [ebp + 8], edx
jb 0x40d88a
add eax, ecx
mov ecx, dword [eax]
mov edx, 0x4550
cmp ecx, edx
jne 0x40d88a
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
leave
ret

Function at 0x40d9a9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x426200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40da11
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40da08
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], 1
pop ebx
sete al
xor ecx, ebp
call fcn.00410457
leave
ret
Function at 0x40da27
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x41dfa6
call fcn.00411a85
xor ebx, ebx
mov dword [ebp - 0x120], ebx
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov esi, eax
cmp esi, ebx
jge 0x40da75
cmp dword [ebp - 0x120], ebx
je 0x40da6e
push dword [ebp - 0x120]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
jmp 0x40db9c
mov dword [ebp - 0x124], ebx
lea eax, [ebp - 0x124]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov esi, eax
cmp esi, ebx
jge 0x40daa7
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x40da5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40da5a
push 0x108
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00411200
mov eax, dword [ebp - 0x124]
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
push 0x8000
push dword [ebp - 0x120]
mov dword [ebp - 0x11c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jl 0x40da92
mov dword [ebp - 0x128], ebx
lea eax, [ebp - 0x128]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x120]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRetToStrW]
cmp eax, ebx
mov dword [ebp - 0x12c], eax
jge 0x40db55
cmp dword [ebp - 0x128], ebx
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
je 0x40db2a
push dword [ebp - 0x128]
call esi
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x40db3d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x120], ebx
je 0x40db4d
push dword [ebp - 0x120]
call esi
mov eax, dword [ebp - 0x12c]
jmp 0x40db9c
push dword [ebp - 0x128]
push edi
call fcn.004047c5
cmp dword [ebp - 0x128], ebx
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
je 0x40db77
push dword [ebp - 0x128]
call esi
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x40db8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x120], ebx
je 0x40db9a
push dword [ebp - 0x120]
call esi
xor eax, eax
call fcn.00411acf
ret
Function at 0x40dbe3
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x426200]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push esi
mov esi, ecx
mov dword [ebp - 0x60], esi
call fcn.0040d0b4
test al, al
jne 0x40dc17
mov eax, 0x80070057
jmp 0x40dc9b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov edi, 0x104
cmp esi, edi
jb 0x40dc31
mov eax, 0x80070057
jmp 0x40dc9a
push ebx
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x5a]
push ebx
push eax
mov word [ebp - 0x5c], bx
call fcn.00411200
add esp, 0xc
push edi
push dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov word [ebp + esi*2 - 0x5a], bx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 3
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x70], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x40dc97
call fcn.0040d8c8
jmp 0x40dc99
xor eax, eax
pop ebx
pop edi
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
pop esi
call fcn.00410457
add ebp, 0x1b4
leave
ret

Function at 0x40dccf
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40dcef
xor eax, eax
jmp 0x40dd4f
push edi
call fcn.0040f5f0
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x40dceb
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40dd1c
push dword [esi]
call fcn.00410693
pop ecx
mov dword [esi], ebx
mov dword [esi + 4], ebx
jmp 0x40dceb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push dword [esi]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40dd0d
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov dword [esi + 4], ecx
inc eax
pop edi
pop ebx
leave
ret 4
Function at 0x40f114
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x426200]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040f053
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00411200
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40f163
cmp dword [ebp - 0x1c], 5
jb 0x40f17b
jmp 0x40f177
cmp dword [ebp - 0x10], 1
jne 0x40f17b
cmp dword [ebp - 0x1c], 4
ja 0x40f177
jne 0x40f17b
cmp dword [ebp - 0x18], 0
jbe 0x40f17b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41f43c
call fcn.00405cde
test eax, eax
jge 0x40f19c
mov byte [0x428738], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410457
add ebp, 0x78
leave
ret

Function at 0x410457
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426200]
jne 0x410461
repz ret
jmp fcn.0041583a
Function at 0x413012
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4265c0]
je 0x41302d
inc edi
cmp edi, 0x17
jb 0x41301e
cmp edi, 0x17
jae 0x4131ad
push ebp
push 3
call fcn.00418619
cmp eax, 1
pop ecx
je 0x413179
push 3
call fcn.00418619
test eax, eax
pop ecx
jne 0x413061
cmp dword [0x4261e4], 1
je 0x413179
cmp ebx, 0xfc
je 0x4131ac
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x427cc8
push ebp
call fcn.00416b4b
add esp, 0xc
test eax, eax
je 0x413097
push esi
push esi
push esi
push esi
push esi
call fcn.00410563
add esp, 0x14
push 0x104
mov esi, 0x427ce1
push esi
push 0
mov byte [0x427de5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4130db
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00416b4b
add esp, 0xc
test eax, eax
je 0x4130db
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00410563
add esp, 0x14
push esi
call fcn.00411580
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413120
push esi
call fcn.00411580
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x427fdc
push 0x41fb1c
sub ecx, eax
push ecx
push eax
call fcn.00418566
add esp, 0x14
test eax, eax
je 0x413120
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00410563
add esp, 0x14
jmp 0x413122
xor esi, esi
push 0x41fb18
push ebx
push ebp
call fcn.004184f5
add esp, 0xc
test eax, eax
je 0x413142
push esi
push esi
push esi
push esi
push esi
call fcn.00410563
add esp, 0x14
push dword [edi*8 + 0x4265c4]
push ebx
push ebp
call fcn.004184f5
add esp, 0xc
test eax, eax
je 0x413164
push esi
push esi
push esi
push esi
push esi
call fcn.00410563
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00418338
add esp, 0xc
jmp 0x4131ac
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4131ac
cmp ebp, 0xffffffff
je 0x4131ac
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4265c4]
push dword [esi]
call fcn.00411580
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x418338
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00413cb4
xor ebx, ebx
cmp dword [0x4285ac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41840e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4184ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4184ee
push eax
call fcn.00413c46
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4285ac], eax
call esi
push eax
call fcn.00413c46
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4285b0], eax
call esi
push eax
call fcn.00413c46
mov dword [0x4285b4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412d9f
test eax, eax
pop ecx
pop ecx
je 0x4183dc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410563
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41840e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00413c46
cmp eax, ebx
pop ecx
mov dword [0x4285bc], eax
je 0x41840e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413c46
pop ecx
mov dword [0x4285b8], eax
mov eax, dword [0x4285b8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x418493
cmp dword [0x4285bc], ecx
je 0x418493
push eax
call fcn.00413cbd
push dword [0x4285bc]
mov esi, eax
call fcn.00413cbd
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x418493
cmp edi, ebx
je 0x418493
call esi
cmp eax, ebx
je 0x418460
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418460
test byte [ebp - 0x18], 1
jne 0x418493
lea eax, [ebp - 0x10]
push eax
call fcn.00412dd6
test eax, eax
pop ecx
je 0x41847b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00410563
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41848a
or dword [ebp + 0x10], 0x200000
jmp 0x4184ce
or dword [ebp + 0x10], 0x40000
jmp 0x4184ce
mov eax, dword [0x4285b0]
cmp eax, dword [ebp - 8]
je 0x4184ce
push eax
call fcn.00413cbd
cmp eax, ebx
pop ecx
je 0x4184ce
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4184ce
mov eax, dword [0x4285b4]
cmp eax, dword [ebp - 8]
je 0x4184ce
push eax
call fcn.00413cbd
cmp eax, ebx
pop ecx
je 0x4184ce
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4285ac]
call fcn.00413cbd
cmp eax, ebx
pop ecx
je 0x4184ee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4184f0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429e10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
jmp 0x429e2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429e31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429e20
mov eax, 1
add ebx, ebx
jne 0x429e43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429e38
jne 0x429e54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429e38
xor ecx, ecx
sub eax, 3
jb 0x429e68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429eda
mov ebp, eax
add ebx, ebx
jne 0x429e73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x429e80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x429ea4
inc ecx
add ebx, ebx
jne 0x429e90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x429e85
jne 0x429ea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429e85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x429ec4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x429eb5
jmp 0x429e26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x429ec4
add edi, ecx
jmp 0x429e26
pop esi
mov edi, esi
mov ecx, 0x654
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x429ee2
cmp byte [edi], 5
jne 0x429ee2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x429ee7
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429f5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30568]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x305f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x429f14
mov ecx, edi
jns 0x429f43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x305f8]
or eax, eax
je 0x429f59
mov dword [ebx], eax
add ebx, 4
jmp 0x429f31
call dword [esi + 0x30608]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x429f90
cmp al, 0xef
ja 0x429f83
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x429f65
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x429f72
mov ebp, dword [esi + 0x305fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x429fc4
sub esp, 0xffffff80
jmp 0x404faf
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4b5370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4b538e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x4de074
push ecx
mov edi, eax
call fcn.004c9198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b53cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004c902e
push esi
call fcn.004c8fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret