joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a111
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 + 0x4396e0]
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 0x41a151
cmp byte [ebx], 0xa
jne 0x41a151
or byte [eax + edi + 0x28], 4
jmp 0x41a156
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41a254
mov al, byte [edx]
cmp al, 0x1a
je 0x41a236
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41a185
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41a1aa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41a1b4
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 0x41a167
jmp 0x41a254
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 0x41a231
cmp dword [ebp - 0xc], 0
je 0x41a231
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4396e0]
test byte [eax + edi + 0x28], 0x48
je 0x41a20b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41a1f6
mov byte [esi], dl
jmp 0x41a207
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4396e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41a254
cmp byte [ebp - 1], 0xa
jne 0x41a21a
cmp esi, ebx
jne 0x41a21a
mov byte [esi], 0xa
jmp 0x41a253
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ac91
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a254
mov byte [esi], 0xd
jmp 0x41a253
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4396e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a250
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a254
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a25d
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 + 0x4396e0]
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 0x41a2a0
cmp word [esi], dx
jne 0x41a2a0
or byte [edi + eax + 0x28], 4
jmp 0x41a2a5
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 0x41a3f8
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 0x41a3d8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41a2e7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41a31d
cmp eax, edx
jae 0x41a329
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 0x41a2bf
jmp 0x41a3f8
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 0x41a3d4
cmp dword [ebp - 0x14], 0
je 0x41a3d4
mov eax, dword [ebx*4 + 0x4396e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41a3ac
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41a375
mov word [esi], cx
jmp 0x41a3a8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4396e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4396e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4396e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41a3f8
pop ebx
cmp word [ebp - 4], bx
jne 0x41a3bd
cmp esi, dword [ebp + 0xc]
jne 0x41a3bd
mov word [esi], bx
jmp 0x41a3f5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ac91
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41a3f8
push 0xd
jmp 0x41a3f1
mov ecx, dword [ebx*4 + 0x4396e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41a3ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41a3f8
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 0x401fe0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4368db
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x446640]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call fcn.00410f7f
mov ebx, dword [eax + 0xc]
mov eax, dword [0x44a810]
mov ecx, str._mark
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40204b
test dx, dx
je 0x402047
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40204b
add eax, 4
add ecx, 4
test dx, dx
jne 0x402025
xor eax, eax
jmp 0x402050
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402090
lea eax, [ebp - 0x78]
call fcn.004018c0
push 0x9001
push str.mark
lea ecx, [ebp - 0x294]
call fcn.00408e81
push 0x64
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x294]
mov dword [ebp - 4], 0
call fcn.00408591
push 0
call fcn.004214a6
push 0x104
lea ecx, [ebp - 0x280]
push ecx
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x280]
call fcn.004015a0
test al, al
jne 0x4020d7
mov edx, dword [esi + 0x20]
push 0x10
push str.Error
push str.Could_not_verify_file
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
call fcn.004214a6
lea eax, [ebp - 0x280]
push eax
mov ecx, esi
call fcn.00401a00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
mov dword [esi + 0x11c], edi
je 0x40210d
call fcn.00410f7f
mov dword [eax + 0xc], edi
call fcn.00410f7f
mov eax, dword [eax + 0xc]
push 0x17
push str.bg.jpg
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, 0x1cc
mov eax, 0x26c
mov dword [esi + 0x128], ecx
mov ecx, esi
mov dword [esi + 0x124], eax
call fcn.00404cc4
call fcn.00410f7f
mov dword [eax + 0xc], ebx
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0x20]
push ecx
push 1
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x402191
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420828
mov esp, ebp
pop ebp
ret
Function at 0x406194
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x446640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4061d1
push 0x438288
push 4
push eax
call fcn.00423b4a
push eax
call fcn.00401260
add esp, 0x10
jmp 0x4061e3
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40624e
push edi
call fcn.00423c2c
mov edi, dword [eax]
call fcn.00423c2c
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00423bd2
add esp, 0x18
mov ebx, eax
call fcn.00423c2c
cmp dword [eax], 0
je 0x40622e
call fcn.00423c2c
push dword [eax]
call fcn.004060f1
pop ecx
jmp 0x406235
call fcn.00423c2c
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40624e
cmp ebx, esi
jae 0x40624e
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x406250
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00420828
leave
ret
Function at 0x407b02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x407b48
call fcn.00410f7f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x407b48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x407b8b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x407b74
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x407b74
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x407b88
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409d68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4357fd
call fcn.004239f8
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00410f7f
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x409db3
call fcn.00410f7f
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x409dc4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x409dd1
or eax, 0xffffffff
jmp 0x409f2d
mov ecx, esi
call fcn.00409898
mov dword [ebp - 0x14], eax
call fcn.0040c643
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x409e4f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x409e4f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x409e4f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040617b
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x409e4f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x409e4f
mov ecx, ebx
call fcn.0040f1b3
test eax, eax
je 0x409e4f
push 0
mov ecx, ebx
call fcn.0040f1ce
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040dfb5
push dword [ebp - 0x14]
call fcn.0040c59b
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00409b70
xor edi, edi
cmp eax, edi
je 0x409eac
test byte [esi + 0x3c], 0x10
je 0x409e96
push 4
pop edi
mov ecx, esi
call fcn.0040f0c4
test ax, 0x100
je 0x409e8c
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040c131
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x409eac
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040f37c
or dword [ebp - 4], 0xffffffff
jmp 0x409ed7
cmp dword [ebp - 0x28], edi
je 0x409ee5
push 1
mov ecx, ebx
call fcn.0040f1ce
cmp dword [ebp - 0x2c], edi
je 0x409ef5
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x409f0e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x409f0e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004098d2
cmp dword [esi + 0x58], edi
je 0x409f2a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00423a9d
ret
Function at 0x40efdf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40f022
call fcn.00410f7f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f022
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f03d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040eb99
test ebx, ebx
mov esi, eax
je 0x40f03b
test edi, edi
je 0x40f03b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x419b87
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x419bb5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419bd3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419af1
jmp 0x419bd3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x419bd3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00419af1
test edi, edi
mov eax, edi
jne 0x419bbd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x449ac0]
test ecx, ecx
je 0x419c96
jmp 0x419b86
ret 8

Function at 0x420828
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446640]
jne 0x420832
repz ret
jmp fcn.00425c7a
Function at 0x424a9f
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 + 0x4467c0]
je 0x424aba
inc edi
cmp edi, 0x17
jb 0x424aab
cmp edi, 0x17
jae 0x424c3a
push ebp
push 3
call fcn.0042d3e0
cmp eax, 1
pop ecx
je 0x424c06
push 3
call fcn.0042d3e0
test eax, eax
pop ecx
jne 0x424aee
cmp dword [0x446614], 1
je 0x424c06
cmp ebx, 0xfc
je 0x424c39
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x449bc8
push ebp
call fcn.0042d37b
add esp, 0xc
test eax, eax
je 0x424b24
push esi
push esi
push esi
push esi
push esi
call fcn.00426b01
add esp, 0x14
push 0x104
mov esi, 0x449be1
push esi
push 0
mov byte [0x449ce5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424b68
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042d37b
add esp, 0xc
test eax, eax
je 0x424b68
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00426b01
add esp, 0x14
push esi
call fcn.0042d2f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x424bad
push esi
call fcn.0042d2f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x449edc
push 0x43b43c
sub ecx, eax
push ecx
push eax
call fcn.0042d230
add esp, 0x14
test eax, eax
je 0x424bad
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00426b01
add esp, 0x14
jmp 0x424baf
xor esi, esi
push 0x43b438
push ebx
push ebp
call fcn.0042d1bf
add esp, 0xc
test eax, eax
je 0x424bcf
push esi
push esi
push esi
push esi
push esi
call fcn.00426b01
add esp, 0x14
push dword [edi*8 + 0x4467c4]
push ebx
push ebp
call fcn.0042d1bf
add esp, 0xc
test eax, eax
je 0x424bf1
push esi
push esi
push esi
push esi
push esi
call fcn.00426b01
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042d002
add esp, 0xc
jmp 0x424c39
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x424c39
cmp ebp, 0xffffffff
je 0x424c39
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4467c4]
push dword [esi]
call fcn.0042d2f0
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 0x42d002
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042564f
xor ebx, ebx
cmp dword [0x44a6c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42d0d8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42d1b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42d1b8
push eax
call fcn.004255e1
mov dword [esp], 0x43b67c
push edi
mov dword [0x44a6c0], eax
call esi
push eax
call fcn.004255e1
mov dword [esp], 0x43b668
push edi
mov dword [0x44a6c4], eax
call esi
push eax
call fcn.004255e1
mov dword [0x44a6c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004212bf
test eax, eax
pop ecx
pop ecx
je 0x42d0a6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426b01
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42d0d8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004255e1
cmp eax, ebx
pop ecx
mov dword [0x44a6d0], eax
je 0x42d0d8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004255e1
pop ecx
mov dword [0x44a6cc], eax
mov eax, dword [0x44a6cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42d15d
cmp dword [0x44a6d0], ecx
je 0x42d15d
push eax
call fcn.00425658
push dword [0x44a6d0]
mov esi, eax
call fcn.00425658
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42d15d
cmp edi, ebx
je 0x42d15d
call esi
cmp eax, ebx
je 0x42d12a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42d12a
test byte [ebp - 0x18], 1
jne 0x42d15d
lea eax, [ebp - 0x10]
push eax
call fcn.004212f6
test eax, eax
pop ecx
je 0x42d145
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00426b01
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42d154
or dword [ebp + 0x10], 0x200000
jmp 0x42d198
or dword [ebp + 0x10], 0x40000
jmp 0x42d198
mov eax, dword [0x44a6c4]
cmp eax, dword [ebp - 8]
je 0x42d198
push eax
call fcn.00425658
cmp eax, ebx
pop ecx
je 0x42d198
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42d198
mov eax, dword [0x44a6c8]
cmp eax, dword [ebp - 8]
je 0x42d198
push eax
call fcn.00425658
cmp eax, ebx
pop ecx
je 0x42d198
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44a6c0]
call fcn.00425658
cmp eax, ebx
pop ecx
je 0x42d1b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42d1ba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434d14
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x446640]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00434ca9
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.00423ad0
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 0x434d63
cmp dword [ebp - 0x1c], 5
jb 0x434d7b
jmp 0x434d77
cmp dword [ebp - 0x10], 1
jne 0x434d7b
cmp dword [ebp - 0x1c], 4
ja 0x434d77
jne 0x434d7b
cmp dword [ebp - 0x18], 0
jbe 0x434d7b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43d0a8
call fcn.00434b7d
test eax, eax
jge 0x434d9c
mov byte [0x44a7b5], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00420828
add ebp, 0x78
leave
ret
Function at 0x409c20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x409c42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409c49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409c38
mov eax, 1
add ebx, ebx
jne 0x409c5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409c50
jne 0x409c6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409c50
xor ecx, ecx
sub eax, 3
jb 0x409c80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409cf2
mov ebp, eax
add ebx, ebx
jne 0x409c8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409c98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409cbc
inc ecx
add ebx, ebx
jne 0x409ca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409c9d
jne 0x409cb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409c9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409cdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409ccd
jmp 0x409c3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409cdc
add edi, ecx
jmp 0x409c3e
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409cfa
cmp byte [edi], 1
jne 0x409cfa
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 0x409cff
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409d77
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9e4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409d2c
mov ecx, edi
jns 0x409d5b
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 + 0x9e8c]
or eax, eax
je 0x409d71
mov dword [ebx], eax
add ebx, 4
jmp 0x409d49
call dword [esi + 0x9e9c]
mov ebp, dword [esi + 0x9e90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x409dab
sub esp, 0xffffff80
jmp 0x401150