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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
jge 0x4227ad
mov eax, dword [esi + 0x30]
mov ecx, 0xcd2400
mov dword [esi + 0x34], eax
call fcn.004044d0
mov ecx, dword [0x49e870]
push ecx
mov ecx, 0xcd2400
call fcn.00404650
cmp eax, 1
mov ecx, 0xcd2400
jne 0x4227f8
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x34], edx
mov eax, dword [0x49e870]
push eax
call fcn.004045a0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov ecx, esi
call fcn.00422670
jmp case.0x422889.71
call fcn.00404510
cmp eax, 0x28
jg 0x422874
je case.0x422889.276
dec eax
cmp eax, 0x25
ja case.0x422889.71
movzx ecx, byte [eax + 0x42292c]
jmp dword [ecx*4 + 0x42291c]
mov ecx, esi
call fcn.00422630
mov ecx, 0xcd2400
pop esi
jmp fcn.00404560
cmp dword [0xef9808], 1
jne case.0x422889.71
mov eax, dword [esi + 0x2c]
test eax, eax
jge 0x422849
mov eax, dword [esi + 0x30]
cmp eax, 0x3d
jl 0x4227ec
cmp eax, 0x3f
jle 0x422864
cmp eax, 0x40
jne 0x4227ec
mov ecx, esi
call fcn.00422630
jmp case.0x422889.71
push eax
mov ecx, 0xef9740
call fcn.00410de0
jmp case.0x422889.71
sub eax, 0x46
cmp eax, 0xce
ja case.0x422889.71
movzx edx, byte [eax + 0x422968]
jmp dword [edx*4 + 0x422954]
mov ecx, 0xef9740
call fcn.00421c00
mov ecx, 0xef9740
call fcn.004137c0
mov ecx, 0xcd2400
call fcn.00404560
jmp case.0x422889.71
mov eax, dword [0xefa19c]
test eax, eax
jle 0x4228bf
dec eax
mov dword [0xefa19c], eax
mov ecx, 0xef9740
call fcn.004137c0
mov ecx, 0xcd2400
call fcn.00404560
jmp case.0x422889.71
push 0x258
push 0x320
mov byte [0x490cfc], 1
call fcn.0042f6f0
add esp, 8
jmp 0x4228fc
mov byte [0x490cfc], 0
call fcn.0042f780
mov ecx, 0x49e860
call fcn.00401a80
mov eax, dword [esi + 0x2c]
test eax, eax
jge 0x422917
mov eax, dword [esi + 0x30]
test eax, eax
jl 0x422917
mov dword [esi + 0x2c], eax
pop esi
ret
Function at 0x42dfb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x170
mov eax, dword [0x486090]
xor eax, dword [esp + 0x170]
push ebx
mov ebx, dword [0x47a208]
push ebp
push esi
push edi
push 0x258
push 0x320
push 0
mov dword [esp + 0x188], eax
push 0
lea eax, [esp + 0x30]
push eax
mov esi, ecx
call ebx
mov ecx, dword [esi + 0x24]
mov edi, dword [esp + 0x184]
mov edx, dword [edi]
lea eax, [esp + 0x20]
push eax
push ecx
push 0
push 0
mov ecx, edi
call dword [edx + 0x60]
mov ebp, dword [esi + 0x18]
push 0x3c
push 0x258
push 0
push 0
lea edx, [esp + 0x30]
push edx
shl ebp, 2
call ebx
push 0xd
push 0xa
push 0
push 0
lea eax, [esp + 0x40]
push eax
call ebx
lea eax, [ebp + 4]
cmp ebp, eax
mov ebx, ebp
mov dword [esp + 0x1c], eax
jge 0x42e19d
imul ebp, ebp, 0x5734
add ebp, 0xcd86ec
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x6d
lea ecx, [esp + 0x50]
push ecx
push ebx
mov ecx, esi
call fcn.0042dd20
mov edx, dword [esi + 0xa0]
lea ebp, [esi + 0xa0]
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call dword [edx + 0x58]
mov eax, dword [edi]
mov edx, dword [ebp]
push 0xff00ff
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
mov dword [esp + 0x20], eax
call dword [edx + 0x40]
push eax
mov eax, dword [esp + 0x1c]
add eax, 0x24
push eax
mov eax, dword [esp + 0x28]
push 0xa0
mov ecx, edi
call dword [eax + 0x64]
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
push 0
push 0x9e4d2f
call dword [edx + 0x30]
lea eax, [ebx + 1]
mov dword [esp + 0x18], eax
cdq
mov ecx, 0xa
idiv ecx
mov ecx, dword [esi + 0x28]
push 0x4b0
lea eax, [eax + eax*4]
shl eax, 1
push eax
push ecx
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
mov ebp, edx
mov edx, dword [edi]
push 0x132
mov ecx, edi
call dword [edx + 0x94]
mov ecx, dword [esi + 0x28]
mov edx, dword [edi]
push 0x4b0
lea eax, [ebp + ebp*4]
shl eax, 1
push eax
push ecx
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
push 0x13c
mov ecx, edi
call dword [edx + 0x94]
mov ecx, dword [esp + 0x14]
cmp byte [ecx], 1
jne 0x42e174
mov ebp, ebx
and ebp, 0x80000003
jns 0x42e138
dec ebp
or ebp, 0xfffffffc
inc ebp
mov eax, ebx
imul ebp, ebp, 0x78
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, eax, 0x5a
lea edx, [eax + 0x5a]
push edx
lea ecx, [ebp + 0x78]
push ecx
push eax
push ebp
lea edx, [esp + 0x50]
push edx
call dword [0x47a208]
mov edx, dword [esi + 0x2c]
mov eax, dword [edi]
lea ecx, [esp + 0x40]
push ecx
push edx
add ebp, 0x6d
push ebp
push 0x1f
mov ecx, edi
call dword [eax + 0x60]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edx, 0x78
add ecx, 0x5734
cmp ebx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
jl 0x42e055
push edi
mov ecx, esi
call fcn.0042def0
mov ecx, dword [esp + 0x17c]
xor ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0043488e
add esp, 0x170
ret 4
Function at 0x42e490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x478b60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esi + 4], 3
call fcn.0042d7d0
mov eax, dword [esi + 0x24]
or edi, 0xffffffff
push edi
push eax
mov ecx, esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], edi
call fcn.0042e1f0
mov ecx, dword [esi + 0x24]
push ebx
push ebx
push ebx
push ebx
push ecx
mov ecx, 0x4ae0a4
call fcn.0040e430
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x10]
push eax
mov eax, dword [0xc06714]
push eax
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x320
mov dword [esp + 0x28], 0x258
mov edx, dword [ecx]
push ebx
call dword [edx + 0x60]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push 0xbb0000
push ebx
push ebx
call dword [edx + 0xac]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push ebx
push 0xa05533
call dword [edx + 0x44]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push 0x258
push ebx
push eax
lea ebp, [esp + 0x1c]
push ebp
push eax
push ebx
push ebx
call dword [edx + 0x94]
lea ecx, [esp + 0x30]
call fcn.0043d130
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], ebx
call fcn.0043a6c0
mov eax, dword [0x49e8d0]
mov ecx, 0x49e8d0
mov byte [esp + 0x54], 1
call dword [eax + 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.0043aa40
push str.cgp_SaveThumb.bmp
lea ecx, [esp + 0x24]
call fcn.0043aae0
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.0043d350
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], bl
call fcn.0043a700
lea ecx, [esp + 0x30]
mov dword [esp + 0x54], edi
call fcn.0043d150
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x434dcb
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x47c158
call fcn.00435ae8
mov edi, 0x94
mov eax, edi
call fcn.00434d60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x47a138]
mov ecx, dword [esi + 0x10]
mov dword [0xefa1bc], ecx
mov eax, dword [esi + 4]
mov dword [0xefa1c8], eax
mov edx, dword [esi + 8]
mov dword [0xefa1cc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0xefa1c0], esi
cmp ecx, 2
je 0x434e2b
or esi, 0x8000
mov dword [0xefa1c0], esi
shl eax, 8
add eax, edx
mov dword [0xefa1c4], eax
xor esi, esi
push esi
mov edi, dword [0x47a124]
call edi
cmp word [eax], 0x5a4d
jne 0x434e66
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x434e66
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x434e7e
cmp eax, 0x20b
je 0x434e6b
mov dword [ebp - 0x1c], esi
jmp 0x434e92
cmp dword [ecx + 0x84], 0xe
jbe 0x434e66
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x434e8c
cmp dword [ecx + 0x74], 0xe
jbe 0x434e66
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00436bc4
pop ecx
test eax, eax
jne 0x434ebe
cmp dword [0xefa208], 1
jne 0x434eab
call fcn.004363f5
push 0x1c
call fcn.0043627e
push 0xff
call fcn.00434961
pop ecx
pop ecx
call fcn.00435f92
mov dword [ebp - 4], esi
call fcn.004369ff
test eax, eax
jge 0x434ed7
push 0x1b
call fcn.00434da6
pop ecx
call dword [0x47a134]
mov dword [0xf0c7e0], eax
call fcn.004368dd
mov dword [0xefa200], eax
call fcn.0043683b
test eax, eax
jge 0x434efd
push 8
call fcn.00434da6
pop ecx
call fcn.00436608
test eax, eax
jge 0x434f0e
push 9
call fcn.00434da6
pop ecx
call fcn.00434991
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x434f21
push eax
call fcn.00434da6
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [0x47a130]
call fcn.0043659f
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x434f42
movzx eax, word [ebp - 0x34]
jmp 0x434f45
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0042fb00
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x434f63
push edi
call fcn.00434ab8
call fcn.00434ada
jmp 0x434f95
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00435b23
ret

Function at 0x43c020
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x478cb8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
test ebx, ebx
push esi
push edi
mov edi, ecx
je 0x43c0a6
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x43c0a6
lea ecx, [esp + 0xc]
call fcn.0043e0a0
push 0
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0
call fcn.0043e1d0
mov esi, eax
test esi, esi
jne 0x43c07f
mov eax, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push ebx
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0043e3e0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, 3
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x440370
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x478e14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x20]
mov dword [esp + 0xc], esi
mov dword [esi], 0x47cea8
call fcn.0043a6c0
xor ebx, ebx
push 0x12c
lea ecx, [esi + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.0043abb0
lea ecx, [esi + 0x2b0]
mov byte [esp + 0x18], 1
call fcn.00442c40
push 0x101
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.0043f490
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0043f570
mov dword [esi + 0x14], ebx
xor eax, eax
lea edi, [esi + 0x118]
mov ecx, 0x64
rep stosd dword es:[edi], eax
mov dword [esi + 0x2a8], ebx
mov dword [esi + 0x2ac], ebx
lea ecx, [esi + 0x2b8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x45265a
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x120
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x45267e
push eax
call fcn.00454db6
push 2
call fcn.00454d45
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.00438740
add esp, 0xc
pop edi
pop esi
ret
Function at 0x453052
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.00454d56
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4530aa
push esi
call fcn.00452aab
push ebx
push esi
call fcn.00462ca4
add esp, 0xc
test eax, eax
je 0x4530b1
mov edi, dword [ebp - 8]
push dword [edi + 0xac]
lea esi, [edi + 0xac]
push edi
call fcn.00454e7d
push edi
mov dword [esi], ebx
call fcn.00454db6
add esp, 0xc
xor eax, eax
jmp 0x4531b3
push dword [ebp + 0x20]
mov esi, dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.00454eea
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0045519e
mov ecx, dword [ebp + 8]
mov edi, str.1.2.3
mov dword [ebp - 4], ecx
add esp, 0x20
sub dword [ebp - 4], edi
mov eax, edi
mov edx, dword [ebp - 4]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
je 0x4530f3
or byte [esi + 0x6e], 2
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4530e5
test byte [esi + 0x6e], 2
je 0x453171
cmp ecx, ebx
je 0x453147
mov al, byte [ecx]
cmp al, byte [str.1.2.3]
jne 0x453127
cmp al, 0x31
jne 0x45311d
mov dl, byte [ecx + 2]
cmp dl, byte [0x47debe]
jne 0x453127
cmp al, 0x30
jne 0x453171
cmp byte [ecx + 2], 0x39
jge 0x453171
cmp ecx, ebx
je 0x453147
push ecx
lea eax, [ebp - 0x58]
push str.Application_was_compiled_with_png.h_from_libpng__.20s
push eax
call fcn.00462c4a
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.00454f99
add esp, 0x14
push edi
lea eax, [ebp - 0x58]
push str.Application__is__running_with_png.c_from_libpng__.20s
push eax
call fcn.00462c4a
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.00454f99
push str.Incompatible_libpng_version_in_application_and_library
push esi
mov dword [esi + 0x6c], ebx
call fcn.00454f0d
add esp, 0x1c
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.00454dfd
push ebx
push ebx
push ebx
push esi
mov dword [esi + 0xac], eax
call fcn.00454805
push ebx
push ebx
push 1
push ebx
push esi
call fcn.0045364e
push ebx
push esi
call fcn.00462ca4
add esp, 0x34
test eax, eax
je 0x4531b0
jmp 0x43709d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45b95f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x45b96d
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x45ba4e
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x47e128]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x47e128]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x47e128]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x47e128]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x47e128]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x47e128]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x47e128]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x47e128]
xor eax, esi
inc edx
dec edi
jne 0x45b98a
pop ebx
cmp dword [ebp + 0x10], 0
je 0x45ba6f
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x47e128]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x45ba54
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x45f00e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x45f038
test ecx, ecx
jne 0x45f042
test edx, edx
jne 0x45f042
mov eax, edi
jmp 0x45f0ae
cmp eax, 0xffffffff
jne 0x45f042
push 0xfffffffffffffffe
pop eax
jmp 0x45f0ae
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x45f0ae
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00438ec0
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x45f073
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x45f092
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x45f109
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.0045f10e
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x45f0f5
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x45f109
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x45f01a
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x476f80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x477020
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x476fd2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x48c854]
xor eax, edx
inc esi
cmp esi, edi
jl 0x476fb3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x476ffb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x48c854]
xor eax, edx
inc esi
cmp esi, edi
jl 0x476fde
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x4010bc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010ce
mov eax, dword [0x41708b]
shl eax, 2
mov dword [0x41708f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00405314
pop edx
call fcn.004046b0
call fcn.00405318
push 0
call fcn.004065e8
pop ecx
push 0x417034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x417093], eax
push 0
jmp fcn.0040a91c

Function at 0x401370
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x45d170]
mov edx, dword [0x45d178]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x45d174]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x45d17c]
mov dword [0x4622c8], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4014b4
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40141f
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014b6
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.004057b0
add esp, 0xc
test eax, eax
je 0x401439
xor eax, eax
jmp 0x4014b6
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401462
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014b6
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x45d16c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x45d16c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4014ad
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x4014b6
mov eax, 1
jmp 0x4014b6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4014c0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
lea eax, [ebp - 0x458]
push eax
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow3L.exe
lea edx, [ebp - 0x458]
push edx
call sub.KERNEL32.DLL_lstrcatA
push 4
push 0x1000
push 0x6000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x40150d
xor eax, eax
jmp 0x4015d3
push ebx
push 0x4570a4
call fcn.0040cb1c
add esp, 8
lea edx, [ebp - 0x458]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x401555
push 0
lea eax, [ebp - 4]
push eax
push 0x6000
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00405634
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push 0x10
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00405634
add esp, 0xc
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x458]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x4015c3
xor eax, eax
jmp 0x4015d3
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4032ec
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403320
mov edx, dword [eax + 8]
test edx, edx
jne 0x40330f
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x40331c
add edx, esi
cmp ebx, edx
jb 0x40332d
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403305
xor eax, eax
pop esi
pop ebx
pop ebp
ret