joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419bf3
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 + 0x489148]
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 0x419c33
cmp byte [ebx], 0xa
jne 0x419c33
or byte [eax + edi + 0x28], 4
jmp 0x419c38
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419d36
mov al, byte [edx]
cmp al, 0x1a
je 0x419d18
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419c67
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419c8c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419c96
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 0x419c49
jmp 0x419d36
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 0x419d13
cmp dword [ebp - 0xc], 0
je 0x419d13
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x489148]
test byte [eax + edi + 0x28], 0x48
je 0x419ced
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419cd8
mov byte [esi], dl
jmp 0x419ce9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x489148]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419d36
cmp byte [ebp - 1], 0xa
jne 0x419cfc
cmp esi, ebx
jne 0x419cfc
mov byte [esi], 0xa
jmp 0x419d35
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419d36
mov byte [esi], 0xd
jmp 0x419d35
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x489148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419d32
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419d36
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419d3f
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 + 0x489148]
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 0x419d82
cmp word [esi], dx
jne 0x419d82
or byte [edi + eax + 0x28], 4
jmp 0x419d87
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 0x419eda
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 0x419eba
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419dc9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419dff
cmp eax, edx
jae 0x419e0b
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 0x419da1
jmp 0x419eda
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 0x419eb6
cmp dword [ebp - 0x14], 0
je 0x419eb6
mov eax, dword [ebx*4 + 0x489148]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419e8e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419e57
mov word [esi], cx
jmp 0x419e8a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x489148]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x489148]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x489148]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419eda
pop ebx
cmp word [ebp - 4], bx
jne 0x419e9f
cmp esi, dword [ebp + 0xc]
jne 0x419e9f
mov word [esi], bx
jmp 0x419ed7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a773
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419eda
push 0xd
jmp 0x419ed3
mov ecx, dword [ebx*4 + 0x489148]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419ed1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419eda
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 0x7dacf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e0000]
push edi
or ebp, 0xffffffff
jmp 0x7dad12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7dad19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7dad08
mov eax, 1
add ebx, ebx
jne 0x7dad2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7dad3c
jne 0x7dad5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7dad5b
dec eax
add ebx, ebx
jne 0x7dad48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7dad20
add ebx, ebx
jne 0x7dad57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7dadad
xor ecx, ecx
sub eax, 3
jb 0x7dad73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7dade2
sar eax, 1
mov ebp, eax
jmp 0x7dad7e
add ebx, ebx
jne 0x7dad7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7dad4c
inc ecx
add ebx, ebx
jne 0x7dad8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7dad4c
add ebx, ebx
jne 0x7dad99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7dad8e
jne 0x7dadaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7dad8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7dadcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7dadbe
jmp 0x7dad0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7dadcc
add edi, ecx
jmp 0x7dad0e
pop esi
mov edi, esi
mov ecx, 0xe0d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7dadea
cmp byte [edi], 0x9a
jne 0x7dadea
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 0x7dadef
lea edi, [esi + 0x3d6000]
mov eax, dword [edi]
or eax, eax
je 0x7dae5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x421978]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x421aa4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7dae1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x421aa8]
or eax, eax
je 0x7dae58
mov dword [ebx], eax
add ebx, 4
jmp 0x7dae39
call dword [esi + 0x421ab8]
mov ebp, dword [esi + 0x421aac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x7dae92
sub esp, 0xffffff80
jmp 0x675374
Function at 0x401170
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x52ad66
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x55c4c8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
lea ecx, [esi + 0x14]
xor ebx, ebx
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [esp + 0x18], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
or eax, 0xffffffff
mov byte [esp + 0x18], 1
push ebx
push 0x5331a8
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call fcn.00403ac0
push ebx
push 0x5331a8
mov ecx, edi
call fcn.00403ac0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x404140
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x52ad2b
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x55c4c8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
lea eax, [edi + 0x14]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004037d0
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], ebx
lea eax, [edi + 0x30]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004037d0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x404c40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52a386
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x1ac], eax
push esi
push edi
mov eax, dword [0x55c4c8]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, ecx
mov ecx, str.itemselect
jmp 0x404c90
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404cb6
test dx, dx
je 0x404cb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404cb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x404c90
xor eax, eax
jmp 0x404cbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404e52
cmp dword [edi + 0x85c], eax
je 0x404e52
mov eax, dword [edi + 0x858]
mov edx, dword [eax + 0x6a4]
lea ecx, [eax + 0x6a4]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x858]
mov dword [edi + 0x854], eax
mov edx, dword [ecx + 0x64c]
add ecx, 0x64c
push eax
mov eax, dword [edx]
call eax
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x118]
push 0
push str.ItemUrl
push 0x4b1770
mov ecx, esi
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x12c]
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x1c8], 0
mov eax, dword [0x6210b4]
mov ecx, dword [eax + 0x11ec]
mov edx, dword [ecx]
mov eax, dword [esp + 0x12c]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov eax, dword [esp + 0x12c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d66
mov ecx, dword [0x6210b4]
mov ecx, dword [ecx + 0x11ec]
mov ecx, dword [ecx + 0x734]
sub eax, edx
sar eax, 1
test ecx, ecx
je 0x404d9d
mov ecx, dword [ecx + 4]
push 0xffffffffffffffff
push eax
push 0xb1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x10]
mov dword [esp + 0xc], edx
xor eax, eax
lea ecx, [esp + 0x94]
xor edx, edx
mov word [esp + 0x10], ax
mov dword [esp + 0x90], ecx
mov word [esp + 0x94], dx
push 0xffffffffffffffff
push str.return
lea esi, [esp + 0x14]
mov byte [esp + 0x1d0], 1
call fcn.004b50c0
mov eax, dword [0x6210b4]
mov ecx, dword [eax + 0x11ec]
mov dword [esp + 0x114], ecx
mov edx, dword [eax + 0x20]
mov edx, dword [edx]
lea ecx, [eax + 0x20]
mov eax, esi
push eax
call edx
mov eax, dword [edi - 0xc]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x94]
cmp eax, ecx
je 0x404e22
push eax
call fcn.0050a8b9
add esp, 4
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
cmp eax, edx
je 0x404e37
push eax
call fcn.0050a8b9
add esp, 4
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x130]
cmp eax, ecx
je 0x404e52
push eax
call fcn.0050a8b9
add esp, 4
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.0050a231
mov esp, ebp
pop ebp
ret 4
Function at 0x4077a0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ecx
push edi
push 0
push 0
push 0
push 0
push 0x5339d4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x40781b
push ebx
push esi
push 0
push 0x4000000
push 0
push 0
push str.http:__pro.52icafe.com_quickpage_bookmark.js
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, eax
test esi, esi
je 0x407816
push str.http:__pro.52icafe.com_quickpage_bookmark.js
push 0x5339e4
call fcn.0050a896
mov ecx, dword [esp + 0x1c]
add esp, 8
lea eax, [esp + 0xc]
push eax
push 0x8ff
add ecx, 0x18
push ecx
push esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.WININET.dll_InternetReadFile]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
pop ecx
ret 4

Function at 0x408b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408b6d
pop edi
pop ebp
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408ba4
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408ba0
lea ebx, [ebx]
cmp esi, eax
jae 0x408ba4
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x408b90
cmp esi, eax
jb 0x408bab
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x40a7a0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
push 0x2b4
lea eax, [esp + 8]
push 0
push eax
mov esi, ecx
call fcn.0050e6a0
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x40a7d6
mov esi, dword [esi + 4]
jmp 0x40a7d9
add esi, 4
xor ecx, ecx
cmp dword [esp + 0x2c0], ecx
lea edx, [esp + 4]
sete cl
or ecx, 0x100
push ecx
push 0x2b4
push edx
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [esp + 0x2b8]
neg eax
sbb eax, eax
and eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.0050a231
add esp, 0x2b8
ret
Function at 0x40a820
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x2c0], eax
push esi
push 0x2b4
lea eax, [esp + 0x14]
push 0
push eax
mov esi, ecx
call fcn.0050e6a0
add esp, 0xc
push 1
lea ecx, [esp + 8]
push ecx
mov eax, esi
mov dword [esp + 0xc], 0x2e
call fcn.0040afc0
cmp eax, 0xffffffff
je 0x40a88b
cmp dword [esi + 0x18], 8
jb 0x40a871
mov esi, dword [esi + 4]
jmp 0x40a874
add esi, 4
push 0x4000
push 0x2b4
lea edx, [esp + 0x18]
push edx
push 0x80
push esi
jmp 0x40a8b3
lea eax, [esp + 4]
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 4]
push 0x4008
push 0x2b4
lea ecx, [esp + 0x18]
push ecx
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
xor ecx, ecx
cmp dword [esp + 0x2cc], ecx
lea eax, [esp + 0xc]
setne cl
push eax
push 0x53081c
mov dword [esp + 0x14], 0
lea ecx, [ecx + ecx + 2]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetImageList]
mov dword [esp + 8], 0
pop esi
test eax, eax
jne 0x40a920
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.0050a231
add esp, 0x2c4
ret
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
xor eax, eax
call fcn.0050a231
add esp, 0x2c4
ret
Function at 0x40dac0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x28], 8
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], 0xc
jae 0x40dae3
lea eax, [esp + 0x14]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x2c], 8
mov esi, eax
jb 0x40db06
mov edx, dword [esp + 0x18]
push edx
call fcn.0050a226
add esp, 4
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x40e860
Capabilities:
Create thread

Disassembly:
sub esp, 0x138
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x13c]
push ebx
push ebp
push esi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40e96e
mov ecx, dword [edi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test eax, eax
mov eax, dword [edi + 0x1060]
je 0x40e8c8
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
lea ecx, [eax + edx]
mov dword [esp + 0x24], ecx
sub esi, eax
jmp 0x40e8f5
sub esi, dword [edi + 0x105c]
sub ebx, dword [edi + 0x1058]
mov ecx, dword [edi + 0x1054]
mov ebp, dword [edi + 0x1050]
sub esi, ecx
sub ebx, ebp
sub ebx, dword [esp + 0xc]
lea edx, [ecx + eax]
sub esi, eax
sub esi, dword [esp + 0x10]
mov dword [esp + 0x24], edx
push 0x103
lea eax, [esp + 0x35]
push 0
push eax
mov byte [esp + 0x3c], 0
call fcn.0050e6a0
mov ecx, dword [esp + 0x30]
push esi
push ebx
push ecx
push ebp
lea edx, [esp + 0x4c]
push str.left:_d_top:_d_right:_d_bottom:_d
push edx
call fcn.0050a7b8
mov esi, dword [esp + 0x40]
add esp, 0x24
push esi
call fcn.0041c090
mov edx, dword [esp + 0x14c]
lea ecx, [esp + 0x30]
push ecx
push edx
mov edx, esi
mov ecx, eax
call fcn.0041d5c0
cmp dword [edi + 0x1180], 0
je 0x40e96e
mov eax, dword [edi + 0xfa0]
mov ecx, dword [eax + 0xeac]
push 0
push 0
push ecx
push 0x413350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x13c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0050a231
add esp, 0x138
ret 8
Function at 0x412ab0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x52e600
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55c4c8]
xor eax, esp
push eax
lea eax, [esp + 0x2fc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30c]
mov edi, edx
mov dword [esp + 0x4c], eax
jmp dword [ecx*4 + 0x41330c]

Function at 0x413330
Capabilities:
Create thread

Disassembly:
push 0
push 0
push eax
push 0x413350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x418970
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0xec0]
push edi
push 0
push eax
mov dword [esi], vtable.COptionUIEx.0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [esi + 0x164]
push 0xc8
push esi
call fcn.004b0350
mov eax, dword [esi + 0xec8]
lea ecx, [esi + 0xecc]
pop edi
cmp eax, ecx
je 0x4189b1
push eax
call fcn.0050a8b9
add esp, 4
mov eax, dword [esi + 0xea4]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4189d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0xea0]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4189f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0xe9c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418a17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0xe98]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418a39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0xe94]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418a5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp fcn.004b5f70
Function at 0x41c640
Capabilities:
Create pipe
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [0x623510]
push 0
push 0xbb8
push 0x1000
push 0x1000
push 0xff
push 6
push SysStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41c67e
pop esi
or eax, eax
pop ebx
ret 4
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c683
sub eax, edx
push eax
push edi
lea ecx, [esi + 0x10]
call fcn.00403ac0
mov eax, ebx
lea edx, [eax + 1]
jmp 0x41c6a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c6a0
sub eax, edx
push eax
push ebx
lea ecx, [esi + 0x2c]
call fcn.00403ac0
push 0
push 0
push esi
push 0x41c6e0
push 0
push 0
call fcn.0050c4bf
add esp, 0x18
mov dword [esi + 8], eax
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x41cf10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [esi + 4], 0xffffffff
jne 0x41cf47
cmp dword [esi + 0x44], 0x10
jb 0x41cf22
mov eax, dword [esi + 0x30]
jmp 0x41cf25
lea eax, [esi + 0x30]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x41cf47
or eax, eax
pop ecx
ret
mov eax, edi
mov dword [esp], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41cf53
push 0
lea ecx, [esp + 4]
push ecx
sub eax, edx
mov edx, dword [esi + 4]
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
pop ecx
ret

Function at 0x41d290
Capabilities:
Create pipe
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push 0
push 0xbb8
push 0x1000
push 0x1000
push 0xff
push 6
push SysStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41d2c6
or eax, eax
pop ebx
ret 4
mov eax, edi
lea edx, [eax + 1]
jmp 0x41d2d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d2d0
sub eax, edx
push eax
push edi
lea ecx, [esi + 0x10]
call fcn.00403ac0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d2e8
sub eax, edx
push eax
push ebx
lea ecx, [esi + 0x2c]
call fcn.00403ac0
push 0
push 0
push esi
push 0x41d320
push 0
push 0
call fcn.0050c4bf
add esp, 0x18
mov dword [esi + 8], eax
xor eax, eax
pop ebx
ret 4
Function at 0x41e360
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test edi, edi
jne 0x41e36f
push 0x80004005
call fcn.00408a90
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edi
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x41e3d8
mov ecx, dword [edi]
test ecx, ecx
jbe 0x41e3d3
mov edx, dword [esp]
test edx, edx
jbe 0x41e3f9
cmp edx, 2
jbe 0x41e3dc
cmp edx, 7
jne 0x41e3f9
test cl, 1
jne 0x41e3ce
shr ecx, 1
cmp ecx, 1
jb 0x41e3ce
cmp word [esi + ecx*2 - 2], 0
jne 0x41e3ce
cmp ecx, 1
jbe 0x41e3d8
cmp word [esi + ecx*2 - 4], 0
je 0x41e3d8
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
pop ecx
ret 8
test cl, 1
jne 0x41e3eb
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41e3d8
xor edx, edx
mov word [esi], dx
mov eax, 0xd
pop ecx
ret 8
xor eax, eax
mov word [esi], ax
mov eax, 0xd
pop ecx
ret 8