joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499415
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 0x4994b2
push ebx
push esi
call fcn.004993de
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.0049548d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x49945f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4994b1
push edi
push eax
call fcn.0049052d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x49947f
call fcn.0048f947
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4994b0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0049548d
add esp, 0x20
test eax, eax
jne 0x49949e
push edi
call fcn.0048f947
jmp 0x4994a6
push ebx
call fcn.0048f947
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 0x4994b5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4994c6
pop esi
ret
push ebx
push edi
push esi
call fcn.004993de
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0049052d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4994ee
push ebx
push esi
push edi
call fcn.00473020
add esp, 0xc
push 0
call fcn.0048f947
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x499c3a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00499761
Function at 0x4a1595
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]
push dword [ebp + 0xc]
push ebx
call fcn.004a1511
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4a170d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4a170d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4a16bc
jg 0x4a15ee
test eax, eax
je 0x4a16b2
push 1
push 0x1000
call fcn.0048f8ea
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4a1614
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4a16a9
push 0x8000
push ebx
call fcn.0048d9a3
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4a1640
jg 0x4a163b
cmp ecx, 0x1000
jb 0x4a1640
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00492464
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a1685
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 0x4a163b
jl 0x4a166c
test ecx, ecx
jne 0x4a162d
push dword [ebp - 0xc]
push ebx
call fcn.0048d9a3
push esi
call fcn.0048f947
add esp, 0xc
xor edi, edi
jmp 0x4a171e
cmp byte [edi + 0x24], 0
je 0x4a169c
cmp dword [edi + 0x20], 5
jne 0x4a169c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4a16a7
mov edi, dword [edi + 0x18]
jmp 0x4a16a9
xor edi, edi
push esi
call fcn.0048f947
pop ecx
jmp 0x4a171e
test ecx, ecx
jg 0x4a167e
jl 0x4a16bc
test eax, eax
jae 0x4a167e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00493dc1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a16df
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4a167e
jmp 0x4a1716
push ebx
call fcn.0049a28f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4a167e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4a171e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4a171b
mov edi, dword [edi + 0x18]
jmp 0x4a171e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00493dc1
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a1b20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a1b4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a1b4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4028b0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
test eax, eax
je 0x4028c9
push eax
call edi
mov dword [esi], 0
mov eax, dword [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esi], eax
ja 0x402908
pop edi
xor al, al
pop esi
ret 4
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
jne 0x40292c
mov ecx, dword [esi]
push ecx
call edi
pop edi
xor al, al
pop esi
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x2ffff
push 0
push 0
push 4
push eax
call edi
mov edx, dword [esi + 4]
push 0
push 0x30000
push 0
push 4
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
ret 4
Function at 0x402960
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x60
mov edx, dword [esp + 0x64]
push ebx
push ebp
push esi
test edx, edx
push edi
mov dword [esp + 0x14], ecx
je 0x402a8c
mov ebp, dword [ecx + 8]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
mov dword [esp + 0x18], ecx
jle 0x402a8c
jmp 0x4029a4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x1c]
cmp ebx, ecx
mov byte [esp + 0x13], 0
jge 0x4029c8
mov al, byte [ebx + edx]
cmp al, 0x5c
je 0x4029c3
mov edi, ebx
sub edi, esi
inc ebx
cmp ebx, ecx
mov byte [esp + edi + 0x20], al
jl 0x4029ad
jmp 0x4029c8
mov byte [esp + 0x13], 1
mov eax, ebx
sub eax, esi
inc ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + eax + 0x20], 0
mov al, byte [esp + 0x20]
cmp al, 0x2a
jne 0x4029f1
cmp byte [esp + 0x21], 0x2e
jne 0x4029f1
cmp byte [esp + 0x22], 0x2a
jne 0x4029f1
mov byte [esp + 0x21], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x402a35
mov dl, byte [esp + ecx + 0x48]
dec dl
xor dl, 0xec
mov byte [esp + ecx + 0x48], dl
dec ecx
jns 0x402a25
mov al, byte [esp + 0x13]
mov cl, byte [ebp + 0x28]
cmp cl, al
jne 0x402a56
lea ecx, [esp + 0x20]
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0042dd50
add esp, 8
test eax, eax
je 0x402a68
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x402a8c
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx + 8]
add ebp, eax
jmp 0x4029f1
mov al, byte [esp + 0x13]
test al, al
je 0x402a98
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x402a8c
mov edx, dword [esp + 0x14]
mov ebp, dword [edx + 8]
add ebp, eax
mov eax, dword [esp + 0x18]
cmp ebx, eax
jl 0x402998
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret 8
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
dec eax
mov dword [ecx], eax
mov eax, dword [ebp + 0x2c]
mov ecx, dword [edx + 0xc]
pop edi
pop esi
pop ebp
add eax, ecx
pop ebx
add esp, 0x60
ret 8
Function at 0x402b80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5c
mov edx, dword [esp + 0x60]
push ebx
push ebp
push esi
test edx, edx
push edi
mov dword [esp + 0x10], ecx
je 0x402cb2
mov esi, dword [esp + 0x74]
test esi, esi
jne 0x402ba2
mov esi, dword [ecx + 8]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
jle 0x402cb2
jmp 0x402bc6
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
cmp ebp, ebx
jge 0x402bde
mov al, byte [edx + ebp]
cmp al, 0x5c
je 0x402bde
mov edi, ebp
sub edi, ecx
inc ebp
cmp ebp, ebx
mov byte [esp + edi + 0x14], al
jl 0x402bca
mov eax, ebp
sub eax, ecx
inc ebp
mov dword [esp + 0x74], ebp
mov byte [esp + eax + 0x14], 0
mov al, byte [esp + 0x14]
cmp al, 0x2a
jne 0x402c07
cmp byte [esp + 0x15], 0x2e
jne 0x402c07
cmp byte [esp + 0x16], 0x2a
jne 0x402c07
mov byte [esp + 0x15], 0
push 0x28
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.0042def0
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x402c38
mov dl, byte [esp + ecx + 0x40]
dec dl
xor dl, 0xec
mov byte [esp + ecx + 0x40], dl
dec ecx
jns 0x402c28
lea eax, [esp + 0x40]
push eax
call fcn.0043b09c
lea ecx, [esp + 0x18]
push ecx
call fcn.0043b09c
add esp, 8
cmp ebp, ebx
jl 0x402c69
lea edx, [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00402ac0
add esp, 8
test al, al
jne 0x402cbe
cmp byte [esi + 0x28], 1
jne 0x402c85
lea ecx, [esp + 0x14]
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.00402ac0
add esp, 8
test al, al
jne 0x402c9a
mov eax, dword [esi + 0x38]
test eax, eax
je 0x402cb2
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 8]
add esi, eax
jmp 0x402c07
mov eax, dword [esi + 0x34]
test eax, eax
je 0x402cb2
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 8]
add esi, eax
cmp ebp, ebx
jl 0x402bbe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
Function at 0x408ef0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
sub esp, 0x14
push esi
push 0
push 0
push 0
push 0
push str.RS_activating
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x408f21
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
push ebx
push 0
push 0
push 3
push 0
push 0
push 0x50
push str.rskey.ru
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x4090a3
push ebp
push edi
push 0x7d0
call fcn.00453e99
mov edi, dword [esp + 0x2c]
mov esi, eax
push edi
mov byte [esi], 0
call fcn.00408c80
push eax
mov eax, dword [edi]
push eax
push str._bitrix_tools_isale_check_key.php
push str._s_key_sid_s
push esi
call fcn.0042dba5
add esp, 0x1c
push 0
push 0x4000000
push 0
push 0
push str.HTTP_1.0
push esi
push 0x472480
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
je 0x40908d
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x409082
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x18], 0
push 0x64
call edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push 0x76c
push esi
push ebp
call ebx
mov edx, dword [esp + 0x14]
test eax, eax
mov byte [edx + esi], 0
je 0x408ff9
cmp dword [esp + 0x14], 4
ja 0x409009
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x408fcc
jmp 0x409082
push str.err
push esi
mov dword [esp + 0x18], 0
call fcn.0042dc50
mov edi, eax
add esp, 8
test edi, edi
jne 0x40902f
mov dword [esp + 0x10], 0xfffffffa
jmp 0x409082
cmp byte [edi + 4], 0x30
jne 0x40907a
cmp byte [edi + 7], 0x3d
jne 0x40907a
add edi, 8
push 0x472474
push edi
call fcn.0042dc50
add esp, 8
test eax, eax
jbe 0x409053
mov byte [eax], 0
push edi
call fcn.0042e77f
mov edi, eax
add esp, 4
test edi, edi
je 0x409082
push 0
call fcn.0042e140
push eax
mov eax, dword [esp + 0x30]
push edi
push eax
call fcn.00409420
add esp, 0x10
jmp 0x409082
mov dword [esp + 0x10], 0xfffffff9
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, dword [esp + 0x1c]
push esi
call fcn.00453ec2
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x20]
pop edi
pop ebp
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 8]
pop ebx
pop esi
add esp, 0x14
ret
Function at 0x40a540
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x40a566
xor eax, eax
pop esi
add esp, 0x20c
ret
lea ecx, [esp + 0x10]
push pe_nt_image_headers32
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x14]
xor eax, eax
lea edx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
push edx
lea ecx, [esp + 0x124]
push pe_nt_image_headers32
push ecx
push eax
mov dword [esp + 0x28], pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 4]
pop esi
neg eax
sbb eax, eax
and eax, ecx
add esp, 0x20c
ret
Function at 0x40a650
Capabilities:
Get storage device properties

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
sub esp, 0x50
lea edx, [esp + 0x14]
mov byte [eax], 0
push ebx
push ebp
push esi
push edi
push ecx
push str..PhysicalDrive_u
push edx
call fcn.0042dba5
add esp, 0xc
xor esi, esi
lea eax, [esp + 0x24]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a69f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
xor ecx, ecx
lea edx, [esp + 0x64]
mov dword [esp + 0x18], ecx
push esi
mov dword [esp + 0x20], ecx
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x28], ecx
push 8
push eax
lea ecx, [esp + 0x28]
push 0xc
push ecx
push 0x2d1400
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x84], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40a701
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov esi, dword [esp + 0x14]
push esi
call fcn.00453e99
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x68]
lea ecx, [esp + 0x1c]
push eax
push esi
push ebp
push 0xc
push ecx
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40a766
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call fcn.00453ec2
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40a797
lea edi, [eax + ebp]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x68]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40a7c8
lea edi, [eax + ebp]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x68]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.00453ec2
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
Function at 0x40b670
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
push eax
lea esi, [edi + 0x68a8]
mov ecx, esi
call fcn.00457805
mov ecx, dword [esi]
cmp byte [ecx + 5], 0x2d
je 0x40b699
push 0x2d
push 5
mov ecx, esi
call fcn.00453123
mov edx, dword [esi]
cmp byte [edx + 0xb], 0x2d
je 0x40b6ac
push 0x2d
push 0xb
mov ecx, esi
call fcn.00453123
mov eax, dword [esi]
cmp byte [eax + 0x11], 0x2d
je 0x40b6bf
push 0x2d
push 0x11
mov ecx, esi
call fcn.00453123
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push 0x40b620
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [edi + 0x5c]
mov dword [edi + 0x68a0], eax
call fcn.0040afa0
pop edi
pop esi
ret 4

Function at 0x410550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x462828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, ecx
push edi
mov dword [esi], 0x4659b0
call fcn.0040f480
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x465a20
sete al
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], al
lea ecx, [esp + 8]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.00410720
mov eax, dword [esp + 0xc]
mov dword [esp + 8], 0x465a20
test eax, eax
je 0x4105df
mov cl, byte [esp + 0x14]
test cl, cl
je 0x4105df
push eax
call fcn.0042ecb5
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x423090
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x4230f9
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x4230bb
test byte [eax + 0x230], 1
jne 0x4230d8
movzx si, byte [edx]
cmp si, cx
jbe 0x4230d8
push str.Invalid_background_palette_index
push eax
call fcn.0041b730
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
call fcn.00421ed0
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x423171
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.00421eb0
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.00421eb0
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.00421eb0
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x42316a
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x42316a
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.0041b730
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x4230e0
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x4231a4
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.0041b730
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00421eb0
lea ecx, [esp + 0x10]
push 2
push ecx
push str.bKGD
push esi
call fcn.00421ed0
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret
Function at 0x4362cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x476720
cmp edx, dword [eax]
je 0x4362ee
add eax, 8
inc ecx
cmp eax, 0x4767b0
jl 0x4362df
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x476720]
jne 0x43641c
mov eax, dword [0x53efc0]
cmp eax, 1
je 0x4363f6
test eax, eax
jne 0x43631f
cmp dword [0x475a44], 1
je 0x4363f6
cmp edx, 0xfc
je 0x43641c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x436356
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00437d00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00432800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x436399
lea eax, [ebp - 0x1a4]
push eax
call fcn.00432800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x468b3c
push edi
call fcn.0042def0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00437d00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00437d10
lea eax, [ebp - 0xa0]
push 0x468b1c
push eax
call fcn.00437d10
push dword [esi + 0x476724]
lea eax, [ebp - 0xa0]
push eax
call fcn.00437d10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004397e5
add esp, 0x2c
pop edi
jmp 0x43641c
lea eax, [ebp + 8]
lea esi, [esi + 0x476724]
push 0
push eax
push dword [esi]
call fcn.00432800
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]
pop esi
leave
ret

Function at 0x43b5b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x43b5e0
push esi
call fcn.0043f410
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x43b5d9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x43b663
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x43b64f
mov eax, dword [esi + 8]
test eax, eax
je 0x43b604
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43b64b
cmp eax, 2
je 0x43b64f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b5f7
cmp eax, 3
je 0x43b62a
cmp eax, 1
jne 0x43b5f7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b5f7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b5f7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0043b690
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43b683
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0043b690
add esp, 4
pop esi
ret