joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4123d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b9a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [esp + 0x10], esi
push 0x4399d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 1
call fcn.00420dbb
lea eax, [esp + 4]
lea edx, [esp + 0x2c]
push eax
push 0x20019
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x30], 2
mov dword [esp + 0x18], esi
call fcn.00420ac2
lea eax, [esp + 0x1c]
push eax
call fcn.0040ca60
add esp, 8
mov ecx, eax
mov byte [esp + 0x28], 3
call fcn.004022c0
mov ecx, dword [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 2
call fcn.00420d4d
push ecx
lea edx, [esp + 0x30]
mov esi, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00420ac2
push esi
call fcn.0040d0e0
mov eax, dword [esp + 0x10]
add esp, 8
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004122b0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 4
call fcn.00420e3a
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 2
call fcn.00420d4d
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x24]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00420ac2
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call fcn.00420d4d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call fcn.00420d4d
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x1c
ret

Function at 0x412500
Capabilities:
Access peb ldr_data
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x42b9d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push 0x2001f
push esi
push esi
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
call fcn.00420ac2
lea eax, [esp + 0x20]
push eax
call fcn.0040ca60
add esp, 8
mov ecx, eax
mov byte [esp + 0x28], 1
call fcn.0042111c
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 0
call fcn.00420d4d
push esi
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00420ac2
lea eax, [esp + 0x28]
push eax
call fcn.0040d0e0
add esp, 8
mov ecx, eax
mov byte [esp + 0x1c], 2
call fcn.0042111c
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
sete bl
call fcn.00420d4d
test bl, bl
je 0x4125c7
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00420d4d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret
Function at 0x412670
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
xor ebp, ebp
push edi
xor ebx, ebx
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x4127ff
cmp al, 4
jbe 0x412728
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4127ff
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VerSetConditionMask
push eax
call ebx
test eax, eax
je 0x4127ff
push 6
push 0x40
push ebp
push ebp
call eax
push str.KERNEL32.DLL
mov esi, eax
mov ebp, edx
call edi
test eax, eax
je 0x41280c
push str.VerifyVersionInfoA
push eax
call ebx
mov edx, eax
test edx, edx
je 0x41280c
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x20]
push ebp
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x28]
push 0x40
push eax
mov dword [esp + 0x30], 0x9c
mov word [esp + 0xc8], 0x10
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4127f0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push ebx
push eax
push ebx
push str.ProductSuite
push ecx
call esi
test eax, eax
jne 0x4127f0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4127f0
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x4127f0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push edi
push eax
push ebx
push str.ProductSuite
push ecx
call esi
test eax, eax
jne 0x4127e7
cmp dword [esp + 0x1c], 7
jne 0x4127e7
mov al, byte [edi]
mov esi, edi
test al, al
je 0x4127e7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.Terminal_Server
push esi
call ebx
test eax, eax
je 0x4127db
push esi
call ebp
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4127c1
jmp 0x4127e3
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4127ff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
Function at 0x417fed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x438ff0
cmp edx, dword [eax]
je 0x41800f
add eax, 8
inc ecx
cmp eax, 0x439080
jl 0x418000
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x438ff0]
jne 0x41813d
mov eax, dword [0x43c430]
cmp eax, 1
je 0x418117
test eax, eax
jne 0x418040
cmp dword [0x4388f4], 1
je 0x418117
cmp edx, 0xfc
je 0x41813d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418077
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414be0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419100
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4180ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419100
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4378e8
push edi
call fcn.0041b370
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414be0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414bf0
lea eax, [ebp - 0xa0]
push 0x42fa1c
push eax
call fcn.00414bf0
push dword [esi + 0x438ff4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414bf0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041b2d9
add esp, 0x2c
pop edi
jmp 0x41813d
lea eax, [ebp + 8]
lea esi, [esi + 0x438ff4]
push 0
push eax
push dword [esi]
call fcn.00419100
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 0x423811
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x423853
call fcn.00428145
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x423853
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42384a
xor eax, eax
jmp 0x42385b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00423861
pop edi
pop esi
pop ebx
ret 4

Function at 0x42870c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42873a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x428758
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428672
jmp 0x428758
mov eax, dword [esi + 0x14]
test eax, eax
je 0x428758
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00428672
test edi, edi
mov eax, edi
jne 0x428742
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x27f8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x27f81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x27f807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x27f806a
add dl, dl
jne 0x27f8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x27f80dc
xor eax, eax
add dl, dl
jne 0x27f8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x27f817d
add dl, dl
jne 0x27f80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x27f80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x27f80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x27f80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x27f80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x27f8075
mov eax, 1
add dl, dl
jne 0x27f80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x27f80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x27f80e1
sub eax, ebx
mov ebx, 1
jne 0x27f8128
mov ecx, 1
add dl, dl
jne 0x27f810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x27f8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x27f8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x27f8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x27f813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x27f814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x27f8136
cmp eax, 0x7d00
jae 0x27f816d
cmp eax, 0x500
jb 0x27f8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x27f8075
cmp eax, 0x7f
ja 0x27f8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x27f8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x27f819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x27f8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x302d5b0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x302d5c7
push 0x57
call fcn.0305f400
jmp 0x302d624
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x302d5ea
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x302d622
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x302d617
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x302d617
mov eax, dword [ebp - 4]
jmp 0x302d624
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x302d5e1
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x3037260
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x3037286
cmp dword [ebp + 0x18], 0
je 0x303727a
cmp dword [ebp + 0x1c], 0
jne 0x3037286
push 0x57
call fcn.0305f400
jmp 0x30373d5
mov eax, dword [ebp + 8]
push eax
call fcn.0305f400
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x30372a4
push 6
call fcn.0305f400
jmp 0x30373d5
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0305f400
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x30372cc
push 0x7e
call fcn.0305f400
jmp 0x30373d5
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x303738b
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0x14]
push ecx
call dword [0x31185fc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x303730e
push 0x57
call fcn.0305f400
jmp 0x30373d5
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
jne 0x3037339
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x57
call fcn.0305f400
jmp 0x30373d5
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0305f400
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x303737f
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x303737f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x1c]
je 0x303737f
mov ecx, dword [ebp - 4]
push ecx
call fcn.0305f400
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x30373b1
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0305f400
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30373b1
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x30373c0
push 0x57
call fcn.0305f400
jmp 0x30373d5
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0305f400
mov esp, ebp
pop ebp
ret 0x18
Function at 0x3068570
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x3111090
push 0x306c8e7
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x3116978]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x3068663
cmp dword [ebp + 8], 0xffffffff
je 0x3068663
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x3068643
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0x4550
jne 0x3068609
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x3068612
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x3068612
mov dword [ebp - 0x1c], 0
jmp 0x3068643
cmp dword [ebp + 0xc], 0
je 0x3068643
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
jne 0x3068636
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0305f400
jmp 0x3068643
mov ecx, 0x42
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], 0xfffffffe
jmp 0x3068663
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405df0
Capabilities:
Initialize winsock library

Disassembly:
push esi
push str.Winsock_init._n
call fcn.00401450
push 0x590
call fcn.0040753b
push str.About_to_call_WSAStartup_n
mov esi, eax
call fcn.00401450
add esp, 0xc
push esi
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x405e3b
push eax
push str.Winsock_failed_to_initialise___error_code__d._n
call fcn.00401450
push esi
call fcn.00407530
add esp, 0xc
xor al, al
pop esi
ret
push str.Winsock_initialised_OK_n
call fcn.00401450
mov ax, word [esi]
add esp, 4
mov cl, al
xor cl, 1
jne 0x405e8a
and eax, 0xffff
mov edx, eax
xor edx, 0x100
test edx, 0xffffff00
jne 0x405e8a
mov ecx, eax
and eax, 0xff
shr ecx, 8
push ecx
push eax
push str.Winsock_version_is__d._d_n
call fcn.00401450
push esi
call fcn.00407530
add esp, 0x10
mov al, 1
pop esi
ret
push str.Winsock_version_is_less_than_1.1_n
call fcn.00401450
push esi
call fcn.00407530
add esp, 8
xor al, al
pop esi
ret
Function at 0x40a1c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411e18
cmp edx, dword [eax]
je 0x40a1e3
add eax, 8
inc ecx
cmp eax, 0x411ea8
jl 0x40a1d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411e18]
jne 0x40a311
mov eax, dword [0x55da08]
cmp eax, 1
je 0x40a2eb
test eax, eax
jne 0x40a214
cmp dword [0x411d34], 1
je 0x40a2eb
cmp edx, 0xfc
je 0x40a311
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a24b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b840
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409740
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a28e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409740
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f550
push edi
call fcn.00407910
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b840
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b850
lea eax, [ebp - 0xa0]
push 0x40f530
push eax
call fcn.0040b850
push dword [esi + 0x411e1c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b850
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c9e8
add esp, 0x2c
pop edi
jmp 0x40a311
lea eax, [ebp + 8]
lea esi, [esi + 0x411e1c]
push 0
push eax
push dword [esi]
call fcn.00409740
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 0x427240
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x47d7c8], ecx
add edx, 1
cmp edx, 0x100
jl 0x427243
cmp edx, 0x800
jae 0x42732b
nop
mov eax, dword [edx*4 + 0x47d3c8]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x47d7c8]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x47d7c4], eax
jb 0x427300
mov dword [fcn.0047f7c8], 0x429700
call fcn.004298d0
test eax, eax
jne 0x427348
mov dword [fcn.0047f7c8], 0x4297b0
pop ecx
ret
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x404796
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4047a5
pop dword [ebp - 0x2c]
mov eax, 0xf1c42215
sub eax, 0xf183da70
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3cd67
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x486e
xor ebx, ebx
add ebx, eax
mov esi, 0x33ed3227
sub esi, 0x33aa0427
add esi, dword [ebp - 0x2c]
mov edx, 0xf53d5b6b
sub edx, 0xd2293c91
add dword [ebp - 8], edx
mov edi, dword [esi]
xor dword [ebp - 0x28], 0xba2f1a82
add edi, edx
sub dword [ebp - 0xc], eax
mov dword [ebx], edi
sub dword [ebp - 0x14], 0xf5943a03
add ebx, 0xdf3a2664
add ebx, 0x20c5d9a0
add esi, 0xa5f48fd0
sub esi, 0xa5f48fcc
loop 0x4047fb
add eax, 0x3960e844
add eax, 0xc6a02c47
xor ebx, ebx
add ebx, eax
add eax, 0x189b7970
add eax, 0xe7648695
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40611c
pop dword [ebp - 0x2c]
mov eax, 0xe440172f
add eax, 0x1c0049ed
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x652ed843
add dword [ebp - 0x3c], 0xe9236d08
mov dword [ebp - 0x38], 0xddc2addc
sub dword [ebp - 0x38], 0xab8f6197
mov dword [ebp - 0x34], 0x7814215
add dword [ebp - 0x34], 0x44cb0219
mov dword [ebp - 0x30], 0xa1a2a795
add dword [ebp - 0x30], 0x5e5d586b
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x11498dc7
sub eax, 0x11091d67
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xc039e1fb
sub dword [ebp - 0x3c], 0x4bc778a5
mov dword [ebp - 0x38], 0x7d163623
add dword [ebp - 0x38], 0xc4562b52
mov dword [ebp - 0x34], 0xdf8c3b77
sub dword [ebp - 0x34], 0x7c1ccf0b
mov dword [ebp - 0x30], 0xe12466d1
sub dword [ebp - 0x30], 0xe12466d1
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x3dca8a01
add eax, 0xc275e6ff
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x308cf
push 0
call eax
mov ecx, 0x2fc5
xor edi, edi
add edi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x2c]
mov esi, 0x222f16d7
add esi, 0x52693f2e
add dword [ebp - 4], 0x4522cfb8
mov ebx, dword [edx]
add dword [ebp - 0x1c], eax
xor ebx, esi
xor dword [ebp - 0x14], ebx
mov dword [edi], ebx
xor dword [ebp - 4], 0xb08a2471
add edi, 0x774443f3
sub edi, 0x774443ef
add edx, 4
loop 0x406234
add eax, 0xdc0126b8
sub eax, 0xdc0074d1
mov ebx, eax
add eax, 5
mov ecx, 0x5e162138
sub ecx, 0x5dd62138
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x404a4c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x30]
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404b2c
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [esp + 0x20], 1
mov ebp, eax
je 0x404ae4
push esi
push esi
push esi
push dword [esp + 0x28]
call fcn.00405505
mov esi, eax
test esi, esi
je 0x404b24
push dword [esp + 0x18]
push dword [0x441cd4]
call fcn.00418656
mov ebp, eax
mov eax, 0x10000
push eax
push esi
mov dword [ebp + 0x18], eax
call fcn.004054d0
push eax
push esi
call fcn.004054b6
push eax
call fcn.00405279
mov dword [ebp], eax
test eax, eax
je 0x404adc
mov dword [ebp + 0x14], esi
mov ebx, ebp
jmp 0x404b24
push esi
call fcn.004054a9
jmp 0x404b24
push ebp
push esi
push dword [0x441be0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404b24
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
push dword [esp + 0x20]
call fcn.00404b47
push esi
push 0
push dword [0x441be0]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc