joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cd20
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x46cd50
push 0x4986a8
push esi
call fcn.0044b720
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x46cd67
push ecx
push 0x4986c4
push esi
call fcn.0044b7f0
add esp, 0xc
mov eax, dword [esp + 0x18]
push ebp
cmp eax, 0x13
jne 0x46cd82
push ebx
push esi
call fcn.0046cc20
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x46ce92
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp byte [esi + 0x4e0], 2
mov dword [esp + 0x18], edi
jne 0x46ce00
mov eax, dword [esi + 0x134]
mov eax, dword [eax]
test eax, eax
je 0x46ce00
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.004354d0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x46cebf
push 0x2f
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
test eax, eax
je 0x46cdef
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x46cdfc
push dword [esp + 0x14]
call dword [0x4a4020]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x520]
test ecx, ecx
jne 0x46ce1e
cmp byte [esi + 0xd24], 0
mov ecx, 0x49837c
mov eax, 0x49770c
cmove ecx, eax
mov edx, 0x48d37d
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x48da88
cmove eax, edx
push eax
push ecx
push 0x492a48
call fcn.0043a3d0
push ebx
mov ebp, eax
call dword [0x4a4020]
add esp, 0x14
test ebp, ebp
jne 0x46ce5b
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x491750
lea eax, [edi + 0x3d0]
push eax
push esi
call fcn.004816f0
push ebp
mov edi, eax
call dword [0x4a4020]
add esp, 0x14
test edi, edi
jne 0x46cebf
mov eax, dword [esi + 0xc]
pop ebp
mov dword [eax + 0x454], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x46ceab
push 0xd
push 1
push esi
call fcn.0046c7b0
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x46cebf
push 0xe
push 1
push esi
call fcn.0046c7b0
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x47b1d0
Capabilities:
Check http status code

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push 0x11
push 0x494938
push esi
mov dword [esp + 0x1c], 0
lea ebx, [edi + 0xf0]
call fcn.004506e0
add esp, 0xc
test eax, eax
je 0x47b209
mov ebp, dword [ebx]
cmp ebp, 0x191
je 0x47b227
push 0x13
push 0x49494c
push esi
call fcn.004506e0
add esp, 0xc
test eax, eax
je 0x47b26f
mov ebp, dword [ebx]
cmp ebp, 0x197
jne 0x47b26f
push esi
call fcn.00455ff0
mov esi, eax
add esp, 4
test esi, esi
jne 0x47b23f
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ebp, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.00457b00
push esi
mov edi, eax
call dword [0x4a4020]
add esp, 0x10
test edi, edi
je 0x47b3b1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0xf
push 0x494258
push esi
call fcn.004506e0
add esp, 0xc
test eax, eax
je 0x47b2c9
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x47b2a7
push ecx
push 0x49a030
push edi
call fcn.0044b7f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
add eax, 0x1f8
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0045bca0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 5
push 0x4948a0
push 0xb
push 0x494268
push esi
call fcn.00455f40
add esp, 0x14
test al, al
jne 0x47b3a6
push 0x12
push 0x494274
push esi
call fcn.004506e0
add esp, 0xc
test eax, eax
je 0x47b362
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x47b320
push ecx
push 0x49a064
push edi
call fcn.0044b7f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 7
push 0x4936d0
push 0x12
push 0x494274
push esi
call fcn.00455f40
add esp, 0x14
test al, al
je 0x47b3b1
push 0x49a098
push edi
call fcn.0044b7f0
mov eax, dword [esp + 0x24]
push edi
mov byte [eax + 0x204], 1
call fcn.00477600
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 5
push 0x4948a0
push 0x11
push 0x494860
push esi
call fcn.00455f40
add esp, 0x14
test al, al
jne 0x47b3a6
push ebx
lea eax, [esp + 0x14]
push eax
push 0x49a0b4
push esi
call fcn.00441390
add esp, 0x10
cmp eax, 2
jne 0x47b3b1
mov eax, dword [ebx]
mov dword [edi + 0xd5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x205], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x47d8a0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a4080]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x47d920
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435ea0
push eax
push edi
push 0x49adb8
push ebp
call fcn.0044b720
push esi
call dword [0x4a4020]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x47da80
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x47d97a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435ea0
push eax
push edi
push 0x49adec
push ebp
call fcn.0044b720
push 0
mov esi, 0x4d
call dword [0x4a4020]
add esp, 0x20
jmp 0x47da71
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x47d9ba
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435ea0
push eax
push edi
push 0x49ae18
push ebp
call fcn.0044b720
add esp, 0x1c
mov esi, 0x4d
jmp 0x47da5d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x47d9e8
jg 0x47d9ce
cmp edi, 0x100000
jbe 0x47d9e8
push 0x100000
push 0x49ae50
push ebp
call fcn.0044b720
add esp, 0xc
mov esi, 0x4d
jmp 0x47da5d
lea eax, [edi + 1]
push eax
call dword [0x4a401c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47da00
lea esi, [eax + 0x1b]
jmp 0x47da5d
test edi, edi
je 0x47da44
nop dword [eax]
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47da9d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47da99
add esi, eax
cmp esi, edi
jb 0x47da10
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0047d6a0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x4a4020]
add esp, 4
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00486b00
add esp, 0x120
ret
mov edi, esi
jmp 0x47da44
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00435ea0
push eax
push dword [esp + 0x24]
push 0x49ae80
push ebp
call fcn.0044b720
add esp, 0x1c
mov esi, 0x4d
jmp 0x47da5d
Function at 0x4841c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4a401c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4841eb
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x48423a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x484242
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4842b3
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x484270
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4842e5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x49bfe4
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x49bfe5
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4842c0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4842f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.0043a2d0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x4a401c]
mov esi, eax
add esp, 8
test esi, esi
je 0x484472
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x484372
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4843e3
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4843a0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x484415
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x49bfe4
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x49bfe5
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4843f0
push dword [esp + 0x30]
call fcn.0043a2d0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x484440
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x4a4020]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x4869f0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x486a3c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x486a01
pop ebx
pop edi
pop esi
ret

Function at 0x486b4c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x486b81
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x486b7e
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x486b8a
add edx, 0x28
cmp edx, esi
jne 0x486b6c
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x486b87

Function at 0x487cc8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x487d07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x487d07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x487d07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x487d07
cmp dword [ecx + 0x74], 0xe
jbe 0x487d07
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x487f56
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x487f7d
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x487f80
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00487f32
pop esi
leave
ret 8

Function at 0x488220
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x48823f
mov byte [ebp - 8], 1
mov edx, ebx
jmp 0x488276
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov esi, 0xb7
cmp edx, esi
jne 0x488272
push 0xffffffffffffffff
push 3
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.004882ac
mov edx, eax
test edx, edx
jne 0x488272
mov eax, dword [ebp - 0x18]
shr eax, 4
test al, 1
cmove edx, esi
mov byte [ebp - 8], bl
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 4
Function at 0x412565
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004123e4

Function at 0x41695c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004162ca

Function at 0x416967
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416505

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, reloc.comctl32.dll_InitCommonControls
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0xa14000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xa1400a
jmp 0xa1600f
jmp fcn.007d80b0
Function at 0x40a6c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b0b0]
jne 0x40a6cb
repz ret
jmp fcn.0040c7ec

Function at 0x410258
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c289
and dword [ebp - 0x14], 0
cmp dword [0x41e3e4], 0
mov dword [ebp - 0x18], eax
jne 0x41030b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4103b3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4103b3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41e3e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41e3e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41e3ec], eax
call edi
push eax
call esi
mov dword [0x41e3f4], eax
test eax, eax
je 0x41030b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41e3f0], eax
mov eax, dword [0x41e3f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410364
cmp dword [0x41e3f4], ecx
je 0x410364
push eax
call esi
push dword [0x41e3f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410364
test ebx, ebx
je 0x410364
call edi
test eax, eax
je 0x41035b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41035b
test byte [ebp - 8], 1
jne 0x410364
or dword [ebp + 0x10], 0x200000
jmp 0x410397
mov eax, dword [0x41e3e8]
cmp eax, dword [ebp - 0x18]
je 0x410397
push eax
call esi
test eax, eax
je 0x410397
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410397
mov eax, dword [0x41e3ec]
cmp eax, dword [ebp - 0x18]
je 0x410397
push eax
call esi
test eax, eax
je 0x410397
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e3e4]
call esi
test eax, eax
je 0x4103b3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4103b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a6c1
leave
ret
Function at 0x402d11
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
call edx
mov ebp, dword [esp + 0x14]
cmp ebp, 1
je 0x402d44
cmp ebp, 4
je 0x402d44
cmp ebp, 8
je 0x402d44
cmp ebp, 0x10
je 0x402d44
cmp ebp, 0x18
je 0x402d44
cmp ebp, 0x20
je 0x402d44
pop esi
xor al, al
pop ebp
ret 0xc
push ebx
push edi
mov edi, dword [esp + 0x14]
imul edi, ebp
shr edi, 3
mov eax, edi
and eax, 3
je 0x402d60
mov ecx, 4
sub ecx, eax
add edi, ecx
xor ebx, ebx
cmp ebp, 8
ja 0x402d75
mov edx, 1
mov ecx, ebp
shl edx, cl
mov dword [esi + 0x38], edx
jmp 0x402d78
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x38]
lea ecx, [eax*4 + 0x28]
push ecx
call fcn.0041902f
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov dword [edx], 0x28
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
imul edi, eax
mov ecx, dword [esi + 8]
mov word [ecx + 0xe], bp
mov edx, dword [esi + 8]
mov word [edx + 0xc], 1
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], ebx
mov edx, dword [esi + 8]
mov dword [edx + 0x14], edi
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0041902f
add esp, 8
cmp ebp, 8
mov dword [esi + 0xc], eax
ja 0x402e51
mov ecx, ebp
mov eax, 1
shl eax, cl
xor ecx, ecx
cmp eax, ebx
mov dword [esi + 0x38], eax
jbe 0x402e51
nop
mov edi, dword [esi + 0x38]
xor edx, edx
sub edi, 1
mov eax, 0xff
div edi
mov edx, dword [esi + 8]
imul cl
mov byte [edx + ecx*4 + 0x28], al
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x28]
mov byte [eax + ecx*4 + 0x29], dl
mov eax, dword [esi + 8]
movzx edx, byte [eax + ecx*4 + 0x29]
lea eax, [eax + ecx*4]
mov byte [eax + 0x2a], dl
mov eax, dword [esi + 8]
mov byte [eax + ecx*4 + 0x2b], bl
add ecx, 1
cmp ecx, dword [esi + 0x38]
jb 0x402e10
lea edi, [esi + 0x10]
mov esi, dword [esi + 8]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
ret 0xc
Function at 0x403b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4552e3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebp
push esi
push edi
mov eax, dword [0x46a630]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x403bb5
xor edi, edi
jmp 0x403bc0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push 0xa
push 0xa0
push 0
call esi
test eax, eax
jne 0x403bd3
xor esi, esi
jmp 0x403bde
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
lea eax, [esp + 0x4c]
push eax
call fcn.004062b0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x4c], vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], edi
mov dword [ecx], esi
mov edx, dword [esp + 0x70]
mov dword [edx], esi
mov ecx, dword [esp + 0x80]
lea eax, [esi + edi]
sub eax, esi
mov dword [ecx], eax
mov edx, dword [esp + 0x5c]
mov dword [edx], esi
mov ecx, dword [esp + 0x6c]
mov dword [ecx], esi
mov edx, dword [esp + 0x7c]
mov dword [edx], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0xa8], 0
call fcn.00406100
mov byte [esp + 0xa0], 1
mov edx, dword [ebx + 0x74]
mov edx, dword [edx + 0x40]
lea edi, [ebx + 0x74]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov ebp, dword [ebx + 0xb0]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0xb0]
push 0x20
mov ecx, edi
add ebp, 0x3c
call edx
push eax
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
push eax
mov eax, dword [ebp]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
push edi
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push 0x1e
mov ecx, esi
call eax
mov edx, dword [esi]
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0041f0ea
mov byte [esp + 0xa0], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x18]
mov dword [esp + edx + 0x10], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x18], vtable.std::ios_base.0
push eax
call fcn.0044ff2a
mov dword [esp + 0xa4], 0xffffffff
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.ysl::storage::memory_streambuf.0
call fcn.004063b0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x94
ret