joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411418
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x411446
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41144d
cmp ebx, dword [eax + 4]
jae 0x41144d
xor eax, eax
jmp 0x41163d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41145e
xor eax, eax
inc eax
jmp 0x41163c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x411474
cmp ecx, edx
jae 0x4115b9
cmp dword [eax + 4], 0
je 0x41147d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x411465
cmp dword [ebp + 8], 0
je 0x41149f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4115b9
cmp eax, esi
jae 0x4115b9
mov eax, dword [0x41d0d8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4114c4
cmp dword [esi*4 + 0x41d0e0], edi
je 0x4115bd
inc esi
cmp esi, eax
jl 0x4114b2
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411639
cmp dword [ebp - 8], 0x1000000
jne 0x411639
test byte [ebp - 0xc], 0xcc
je 0x411542
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x411639
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x411639
cmp word [eax + 0x18], 0x10b
jne 0x411639
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x411639
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x411542
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x411542
test byte [ecx + 0x27], 0x80
jne 0x4115b9
push 1
push 0x41d120
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x411456
mov ecx, dword [0x41d0d8]
test ecx, ecx
mov edx, ecx
jle 0x411576
lea eax, [ecx*4 + 0x41d0dc]
cmp dword [eax], edi
je 0x411576
dec edx
sub eax, 4
test edx, edx
jg 0x41156a
test edx, edx
jne 0x4115a7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x411583
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41159b
lea eax, [edx*4 + 0x41d0e0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x411589
cmp ecx, 0x10
jge 0x4115a7
inc ecx
mov dword [0x41d0d8], ecx
push 0
push 0x41d120
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x411456
xor eax, eax
jmp 0x41163c
test esi, esi
jle 0x411456
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41d120
call ebx
test eax, eax
jne 0x411456
cmp dword [esi*4 + 0x41d0e0], edi
je 0x411613
mov eax, dword [0x41d0d8]
lea esi, [eax - 1]
test esi, esi
jl 0x411601
cmp dword [esi*4 + 0x41d0e0], edi
je 0x4115fd
dec esi
jns 0x4115f1
test esi, esi
jge 0x411611
cmp eax, 0x10
jge 0x41160c
inc eax
mov dword [0x41d0d8], eax
lea esi, [eax - 1]
jmp 0x411613
je 0x41162b
xor ecx, ecx
test esi, esi
jl 0x41162b
lea eax, [ecx*4 + 0x41d0e0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x411619
push 0
push 0x41d120
call ebx
jmp 0x411456
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41260f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41c120]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41c920]
je 0x412644
inc eax
cmp eax, 0x13
jb 0x412635
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41c920]
jne 0x41276a
mov eax, dword [0x41cf48]
cmp eax, 1
je 0x412742
cmp eax, edx
jne 0x412674
cmp dword [0x41c154], 1
je 0x412742
cmp ecx, 0xfc
je 0x41276a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4126aa
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040c980
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040b630
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4126de
mov eax, edi
push eax
call fcn.0040b630
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x418d0c
push edi
call fcn.0040d990
add esp, 0x10
push edi
call fcn.0040b630
push dword [esi + 0x41c924]
mov ebx, eax
call fcn.0040b630
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040d130
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040c980
push edi
push ebx
call fcn.0040c990
push 0x418d08
push ebx
call fcn.0040c990
push dword [esi + 0x41c924]
push ebx
call fcn.0040c990
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00412f75
add esp, 0x2c
jmp 0x41276a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41c924]
push dword [esi]
call fcn.0040b630
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040bd6e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x412f75
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41d244], ebx
push esi
push edi
jne 0x412ff5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x413030
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41d244], eax
je 0x413030
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41d248], eax
call esi
cmp dword [0x41cefc], 2
mov dword [0x41d24c], eax
jne 0x412ff5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41d254], eax
je 0x412ff5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41d250], eax
mov eax, dword [0x41d250]
test eax, eax
je 0x41303a
call eax
test eax, eax
je 0x413021
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41d254]
test eax, eax
je 0x413021
test byte [ebp - 8], 1
jne 0x41303a
cmp dword [0x41cf08], 4
jb 0x413034
or byte [ebp + 0x12], 0x20
jmp 0x413059
xor eax, eax
jmp 0x413069
or byte [ebp + 0x12], 4
jmp 0x413059
mov eax, dword [0x41d248]
test eax, eax
je 0x413059
call eax
mov ebx, eax
test ebx, ebx
je 0x413059
mov eax, dword [0x41d24c]
test eax, eax
je 0x413059
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41d244]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413b87
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x41c120]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x413bb8
xor eax, eax
jmp 0x413d41
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41d3e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x413bf4
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00414795
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x413ccf
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x413d0d
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x413c58
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x413c49
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x413c29
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413c98
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x413ca1
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x413c1a
jmp 0x413ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x413d3c
cmp dword [ebp - 0x6c], edi
je 0x413d0d
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x413d02
call fcn.0041188d
mov dword [eax], 9
call fcn.00411896
mov dword [eax], esi
jmp 0x413d37
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413cf7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x413ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x413ca3
push dword [ebp - 0x6c]
call fcn.0041189f
pop ecx
jmp 0x413d37
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x413d25
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x413d25
xor eax, eax
jmp 0x413d3f
call fcn.0041188d
mov dword [eax], 0x1c
call fcn.00411896
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x413d3f
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040bd6e
add ebp, 0x3a0
leave
ret
Function at 0x414384
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x414558
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x41d3e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x414558
test cl, 0x48
je 0x4143ef
cmp byte [eax + 5], 0xa
je 0x4143ef
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414441
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x414429
call fcn.0041188d
mov dword [eax], 9
call fcn.00411896
mov dword [eax], esi
jmp 0x414439
cmp eax, 0x6d
je 0x414558
push eax
call fcn.0041189f
pop ecx
or eax, 0xffffffff
jmp 0x41455a
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x414553
test eax, eax
je 0x414468
cmp byte [ebx], 0xa
jne 0x414468
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x414471
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41454d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41453d
cmp al, 0xd
je 0x4144a3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41452f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4144bd
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4144b8
add dword [ebp + 0x10], 2
jmp 0x414511
mov dword [ebp + 0x10], eax
jmp 0x41452b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4144e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41452b
cmp dword [ebp - 0xc], 0
je 0x41452b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x414506
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x414511
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41452e
cmp ebx, dword [ebp + 0xc]
jne 0x414516
cmp byte [ebp - 1], 0xa
jne 0x414516
mov byte [ebx], 0xa
jmp 0x41452e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413a68
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41452f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x414487
jmp 0x41454d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41454d
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41455a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e3bf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa1000]
push edi
jmp 0x4e3c0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e3c11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3c00
mov eax, 1
add ebx, ebx
jne 0x4e3c23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e3c34
jne 0x4e3c53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3c53
dec eax
add ebx, ebx
jne 0x4e3c40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e3c18
add ebx, ebx
jne 0x4e3c4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e3ca5
xor ecx, ecx
sub eax, 3
jb 0x4e3c6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e3cda
sar eax, 1
mov ebp, eax
jmp 0x4e3c76
add ebx, ebx
jne 0x4e3c76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3c44
inc ecx
add ebx, ebx
jne 0x4e3c84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3c44
add ebx, ebx
jne 0x4e3c91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e3c86
jne 0x4e3ca2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e3c86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e3cc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e3cb6
jmp 0x4e3c06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e3cc4
add edi, ecx
jmp 0x4e3c06
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e3ce2
cmp byte [edi], 0x11
jne 0x4e3ce2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e3ce7
lea edi, [esi + 0xdf000]
mov eax, dword [edi]
or eax, eax
je 0x4e3d5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x115cac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x115e00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e3d14
mov ecx, edi
jns 0x4e3d43
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x115e04]
or eax, eax
je 0x4e3d59
mov dword [ebx], eax
add ebx, 4
jmp 0x4e3d31
call dword [esi + 0x115e14]
mov ebp, dword [esi + 0x115e08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e3d93
sub esp, 0xffffff80
jmp 0x416310
Function at 0x412093
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x4120b5
mov eax, 0xfffffffd
jmp 0x412192
mov ebx, dword [0x533500]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x412160
mov ebx, dword [0x533500]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x412104
mov ebx, dword [0x533500]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x412104
mov eax, 1
jmp 0x412106
xor eax, eax
test eax, eax
je 0x412132
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x41211b
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x533500]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x412188
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x412192
mov esp, ebp
pop ebp
ret 4

Function at 0x429cdd
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret
Function at 0x46e4f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x53fdc8]
xor edx, edx
cmp eax, edx
jne 0x46e516
xor eax, eax
mov byte [eax + 0x53fcc8], al
inc eax
cmp eax, 0x100
jl 0x46e4fe
mov dword [0x53fdc8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x53fcc8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x46e5a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46e57a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x46e548
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x46e620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x46e673
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46e65a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x472b31
cmp eax, 8
jg 0x472b31
cmp dword [esp + 0x8c], 2
jl 0x472b31
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x472b31
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x472b31
mov eax, dword [esp + 0x80]
test eax, eax
je 0x472997
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x472b1a
mov ebp, dword [0x4ee6b0]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x4729c9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x472b01
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4729e9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x4ee6a0]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x472a28
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4ee6a4]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4ee6e4]
test eax, eax
jne 0x472ae8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00471f20
cmp eax, 1
jne 0x472b12
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004727d0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4729dd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x472b1a
jmp 0x4729b4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00471b20
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x4750b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x475248
cmp ebp, ebx
jle 0x475248
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x47510e
dec eax
or eax, 0xfffffff8
inc eax
je 0x475115
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x475124
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x47512b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004da0ba
add esp, 4
cmp eax, ebx
je 0x47514c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.004da0ba
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x47523e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x475225
mov al, byte [edx]
cmp al, 0xc0
jbe 0x475211
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x475206
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x475214
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x475214
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4751b0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4751a1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret