joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e060
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48e329
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
call fcn.0043e9ec
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42e0ad
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x24], edi
push edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x42e14b
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x42e105
push 0x104
mov ecx, esi
call fcn.00401de0
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp eax, edi
jne 0x42e120
xor eax, eax
jmp 0x42e12e
push ecx
push eax
call fcn.0045d3d2
add esp, 8
cmp eax, edi
jl 0x42e15f
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x42e15f
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push 0x80070057
call fcn.004010b0
int3

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

Disassembly:
push 0xffffffffffffffff
push 0x48e498
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x42e1b4
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401eb0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
setne cl
mov esi, ecx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0045d3d2
add esp, 8
test eax, eax
jl 0x42e22b
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x42e22b
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e218
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
push 0x80070057
call fcn.004010b0
int3
Function at 0x42ee90
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, edx
push edi
mov edi, eax
test esi, esi
je 0x42ef9b
test edi, edi
jle 0x42ef9b
cmp edi, 3
jl 0x42ef35
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
push ebx
jmp 0x42eed0
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x4a2c60]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + 0x4a2c60]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + 0x4a2c60]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x4a2c60]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x42eed0
pop ebx
test edi, edi
jle 0x42ef93
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + 0x4a2c60]
mov byte [ecx], al
mov al, byte [esi]
and al, 3
inc ecx
shl al, 4
cmp edi, 1
jle 0x42ef5d
mov dl, byte [esi + 1]
shr dl, 4
or al, dl
movzx eax, al
mov dl, byte [eax + 0x4a2c60]
mov byte [ecx], dl
inc ecx
cmp edi, 2
jge 0x42ef7e
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], al
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
movzx eax, byte [esi + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x4a2c60]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x42f130
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x42f13d
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x42f139
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x42f030
push 0
push 0
call fcn.0045eedd
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x42f192
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x42f182
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x42f1b4
mov esi, dword [edi]
call fcn.0042f0c0
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret
Function at 0x430f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x430f37
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x431014
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a2860]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4a2860]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x4a2860]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a2860]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a2860]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a2860]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a2860]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a2860]
inc ecx
sub edx, 8
sub esi, 1
jne 0x430f50
pop edi
test edx, edx
je 0x43103b
jmp 0x431020
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4a2860]
inc ecx
sub edx, 1
jne 0x431020
not eax
pop esi
ret

Function at 0x431040
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a2860]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a2860]
mov dword [edx + 8], ecx
ret

Function at 0x431090
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4a2860]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4a2860]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4317f0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x431822
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x431818
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x431835
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00466330
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x431850
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x431883
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43187d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4318af
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x431895
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00466330
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4318c6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4318c0
cmp byte [esi + 8], 0
je 0x4318c0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4319b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x4319f5
cmp byte [esi + 1], 0
je 0x4319fd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x431a12
cmp byte [esi + 1], 0
je 0x431a04
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x431a1b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4319ce
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x431a1b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x431a2f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0045d939
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x431a4d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x431b61
jmp 0x431a70
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x431a81
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x431a9a
mov ebp, 0x404
cmp byte [esi], 0
je 0x431abf
cmp byte [esi + 1], 0
je 0x431b61
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x431ac2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x431aea
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x431ae4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x431b10
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x431afb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00466330
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x431b61
lea eax, [ebp - 3]
test eax, eax
jl 0x431b4c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x431b3c
cmp byte [eax + ebx + 1], 0x4b
jne 0x431b3c
cmp byte [eax + ebx + 2], 5
jne 0x431b3c
cmp byte [eax + ebx + 3], 6
je 0x431b42
test eax, eax
jge 0x431b20
jmp 0x431b4c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x431b61
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x431a64
push ebx
call fcn.0045d85c
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x432490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4324a8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x43249d
cmp dword [edi + 0x7c], ebx
je 0x4324b7
call fcn.00432880
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00432200
add esp, 0xc
test eax, eax
je 0x4324dd
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.0045d939
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x43251f
push 0x4000
call fcn.0045d939
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x43252b
push ebp
call fcn.0045d85c
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x432574
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.00431300
test eax, eax
jne 0x432574
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x43259e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x4325a7
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x4325e4
mov cl, byte [esi]
cmp cl, bl
je 0x4325e4
call fcn.00431040
add esi, 1
jne 0x4325d4
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x432980
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x432a21
cmp dword [esi + 4], 0xffffffff
jne 0x432a21
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4329b0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4329e9
cmp ax, 0x2f
je 0x4329e9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4329d6
mov eax, dword [0x49a9b0]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00431750
add esp, 4
test eax, eax
jne 0x432a07
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.00431b80
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x433020
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4b5a50]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x433060
push esi
call ebp
cmp eax, 0xffffffff
jne 0x433060
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x433146
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x43307f
cmp ax, 0x5c
jne 0x433081
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x433073
push edi
cmp ecx, ebx
je 0x4330c4
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.00466330
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00433020
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x4330ef
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x4330e0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4330e0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4330f3
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x433110
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x433110
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x433146
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045ceb0
add esp, 0x414
ret
Function at 0x4363e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4363f0
xor al, al
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
ret

Function at 0x436790
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x400000
jbe 0x4367a0
mov eax, 0x400000
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
push edx
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
test eax, eax
setne al
test ecx, ecx
je 0x4367d6
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
test al, al
je 0x4367df
xor eax, eax
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4367f1
mov eax, 0x80004005
ret 0x10
jle 0x4367fd
and eax, 0xffff
or eax, 0x80070000
ret 0x10

Function at 0x4368b0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 8]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4368d8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x436900
mov eax, dword [esp + 0xc]
push 1
push 0
push 0
push eax
call fcn.00464990
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [esp + 0x10]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop esi
ret 8
call edi
test eax, eax
jne 0x436910
pop edi
mov eax, 0x80004005
pop esi
ret 8
jle 0x43691c
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
ret 8

Function at 0x436930
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
cmp eax, 0x400000
jbe 0x436940
mov eax, 0x400000
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x10]
setne dl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
test ecx, ecx
je 0x43697f
mov dword [ecx], eax
test dl, dl
je 0x436988
xor eax, eax
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43699a
mov eax, 0x80004005
ret 0x10
jle 0x4369a6
and eax, 0xffff
or eax, 0x80070000
ret 0x10
Function at 0x437cc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48dd83
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b5a50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0047a26b
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x437d11
mov eax, dword [esi + 0x1c]
push eax
call fcn.0043e229
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x440b46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x440b8e
call fcn.0044255a
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 0x440b8e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x440bd1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x440bba
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 0x440bba
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x440bce
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 0x442fc7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x48ba63
call fcn.00463080
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x442fec
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x443032
lea ecx, [ebp - 0x10]
call fcn.004015d0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00440503
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401180
mov eax, esi
call fcn.00463158
ret 8

Function at 0x448a8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x448ad1
call fcn.0044255a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x448ad1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x448aed
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00448602
mov esi, eax
test edi, edi
je 0x448aeb
test ebx, ebx
je 0x448aeb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4