joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb1cf
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x4bb1e5
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x4bb1f1
or edi, 1
push 1
call esi
test ax, ax
jge 0x4bb1fd
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x4bb209
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x4bb215
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x4bb396
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5635bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00462540
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046252a
leave
ret

Function at 0x4bd946
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
cmp eax, ecx
mov ebx, dword [ebp + 8]
je 0x4bd96b
cmp ebx, dword [esi + 0x54]
je 0x4bd96b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x4bda2d
test eax, eax
push edi
je 0x4bd9be
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x4bda2c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x4bda2c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x4bda2c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x4bda2c
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4bdc2a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call sym.7654Setup_Jihe.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x4bdc79
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call sym.7654Setup_Jihe.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x4bdcdd
mov ecx, edi
inc ebx
call sym.7654Setup_Jihe.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp ebx, eax
jl 0x4bdc48
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4bdd36
sub eax, 4
je 0x4bdce1
dec eax
dec eax
jne 0x4bdd2d
and word [ebp + 8], 0
push dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0048188a
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push sym.7654Setup_Jihe.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromShortcut_class_DuiLib::CControlUI___void__
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4bdd2d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x4bdd2f
cmp dword [esi + 0x54], 0
je 0x4bdd2d
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.004bb1cf
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4bdd2d
cmp dword [esi + 0x54], 0
je 0x4bdd85
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4bdd85
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x4bdd85
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00465591
test eax, eax
pop ecx
pop ecx
je 0x4bdd85
mov ecx, dword [esi + 0x54]
call sym.7654Setup_Jihe.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x4bdd2d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
mov ecx, esi
push eax
call sym.7654Setup_Jihe.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x4bdcdd
Function at 0x4cab42
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 0x4cabb3
cmp dword [esi + 0x10], ebx
je 0x4cabb3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00473960
cmp esp, ebx
mov dword [ebp - 8], esp
je 0x4cabb3
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.004ba72b
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.0046252a
leave
ret 0x10

Function at 0x4cf103
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 0x4cf16b
cmp dword [ebp + 8], 0x100
jne 0x4cf15a
cmp word [ebp + 0xc], 0xd
jne 0x4cf15a
cmp byte [esi + 0x4da], bl
je 0x4cf141
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4cf15a
cmp byte [esi + 0x4db], bl
jne 0x4cf15a
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x4cf156
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 0x4cf16e
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 0x4dce5d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4dce68
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 0x4dcf23
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 + 0x529878]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529878]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529878]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529878]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529878]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529878]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529878]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529878]
inc edx
sub eax, 8
dec edi
jne 0x4dce88
pop edi
test eax, eax
je 0x4dcf3c
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x529878]
inc edx
dec eax
jne 0x4dcf27
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x4dd3d5
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 0x4dd409
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 0x4dd404
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4dd431
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4dd41a
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00465010
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 0x4de1c7
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 0x4de270
movzx ecx, word [esi]
test cx, cx
je 0x4de270
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x4de205
cmp cx, 0x5c
jne 0x4de207
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4de1f9
cmp eax, esi
je 0x4de244
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004ef650
and word [ebp + edi*2 - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004de1c7
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0046439f
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00464375
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.0046252a
leave
ret
Function at 0x4df7a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4df81c
cmp dword [esi + 4], 0xffffffff
jne 0x4df81c
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x538d1c
push edi
call fcn.00464375
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x4df7ee
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4df7ee
mov eax, 0x2000000
jmp 0x4df821
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dd1eb
add esp, 0x10
test eax, eax
jne 0x4df80c
mov eax, dword [ebp + 0x10]
jmp 0x4df821
push eax
call fcn.004df39d
mov dword [esi], eax
mov eax, dword [0x56a1e0]
pop ecx
jmp 0x4df821
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4e2660
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 0x4e2685
cmp eax, edi
jge 0x4e267d
mov eax, esi
call fcn.004e2054
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x4e26a7
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 0x4e268c
cmp ecx, 4
jge 0x4e26c6
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4e26b4
xor eax, eax
jmp 0x4e26bc
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 0x4e26aa
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 0x4e26f8
mov eax, str.zlib_corrupt
call fcn.004dfc8e
jmp 0x4e2733
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4e2708
mov eax, str.read_past_buffer
jmp 0x4e26f1
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4e271d
mov ecx, edi
call fcn.004e207f
test eax, eax
je 0x4e2733
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00465010
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 0x402b40
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
call fcn.00402c20
mov al, byte [esi + 0x290]
test al, al
je 0x402b5b
mov ecx, esi
call fcn.00403650
jmp 0x402b68
lea eax, [esi + 0x397]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00403020
test eax, eax
je 0x402bb9
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x27c]
test eax, eax
jne 0x402bb9
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
push 0x4029d0
call fcn.0042042d
mov dword [esi + 0x27c], eax
pop esi
ret
Function at 0x4035e0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov dword [esp], 0
test eax, eax
je 0x4035f9
mov dword [esp], 1
lea eax, [esp + 8]
push eax
push str.SOFTWARETrendMicroPC_cillinNTCorpCurrentVersionReal_Time_Scan_Configuration
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40363d
mov edx, dword [esp + 8]
lea ecx, [esp]
push 4
push ecx
push 4
push eax
push str.StartPccNtUpd
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ecx
ret 4
xor al, al
pop ecx
ret 4

Function at 0x403650
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x104
lea ebx, [esi + 0x293]
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x43a4e0
push ebx
call fcn.0040edb0
add esp, 8
test eax, eax
je 0x40367e
mov byte [eax + 1], 0
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
lea edx, [esi + 0x397]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push str.DebugLog
rep movsb byte es:[edi], byte [esi]
mov edi, str.OfcDebug.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Debug
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.OfcDebug.log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call esi
push ebx
push 0x43a570
push str.DebugLevel
push str.Debug
call esi
push str.23:46:15
push str.Mar__2_2006
push ebx
call sub.tmdbg20.dll_Ordinal_120
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x403760
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x290]
test al, al
je 0x4037bf
push 0
push 4
push 0xe4
call fcn.00427dc2
cmp eax, 7
jne 0x4037d6
mov al, byte [esi + 0x290]
lea ecx, [esi + 0x293]
test al, al
sete al
push ecx
mov byte [esi + 0x290], al
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040c880
cmp eax, 2
jne 0x4037b1
mov ecx, esi
call fcn.00402b40
pop esi
ret
cmp eax, 1
jne 0x4037d6
mov ecx, esi
call fcn.00402bc0
pop esi
ret
mov al, byte [esi + 0x291]
test al, al
je 0x4037d6
add esi, 0x293
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x4047c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42cbf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x43b988]
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
push 0xc7
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.00421165
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x34]
push edi
call fcn.00421509
lea ecx, [esp + 0xc]
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x34], 1
call fcn.00401a70
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 0
call fcn.0042149b
push 0xb012
push edi
lea ecx, [esp + 0x18]
call fcn.0042511c
mov eax, dword [esp + 0x10]
push 2
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call dword [eax + 0x28]
mov ecx, dword [0x43b988]
mov dword [esp + 8], ecx
lea edx, [esp + 8]
lea ecx, [esi + 0x170]
push edx
mov byte [esp + 0x30], 3
call fcn.004227db
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 0x38]
lea ecx, [esp + 0x10]
call fcn.00425528
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.0042149b
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.004251b5
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042149b
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x409b50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x88
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
mov dword [esp + 0x1c], 0x80
mov byte [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409bd7
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.AutoConfigURL
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x409bd7
push edi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edx, edx
cmp edx, ecx
pop edi
sbb eax, eax
pop esi
neg eax
add esp, 0x88
ret
mov eax, esi
pop esi
add esp, 0x88
ret

Function at 0x409e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d8ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x43b988]
mov dword [esp + 4], 0
mov dword [esp], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 8]
push str._s:_s
push eax
mov dword [esp + 0x3c], 1
call fcn.0041f3d1
add esp, 0x10
lea ecx, [esp + 8]
call fcn.0040ac30
mov ecx, dword [esp]
mov byte [esp + 0x2c], 2
push ecx
lea ecx, [esp + 0xc]
call fcn.0040aef0
mov edx, dword [0x43b988]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x38]
mov byte [esp + 0x2c], 3
test eax, eax
lea ecx, [esp + 8]
je 0x409f16
call fcn.0040acb0
push eax
lea eax, [esp + 0x44]
push str.Proxy_Authorization:_Basic__s_r_n
push eax
jmp 0x409f26
call fcn.0040acb0
push eax
lea ecx, [esp + 0x44]
push str.Authorization:_Basic__s_r_n
push ecx
call fcn.0041f3d1
add esp, 0xc
lea edx, [esp + 0x40]
push esi
mov esi, dword [esp + 0x38]
push edx
mov ecx, esi
call fcn.00421210
mov dword [esp + 8], 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x30], 2
call fcn.0042149b
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.0040ac70
lea ecx, [esp + 4]
mov byte [esp + 0x30], 0
call fcn.0042149b
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x40aaa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x40aade
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x40aade
jne 0x40aad2
cmp dword [esp + 8], 1
jb 0x40aade
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x40b318
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x42d978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esp + 0x20], 0
mov dword [esi + 4], 1
mov dword [esi], 0x43050c
call fcn.0042ad81
mov edi, dword [eax + 0xc]
mov eax, dword [esp + 0x28]
and eax, 0xffff
push 0x43b124
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x40b38a
lea ecx, [esp + 0xc]
call fcn.00425593
lea ecx, [esp + 0xc]
push 0x435f50
push ecx
mov dword [esp + 0x1c], 5
mov dword [esp + 0x14], 0x4304f8
call fcn.0040f282
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edi, [eax + 0xe]
push edi
mov dword [esi + 0xc], edi
call fcn.0040b2a0
mov edx, dword [edi]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
add esp, 4
add eax, edx
mov dword [esi + 8], 0
add eax, edi
pop edi
mov dword [esi + 0x10], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40b6f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], esi
push ecx
call dword [sym.imp.USER32.dll_WindowFromDC]
push eax
call fcn.00421e11
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xc]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [eax]
sub ebp, edi
sub ebx, edx
cmp ecx, 0x28
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebx
jne 0x40b74f
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
jmp 0x40b759
xor ecx, ecx
mov cx, word [eax + 4]
mov dword [esp + 0x14], ecx
cmp dword [eax], 0x28
jne 0x40b767
mov esi, dword [eax + 8]
mov dword [esp + 0x10], esi
jmp 0x40b773
xor edx, edx
mov dx, word [eax + 6]
mov dword [esp + 0x10], edx
mov esi, edx
lea eax, [ecx + ebp - 1]
cdq
idiv ecx
mov edi, eax
lea eax, [esi + ebx - 1]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
cmp eax, ebx
jle 0x40b824
mov dword [esp + 0x20], eax
test edi, edi
jle 0x40b813
mov esi, ecx
mov dword [esp + 0x18], ebx
xor eax, eax
mov dword [esp + 0x18], edi
neg esi
mov dword [esp + 0x38], eax
lea edi, [eax + ecx]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebx
cmp edi, eax
jle 0x40b7c4
mov ecx, ebp
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add edx, ebx
cmp edx, eax
jg 0x40b7d8
mov eax, dword [esp + 0x10]
jmp 0x40b7da
sub eax, ebx
mov edx, dword [esp + 0x54]
push eax
push ecx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x38]
push edx
call fcn.0040b690
mov ecx, dword [esp + 0x18]
add ebp, esi
dec ecx
mov eax, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
jne 0x40b7af
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ebx, esi
dec eax
mov dword [esp + 0x20], eax
jne 0x40b79d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4