joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a60d
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x48a773
push ebx
mov edx, 0x10000000
cmp eax, 0x7c
je 0x48a772
cmp eax, 0x29
jne 0x48a645
cmp dword [esi + 0x10], 0
jne 0x48a772
test dword [esi + 0x50], edx
je 0x48a77f
cmp eax, 0x2e
jne 0x48a660
push 5
lea ecx, [esi + 0x24]
call fcn.0048bda8
mov ecx, esi
call fcn.0048bde8
jmp 0x48a75d
cmp eax, 0x5c
jne 0x48a6bb
mov ecx, esi
call fcn.0048bde8
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x48a692
cmp byte [esi + 0x48], 0x62
jne 0x48a692
push 4
lea ecx, [esi + 0x24]
call fcn.0048bda8
mov ecx, esi
call fcn.0048bde8
jmp 0x48a764
test eax, eax
je 0x48a6af
cmp byte [esi + 0x48], 0x42
jne 0x48a6af
push 4
lea ecx, [esi + 0x24]
call fcn.0048bda8
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x48a686
mov ecx, esi
call fcn.0048a787
jmp 0x48a75d
cmp eax, 0x5b
jne 0x48a6db
mov ecx, esi
call fcn.0048bde8
mov ecx, esi
call fcn.0048ab3c
cmp dword [esi + 0x4c], 0x5d
je 0x48a654
push 4
jmp 0x48a781
cmp eax, 0x28
jne 0x48a703
mov ecx, esi
call fcn.0048bde8
mov ecx, esi
call fcn.0048c19a
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x48a77f
mov ecx, esi
call fcn.0048bde8
jmp 0x48a759
cmp eax, 0x5e
jne 0x48a70f
push 2
jmp 0x48a67e
cmp eax, 0x24
jne 0x48a71b
push 3
jmp 0x48a67e
cmp eax, 0x2a
je 0x48a77b
cmp eax, 0x2b
je 0x48a77b
cmp eax, 0x3f
je 0x48a77b
cmp eax, 0x7b
je 0x48a77b
cmp eax, 0x7d
jne 0x48a739
test dword [esi + 0x50], edx
je 0x48a777
cmp eax, 0x5d
jne 0x48a743
test dword [esi + 0x50], edx
je 0x48a6d4
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00489fc4
mov ecx, esi
call fcn.0048bde8
mov bl, 1
test bl, bl
je 0x48a764
mov ecx, esi
call fcn.0048be11
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x48a61f
pop ebx
mov al, cl
pop esi
ret
push 6
jmp 0x48a781
push 0xa
jmp 0x48a781
push 5
call fcn.004c8de2
int3
Function at 0x4a3566
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x52b49f
call fcn.004dacdd
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4a3666
cmp byte [ebx + 0x3d], 0
je 0x4a3666
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4a35a0
xor al, al
jmp 0x4a3668
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0041a4a9
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4a35fe
sub eax, 1
je 0x4a3602
dec eax
sub eax, 1
je 0x4a3654
xor bl, bl
jmp 0x4a3656
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4a363a
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00505b47
add esp, 0x10
cmp esi, eax
jne 0x4a35fa
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x4a3654
test esi, esi
jne 0x4a35c4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0041a606
jmp 0x4a35be
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0041a391
mov al, bl
jmp 0x4a3668
mov al, 1
call fcn.004dac87
ret
Function at 0x4a740d
Capabilities:
Encode data using base64

Disassembly:
push 0x1c
mov eax, 0x52dece
call fcn.004daca9
mov ecx, dword [ebp + 0x10]
xor edx, edx
push 3
mov eax, ecx
xor ebx, ebx
pop esi
div esi
mov dword [ebp - 0x24], ebx
mov edi, ebx
mov dword [ebp - 0x1c], ebx
test edx, edx
je 0x4a7442
inc ecx
xor edx, edx
mov eax, ecx
inc edi
div esi
test edx, edx
jne 0x4a7433
mov dword [ebp - 0x1c], edi
mov eax, ecx
xor edx, edx
shl eax, 2
div esi
mov esi, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x4a7467
mov eax, dword [esi]
jmp 0x4a7469
mov eax, esi
mov byte [eax], bl
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 1
call fcn.00418006
mov ecx, dword [ebp - 0x20]
mov eax, ecx
shr eax, 2
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4a755b
mov edi, ebx
mov ecx, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x10]
jae 0x4a74a3
movzx eax, byte [ecx + edi]
mov dword [ebp - 0x10], eax
jmp 0x4a74a6
mov dword [ebp - 0x10], ebx
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x4a74b5
movzx edx, byte [edi + ecx + 1]
jmp 0x4a74b7
mov edx, ebx
inc eax
cmp eax, dword [ebp + 0x10]
jae 0x4a74c7
movzx eax, byte [edi + ecx + 2]
mov dword [ebp - 0x14], eax
jmp 0x4a74ca
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
mov cl, al
and al, 3
shr cl, 2
shl al, 4
mov dword [ebp - 0x10], eax
mov al, dl
shr al, 4
and dl, 0xf
add byte [ebp - 0x10], al
mov al, byte [ebp - 0x14]
and byte [ebp - 0x14], 0x3f
shr al, 6
shl dl, 2
add dl, al
movzx eax, cl
mov ecx, esi
mov dword [ebp - 0x28], edx
movzx eax, byte [eax + 0x532350]
push eax
call fcn.00434d74
mov ecx, dword [ebp - 0x10]
movzx eax, cl
mov ecx, esi
movzx eax, byte [eax + 0x532350]
push eax
call fcn.00434d74
mov ecx, dword [ebp - 0x28]
movzx eax, cl
mov ecx, esi
movzx eax, byte [eax + 0x532350]
push eax
call fcn.00434d74
mov ecx, dword [ebp - 0x14]
movzx eax, cl
mov ecx, esi
movzx eax, byte [eax + 0x532350]
push eax
call fcn.00434d74
add edi, 3
sub dword [ebp - 0x18], 1
jne 0x4a7492
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
test edi, edi
je 0x4a7577
cmp dword [esi + 0x14], 0x10
jb 0x4a7569
mov eax, dword [esi]
jmp 0x4a756b
mov eax, esi
sub eax, ebx
inc ebx
mov byte [eax + ecx - 1], 0x3d
cmp ebx, edi
jb 0x4a755f
mov eax, esi
call fcn.004dac72
ret
Function at 0x4a7ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 4
and edi, 0xf
inc eax
mov dword [ebp - 8], 0
movzx ecx, ax
xor esi, esi
mov dword [ebp - 4], 0x409
mov dword [ebp + 8], ecx
movzx eax, word [ebp + esi*4 - 8]
push eax
push ecx
push 6
push dword [0x6d3120]
call dword [sym.imp.KERNEL32.DLL_FindResourceExW]
test eax, eax
je 0x4a7b35
push eax
push dword [0x6d3120]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4a7b35
push eax
call ebx
test eax, eax
je 0x4a7b35
test edi, edi
jle 0x4a7b2e
mov edx, edi
nop dword [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
add eax, 2
sub edx, 1
jne 0x4a7b20
movzx ecx, word [eax]
test ecx, ecx
jne 0x4a7b40
inc esi
cmp esi, 2
jae 0x4a7b4a
mov ecx, dword [ebp + 8]
jmp 0x4a7ae1
pop edi
pop esi
add eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x69a0fc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aae30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6c8370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push ebx
push dword [esi + 0xc]
call fcn.004a7780
mov eax, dword [ebx + 4]
add esp, 0xc
inc eax
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 8], eax
lea eax, [ebp - 0x18]
push 2
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
je 0x4aaeaf
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add eax, edx
mov dword [ebx + 0xc], eax
add ecx, edx
mov eax, dword [ebp - 0xc]
sub eax, edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 4]
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
jmp 0x4aaecb
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov eax, dword [ebx]
mov esi, ecx
mov edi, dword [ebx + 8]
sub ecx, edi
mov edx, dword [ebx + 0x18]
mov dword [ebx + 0x34], ecx
add edx, edi
mov ecx, dword [ebp - 8]
lea eax, [eax + eax*2]
shl eax, 2
sub ecx, edi
sub esi, eax
mov dword [ebx + 0x38], ecx
mov eax, dword [ebp - 0x14]
sub esi, edi
mov dword [ebx + 0x2c], esi
add eax, edi
sub esi, edi
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 0x24], esi
xor ecx, ebp
pop esi
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edx
pop ebx
call fcn.004da18b
mov esp, ebp
pop ebp
ret
Function at 0x4ac0d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x6c8370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebx]
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], ebx
call fcn.004c4220
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x4ac150
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 5
call ebx
movzx esi, al
or esi, 0xffffff00
push 5
shl esi, 8
call ebx
shr eax, 8
movzx edi, al
or edi, esi
push 5
shl edi, 8
call ebx
mov ebx, dword [ebp - 0x254]
shr eax, 0x10
movzx eax, al
or eax, edi
push eax
push dword [ebx]
call fcn.004c4720
mov esi, dword [ebp - 0x258]
add esp, 8
lea eax, [ebp - 0x250]
push eax
push esi
call fcn.004aae30
mov eax, dword [ebp - 0x244]
add esp, 8
mov ecx, dword [ebp - 0x23c]
cmp eax, ecx
jge 0x4ac203
mov edx, dword [ebp - 0x240]
mov edi, dword [ebp - 0x238]
cmp edx, edi
jge 0x4ac203
movd xmm0, eax
lea eax, [ebp - 0x204]
cvtdq2ps xmm0, xmm0
push 0x100
push eax
push dword [esi]
movss dword [ebp - 0x214], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x210], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x20c], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x208], xmm0
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xff000000
push dword [ebx + 4]
call fcn.004c4090
push 9
push dword [ebx + 4]
lea eax, [ebp - 0x204]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.004c4c60
add esp, 0x24
lea eax, [ebp - 0x250]
push eax
push ebx
push esi
call fcn.004abc40
mov ecx, dword [esi + 0x10]
add esp, 0xc
and ecx, 0x3f
cmp ecx, 9
ja case.default.0x4ac223
jmp dword [ecx*4 + 0x4ac2dc]
lea eax, [ebp - 0x250]
push eax
push ebx
push esi
call fcn.004b04f0
add esp, 0xc
jmp case.default.0x4ac223
lea eax, [ebp - 0x250]
push eax
push ebx
push esi
call fcn.004b1a10
add esp, 0xc
jmp case.default.0x4ac223
cmp ecx, 3
je 0x4ac261
cmp ecx, 5
je 0x4ac261
xor edx, edx
jmp 0x4ac266
mov edx, 1
cmp ecx, 4
je 0x4ac274
cmp ecx, 5
je 0x4ac274
xor eax, eax
jmp 0x4ac279
mov eax, 1
lea ecx, [ebp - 0x250]
push ecx
push ebx
push edx
push eax
push esi
call fcn.004af2c0
add esp, 0x14
jmp case.default.0x4ac223
lea eax, [ebp - 0x250]
push eax
xor eax, eax
cmp ecx, 7
push ebx
sete al
push eax
push esi
call fcn.004adc10
jmp 0x4ac2be
lea eax, [ebp - 0x250]
push eax
xor eax, eax
cmp ecx, 9
push ebx
sete al
push eax
push esi
call fcn.004aa280
add esp, 0x10
push dword [ebx]
call fcn.004c4490
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004da18b
mov esp, ebp
pop ebp
ret
Function at 0x4acd70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6c8370]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
add eax, dword [edi + 4]
mov cl, byte [edi + 8]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x4ace86
test eax, eax
je 0x4ace86
push esi
test cl, cl
jle 0x4acdfc
push eax
push 0x53261c
push ebx
call fcn.004a9750
mov edx, eax
add esp, 0xc
movsx eax, byte [edi + 8]
mov ecx, edx
add eax, edx
cmp edx, eax
jge 0x4acddf
mov esi, 0x30
nop dword [eax + eax]
mov word [ebx + ecx*2], si
inc ecx
movsx eax, byte [edi + 8]
add eax, edx
cmp ecx, eax
jl 0x4acdd0
movsx eax, byte [edi + 8]
add eax, edx
xor ecx, ecx
pop esi
pop edi
mov word [ebx + eax*2], cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da18b
mov esp, ebp
pop ebp
ret
movsx eax, cl
mov esi, 0xa
neg eax
cmp eax, 1
je 0x4ace1a
dec eax
nop dword [eax]
lea esi, [esi + esi*4]
add esi, esi
sub eax, 1
jne 0x4ace10
push 4
lea eax, [ebp - 0xc]
push eax
push 0xe
call dword [sym.imp.KERNEL32.DLL_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4ace46
mov eax, 0x2e
mov dword [ebp - 0x10], 1
mov word [ebp - 0xc], ax
mov eax, dword [ebp + 0xc]
cdq
xor eax, edx
movsx ecx, byte [edi + 8]
sub eax, edx
neg ecx
cdq
idiv esi
lea eax, [ebp - 0xc]
push edx
push ecx
push eax
mov eax, dword [ebp + 0xc]
cdq
idiv esi
push dword [ebp - 0x10]
push eax
push str._d_.s_0.d
push ebx
call fcn.004a9750
add esp, 0x1c
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da18b
mov esp, ebp
pop ebp
ret
push eax
push 0x53261c
push ebx
call fcn.004a9750
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop ebx
call fcn.004da18b
mov esp, ebp
pop ebp
ret

Function at 0x4b3c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
shr eax, 0x18
and eax, 1
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004a7ab0
Function at 0x4b7730
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 0x100
push ebx
mov ebx, dword [ebp + 0x10]
jne 0x4b777a
cmp ebx, 9
je 0x4b777a
cmp ebx, 8
je 0x4b777a
cmp ebx, 0x2e
je 0x4b777a
cmp ebx, 0x56
je 0x4b7766
cmp ebx, 0x43
je 0x4b7766
cmp ebx, 0x58
je 0x4b7766
cmp ebx, 0x5a
jne 0x4b7773
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jne 0x4b777a
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0x20], ebx
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetMessageTime]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 8]
movsx eax, si
mov dword [ebp - 0x14], eax
shr esi, 0x10
movsx eax, si
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x14]
push edx
push 0x5335c0
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
pop edi
pop esi
test eax, eax
jne 0x4b7824
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4b7824
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
push 0x533540
push ecx
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4b7819
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4b7819
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
push ecx
mov eax, dword [eax + 0x14]
call eax
sub eax, 0
jne 0x4b780e
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
mov ecx, dword [edx + 8]
call ecx
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b99c0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x6c8370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
mov dword [ebp - 0x68], 0x30
xor eax, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
mov dword [ebp - 0x64], 0xe3
mov dword [ebp - 0x3c], 0xffffffff
cmp ax, word [ebx + 0x22]
jae 0x4b9a6e
mov edx, 0x1000
nop word [eax + eax]
lea eax, [esi + 0x3e8]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], eax
xor ecx, ecx
movsx eax, word [ebx + 0x4c]
cmp esi, eax
mov eax, dword [ebx + 0x1c]
cmove ecx, edx
mov dword [ebp - 0x5c], ecx
movzx ecx, si
add ecx, ecx
mov ecx, dword [eax + ecx*8]
mov dword [ebp - 0x44], ecx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9a40
lea eax, [ebp - 0x68]
sub ecx, edx
push eax
push 1
push esi
sar ecx, 1
push edi
mov dword [ebp - 0x40], ecx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
movzx eax, word [ebx + 0x22]
inc esi
mov edx, 0x1000
cmp esi, eax
jl 0x4b9a10
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
push eax
push edi
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.USER32.dll_GetMenuInfo]
or dword [ebp - 0x30], 0x4000000
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.USER32.dll_SetMenuInfo]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xca
push 0x419
push dword [ebx + 8]
call edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x14
push ecx
push eax
push 0x41d
push dword [ebx + 8]
call edi
push 0
push 0xca
push 0x412
push dword [ebx + 8]
call edi
movzx esi, ax
mov eax, esi
or eax, 2
push eax
push 0xca
push 0x411
push dword [ebx + 8]
call edi
push 2
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [ebp - 0x18]
push eax
push dword [ebx]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 8
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_DestroyMenu]
push esi
push 0xca
push 0x411
push dword [ebx + 8]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da18b
mov esp, ebp
pop ebp
ret
Function at 0x4c7970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c798f
pop edi
pop esi
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4c79b1
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
jne 0x4c79b8
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ebx
push eax
call fcn.004c7930
add esp, 8
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4dd5d6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x510e3e
Capabilities:
Read file on windows

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

Function at 0x51555e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051521e
Function at 0x100013d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001b258
push 0x100044a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1001d040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x10001473
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10001473
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x10001473
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10001473
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000147c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000315a
mov esp, ebp
pop ebp
ret
Function at 0x10001720
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x100017dc
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001766
sub edi, 0x8000000
jmp 0x100017d4
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100017dc
cmp dword [ebp - 0x10], 0x10000
jne 0x100017bf
cmp dword [ebp - 0x14], 0x10000
jb 0x100017bf
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10001887
sub edi, 0x10000
jmp 0x100017d4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x10001751
movzx eax, si
test eax, eax
je 0x100017eb
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x10001885
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001815
add esi, 0x8000000
jmp 0x1000187d
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x10001885
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x10001868
cmp ecx, 0x10000
jb 0x10001868
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10001887
add esi, 0x10000
jmp 0x1000187d
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1000187d
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x10001800
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000315a
mov esp, ebp
pop ebp
ret
Function at 0x100022e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001b278
push 0x100044a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1001d040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
lea esi, [ecx + 0x10000]
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov edi, 0x5a4d
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10002361
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000315a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], 0x1000
jne 0x100023d7
cmp byte [ebp - 0x24], 1
je 0x100023d7
test dword [ebp - 0x24], 0x100
jne 0x100023d7
mov dword [ebp - 4], 0
cmp word [esi], di
jne 0x1000239b
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x2c]
ja 0x1000239b
cmp eax, 0x40
jb 0x1000239b
cmp dword [eax + esi], 0x4550
je 0x100023aa
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x38]
jmp 0x10002334
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x10002345
mov esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x38]
jmp 0x10002334