joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cad12
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5635bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x18], bl
push edi
je 0x4cad83
cmp dword [esi + 0x10], ebx
je 0x4cad83
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00473b30
cmp esp, ebx
mov dword [ebp - 8], esp
je 0x4cad83
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.004ba8fb
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004626fa
leave
ret 0x10

Function at 0x4cf2d3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x4cf33b
cmp dword [ebp + 8], 0x100
jne 0x4cf32a
cmp word [ebp + 0xc], 0xd
jne 0x4cf32a
cmp byte [esi + 0x4da], bl
je 0x4cf311
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4cf32a
cmp byte [esi + 0x4db], bl
jne 0x4cf32a
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x4cf326
push ebx
push ebx
push ebx
push str.return
push esi
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x4cf33e
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4dd02d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4dd038
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x4dd0f3
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529848]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529848]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529848]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529848]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529848]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529848]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529848]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529848]
inc edx
sub eax, 8
dec edi
jne 0x4dd058
pop edi
test eax, eax
je 0x4dd10c
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529848]
inc edx
dec eax
jne 0x4dd0f7
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x4dd5a5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4dd5d9
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4dd5d4
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4dd601
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4dd5ea
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004651e0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4de397
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5635bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4de440
movzx ecx, word [esi]
test cx, cx
je 0x4de440
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x4de3d5
cmp cx, 0x5c
jne 0x4de3d7
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4de3c9
cmp eax, esi
je 0x4de414
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004ef820
and word [ebp + edi*2 - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004de397
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0046456f
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00464545
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004626fa
leave
ret
Function at 0x4df971
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4df9ec
cmp dword [esi + 4], 0xffffffff
jne 0x4df9ec
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x538cec
push edi
call fcn.00464545
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x4df9be
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4df9be
mov eax, 0x2000000
jmp 0x4df9f1
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dd3bb
add esp, 0x10
test eax, eax
jne 0x4df9dc
mov eax, dword [ebp + 0x10]
jmp 0x4df9f1
push eax
call fcn.004df56d
mov dword [esi], eax
mov eax, dword [0x56a1e0]
pop ecx
jmp 0x4df9f1
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4e2830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x4e2855
cmp eax, edi
jge 0x4e284d
mov eax, esi
call fcn.004e2224
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x4e2877
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x4e285c
cmp ecx, 4
jge 0x4e2896
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4e2884
xor eax, eax
jmp 0x4e288c
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4e287a
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4e28c8
mov eax, str.zlib_corrupt
call fcn.004dfe5e
jmp 0x4e2903
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4e28d8
mov eax, str.read_past_buffer
jmp 0x4e28c1
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4e28ed
mov ecx, edi
call fcn.004e224f
test eax, eax
je 0x4e2903
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004651e0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x40153a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
call sub.KERNEL32.dll_GetTickCount
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
cmp byte [ebp - 0x104], 0
jne 0x4016a4
sbb al, 0x9c
pop es
add byte [edi + 0x5e], bl
pop ebx
pop ebp
ret 8
cmp byte [ebp - 0x104], 0
jne 0x4017f1
inc ebp
in al, dx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x44498f
push 0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetFileAttributesExA
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp dword [0x42406a], 0
je 0x40181c
mov ebx, edi
add ebx, edi
jmp 0x40181e
mov ebx, edi
mov esi, ebx
and esi, 0xffffffa8
or edi, edi
jne 0x40197b
test eax, eax
jne 0x5b334f
push dword [ebp + 0x10]
push edi
push esi
call fcn.004016d9
mov esi, eax
lea ecx, [ebp - 0x18]
call 0x44d3b6
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call 0x4b56f9
leave
ret 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b55
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], 0x9e3779b9
mov esi, edx
mov dword [ebp - 0x38], edi
lea ecx, [ebp - 8]
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
call fcn.00408a99
mov eax, dword [esi + 8]
add dword [ebp - 8], 0x23f
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x2d37274]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x408bdc
push 0x4010f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d37274]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d372b8]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x2d372b8], eax
mov eax, dword [0x2d372c0]
cmove eax, dword [ebp - 0x24]
mov dword [0x2d372c0], eax
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x2d372bc], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, edi
mov dword [ebp - 0x14], eax
xor eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec esi
jne 0x408ba4
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408cb6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x408cf4
cmp dword [0x2d37274], 0x959
jne 0x408ce4
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00408b55
add edi, 8
dec esi
jne 0x408cc6
pop edi
pop esi
pop ebp
ret 4
Function at 0x4123f1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x432900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00410f18
mov dword [ebp - 0x14], eax
cmp dword [0x2d38058], esi
jne 0x4124e4
push 0x800
push esi
push 0x4052ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x412471
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4125c4
push esi
push esi
push 0x4052ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4125c4
push 0x4052c4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4125c4
push eax
call ebx
push 0x4052d0
push edi
mov dword [0x2d38058], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4052e0
push edi
mov dword [0x2d3805c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4052f4
push edi
mov dword [0x2d38060], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d38068], eax
test eax, eax
je 0x4124e1
push 0x405310
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2d38064], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412509
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4124fc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41251e
push 4
pop eax
jmp 0x4125c6
cmp dword [ebp - 0x14], esi
je 0x41251e
push dword [0x2d38058]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x412503
mov eax, dword [0x2d38064]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41257c
cmp dword [0x2d38068], edi
je 0x41257c
push eax
call ebx
push dword [0x2d38068]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41257c
test eax, eax
je 0x41257c
call ecx
test eax, eax
je 0x412571
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x412571
test byte [ebp - 8], 1
jne 0x41257c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4125ac
mov eax, dword [0x2d3805c]
cmp eax, edi
je 0x4125a9
push eax
call ebx
test eax, eax
je 0x4125a9
call eax
mov esi, eax
test esi, esi
je 0x4125a9
mov eax, dword [0x2d38060]
cmp eax, edi
je 0x4125a9
push eax
call ebx
test eax, eax
je 0x4125a9
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2d38058]
call ebx
test eax, eax
je 0x4125c4
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4125c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b3ae
mov esp, ebp
pop ebp
ret
Function at 0x4039d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov eax, dword [0x44a0d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x20]
mov ecx, dword [edi + 0x24]
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
push dword [edi + 0x28]
call dword [eax + 0x10]
mov esi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0042a298
add esp, 0x10
cmp eax, esi
jne 0x403a44
cmp ebx, 1
je 0x4039ed
cmp ebx, 2
mov esi, 0xffffffff
je 0x403a47
mov eax, dword [ebp - 0x20]
push dword [eax + 0x20]
call fcn.00429f6a
add esp, 4
neg eax
sbb esi, esi
jmp 0x403a47
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419315
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403a5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x403a80
push dword [ecx + 0x20]
push esi
push 1
push eax
call fcn.0042a298
add esp, 0x14
jmp 0x403aad
test esi, esi
jle 0x403aa6
xor edi, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov ebx, eax
movzx eax, byte [eax + edi]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp eax, 0xffffffff
je 0x403aa8
inc edi
mov eax, ebx
cmp edi, esi
jl 0x403a89
jmp 0x403aa8
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x403ab4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x44a0d8]
mov ebx, dword [ebp + 8]
xor eax, ebp
cmp ebx, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x403b74
mov byte [ebp - 0x19], bl
mov esi, ecx
cmp byte [ecx + 0x2c], 0
je 0x403afb
xor edi, edi
lea eax, [ebp - 0x19]
inc edi
push dword [esi + 0x20]
push edi
push edi
push eax
call fcn.0042a298
add esp, 0x10
cmp eax, edi
je 0x403b74
jmp 0x403b7e
lea ebx, [ebp - 0x19]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
mov ecx, dword [esi + 0x24]
lea edx, [ebp - 0x20]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push ebx
push dword [esi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], ebx
je 0x403b7e
mov edi, eax
cmp eax, 3
je 0x403b5c
cmp edi, 1
ja 0x403b7e
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub ebx, eax
push dword [esi + 0x20]
push ebx
push 1
push eax
call fcn.0042a298
add esp, 0x10
cmp eax, ebx
jne 0x403b7e
mov ebx, dword [ebp - 0x24]
cmp edi, 1
je 0x403b06
jmp 0x403b71
xor edi, edi
inc edi
push dword [esi + 0x20]
push edi
push edi
push ebx
call fcn.0042a298
add esp, 0x10
cmp eax, edi
jne 0x403b7e
mov ebx, dword [ebp + 8]
xor esi, esi
cmp ebx, 0xffffffff
cmovne esi, ebx
jmp 0x403b81
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419315
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x403bc6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x403bea
push dword [ecx + 0x20]
push esi
push 2
push eax
call fcn.0042a298
add esp, 0x14
jmp 0x403c18
test esi, esi
jle 0x403c11
xor edi, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov ebx, eax
movzx eax, word [eax + edi*2]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp ax, 0xffff
je 0x403c13
inc edi
mov eax, ebx
cmp edi, esi
jl 0x403bf3
jmp 0x403c13
xor edi, edi
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x403c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x44a0d8]
movzx ebx, word [ebp + 8]
xor eax, ebp
cmp bx, 0xffff
mov dword [ebp - 0x10], eax
je 0x403ce5
mov word [ebp - 0x1a], bx
mov edi, ecx
cmp byte [ecx + 0x2c], 0
je 0x403c6b
xor esi, esi
lea eax, [ebp - 0x1a]
inc esi
push dword [edi + 0x20]
push esi
push 2
push eax
call fcn.0042a298
add esp, 0x10
cmp eax, esi
je 0x403ce5
jmp 0x403cf0
lea esi, [ebp - 0x1a]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
mov ecx, dword [edi + 0x24]
lea edx, [ebp - 0x20]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x403cf0
mov ebx, eax
cmp eax, 3
je 0x403ccc
cmp ebx, 1
ja 0x403cf0
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0042a298
add esp, 0x10
cmp eax, esi
jne 0x403cf0
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x403c76
jmp 0x403ce1
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.0042a298
add esp, 0x10
cmp eax, ebx
jne 0x403cf0
movzx ebx, word [ebp + 8]
xor eax, eax
cmp bx, 0xffff
cmove ebx, eax
jmp 0x403cf3
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419315
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x407da6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [edx + 4], eax
mov dword [edx], eax
mov dword [edx + 8], eax
mov eax, edi
sub eax, ebx
sar eax, 1
cmp eax, 0x7ffffff0
jae 0x407e29
cmp eax, 4
ja 0x407dd9
mov byte [edx + 0xb], al
mov eax, edx
jmp 0x407e04
lea esi, [eax + 8]
mov dword [ebp - 0x10], eax
and esi, 0xfffffff8
js 0x407e30
lea eax, [esi + esi]
push eax
call fcn.004192b8
add esp, 4
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
or esi, 0x80000000
mov dword [edx], eax
mov dword [edx + 8], esi
mov dword [edx + 4], ecx
cmp ebx, edi
je 0x407e18
movzx ecx, word [ebx]
add ebx, 2
mov word [eax], cx
add eax, 2
cmp edi, ebx
jne 0x407e08
mov word [eax], 0
mov eax, edx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, edx
call fcn.004175c8
push 0x43ea4c
call fcn.00415f8d
push edi
push esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
xor eax, eax
cmp edx, ecx
je 0x407e6a
movzx esi, word [edx]
shl eax, 4
add edx, 2
add esi, eax
mov edi, esi
and edi, 0xf0000000
mov eax, edi
shr eax, 0x18
or eax, edi
xor eax, esi
cmp ecx, edx
jne 0x407e4a
pop esi
pop edi
ret 8
Function at 0x409410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
lea ecx, [esi + 0x38]
mov edx, dword [ebp + 0x10]
mov dword [ecx - 4], esp
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x416f90
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
lea eax, [esi + 0x21]
xor ecx, ecx
mov dword [eax + 3], ecx
mov dword [eax - 1], 0x25
push dword [edx + 4]
mov edi, edx
push ecx
push 0x43e3a6
push eax
call fcn.00406702
add esp, 0x10
mov ebx, dword [edi + 4]
mov dword [esi + 0x10], esp
shr ebx, 9
and ebx, 1
lea edi, [ebx + 0x16]
inc edi
sub esp, 0x18
lea eax, [esi + 0x28]
mov dword [esi + 8], esp
push eax
call fcn.00403d8c
add esp, 4
lea eax, [esi + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
lea eax, [esi + 0x28]
push dword [eax + 4]
push dword [eax]
push edi
mov edi, dword [esi + 8]
push edi
call fcn.0041881f
add esp, 0x1c
mov ecx, edi
add eax, edi
push dword [ebp + 0x10]
push eax
mov edi, eax
push ecx
call fcn.00406816
add esp, 0xc
mov dword [esi + 0x14], eax
lea eax, [ebx + ebx + 0x2e]
and eax, 0xfffffffc
call fcn.00419650
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 4]
mov ebx, esp
push eax
call fcn.004024aa
lea edx, [esi + 4]
lea eax, [esi + 0x38]
xor ecx, ecx
mov dword [eax + 8], ecx
lea eax, [esi + 0x18]
lea ecx, [esi + 0x1c]
push edx
push eax
push ecx
mov dword [esi + 0xc], ebx
push ebx
push edi
push dword [esi + 0x14]
push dword [esi + 8]
call fcn.00411722
add esp, 0x1c
mov ecx, dword [esi + 4]
xor eax, eax
mov edi, dword [ebp + 8]
mov dl, byte [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
dec eax
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x409522
mov eax, dword [ecx]
call dword [eax + 4]
mov dl, byte [ebp + 0x14]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
movsx edx, dl
mov dword [esi + 0x40], 0xffffffff
push edx
push dword [ebp + 0x10]
push eax
push ecx
push dword [esi + 0xc]
push ebx
push edi
call fcn.0041199d
add esp, 0x1c
mov esp, dword [esi + 0x10]
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18