joyce8/EMBER2024-capa huggingface dataset:
Function at 0x523083
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x52312f
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add ecx, dword [esp + 0x18]
push ebp
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x34], 0
jle 0x523110
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, edi
sub esi, 1
jne 0x5230e9
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x38], esi
jne 0x523125
sub edx, dword [esp + 0x20]
jmp 0x523129
add edx, dword [esp + 0x20]
test esi, esi
jne 0x5230c7
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0x24
Function at 0x5231cf
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x5233df
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
imul esi, dword [esp + 0x20], 3
add ecx, dword [esp + 0x18]
push edi
mov edi, 0xff
cmp dword [esp + 0x3c], edi
jne 0x5232ed
lea ebp, [ecx + eax*4]
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], eax
mov ebx, dword [ecx + 0xcc]
imul ebx, eax
mov dword [esp + 0x2c], ebp
add ebx, dword [ecx + 0xc8]
add ebx, esi
cmp dword [esp + 0x34], 0
jle 0x5232bf
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x523244
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x3c]
dec edx
inc eax
cmp dword [ecx + 0xe8], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
jne 0x5232d8
sub ebp, dword [esp + 0x20]
jmp 0x5232dc
add ebp, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
test edx, edx
jne 0x52321c
jmp 0x5233db
lea ebx, [ecx + eax*4]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov ebp, dword [ecx + 0xcc]
imul ebp, eax
mov dword [esp + 0x2c], ebx
add ebp, dword [ecx + 0xc8]
add ebp, esi
cmp dword [esp + 0x34], 0
jle 0x5233b2
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 3]
mov esi, 0xff
imul eax, dword [esp + 0x3c]
movzx ecx, byte [ebp + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebx + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebp + 1]
mov byte [ebp + 2], al
movzx eax, byte [ebx + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [ebp]
movzx ecx, byte [ebx]
lea ebx, [ebx + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebp], al
lea ebp, [ebp + 3]
jne 0x52332c
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
dec edx
inc eax
cmp dword [ecx + 0xe8], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
jne 0x5233cb
sub ebx, dword [esp + 0x20]
jmp 0x5233cf
add ebx, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x523304
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x28
Function at 0x525237
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x5253ce
push dword [esp + 0x28]
call fcn.00485b71
test eax, eax
je 0x525277
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x5253ce
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x5253bb
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x5253b3
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.004944c0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x5253b3
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x5253b3
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x5253b3
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x5253aa
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x525382
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x525365
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x5254f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 4], 0
je 0x525517
push 1
lea eax, [esp + 0x10]
push eax
push esi
call fcn.004efec0
mov dword [esp + 4], eax
jmp 0x525531
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x5255e8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x525556
mov eax, dword [esp + 0x10]
pop esi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push edi
cmp al, 0xc0
jne 0x525566
mov edi, 2
jmp 0x525582
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x525575
mov edi, 3
jmp 0x525582
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x5255d4
mov edi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [edi - 1]
mov byte [eax], cl
inc eax
cmp dword [esi + 4], 0
je 0x5255ae
push ebx
push eax
push esi
call fcn.004efec0
mov ecx, eax
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, ebx
pop ebx
setne al
dec eax
and eax, edi
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x525af6
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
or eax, edx
push esi
mov esi, dword [esp + 0x14]
or eax, esi
push edi
mov edi, dword [esp + 0x1c]
or eax, edi
test al, 3
jne 0x525b47
add edi, esi
cmp esi, edi
jae 0x525b5f
sub ebx, esi
add ebx, edx
mov ecx, dword [esi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [ebx + esi], edx
add esi, 4
cmp esi, edi
jb 0x525b1f
jmp 0x525b5f
add edi, edx
cmp edx, edi
jae 0x525b5f
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 3
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x525b4f
pop edi
pop esi
pop ebx
ret

Function at 0x525b63
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 7
jne 0x525bab
lea ebp, [esi + edi]
cmp esi, ebp
jae 0x525bc3
sub ebx, esi
lea edi, [ebx + edx]
push dword [esi + 4]
push dword [esi]
call fcn.004f2bb3
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
add esi, 8
pop ecx
pop ecx
cmp esi, ebp
jb 0x525b8f
jmp 0x525bc3
add edi, edx
cmp edx, edi
jae 0x525bc3
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 7
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x525bb3
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x52721e
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xd91fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004fac20
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004fac20
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x52aa2a
cmp word [ecx], dx
je 0x52aa2a
mov eax, dword [0x5733bc]
push edi
dec eax
push eax
push 0x5732a8
call fcn.0052aba3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x52aa9d
cmp word [eax], dx
je 0x52aa9d
mov eax, dword [edi]
test eax, eax
je 0x52aa4e
cmp word [eax], dx
je 0x52aa4e
lea eax, [ebp - 0x10]
push eax
call fcn.0052ac04
jmp 0x52aa57
lea eax, [ebp - 0x10]
push eax
call fcn.0052aef2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x52aac7
mov eax, dword [0x5732a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x572f98
call fcn.0052aba3
add esp, 0xc
test al, al
je 0x52aac7
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x52aa92
cmp word [eax], di
je 0x52aa92
lea eax, [ebp - 0x10]
push eax
call fcn.0052ac04
pop ecx
jmp 0x52aac9
lea eax, [ebp - 0x10]
push eax
call fcn.0052aef2
jmp 0x52aa8f
mov eax, dword [edi]
test eax, eax
je 0x52aab4
cmp word [eax], dx
je 0x52aab4
lea eax, [ebp - 0x10]
push eax
call fcn.0052b026
pop ecx
jmp 0x52aac7
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x52ab92
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0052b118
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x52ab92
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x52ab92
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x52ab92
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x52ab1f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004fb617
test ebx, ebx
je 0x52ab8d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004fb617
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x52ab92
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x52ab92
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004f106b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x52ab94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050cbba
leave
ret
Function at 0x52b21e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004fac20
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x52b28d
cmp esi, dword [ebp - 4]
je 0x52b288
cmp dword [ebp + 0xc], 0
je 0x52b288
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x52b265
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0052b2e7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x52b28f
xor eax, eax
inc eax
jmp 0x52b28f
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x52b320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x52b34d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x52b34d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x544406
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00544411
Function at 0x54b418
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x54b4b5
push ebx
push esi
call fcn.0054b4b8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00527acf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x54b462
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54b4b4
push edi
push eax
call fcn.004fa4f2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x54b482
call fcn.004fa4b8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54b4b3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00527acf
add esp, 0x20
test eax, eax
jne 0x54b4a1
push edi
call fcn.004fa4b8
jmp 0x54b4a9
push ebx
call fcn.004fa4b8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x550b61
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00550cf8
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x550cd0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x550cd0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x550c85
jg 0x550bbd
test eax, eax
je 0x550c7b
push 1
push 0x1000
call fcn.004fa45b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x550be0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x550c72
push 0x8000
push ebx
call fcn.00550a5b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x550c09
jg 0x550c04
cmp ecx, 0x1000
jb 0x550c09
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00548238
add esp, 0x10
cmp eax, 0xffffffff
je 0x550c4e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x550c04
jl 0x550c35
test ecx, ecx
jne 0x550bf6
push dword [ebp - 0xc]
push ebx
call fcn.00550a5b
push esi
call fcn.004fa4b8
add esp, 0xc
xor ebx, ebx
jmp 0x550cde
cmp byte [edi + 0x24], 0
je 0x550c65
cmp dword [edi + 0x20], 5
jne 0x550c65
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x550c70
mov ebx, dword [edi + 0x18]
jmp 0x550c72
xor ebx, ebx
push esi
call fcn.004fa4b8
pop ecx
jmp 0x550cde
test ecx, ecx
jg 0x550c47
jl 0x550c85
test eax, eax
jae 0x550c47
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00525fcd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x550ca5
cmp byte [edi + 0x1c], 0
je 0x550c47
jmp 0x550cd6
push ebx
call fcn.0052c7bd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x550c47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x550cde
cmp byte [edi + 0x1c], 0
je 0x550cdb
mov ebx, dword [edi + 0x18]
jmp 0x550cde
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00525fcd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d718
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0042d8c8
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x42d816
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x42d7b9
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x42d7fc
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x42d7d0
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42d7eb
test al, 0x40
je 0x42d7e2
mov ecx, dword [edi + 0x20]
jmp 0x42d7e9
test al, 0x80
je 0x42d7fc
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x42d7fc
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x42d788
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4067a0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1008
call fcn.0042f920
mov eax, dword [0x4de8bc]
xor eax, esp
mov dword [esp + 0x1004], eax
push esi
call fcn.00457630
push 0xffe
mov dword [esp + 8], eax
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.0042f980
push 0x4b9938
push str._adbkey
call fcn.0042fe7e
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40680f
push esi
push 0x1000
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.0042fd9f
push esi
call fcn.0042fa6c
add esp, 0x14
jmp 0x406836
mov edx, dword [str.IEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCqeYCvL8E1msay_nkQsGrt2hKfQvvLHC9bYGOGrSXOksF4VIFeghoD62DqQR2JcThwQGQzDku9A4SYI_nW0erznW4xKgyDKk75GJ9oiMTUmOJDK2yBT3tOJTATVf_kkthjta_xnbGpHb6anc_nevpJbCXfcF3Je26ECPRvWoY6MxiXQmf1pkVwhTzwXeWnL2nujHy_6Ha5AH9jdCgc_nQvrL08MKKumOuGrfmxhBzdKVTzNc9kdTDSUYct62QkoqQxXHE0sE0TjlwLviJ_nNfAlOVWpIcjFw3nBXJgFR5xZUtw02_CuvqTXQleYal1qtOhl8ZlXeqM4u_Fb01x_n1jSHggBfAgMBAAECggEAcKRoS1maqPjkYglE592TxHIcT463RsNkyydsLiQGToQc_nJU2UXOOtjE6QStp6uQR1vE2ZeQpAwSdJNhruzJoxvXqzWdgS5rVGbj5kPtgpvN0_nLyJ1FclVQNvaUZ0xAf2IGJ_iy87Qbxb6Lu5tdooDEQLNJ7Cn6vrF8kQFPa49aA_n3yvhiHAV_CM6nM4VwEU8rYDmlivAwI7oYe8wdC_quGa1nsj3cIHqvx7rSJ7Oodr1_nWXodILqNqMgd0pc8x7c1MsX6K6IU7HK4n9bfD28rK3_XjFyird4ewxmcqKedmRi_nV611CuEgwKPr2l67PISs0fWVnuw7iEr5s0Xv4sUwQKBgQDZa2kKxRRhfhIiCQE_ngK9NzRxKJBYEXryxLahe33IJ4JAQjjkrSxlHWBX3O2JdxROtQcIUHBU2WlZuEXLz_ngKmP9cLDbigXorugmqz4diVnSqHQYQ_nWnpFr4H7gKOLwt7x0CVkOA6w5FrcvuP_nA8zcQ0O4p_JyD9K_5n34wa4WwKBgQDIuY1LAfp9o21AbdLzkcjlO8lrq1WGp2W_n5cM4WbjkStgCil26azeU7OMwmJueeR01Vl00yhJTjxaQ3dEZmVk_Uv6Q8hklvhx_n4XwoT8qzWQCPqSFiFy66plTTB9SHHFKjoxZ0UOk6zUuaw2P9qCaDp_nlWMAYYTiN_njoLOtHM3TQKBgEtjFvUJCNwVHqzJZZO6Gw7bAghQxEY2EyHDE55I82Q8MJrYD5_ndTZrsJIdISpqXzxABM98PU6vXDCmFDmibyjfijzBQV2Qq4Ywm7E7JhTp8TdIuqR_nULxA8s0Fa9ITo2RFP_HUDiP_yhGojsgkjP9jsnEUiiCnAxmDDkLmxTpAoGAW7e9_ngjqjNOmKMFlxvMfC5dVVUf52FBNFfhi3crRmy8_yNlkvpvjR99aGQzJ5R77jVK_nXaa__QJy8zv8Ntr7FcxP_Ukftibt20uHKfxbyNuwT_SeVm31YkBCnjMDv8EHWdJZ_nnkiiacYI9y0MeG1x47ntw54qCs0ZipqRv1ZcDkCgYA8yOyzAw7jDQMrXvkOS7u_nG8lC0YO3_4P3Xm3kAf1u3cU0tGjNi_bC29VW2hCmeSSx097JGoDvRUftM3_UHX_nM_VtSyrHh1tiQhbcS4E0ajIMj76dMJ4BT2jM2AehdxBupR30prGuomEm8iX6rtvC_nwLUcnmrdtMmhbqI03o0Egg_n]
push str._____END_PRIVATE_KEY______n
push edx
push 0x49
push 0x4d
push str._____BEGIN_PRIVATE_KEY______n
lea eax, [esp + 0x1c]
push str._s_c_c_s_s
push eax
call fcn.0042f6b4
add esp, 0x1c
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406840
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004569b0
push 0
push 0
lea edx, [esp + 0x14]
mov esi, eax
push edx
push esi
call fcn.00455ec0
add esp, 0x18
test eax, eax
jne 0x406884
pop esi
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.0042e636
add esp, 0x1008
ret
push esi
call fcn.004551a0
mov ecx, dword [esp + 0x100c]
mov eax, dword [esp + 8]
add esp, 4
pop esi
xor ecx, esp
call fcn.0042e636
add esp, 0x1008
ret