joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5baa68
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5baa7f
add esp, 0xfffffff0
call fcn.00407f70
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004bd498
mov eax, dword [0x5daab8]
cmp byte [eax], 0
jne 0x5baaac
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x5dae00]
cmp word [eax + 2], 0
jne 0x5baac6
mov eax, dword [0x5dae00]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005bcd3c
mov eax, dword [0x5daf30]
cmp word [eax + 2], 0
jne 0x5baae0
mov eax, dword [0x5daf30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005bcf40
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4ece4c]
call fcn.004f2f9c
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5bd4b8
mov dl, 1
mov eax, dword [0x4862b4]
call fcn.004078d4
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x4862b4]
call fcn.004078d4
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4f1874]
call fcn.004fc5ac
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5bacc8
mov eax, dword [0x5dacac]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004fca44
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5bd7a0
mov dl, 1
mov eax, dword [0x4862b4]
call fcn.004078d4
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5dacac]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004238b4
test eax, eax
je 0x5babfa
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004236f0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00423898
test eax, eax
je 0x5bac12
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a268
push ebx
push 0x5bc718
call fcn.005b02fc
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x5daab8]
cmp byte [eax], 0
jne 0x5bac63
mov eax, ebx
call fcn.005baeac
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005bd9d8
mov eax, ebx
call fcn.005be644
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5bacc0
call fcn.00407fc8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bb1f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5bb292
cmp dword [ebx + 0xac], 0
jne 0x5bb28c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5bb12c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5bb28c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5bb252
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5bb28c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.004a847c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5bb261
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5bb4d0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x5e1750]
cmp dword [eax + 0x188], 0
je 0x5bb64a
test bl, bl
jne 0x5bb595
cmp dword [esi + 0xb4], 0
jne 0x5bb58a
mov eax, esi
call fcn.005be494
push eax
push 0x5bb3c4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5bb55b
mov eax, dword [0x5e1750]
cmp byte [eax + 0xeb], 0
je 0x5bb55b
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x5bb53c
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5bb55b
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5bb544
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5bb58a
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004a847c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5bb56a
inc dword [esi + 0xb4]
jmp 0x5bb64a
cmp dword [esi + 0xb4], 0
jle 0x5bb64a
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5bb64a
cmp dword [esi + 0x58], 0
je 0x5bb5ff
mov eax, dword [0x5e1750]
cmp byte [eax + 0xeb], 0
je 0x5bb5ff
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5bb5e0
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5bb5ff
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5bb5e8
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5bb62e
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004a847c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5bb60e
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5ad15c]
call fcn.0040b764
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5bc2a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5bc301
cmp byte [ebx + 0xeb], 0
jne 0x5bc301
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040980c
mov eax, dword [esi]
test eax, eax
je 0x5bc2ee
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5bc30e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409a64
jmp 0x5bc30e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409a64
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5bdbc0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5bdc31
mov eax, esi
call fcn.0051ec90
test al, al
je 0x5bdc31
mov eax, dword [ebx + 0x98]
call fcn.0051e8c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5bdc31
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x118]
test al, al
je 0x5bdc22
push 0
mov eax, dword [ebx + 0x98]
call fcn.0051e8c0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.005154dc
jmp 0x5bdc31
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.005bd9f8
pop esi
pop ebx
ret
Function at 0x5c2500
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5c257a
mov eax, dword [ebx + 8]
call fcn.0051e8c0
mov ecx, eax
mov dl, 1
mov eax, dword [0x52ae3c]
call fcn.00518be8
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.0052f5ec
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5c1df8
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0051e8c0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0051e8c0
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5c25f0
mov eax, dword [ebx + 8]
call fcn.0051e8c0
mov ecx, eax
mov dl, 1
mov eax, dword [0x52ae3c]
call fcn.00518be8
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.0052f5ec
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5c1e44
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0051e8c0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0051e8c0
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5c265c
mov eax, dword [ebx + 8]
call fcn.0051e8c0
mov ecx, eax
mov dl, 1
mov eax, dword [0x52b8bc]
call fcn.00518be8
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x290], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0051e8c0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0051e8c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x40ca80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40caa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40caa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ca98
mov eax, 1
add ebx, ebx
jne 0x40cabb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40cab0
jne 0x40cacc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cab0
xor ecx, ecx
sub eax, 3
jb 0x40cae0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40cb52
mov ebp, eax
add ebx, ebx
jne 0x40caeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40caf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40cb1c
inc ecx
add ebx, ebx
jne 0x40cb08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40cafd
jne 0x40cb19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40cafd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40cb3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40cb2d
jmp 0x40ca9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40cb3c
add edi, ecx
jmp 0x40ca9e
pop esi
mov edi, esi
mov ecx, 0x169
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40cb5a
cmp byte [edi], 1
jne 0x40cb5a
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 eax, ebx
loop 0x40cb5f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40cbce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd31c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd3a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40cb8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd3ac]
or eax, eax
je 0x40cbc8
mov dword [ebx], eax
add ebx, 4
jmp 0x40cba9
call dword [esi + 0xd3b0]
popal
jmp section.UPX0
Function at 0x4172c2
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call fcn.00427138
sub esp, 0xc
mov eax, dword [ebp - 0xc]
movzx edx, byte [ebp - 0x10]
mov byte [eax + 0xc], dl
mov dword [esp], str.ECSIMPORT
call sub.msvcrt.dll_getenv
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, 0x14
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov dword [esp + 4], 0
mov dword [esp], edx
mov ecx, eax
call fcn.00411266
sub esp, 8
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [esp], 1
mov ecx, eax
call fcn.00414f6c
sub esp, 4
mov eax, dword [ebp - 0xc]
add eax, 0x20
mov ecx, eax
call fcn.0056a9fc
mov eax, dword [ebp - 0xc]
add eax, 0x2c
mov ecx, eax
call fcn.0056ba00
nop
leave
ret 0x10
Function at 0x456ff6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, al
cmp dword [ebp - 4], eax
jne 0x457015
mov eax, dword [ebp - 4]
jmp 0x45711a
mov eax, dword [ebp - 4]
and eax, 0xff00ff
cmp dword [ebp - 4], eax
jne 0x457042
mov eax, dword [ebp - 4]
shr eax, 0x10
mov edx, eax
mov eax, dword [ebp - 4]
movzx eax, al
cmp edx, eax
jne 0x457042
mov eax, dword [ebp - 4]
movzx eax, al
or ah, 0x10
jmp 0x45711a
mov eax, dword [ebp - 4]
and eax, 0xff00ff00
cmp dword [ebp - 4], eax
jne 0x457074
mov eax, dword [ebp - 4]
shr eax, 0x10
mov edx, eax
mov eax, dword [ebp - 4]
and eax, 0xff00
cmp edx, eax
jne 0x457074
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
or ah, 0x20
jmp 0x45711a
mov eax, dword [ebp - 4]
shr eax, 8
xor eax, dword [ebp - 4]
movzx eax, al
test eax, eax
jne 0x4570a1
mov eax, dword [ebp - 4]
shr eax, 0x10
mov edx, eax
mov eax, dword [ebp - 4]
movzx eax, ax
cmp edx, eax
jne 0x4570a1
mov eax, dword [ebp - 4]
movzx eax, al
or ah, 0x30
jmp 0x45711a
mov dword [ebp - 8], 0x1f
jmp 0x4570de
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
jne 0x4570c7
shr dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x4570c7
sub dword [ebp - 8], 1
cmp dword [ebp - 8], 7
jne 0x4570ce
mov eax, 1
jmp 0x4570d3
mov eax, 0
test al, al
je 0x4570de
mov eax, 0x100
jmp 0x45711a
mov eax, dword [ebp - 4]
and eax, 0x1fe
cmp dword [ebp - 4], eax
jne 0x4570aa
mov eax, dword [ebp - 8]
shl eax, 0x16
and eax, 0x4000000
mov edx, eax
mov eax, dword [ebp - 8]
shl eax, 0xb
and eax, 0x7000
or edx, eax
mov eax, dword [ebp - 8]
shl eax, 7
movzx eax, al
or edx, eax
mov eax, dword [ebp - 4]
shr eax, 1
and eax, 0x7f
or eax, edx
leave
ret

Function at 0x489890
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00498660
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00498660
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x4898f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x69648c]
test esi, esi
jle 0x489a10
mov eax, dword [0x696490]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x489924
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4899a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x489910
mov dword [esp], ebx
call fcn.0048a2e0
mov edi, eax
test eax, eax
je 0x489a37
mov eax, dword [0x696490]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0048a420
mov edx, dword [0x696490]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x489a17
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4899a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4899b0
add dword [0x69648c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x696490]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4899a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00489890
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x48992e
mov eax, dword [0x696490]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00489890
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00489890
lea esi, [esi]
nop

Function at 0x489f50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6964a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6964a0]
sub esp, 4
test ebx, ebx
je 0x489fa5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x489f9e
test esi, esi
je 0x489f9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x489f80
mov dword [esp], 0x6964a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x48a2e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x48a305
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x48a310
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x48a305
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x48a358
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x48a34e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x48a35a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x48a340
xor eax, eax
pop ebx
pop esi
ret

Function at 0x48f390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x220
mov ebx, dword [esp + 0x230]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x48f510
cmp word [ebx], 0
je 0x48f4f0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x48f520
test al, 0x10
je 0x48f4f0
lea esi, [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x5c5aa0
mov ebx, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x5c5aa4
add ebx, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 0x21d]
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x48f52f
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x48f4a8
mov dword [esp], edi
mov dword [esp + 4], 0x5c5aa4
call sub.msvcrt.dll_wcscat
lea edx, [ebx + 0x224]
xor eax, eax
mov ecx, 0x82
mov dword [ebx + 0x42c], 0xffffffff
mov edi, edx
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
mov dword [ebx + 0x220], 0
rep stosd dword es:[edi], eax
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x48f44d
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x48f44d
mov dword [esp + 4], 0x5c5aa0
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x48f44d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xe
jmp 0x48f4fd
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x48f4fd
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x48f4fd
Function at 0x49ad60
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x49ae3b
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x49ae0d
cmp eax, 0x6a
je 0x49ae2a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x49ae08
cmp eax, 0x6a
je 0x49ae2a
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x49ae20

Function at 0x49b1c0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x697014], 1
je 0x49b278
push edi
mov eax, 0x697014
push esi
push ebx
sub esp, 0x10
call fcn.0049ab40
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.0049a3c0
mov edi, dword [0x697014]
test edi, edi
jne 0x49b230
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5b316c], eax
cmp eax, 0xffffffff
je 0x5a593d
mov dword [0x697014], 1
mov dword [esp], esi
call fcn.0049a700
test ebx, ebx
je 0x49b26a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0049ae50
cmp edi, 1
je 0x49b212
mov dword [esp], 2
call dword [0x5b3158]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x697014
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.0049a700
test ebx, ebx
jne 0x49b21e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret