joyce8/EMBER2024-capa huggingface dataset:
Function at 0x27821b93
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x2782b090
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x27821bb7
add eax, 8
inc ebp
cmp eax, 0x2782b120
jb 0x27821ba8
cmp ecx, dword [ebp*8 + 0x2782b090]
jne 0x27821d5e
mov eax, dword [0x2782b380]
cmp eax, 1
je 0x27821d20
test eax, eax
jne 0x27821be3
cmp dword [0x2782500c], 1
je 0x27821d20
cmp ecx, 0xfc
je 0x27821d5e
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x27821c1e
mov ecx, 5
mov esi, 0x277cbee8
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x27821c67
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x277cbee4
add ebx, ecx
push ebx
call fcn.27821f8c
add esp, 0xc
mov ecx, 6
mov esi, 0x277cbec8
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x277cbec2
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x277cbe9c
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x2782b094]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.27821efd
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x278271c0]
test eax, eax
je 0x27821d31
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x27821d3b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x2782b094]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x10007480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.10007207
sub esp, ecx
jle 0x100074ce
lea eax, [ebp - 0x58]
push eax
call fcn.10007217
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.100071cc
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x100074f5
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10007207
ja 0x10007565
mov esp, 0xc0458d96
push eax
invalid
invalid
cld

Function at 0x100075e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
invalid
inc ebp

Function at 0x100075f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lahf
adc esi, eax
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35

Function at 0x10007630
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49

Function at 0x100076a6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.10007207
sbb ch, ah
or cl, byte ds:[ebp - 0x837b]
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x10007ab0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x14]
call fcn.100071cc
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
movsd dword es:[edi], dword [esi]
cmp eax, 0xfffffc

Function at 0x10007b00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
movsd dword es:[edi], dword [esi]
cmp eax, 0xfffffc
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
invalid
test dword [ecx - 4], eax
invalid

Function at 0x10007e01
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100071cc
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.10007207
aas
xlatb
js 0x10007e6f
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
invalid

Function at 0x10007e48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
invalid

Function at 0x100080d2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0xfffffdd1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx

Function at 0x100080fd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
invalid
Function at 0xaa5268
Capabilities:
Decompress data using aplib

Disassembly:
call 0xaa53b8
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 0xaa528e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa527a
add dl, dl
jne 0xaa5299
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa52ec
xor eax, eax
add dl, dl
jne 0xaa52a6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa538d
add dl, dl
jne 0xaa52b5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa52c0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa52cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa52d6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xaa52e2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xaa5285
mov eax, 1
add dl, dl
jne 0xaa52fa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa5305
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa52f1
sub eax, ebx
mov ebx, 1
jne 0xaa5338
mov ecx, 1
add dl, dl
jne 0xaa531e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa5329
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa5315
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa5285
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xaa534f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa535a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa5346
cmp eax, 0x7d00
jae 0xaa537d
cmp eax, 0x500
jb 0xaa5378
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa5285
cmp eax, 0x7f
ja 0xaa5380
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa5285
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xaa53ae
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 0xaa5285
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4011db
Capabilities:
Query environment variable
Set console window title
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2ef6c04]
mov ecx, dword [0x2ef39fc]
sub esp, 0xd4c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40128c
mov edi, ecx
mov ebx, eax
cmp dword [0x2ef6c04], 0xae9
jne 0x40127c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x548]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
lea eax, [ebp - 0xd48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.colenivadehuhejewohij
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push str.rirojoxelayufeyorobigefirijecipayotajek
push str.lilitezutavehitusikutiyazowogetolamayesabagotiludumivabomunaboyidiyufalikapesomugazoviwesi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x148]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push edi
call fcn.00401017
add edi, 8
dec ebx
jne 0x401203
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4012f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push dword [0x2ef6c04]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x2ef39fc], eax
ret

Function at 0x405622
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435410]
jne 0x40562c
repz ret
jmp fcn.0040a7f6
Function at 0x40ae7d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403218
and dword [ebp - 0x14], 0
cmp dword [0x437514], 0
mov dword [ebp - 0x18], eax
jne 0x40af30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40afd8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40afd8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x437514], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x437518], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43751c], eax
call edi
push eax
call esi
mov dword [0x437524], eax
test eax, eax
je 0x40af30
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x437520], eax
mov eax, dword [0x437520]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af89
cmp dword [0x437524], ecx
je 0x40af89
push eax
call esi
push dword [0x437524]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af89
test ebx, ebx
je 0x40af89
call edi
test eax, eax
je 0x40af80
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40af80
test byte [ebp - 8], 1
jne 0x40af89
or dword [ebp + 0x10], 0x200000
jmp 0x40afbc
mov eax, dword [0x437518]
cmp eax, dword [ebp - 0x18]
je 0x40afbc
push eax
call esi
test eax, eax
je 0x40afbc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40afbc
mov eax, dword [0x43751c]
cmp eax, dword [ebp - 0x18]
je 0x40afbc
push eax
call esi
test eax, eax
je 0x40afbc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437514]
call esi
test eax, eax
je 0x40afd8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40afda
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405622
leave
ret
Function at 0x420350
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xc], 1
mov dword [0x4df7b4], ebx
mov dword [0x4df7c4], 0x47b7e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
lea eax, [ebp - 4]
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
push ecx
call fcn.00426d40
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + esi - 1]
cmp esi, ecx
mov dword [ebp - 8], ecx
ja 0x420512
xor edi, edi
cmp esi, ecx
ja 0x4203ee
cmp dword [0x473eac], 1
jle 0x4203d0
movsx ecx, byte [esi]
push 8
push ecx
call fcn.00442e4b
mov ecx, dword [ebp - 8]
add esp, 8
jmp 0x4203de
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
jne 0x4203e9
mov edi, 1
jmp 0x4203ea
inc esi
test edi, edi
je 0x4203b0
test edi, edi
je 0x420512
mov edx, dword [0x4df7b4]
mov eax, dword [ebp - 0xc]
inc edx
cmp edx, eax
mov dword [0x4df7b4], edx
jle 0x420461
cmp eax, 1
jne 0x42043f
push 0x4df7c4
push 0
push 0x2c
mov dword [ebp - 0xc], 0xb
call fcn.00426d40
add esp, 0xc
test eax, eax
jne 0x420514
mov ecx, dword [0x4df7c4]
mov edx, dword [0x47b7e0]
mov dword [ecx], edx
jmp 0x42045e
add eax, 0xa
push 0x4df7c4
mov dword [ebp - 0xc], eax
shl eax, 2
push eax
call fcn.00426d70
add esp, 8
test eax, eax
jne 0x420514
mov ecx, dword [ebp - 8]
mov edx, dword [0x4df7c4]
mov edi, dword [0x4df7b4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], 0
mov dword [edx + edi*4 - 4], eax
mov edi, 1
cmp esi, ecx
ja 0x4204fd
cmp byte [esi], 0x22
jne 0x4204b1
inc esi
test ebx, ebx
je 0x4204aa
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x22
jne 0x4204b1
cmp esi, ecx
ja 0x4204ac
mov edx, dword [ebp - 4]
mov byte [edx], 0x22
mov edx, dword [ebp - 4]
inc edx
inc esi
mov dword [ebp - 4], edx
jmp 0x4204ac
mov ebx, edi
cmp byte [esi], 0x22
je 0x420489
test ebx, ebx
jne 0x4204e7
cmp dword [0x473eac], edi
jle 0x4204d0
movsx eax, byte [esi]
push 8
push eax
call fcn.00442e4b
mov ecx, dword [ebp - 8]
add esp, 8
jmp 0x4204de
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
je 0x4204e7
mov dword [ebp - 0x10], edi
jmp 0x4204f6
mov eax, dword [ebp - 4]
mov dl, byte [esi]
mov byte [eax], dl
mov edx, dword [ebp - 4]
inc edx
inc esi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x420480
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov edx, dword [ebp - 4]
inc edx
cmp esi, ecx
mov dword [ebp - 4], edx
jbe 0x4203ae
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x47eb44]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x422cd0
mov eax, dword [ebp + 0x20]
cmp eax, 1
je 0x422cc8
cmp eax, 2
je 0x422cc8
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x422cb6
cmp eax, 0xfffffffa
jne 0x422cb6
mov esi, 1
mov ebx, edi
jmp 0x422cd3
test eax, eax
jne 0x422cd0
mov esi, 1
call fcn.0044e440
mov ebx, eax
jmp 0x422cd3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x47eb44]
test eax, eax
je 0x422cfc
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x422cfc
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x422cfc
push ebx
call fcn.0044e4c0
add esp, 4
push ebx
call fcn.0044e650
add esp, 4
test esi, esi
je 0x422d4c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
call fcn.0044e550
mov edi, dword [ebp + 0x14]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [edi], esi
jne 0x422d24
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push ebx
push 2
push 0x46ddbc
call fcn.0044e510
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov byte [esi + edx], 0xa
mov eax, dword [edi]
inc eax
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
pop ebp
ret
Function at 0x425430
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x47e8f0]
push ebx
xor eax, eax
push esi
test edx, edx
push edi
jbe 0x42545c
mov ecx, 0x47b900
mov esi, dword [ebp + 8]
mov edi, dword [ecx]
cmp esi, edi
je 0x425529
inc eax
add ecx, 8
cmp eax, edx
jb 0x425447
mov eax, dword [ebp + 0xc]
push 0x800
push 0x47dd90
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x425479
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0x10000080
push 3
push 0
push 1
push 0x80000000
push 0x47dd90
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4254aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
test esi, esi
jne 0x4254d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
jne 0x425501
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
add eax, ecx
mov ecx, dword [0x47e8f0]
mov dword [ecx*8 + 0x47b900], edx
mov dword [ecx*8 + 0x47b904], eax
inc ecx
mov dword [0x47e8f0], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [eax*8 + 0x47b904]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x430930
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0042ef70
mov eax, dword [0x47eb44]
mov esi, dword [ebp + 8]
test eax, eax
je 0x430958
test esi, esi
je 0x43094d
mov eax, dword [esi]
jmp 0x43094f
xor eax, eax
push eax
call fcn.0044e630
add esp, 4
test esi, esi
je 0x43096c
mov esi, dword [esi]
push esi
call fcn.00442b6c
add esp, 4
pop esi
pop ebp
ret 4
xor esi, esi
push esi
call fcn.00442b6c
add esp, 4
pop esi
pop ebp
ret 4
Function at 0x444798
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4742a8
cmp edx, dword [eax]
je 0x4447ba
add eax, 8
inc ecx
cmp eax, 0x474338
jl 0x4447ab
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4742a8]
jne 0x4448e8
mov eax, dword [0x47e920]
cmp eax, 1
je 0x4448c2
test eax, eax
jne 0x4447eb
cmp dword [0x473b8c], 1
je 0x4448c2
cmp edx, 0xfc
je 0x4448e8
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x444822
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0044a170
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00446950
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x444865
lea eax, [ebp - 0x1a4]
push eax
call fcn.00446950
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x461d60
push edi
call fcn.004429f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0044a170
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0044a180
lea eax, [ebp - 0xa0]
push 0x461d40
push eax
call fcn.0044a180
push dword [esi + 0x4742ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0044a180
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0044a260
add esp, 0x2c
pop edi
jmp 0x4448e8
lea eax, [ebp + 8]
lea esi, [esi + 0x4742ac]
push 0
push eax
push dword [esi]
call fcn.00446950
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 0x447689
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4476a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044be9f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4476ca
test byte [esp + 8], 2
je 0x4476ca
mov dword [0x47e92c], 0xd
mov dword [0x47e930], 5
jmp 0x4476a5
xor eax, eax
ret

Function at 0x44f1c5
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
test eax, eax
jle 0x44f212
push ebx
push edi
lea edi, [esi + 8]
mov ebx, eax
mov eax, dword [esi + 4]
push 3
shr eax, 0xb
and eax, 7
push eax
push edi
call fcn.0044f31b
mov eax, dword [esi + 4]
add esp, 0xc
mov ecx, eax
and cx, 0xf800
add ecx, 0x800
xor ecx, eax
and ecx, 0x3800
xor ecx, eax
dec ebx
mov dword [esi + 4], ecx
jne 0x44f1d9
pop edi
pop ebx
pop esi
ret
jge 0x44f23f
mov ecx, dword [esi + 4]
push 0
mov eax, ecx
add esi, 8
and ax, 0xf800
dec eax
xor eax, ecx
and eax, 0x3800
xor eax, ecx
mov dword [esi - 4], eax
shr eax, 0xb
and eax, 7
push eax
push esi
call fcn.0044f31b
add esp, 0xc
pop esi
ret