joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100352c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10035490
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003539d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003530a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004e004]
ja 0x1003530a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100352da
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003532f
jmp 0x1003539d
cmp dword [ebp - 0x14], 0x10000
jne 0x10035383
cmp dword [ebp - 0x18], 0x10000
jb 0x10035383
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10035366
mov eax, dword [ebp - 8]
jmp 0x1003539f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10035376
xor eax, eax
jmp 0x1003539f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10035398
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10035490
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100352da
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100353b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100354c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10035485
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100353f5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004e004]
ja 0x100353f5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100353c5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003541a
jmp 0x10035485
cmp dword [ebp - 0x14], 0x10000
jne 0x1003546e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003546e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10035451
mov eax, dword [ebp - 8]
jmp 0x10035487
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10035461
xor eax, eax
jmp 0x10035487
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10035480
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100354c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100353c5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100354f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100358e0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1004f8f0], 0
jne 0x1003552d
cmp dword [0x1004f8ec], 0
je 0x1003552d
mov eax, dword [0x1004f8ec]
mov dword [0x1004f8f0], eax
cmp dword [0x1004f8f0], 0
je 0x100355aa
mov ecx, dword [0x1004f8f0]
cmp dword [ecx + 8], 0
je 0x100355aa
mov edx, dword [0x1004f8f0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100355aa
mov ecx, dword [0x1004f8f0]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100355aa
mov eax, dword [0x1004f8f0]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10035579
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10035580
xor eax, eax
jmp 0x100356c9
mov ecx, dword [0x1004f8f0]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100356c9
mov edx, dword [0x1004f8ec]
mov dword [0x1004f8f0], edx
jmp 0x100355c6
mov eax, dword [0x1004f8f0]
mov ecx, dword [eax + 4]
mov dword [0x1004f8f0], ecx
cmp dword [0x1004f8f0], 0
je 0x10035606
cmp dword [0x1004f8f0], 0
je 0x10035604
mov edx, dword [0x1004f8f0]
cmp dword [edx + 8], 0
je 0x10035604
mov eax, dword [0x1004f8f0]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10035604
mov edx, dword [0x1004f8f0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10035604
jmp 0x1003555e
jmp 0x100355b8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100356d0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100356c7
mov eax, dword [ebp - 0x18]
mov dword [0x1004f8f0], eax
mov ecx, dword [0x1004f8f0]
mov dword [ecx], 0x52727464
mov edx, dword [0x1004f8f0]
mov dword [edx + 8], 0
mov eax, dword [0x1004f8f0]
mov ecx, dword [0x1004f8ec]
mov dword [eax + 4], ecx
mov edx, dword [0x1004f8f0]
mov dword [0x1004f8ec], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1004f8f0]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10035697
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100356b7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003568e
mov eax, dword [0x1004f8f0]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003555e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10036410
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004f8ec]
mov dword [ebp - 4], eax
jmp 0x10036429
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10036450
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003644e
call sub.KERNEL32.dll_GetLastError
jmp 0x10036452
jmp 0x10036420
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100368f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1004f8fc], eax
je 0x10036914
mov eax, 0x10dd
jmp 0x10036abc
cmp dword [0x1004f900], 0
je 0x10036927
mov eax, dword [0x1004f900]
jmp 0x10036abc
cmp dword [ebp + 0xc], 0
jne 0x10036937
mov eax, 0x57
jmp 0x10036abc
cmp dword [ebp + 8], 0
jne 0x10036947
mov eax, 6
jmp 0x10036abc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10036970
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1004f900], ecx
mov edx, dword [ebp + 8]
mov dword [0x1004f904], edx
mov eax, dword [ebp - 8]
jmp 0x10036abc
push 0x18
call fcn.10037fa6
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100369cb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1004f900], ecx
cmp dword [ebp - 4], 0
je 0x100369ba
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10037fd9
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1004f904], ecx
mov eax, dword [ebp - 8]
jmp 0x10036abc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100368d0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100368d0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10036a0b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10036a27
mov dword [ebp - 8], 9
cmp dword [0x1004f8f4], 0
je 0x10036a22
jmp 0x10036999
jmp 0x10036990
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10036a4e
mov dword [ebp - 8], 9
cmp dword [0x1004f8f4], 0
je 0x10036a49
jmp 0x10036999
jmp 0x10036990
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10036a79
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10036990
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1004f90c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1004f90c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10036ad0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1004f8fc], eax
je 0x10036aed
mov eax, 0x10dd
jmp 0x10036bd0
mov eax, dword [0x1004f90c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10036b6c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10036b48
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10036b48
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10035970
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10037fd9
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10036af5
mov dword [0x1004f90c], 0
call fcn.10036250
mov ecx, dword [0x1004f908]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10036bba
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10037fd9
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10036b84
mov dword [0x1004f908], 0
mov dword [0x1004f8fc], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100370b0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1004f900], 0
je 0x100370c9
mov eax, dword [0x1004f900]
jmp 0x10037168
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x100370da
xor eax, eax
jmp 0x10037168
push 8
call fcn.10037fa6
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10037132
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003711b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10037fd9
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1004f900], eax
mov dword [0x1004f904], 0
mov eax, dword [ebp - 8]
jmp 0x10037168
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003714a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x100370fa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1004f908]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1004f908], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x44d7d3
Capabilities:
Encode data using xor

Disassembly:
rol dword [0x614153d4], 0x8b
push ecx
ror ah, cl
sbb eax, 0x47e95b23
js 0x44d858
mov ah, 0xd
adc byte [ebx + 0x72], dh
invalid

Function at 0x44f752
Capabilities:
Encode data using xor

Disassembly:
fimul word [esi - 0x4541ca28]
fmul dword [esi + edi*8]
push edi
pop edi
mov gs, word [edx + 0x1901e5e0]
ficom word [ecx + 0x71]
lcall 0x32d3, 0xfbb91489
push 0xffffffffffffffdf
dec ebx
dec eax
xor dh, bl
push ebx
push edx
psubd mm4, mm6
push eax
cmp esi, 0xffffff91
leave
xchg edx, esi
or eax, 0x327b10d1
push cs
pop ds
test al, 0x8f
dec edi
xchg edi, eax
stc
dec ecx
das
aaa
mov esp, dword [ecx]
inc ecx
loopne 0x44f770
mov dword [0xe383e68d], eax
mov eax, 0x79b7053c
ret 0x47ae

Function at 0x627d11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6313c0
cmp edx, dword [eax]
je 0x627d33
add eax, 8
inc ecx
cmp eax, 0x631450
jl 0x627d24
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6313c0]
jne 0x627e61
add byte [eax], al
Function at 0x409dcd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410360
cmp edx, dword [eax]
je 0x409def
add eax, 8
inc ecx
cmp eax, 0x4103f0
jl 0x409de0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410360]
jne 0x409f1d
mov eax, dword [0x410cb4]
cmp eax, 1
je 0x409ef7
test eax, eax
jne 0x409e20
cmp dword [0x410070], 1
je 0x409ef7
cmp edx, 0xfc
je 0x409f1d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409e57
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b780
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040acd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409e9a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040acd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40fc6c
push edi
call fcn.0040bf20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b780
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b790
lea eax, [ebp - 0xa0]
push 0x40fa58
push eax
call fcn.0040b790
push dword [esi + 0x410364]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b790
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040be93
add esp, 0x2c
pop edi
jmp 0x409f1d
lea eax, [ebp + 8]
lea esi, [esi + 0x410364]
push 0
push eax
push dword [esi]
call fcn.0040acd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42c0e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x42c102
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42c109
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42c0f8
mov eax, 1
add ebx, ebx
jne 0x42c11b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42c110
jne 0x42c12c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c110
xor ecx, ecx
sub eax, 3
jb 0x42c140
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42c1b2
mov ebp, eax
add ebx, ebx
jne 0x42c14b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42c158
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42c17c
inc ecx
add ebx, ebx
jne 0x42c168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42c15d
jne 0x42c179
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c15d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42c19c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42c18d
jmp 0x42c0fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42c19c
add edi, ecx
jmp 0x42c0fe
pop esi
mov edi, esi
mov ecx, 0xa95
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42c1ba
cmp byte [edi], 0xa
jne 0x42c1ba
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 0x42c1bf
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42c22e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c0c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42c1ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c0cc]
or eax, eax
je 0x42c228
mov dword [ebx], eax
add ebx, 4
jmp 0x42c209
call dword [esi + 0x2c0d4]
mov ebp, dword [esi + 0x2c0d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x42c262
sub esp, 0xffffff80
jmp 0x40e266
Function at 0x4094a9
Capabilities:
Parse pe header

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

Function at 0x410d84
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e648
push 0x41e640
push str.FlsAlloc
push 0x1f
call fcn.00410c43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410db8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d124]
call esi
jmp 0x410dbe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410e02
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e658
push 0x41e650
push str.FlsGetValue
push 0x21
call fcn.00410c43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410e39
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x410e41
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41e660
push 0x41e658
push str.FlsSetValue
push 0x22
call fcn.00410c43
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410e7b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41437a
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 0x414417
push ebx
push esi
call fcn.00414343
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.004142d7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4143c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x414416
push edi
push eax
call fcn.0041074c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4143e4
call fcn.00410712
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x414415
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004142d7
add esp, 0x20
test eax, eax
jne 0x414403
push edi
call fcn.00410712
jmp 0x41440b
push ebx
call fcn.00410712
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 0x41c4d0
Capabilities:
Parse pe header

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

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130