joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4152b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471120
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4997f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x42c], esi
call fcn.0040acb0
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x41530c
mov eax, dword [eax + 4]
jmp 0x41530f
add eax, 4
lea ecx, [ebp - 0x484]
push ecx
push eax
call fcn.00451948
add esp, 8
test eax, eax
sete bl
cmp dword [ebp - 0x438], edi
jb 0x41533b
mov edx, dword [ebp - 0x44c]
push edx
call fcn.00432e81
add esp, 4
test bl, bl
je 0x41537c
mov ecx, esi
lea eax, [ebp - 0x450]
call fcn.0040acb0
cmp dword [eax + 0x18], edi
jb 0x415356
mov eax, dword [eax + 4]
jmp 0x415359
add eax, 4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x438], edi
jb 0x41537c
mov eax, dword [ebp - 0x44c]
push eax
call fcn.00432e81
add esp, 4
push edi
mov dword [ebp - 4], 0
call fcn.00432e56
mov ecx, eax
add esp, 4
mov dword [ebp - 0x424], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x4153dc
cmp dword [esi + 0x18], 8
jb 0x4153bf
mov esi, dword [esi + 4]
push 0x9001
push esi
call fcn.00442e42
mov ecx, dword [ebp - 0x428]
mov dword [ecx], eax
mov al, 1
jmp 0x4155d4
add esi, 4
push 0x9001
push esi
call fcn.00442e42
mov ecx, dword [ebp - 0x428]
mov dword [ecx], eax
mov al, 1
jmp 0x4155d4
mov ecx, dword [ebp - 0x428]
xor eax, eax
mov dword [ecx], eax
mov al, 1
jmp 0x4155d4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0044f9f6
mov esp, ebp
pop ebp
ret

Function at 0x416b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0x44
call fcn.00432e56
xor edi, edi
add esp, 4
cmp eax, edi
je 0x416bb9
mov ecx, 7
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x18], edi
mov word [eax + 8], di
mov dword [eax + 0x38], ecx
mov dword [eax + 0x34], edi
mov word [eax + 0x24], di
mov esi, eax
jmp 0x416bbb
xor esi, esi
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea ecx, [esi + 4]
call fcn.00401c20
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x20]
call fcn.00401c20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x14]
push edx
push edi
push esi
push 0x417630
push edi
push edi
mov dword [esi], 0x49e2f7
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
jne 0x416c1a
call fcn.00416c50
xor eax, eax
cmp ebx, edi
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esp + 0x10]
mov eax, 0x49f334
call fcn.00415cf0
mov dword [eax], 0x49e2f7
lea ebx, [ebp + 0x14]
mov eax, 0x49f340
call fcn.00415cf0
mov ebx, dword [esp + 0x10]
mov dword [eax], ebx
xor eax, eax
cmp ebx, edi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416f50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x471066
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4997f0]
xor eax, esp
mov dword [esp + 0x284], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4997f0]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
cmp dword [esp + 0x2b0], 0
mov esi, dword [esp + 0x2ac]
mov edi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
jne 0x416fb1
mov dword [esp + 0x2b0], 0x49e2f7
mov eax, dword [edi + 4]
test eax, eax
je 0x416fca
mov ecx, dword [eax + 0x24]
test ecx, ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jne 0x416fd1
xor al, al
jmp 0x41715a
test edx, edx
je 0x416fea
push ecx
mov ecx, dword [esp + 0x2b8]
push ecx
push 0xfc2
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, esi
lea eax, [esp + 0x44]
call fcn.0040acb0
mov ebp, 0x10
mov dword [esp + 0x2a4], 0
cmp dword [eax + 0x18], ebp
jb 0x41700f
mov esi, dword [eax + 4]
jmp 0x417012
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x417026
test al, 0x10
jne 0x417026
xor al, al
jmp 0x41703a
push esi
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.0040b250
add esp, 4
test al, al
sete bl
mov dword [esp + 0x2a4], 0xffffffff
cmp dword [esp + 0x5c], ebp
jb 0x41705d
mov eax, dword [esp + 0x48]
push eax
call fcn.00432e81
add esp, 4
test bl, bl
jne 0x416fca
push edi
call fcn.0040aee0
test al, al
je 0x416fca
mov ecx, dword [esp + 0x2b0]
xor ebp, ebp
cmp byte [ecx], 0
jne 0x417158
cmp ebp, dword [esp + 0x20]
jge 0x417158
cmp dword [edi + 4], 0
je 0x416fca
mov ecx, ebp
mov ebx, edi
call fcn.0040b1d0
test al, al
je 0x416fca
lea esi, [esp + 0x60]
call fcn.0040af50
test al, al
je 0x416fca
mov edx, esi
push edx
lea ecx, [esp + 0x2c]
call fcn.0040a520
mov ecx, dword [esp + 0x18]
push ebp
push edi
lea edx, [esp + 0x30]
mov dword [esp + 0x2ac], 1
call fcn.00417190
add esp, 8
test al, al
sete bl
mov dword [esp + 0x2a4], 0xffffffff
cmp dword [esp + 0x40], 0x10
jb 0x417108
mov eax, dword [esp + 0x2c]
push eax
call fcn.00432e81
add esp, 4
test bl, bl
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jne 0x416fca
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x417145
mov edx, dword [esp + 0x2b4]
lea ecx, [ebp + 1]
push ecx
push edx
push 0xfc3
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x2b0]
add ebp, 1
cmp byte [eax], 0
je 0x417085
mov al, 1
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.0044f9f6
add esp, 0x294
ret
Function at 0x41f090
Capabilities:
Create process on windows

Disassembly:
sub esp, 8
push esi
call fcn.0040c970
lea edx, [eax + 0x1c48]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f0a4
sub eax, esi
sar eax, 1
je 0x41f0c9
push 5
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
add esp, 8
ret
Function at 0x4225f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4700c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4997f0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00401c20
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x422644
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.004135e0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00401c20
cmp dword [esp + 0x24], 8
jb 0x42268a
mov eax, dword [esp + 0x10]
push eax
call fcn.00432e81
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x4305f0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4305f7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00430600
Function at 0x430600
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x430632
lea esp, [esp]
test cl, 3
je 0x430632
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x47e750]
add ecx, 1
sub esi, 1
jne 0x430610
cmp esi, 0x20
push ebx
push edi
jb 0x43081c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x47eb50]
xor edx, dword [ebx*4 + 0x47ef50]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x47e750]
add ecx, 4
xor edx, dword [eax*4 + 0x47f350]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x47eb50]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x47ef50]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x47e750]
add ecx, 4
xor eax, dword [edx*4 + 0x47f350]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x47eb50]
xor edx, dword [ebx*4 + 0x47ef50]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x47e750]
xor edx, dword [eax*4 + 0x47f350]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x47eb50]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x47ef50]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x47e750]
xor eax, dword [edx*4 + 0x47f350]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x47eb50]
xor edx, dword [ebx*4 + 0x47ef50]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x47e750]
xor edx, dword [eax*4 + 0x47f350]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x47eb50]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x47ef50]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x47e750]
and edx, 0xff
xor eax, dword [edx*4 + 0x47f350]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x47eb50]
xor edx, dword [ebx*4 + 0x47ef50]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x47e750]
add ecx, 4
xor edx, dword [eax*4 + 0x47f350]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x47eb50]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x47ef50]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x47e750]
and edx, 0xff
xor eax, dword [edx*4 + 0x47f350]
sub edi, 1
jne 0x430642
cmp esi, 4
jb 0x430869
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x47eb50]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x47ef50]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x47e750]
and eax, 0xff
xor edi, dword [eax*4 + 0x47f350]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x430826
test esi, esi
pop edi
pop ebx
je 0x43088d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x47e750]
add ecx, 1
sub esi, 1
jne 0x430870
not eax
pop esi
ret
Function at 0x43938d
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 0x4393d0
call fcn.00446090
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4393d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4393eb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00438f47
test ebx, ebx
mov esi, eax
je 0x4393e9
test edi, edi
je 0x4393e9
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4419e4
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x441a0d
call fcn.00446090
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x441a30
push eax
push dword [esi + 4]
call fcn.0044196f
push esi
push eax
mov ecx, 0x49ce7c
call fcn.00441642
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x44419c
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 0x4441e2
call fcn.00446090
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4441e2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x444225
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 0x44420e
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 0x44420e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x444222
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 0x445708
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x445728
cmp dword [edi + 0x54], 0
jne 0x445728
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00446090
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004456cf
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x44954b
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 0x449579
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x449597
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004494b5
jmp 0x449597
mov eax, dword [esi + 0x14]
test eax, eax
je 0x449597
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004494b5
test edi, edi
mov eax, edi
jne 0x449581
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x49d164]
test ecx, ecx
je 0x44965a
jmp 0x44954a
ret 8

Function at 0x44b246
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x44b24f
xor eax, eax
jmp 0x44b2b8
cmp dword [esp + 8], 0
jne 0x44b25b
call fcn.00440a39
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004530d5
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x44b296
push dword [esi + 0x10]
call fcn.004530f0
test eax, eax
pop ecx
jne 0x44b296
mov esi, dword [esi + 0xc]
call fcn.00452d70
push esi
push dword [eax]
push 1
call fcn.0044be67
push dword [esi + 0x10]
call fcn.0045311f
test eax, eax
pop ecx
je 0x44b2b5
push dword [esi + 0x10]
call fcn.004569de
push eax
call fcn.00402b40
pop ecx
pop ecx
jmp 0x44b284
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x44b2c1
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x44b2cb
call fcn.00440a39
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00453268
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x44b2f8
mov esi, dword [esi + 0xc]
call fcn.00452d70
push esi
push dword [eax]
push 1
call fcn.0044be67
pop esi
ret 8

Function at 0x44f9f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4997f0]
jne 0x44fa00
repz ret
jmp fcn.0045840f
Function at 0x451dfe
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x451e2b
call fcn.00452d70
mov dword [eax], esi
call fcn.00452d5d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004513d9
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x451e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00452d83
pop ecx
jmp 0x451e26
test byte [esp + 0xc], 0x80
je 0x451e55
and eax, 0xfffffffe
jmp 0x451e58
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x451e3a
xor eax, eax
pop esi
ret

Function at 0x46418b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00457df6
xor ebx, ebx
cmp dword [0x49dfb8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x464260
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4641cb
xor eax, eax
jmp 0x464324
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4641c4
push eax
call fcn.00457d93
mov dword [esp], 0x47b788
push edi
mov dword [0x49dfb8], eax
call esi
push eax
call fcn.00457d93
mov dword [esp], 0x47b774
push edi
mov dword [0x49dfbc], eax
call esi
push eax
call fcn.00457d93
mov dword [0x49dfc0], eax
lea eax, [ebp - 8]
push eax
call fcn.00451f42
test eax, eax
pop ecx
pop ecx
je 0x46422e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004512dd
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x464260
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00457d93
cmp eax, ebx
pop ecx
mov dword [0x49dfc8], eax
je 0x464260
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00457d93
pop ecx
mov dword [0x49dfc4], eax
mov eax, dword [0x49dfc4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4642d9
cmp dword [0x49dfc8], esi
je 0x4642d9
push eax
call fcn.00457dff
pop ecx
call eax
cmp eax, ebx
je 0x4642a6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x49dfc8]
call fcn.00457dff
pop ecx
call eax
test eax, eax
je 0x4642a6
test byte [ebp - 0x18], 1
jne 0x4642d9
lea eax, [ebp - 0xc]
push eax
call fcn.00451f79
test eax, eax
pop ecx
je 0x4642c1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004512dd
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4642d0
or dword [ebp + 0x10], 0x200000
jmp 0x46430a
or dword [ebp + 0x10], 0x40000
jmp 0x46430a
mov eax, dword [0x49dfbc]
cmp eax, esi
je 0x46430a
push eax
call fcn.00457dff
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46430a
mov eax, dword [0x49dfc0]
cmp eax, esi
je 0x46430a
push dword [ebp - 4]
push eax
call fcn.00457dff
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x49dfb8]
call fcn.00457dff
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46da40
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4997f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046d9d5
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.00454000
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 0x46da8f
cmp dword [ebp - 0x1c], 5
jb 0x46daa7
jmp 0x46daa3
cmp dword [ebp - 0x10], 1
jne 0x46daa7
cmp dword [ebp - 0x1c], 4
ja 0x46daa3
jne 0x46daa7
cmp dword [ebp - 0x18], 0
jbe 0x46daa7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47d84c
call fcn.00418480
test eax, eax
jge 0x46dac8
mov byte [0x49f41c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044f9f6
add ebp, 0x78
leave
ret
Function at 0x10057806
Capabilities:
Parse pe header

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

Function at 0x10058b80
Capabilities:
Parse pe header

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

Function at 0x10058ed0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10063620
push 0x10063618
push str.FlsAlloc
push 0x1f
call fcn.100591b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10058f04
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10058f0a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10058f4e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10063630
push 0x10063628
push str.FlsGetValue
push 0x21
call fcn.100591b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10058f85
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10058f8d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10063638
push 0x10063630
push str.FlsSetValue
push 0x22
call fcn.100591b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10058fc7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005be8e
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 0x1005bf2b
push ebx
push esi
call fcn.1005bf2e
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.1005bd92
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005bed8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005bf2a
push edi
push eax
call fcn.1005c18c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005bef8
call fcn.1005a480
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005bf29
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005bd92
add esp, 0x20
test eax, eax
jne 0x1005bf17
push edi
call fcn.1005a480
jmp 0x1005bf1f
push ebx
call fcn.1005a480
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