joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebx, ebx
jne 0x40e990
mov ebx, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x40ea06
test edx, edx
jne 0x40e9c9
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a269
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebx
push edi
call fcn.005088e0
add esp, 0x10
mov edx, edi
mov ebx, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40e9e2
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x40e9d0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.004112c0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebx
call fcn.0050aa4a
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x40ea2b
push edi
call fcn.0041a274
add esp, 4
test bl, bl
je 0x40ea6b
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x50], 8
push 0xffffffffffffffff
push edx
push 0x18
lea eax, [esi + 0x3c]
push ecx
mov ecx, esp
jb 0x40ea4b
mov eax, dword [eax]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.004112c0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.0040e670
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x410300
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a0f6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58c920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], edi
mov word [esi + 0x20], cx
xor edx, edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], edi
mov dword [ebp - 4], edi
mov word [esi + 0x3c], dx
lea ebx, [esi + 0x5c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebx], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0xc], edi
call fcn.0040f400
mov eax, dword [ebx + 0xc]
push 0x5c
mov ecx, 1
push edi
add ebx, 0x18
push ebx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x38], edi
mov dword [eax + 0x34], edi
call fcn.005096d0
mov dword [esi + 0xf0], 7
mov dword [esi + 0xec], edi
add esp, 0xc
xor eax, eax
mov word [esi + 0xdc], ax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x4000
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4118d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.0050ae9e
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [ebp - 1], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x411a2f
add dword [esi + 0x14], ecx
cmp dword [esi + 0x50], 8
push 0xffffffffffffffff
push eax
push 0x18
lea eax, [esi + 0x3c]
push ecx
mov ecx, esp
jb 0x411923
mov eax, dword [eax]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0xc], eax
call fcn.004112c0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [ebp - 2]
mov dword [ebp - 8], edx
test edx, edx
je 0x4119e3
dec dword [ebp - 8]
xor edx, edx
cmp byte [ebp - 2], dl
je 0x411967
cmp byte [edi], dl
jmp 0x41196a
cmp word [edi], dx
sete dl
test edx, edx
je 0x411994
test eax, eax
je 0x41198d
cmp edi, eax
je 0x41198d
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.00509360
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebx
add edi, ecx
cmp dword [ebp - 8], 0
jne 0x411959
test eax, eax
je 0x4119b9
cmp edi, eax
je 0x4119b9
mov ecx, dword [esi + 0x18]
imul ecx, ebx
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.00509360
add esp, 0xc
test ebx, ebx
je 0x4119e3
mov edx, dword [ebp - 0xc]
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.004112c0
add esp, 0x18
sub dword [esi + 0x1c], ebx
cmp dword [esi + 0x18], 1
jle 0x411a23
test byte [esi + 4], 0x80
je 0x411a23
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0040bc40
mov edx, dword [ebp - 0xc]
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.endian_swap
call fcn.004112c0
add esp, 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.0040e670
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412c70
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
mov dword [eax + 0x54], ecx
mov byte [eax + 0x14], cl
mov byte [eax + 0x70], cl
mov byte [eax + 0x60], cl
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov byte [eax + 0x91], cl
mov dword [eax], 9
ret

Function at 0x413600
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, ecx
cdq
idiv dword [esi]
lea edx, [esi + 0x70]
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
mov dword [ebp - 8], edx
mov dword [esi], 9
mov ebx, eax
xor eax, eax
mov dword [esi + 0x54], eax
mov byte [esi + 0x14], al
mov byte [edx], al
mov byte [esi + 0x60], al
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov byte [esi + 0x91], al
cmp ebx, 0x1000
jae 0x413667
push ecx
mov eax, edi
push eax
jmp 0x4136a0
mov dword [ebp - 4], eax
lea ebx, [ebx]
push 0x1000
push edi
mov ecx, esi
call fcn.00413440
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
inc eax
dec ecx
add edi, ebx
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x413670
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0x1000
lea ecx, [edx + eax - 0x1000]
push ecx
mov ecx, esi
call fcn.00413440
mov ecx, esi
call fcn.004134f0
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push 0x21
push edx
push eax
call fcn.0050d1a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4136d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a3eb
mov eax, dword fs:[0]
push eax
mov eax, 0x3224
call fcn.0050b1c0
mov eax, dword [0x58c920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x3230], eax
mov dword [ebp - 0x3218], 0xf
mov dword [ebp - 0x321c], 0
mov byte [ebp - 0x322c], 0
push 0
push 0
push esi
mov dword [ebp - 4], 0
call fcn.0050b13e
push esi
push 0x3200
lea ecx, [ebp - 0x3210]
push 1
push ecx
call fcn.0050ae9e
add esp, 0x1c
test eax, eax
jle 0x413784
push eax
lea edx, [ebp - 0x3210]
push edx
lea ecx, [ebp - 0x322c]
call fcn.00403e40
push esi
push 0x3200
lea eax, [ebp - 0x3210]
push 1
push eax
call fcn.0050ae9e
add esp, 0x10
test eax, eax
jg 0x413756
mov eax, dword [ebp - 0x322c]
mov esi, 0x10
cmp dword [ebp - 0x3218], esi
jae 0x41379d
lea eax, [ebp - 0x322c]
mov ecx, dword [ebp - 0x3230]
mov edx, dword [ebp - 0x321c]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00413600
cmp dword [ebp - 0x3218], esi
jb 0x4137ca
mov eax, dword [ebp - 0x322c]
push eax
call fcn.0041a274
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005090f3
mov esp, ebp
pop ebp
ret 8
Function at 0x416e70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x416ee0
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x416e96
pop esi
pop edi
pop ebp
ret
Function at 0x418720
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
cmp dword [esi + 0x100ac], ebx
je 0x4187e0
cmp dword [esi + 0x7c], ebx
jbe 0x4187e0
mov eax, 0xffffff5c
sub eax, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], eax
jmp 0x418760
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebx, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x7c]
jb 0x418760
xor ebx, ebx
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x1c]
push edi
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x418804
or eax, 0xffffffff
jmp 0x418807
mov eax, dword [ebp - 8]
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
pop edi
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x7c], ebx
adc dword [esi + 0x100cc], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425708
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 0x42574f
call fcn.0041b841
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 0x42574f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42576b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00425208
mov esi, eax
test edi, edi
je 0x425769
test ebx, ebx
je 0x425769
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x425b4a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x532d9a
call fcn.0050d76c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x425b6f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x425bc1
call fcn.0041cab0
push eax
lea ecx, [ebp - 0x10]
call fcn.0041af5f
mov ecx, dword [esi + 0x6c]
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.0050d876
push eax
call fcn.0041a4c2
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0041aca3
mov eax, esi
call fcn.0050d844
ret 8

Function at 0x42729f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00426f43
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4272e9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041bd1c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041bced
jmp 0x4272f4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00425bc9
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4272fa
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00425814
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x427337
call fcn.00426f43
mov dword [esi + 0xc], 1
jmp 0x42733c
call fcn.00426f43
cmp dword [esi], 0
je 0x427385
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x42735d
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041bd1c
jmp 0x42736f
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0041b0af
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041bced
jmp 0x4273a9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4273a9
push dword [esi]
push dword [ebp + 8]
call fcn.00425bc9
pop esi
pop ebp
ret 0xc
Function at 0x429ef2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58c920]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x429f27
xor eax, eax
jmp 0x429f7a
lea eax, [ebp - 0x210]
push eax
call fcn.0050d9e5
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x429f58
push 0x53fb5c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f9f4
add esp, 0xc
test eax, eax
jne 0x429f23
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050f9f4
add esp, 0xc
test eax, eax
jne 0x429f23
lea eax, [ebp - 0x210]
push eax
call fcn.00420c58
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005090f3
leave
ret

Function at 0x453703
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004de238
call fcn.0041b0ea
cmp dword [eax + 0x14], 0
jne 0x453720
mov ecx, esi
pop esi
jmp fcn.00453208
pop esi
ret

Function at 0x456de3
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004bc6bd
call fcn.0041b0ea
cmp dword [eax + 0x14], 0
jne 0x456e00
mov ecx, esi
pop esi
jmp fcn.004567b6
pop esi
ret

Function at 0x463e92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041b841
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x463ecb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00463acf
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x463f29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x463f4d
cmp dword [edi + 0x74], 0
jne 0x463f4d
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041b841
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00463eea
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x49484a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x494864
call fcn.0041b841
mov esi, dword [eax + 0xc]
push dword [0x5924bc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x494882
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x49487a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4948af
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x49487c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00494778
mov esi, eax
jmp 0x4948a1

Function at 0x4e95ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e95e6
mov edi, dword [esi + 0xc]
jmp 0x4e9626
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e95ff
call fcn.0042841a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e9614
call fcn.0042841a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e9626
call fcn.0042841a
call fcn.0041b841
cmp dword [eax + 0x3c], 0
je 0x4e963b
push edi
mov ecx, ebx
call fcn.004e83f8
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e94e8
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e9659
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e9665
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5090f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58c920]
jne 0x5090fd
repz ret
jmp fcn.0051324c
Function at 0x51fbc8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58c920]
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.00512c47
and dword [ebp - 0x14], 0
cmp dword [0x594a70], 0
mov dword [ebp - 0x18], eax
jne 0x51fc7b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51fd23
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x56ceac
push ebx
call edi
test eax, eax
je 0x51fd23
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x56ce9c
push ebx
mov dword [0x594a70], eax
call edi
push eax
call esi
push 0x56ce88
push ebx
mov dword [0x594a74], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x594a78], eax
call edi
push eax
call esi
mov dword [0x594a80], eax
test eax, eax
je 0x51fc7b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x594a7c], eax
mov eax, dword [0x594a7c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51fcd4
cmp dword [0x594a80], ecx
je 0x51fcd4
push eax
call esi
push dword [0x594a80]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51fcd4
test ebx, ebx
je 0x51fcd4
call edi
test eax, eax
je 0x51fccb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51fccb
test byte [ebp - 8], 1
jne 0x51fcd4
or dword [ebp + 0x10], 0x200000
jmp 0x51fd07
mov eax, dword [0x594a74]
cmp eax, dword [ebp - 0x18]
je 0x51fd07
push eax
call esi
test eax, eax
je 0x51fd07
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51fd07
mov eax, dword [0x594a78]
cmp eax, dword [ebp - 0x18]
je 0x51fd07
push eax
call esi
test eax, eax
je 0x51fd07
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x594a70]
call esi
test eax, eax
je 0x51fd23
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51fd25
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005090f3
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx