joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494a18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
mov eax, ebp
mov edx, dword [esp]
call fcn.00404a14
mov esi, ebx
mov eax, dword [ebp]
call fcn.00404c80
test ax, ax
jbe 0x494a83
mov word [esp + 4], ax
mov bx, 1
mov eax, ebp
call fcn.00404ed8
movzx edi, bx
mov edx, dword [ebp]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [esp]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xce6d
add ax, 0x58bf
mov esi, eax
inc ebx
dec word [esp + 4]
jne 0x494a48
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49546c
Capabilities:
Create thread

Disassembly:
push ecx
push esp
push 0
push 0
push 0x495258
push 0
push 0
call sub.kernel32.dll_CreateThread_1
pop edx
ret

Function at 0x495bd4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x495d23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x49f114]
mov edx, dword [eax]
call dword [edx + 0x54]
test al, al
je 0x495ceb
xor edx, edx
mov eax, dword [0x49f134]
call fcn.0042f70c
mov edx, 0x495d3c
mov eax, dword [0x49f114]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
or ecx, 0xffffffff
mov edx, 0x495d4c
mov eax, dword [0x49f114]
mov esi, dword [eax]
call dword [esi + 0x70]
xor eax, eax
push ebp
push 0x495cd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x495d58
call fcn.00404dcc
jne 0x495c5b
mov eax, ebx
call fcn.00495dd0
mov eax, dword [ebp - 4]
mov edx, 0x495d70
call fcn.00404dcc
jne 0x495c71
mov eax, ebx
call fcn.00495f14
mov eax, dword [ebp - 4]
mov edx, 0x495d88
call fcn.00404dcc
jne 0x495c87
mov eax, ebx
call fcn.00495fdc
mov eax, dword [ebp - 4]
mov edx, 0x495d9c
call fcn.00404dcc
jne 0x495c9d
mov eax, ebx
call fcn.004960c8
mov eax, dword [ebp - 4]
mov edx, 0x495dac
call fcn.00404dcc
jne 0x495cb3
mov eax, ebx
call fcn.00496254
mov eax, dword [ebp - 4]
mov edx, 0x495dc4
call fcn.00404dcc
jne 0x495cc9
mov eax, ebx
call fcn.00496400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495cdd
mov dl, 1
mov eax, dword [0x49f134]
call fcn.0042f70c
jmp 0x495d0d
xor edx, edx
mov eax, dword [0x49f134]
call fcn.0042f70c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x495930
push 0
push 0
call sub.kernel32.dll_CreateThread_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495d2a
lea eax, [ebp - 4]
call fcn.004049c0
ret

Function at 0x498248
Capabilities:
Create thread

Disassembly:
push ebx
push ecx
mov ebx, eax
mov eax, ebx
call fcn.00441704
mov dword [0x49f1dc], eax
push esp
push 0
push 0
push 0x497cf0
push 0
push 0
call sub.kernel32.dll_CreateThread_1
pop edx
pop ebx
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0xde400
push 0
call sub.kernel32.dll_GetCommandLineW
call sub.kernel32.dll_VirtualAlloc
call fcn.004a2bfd
ret
Function at 0x1122058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.011221a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x112207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112206a
add dl, dl
jne 0x1122089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11220dc
xor eax, eax
add dl, dl
jne 0x1122096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x112217d
add dl, dl
jne 0x11220a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11220b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11220bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11220c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11220d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1122075
mov eax, 1
add dl, dl
jne 0x11220ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11220f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11220e1
sub eax, ebx
mov ebx, 1
jne 0x1122128
mov ecx, 1
add dl, dl
jne 0x112210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1122119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1122105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1122075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x112213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x112214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1122136
cmp eax, 0x7d00
jae 0x112216d
cmp eax, 0x500
jb 0x1122168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1122075
cmp eax, 0x7f
ja 0x1122170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1122075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x112219e
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 0x1122075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x410cb0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x410e38
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x410cda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410ce1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410cd0
mov eax, 1
add ebx, ebx
jne 0x410cf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410ce8
jne 0x410d04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410ce8
xor ecx, ecx
sub eax, 3
jb 0x410d18
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x410d8a
mov ebp, eax
add ebx, ebx
jne 0x410d23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x410d54
inc ecx
add ebx, ebx
jne 0x410d40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x410d35
jne 0x410d51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410d35
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x410d74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x410d65
jmp 0x410cd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x410d74
add edi, ecx
jmp 0x410cd6
pop esi
mov edi, esi
mov ecx, 0x2f2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x410d92
cmp byte [edi], 1
jne 0x410d92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x410d97
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x410e06
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x101b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1021c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x410dc4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10220]
or eax, eax
je 0x410e00
mov dword [ebx], eax
add ebx, 4
jmp 0x410de1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x410e37
cmp al, 0xef
ja 0x410e2a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x410e0c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x410e19
popal
jmp 0x408604
Function at 0x402f20
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x407144
push str.GetLastError
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.ExitProcess
push ebx
call esi
push eax
call edi
push str.GetCurrentThreadId
push ebx
call esi
push eax
call edi
push str.CreateMutexA
push ebx
call esi
push eax
call edi
push str.GetModuleFileNameA
push ebx
call esi
push eax
call edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push str.Sleep
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push 0x104
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [ebp - 8]
call fcn.00403005
test eax, eax
je 0x402fe7
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.Sertiey
push eax
mov dword [ebp - 0x14], 0x402cb3
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Framewordk_COMx_Suppogt
push str.Sertiey
jmp loc.00412000
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x699909b2
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x218134e1
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4022f8
Capabilities:
Read file via mapping

Disassembly:
push ebx
push dword [esi + 0x4fe0]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x4fd8]
mov ebx, dword [esi + 0x4fdc]
shr eax, 0x1c
mov ecx, edi
and ecx, 0xf
shl ebx, 4
add eax, ebx
mov edx, edi
shr edx, 4
shl ecx, 0x1c
cmp edi, eax
sbb eax, eax
and eax, 0x10000000
push eax
push ecx
push edx
push 4
push dword [esi + 0x28]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x4fe0], eax
pop ebx
je 0x40234f
mov dword [esi + 0x18], edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LastError
call fcn.0040109f
push 0xdf
call fcn.0041482f
push eax
call fcn.00414718
pop ecx
pop ecx
ret
Function at 0x403034
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403042
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esi + 0x4fe0]
and dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [esi + 0x10], 0
je 0x40307b
cmp dword [esi + 0x2c], 0
je 0x40307b
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
lea eax, [esi + 0x48]
cmp word [eax], 0x7e
jne 0x40307b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x416d64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
xor edi, edi
cmp word [0x44ca58], di
mov esi, 0x44ca58
jne 0x416d8b
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x416d9c
push 0x5c
push esi
call fcn.00420e23
cmp eax, edi
pop ecx
pop ecx
je 0x416d9c
mov word [eax], di
push esi
call fcn.00420223
cmp eax, 3
pop ecx
jne 0x416db9
cmp word [0x44ca5c], 0x5c
jne 0x416db9
mov word [0x44ca5c], di
cmp dword [ebp + 0x1c], edi
mov ebx, 0x208
je 0x416dd0
push dword [ebp + 0x1c]
push ebx
push esi
call fcn.0042074b
add esp, 0xc
push dword [ebp + 0x18]
push ebx
push esi
call fcn.004218ae
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
push str.OPEN
push dword [ebp + 8]
mov dword [ebp - 0x4c], 0x4c
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x88002c
mov word [ebp - 0x14], di
mov word [ebp - 0x12], di
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x416c6a
mov dword [ebp - 4], edi
call fcn.0042187c
add esp, 0x14
test eax, eax
jne 0x416e5a
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
mov dword [ebp + 0x1c], eax
push str.SAVE
push dword [ebp + 8]
call fcn.0042187c
test eax, eax
pop ecx
pop ecx
jne 0x416e7a
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], edi
jne 0x416e83
xor eax, eax
jmp 0x416ece
push str.SAVE
push dword [ebp + 8]
call fcn.0042187c
test eax, eax
pop ecx
pop ecx
jne 0x416ecc
cmp word [ebp - 0x12], di
mov ecx, dword [ebp - 0x40]
jne 0x416ecc
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax - 1]
xor edx, edx
cmp eax, edi
jbe 0x416ebe
mov di, word [ecx]
inc ecx
inc ecx
test di, di
jne 0x416eac
inc edx
movzx edi, dx
cmp edi, eax
jb 0x416eac
add ecx, 2
push ecx
push ebx
push esi
call fcn.004218ae
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41fba2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446b0c]
jne 0x41fbac
repz ret
jmp fcn.00424e6b
Function at 0x4361bb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042a32e
xor ebx, ebx
cmp dword [0x44b2fc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x436290
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4361fb
xor eax, eax
jmp 0x436354
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4361f4
push eax
call fcn.0042a2cb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44b2fc], eax
call esi
push eax
call fcn.0042a2cb
mov dword [esp], 0x44003c
push edi
mov dword [0x44b300], eax
call esi
push eax
call fcn.0042a2cb
mov dword [0x44b304], eax
lea eax, [ebp - 8]
push eax
call fcn.00424be1
test eax, eax
pop ecx
pop ecx
je 0x43625e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425a37
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x436290
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042a2cb
cmp eax, ebx
pop ecx
mov dword [0x44b30c], eax
je 0x436290
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a2cb
pop ecx
mov dword [0x44b308], eax
mov eax, dword [0x44b308]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x436309
cmp dword [0x44b30c], esi
je 0x436309
push eax
call fcn.0042a337
pop ecx
call eax
cmp eax, ebx
je 0x4362d6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44b30c]
call fcn.0042a337
pop ecx
call eax
test eax, eax
je 0x4362d6
test byte [ebp - 0x18], 1
jne 0x436309
lea eax, [ebp - 0xc]
push eax
call fcn.00424c18
test eax, eax
pop ecx
je 0x4362f1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425a37
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x436300
or dword [ebp + 0x10], 0x200000
jmp 0x43633a
or dword [ebp + 0x10], 0x40000
jmp 0x43633a
mov eax, dword [0x44b300]
cmp eax, esi
je 0x43633a
push eax
call fcn.0042a337
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43633a
mov eax, dword [0x44b304]
cmp eax, esi
je 0x43633a
push dword [ebp - 4]
push eax
call fcn.0042a337
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44b2fc]
call fcn.0042a337
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439dd6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x446b0c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00439d6b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004204c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x439e25
cmp dword [ebp - 0x1c], 5
jb 0x439e3d
jmp 0x439e39
cmp dword [ebp - 0x10], 1
jne 0x439e3d
cmp dword [ebp - 0x1c], 4
ja 0x439e39
jne 0x439e3d
cmp dword [ebp - 0x18], 0
jbe 0x439e3d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4400d0
call fcn.00439c3f
test eax, eax
jge 0x439e5e
mov byte [0x44b388], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041fba2
add ebp, 0x78
leave
ret
Function at 0x401091
Capabilities:
Read file on windows

Disassembly:
push esi
mov ecx, dword [0x45b3c0]
push edi
mov eax, dword [0x46631c]
mov esi, dword [ecx + 0x14]
mov edx, eax
sub edx, esi
cmp edx, dword [ecx + 0x18]
jl 0x42696e
dec eax
mov ecx, dword [0x4663a8]
mov dword [0x46631c], eax
mov edi, dword [ecx]
call dword [edi + 8]
mov edi, 1
mov ecx, dword [0x46631c]
mov eax, ecx
sub eax, edi
mov dl, byte [eax]
mov eax, esi
sub eax, edi
inc edi
cmp edi, 2
mov byte [eax], dl
jle 0x4010ca
mov ecx, dword [0x4663a8]
mov dword [0x46631c], esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x45b3c0]
mov eax, dword [ecx + 0x28]
test al, 2
je 0x401128
mov byte [esi], 0
test al, 8
mov dword [ecx + 0x18], 0
jne 0x401120
push 1
mov ecx, dword [0x4663a8]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [0x45b3c0]
or dword [ecx + 0x28], 8
mov eax, 1
pop edi
pop esi
ret
push 0x7000
test al, 1
jne 0x426986
push esi
mov eax, dword [0x45b3d0]
push eax
call dword [sym.imp.MSVCRT40.dll__read]
add esp, 0xc
mov edi, eax
mov eax, dword [0x45b3c0]
mov ecx, dword [eax + 0x18]
add dword [eax + 0x1c], ecx
mov dword [eax + 0x18], edi
test edi, edi
jle 0x4269bc
cmp edi, 0x7000
jae 0x4011ab
test byte [eax + 0x28], 1
jne 0x426998
mov eax, dword [0x45b3d0]
push eax
call dword [sym.imp.MSVCRT40.dll__eof]
add esp, 4
test eax, eax
je 0x4011ab
mov ecx, dword [0x45b3c0]
mov eax, dword [ecx + 0x28]
or eax, 2
cmp dword [0x45c0ac], 0
mov dword [ecx + 0x28], eax
je 0x4011ab
test al, 1
jne 0x4011ab
lea eax, [edi + esi]
cmp byte [eax - 1], 0xa
jne 0x4269b0
xor eax, eax
mov byte [edi + esi], 0
pop edi
pop esi
ret
dec eax
cmp byte [eax], 0x1a
jne 0x426981
pop edi
mov dword [0x46631c], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop edi
pop esi
ret
mov edx, esi
mov ecx, dword [0x466d2c]
call fcn.0044201b
jmp 0x401145
mov ecx, dword [0x466d2c]
call fcn.00442166
test eax, eax
je 0x40116f
jmp 0x401182
inc edi
mov byte [eax], 0xa
mov dword [ecx + 0x18], edi
jmp 0x4011ab
jge 0x4269e8
mov eax, dword [eax + 0xc]
cmp dword [0x45b3cc], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, 0x54
push edx
sbb edx, edx
and edx, 0xfffffffe
add edx, 0x157
call fcn.004472b0
mov eax, dword [0x45b3c0]
or dword [eax + 0x28], 2
cmp dword [0x45c0ac], 0
je 0x4269f9
mov byte [esi], 0xa
inc esi
xor eax, eax
pop edi
mov byte [esi], 0
pop esi
ret

Function at 0x40d6c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov dl, bh
mov esi, dword [esp + 0x10]
add esi, eax
cmp eax, esi
jae 0x40d6fe
xor ecx, ecx
inc eax
mov cl, bl
xor ebx, ebx
mov bl, dl
mov cl, byte [ecx + 0x45f6c0]
mov dl, byte [eax - 1]
xor cl, byte [ebx + 0x45f5c0]
xor dl, cl
xor ecx, ecx
mov cl, dl
cmp eax, esi
mov dl, byte [ecx + 0x45f4c0]
jb 0x40d6d6
xor eax, eax
xor ecx, ecx
mov al, dl
mov cl, bl
shl eax, 8
pop esi
or eax, ecx
pop ebx
ret 0xc
Function at 0x40e530
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x466450], 0
jne 0x42eb5f
test byte [0x45bf91], 0x80
jne fcn.0040e53d
push ebx
mov eax, dword [0x466294]
push esi
push edi
push eax
push 1
push 2
push 0x453054
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
mov esi, dword [sym.imp.MSVCRT40.dll_putchar]
mov edi, dword [sym.imp.MSVCRT40.dll_fputc]
mov eax, dword [0x46631c]
xor ebx, ebx
mov al, byte [eax]
mov bl, al
inc dword [0x46631c]
xor eax, eax
mov al, byte [ebx + 0x45b0b0]
test eax, eax
je 0x43f328
cmp eax, 2
je 0x42eb93
cmp eax, 5
je 0x43f365
mov eax, dword [0x466294]
push eax
push ebx
call edi
add esp, 8
jmp 0x42eb93
mov eax, dword [0x46631c]
mov al, byte [eax - 1]
cmp al, 0x3f
jne 0x43f346
call fcn.0040af11
test al, 0x40
jne 0x42ebc2
jmp 0x42eb93
cmp al, 0x5c
jne 0x43f35b
push 0x5c
call esi
add esp, 4
call fcn.0040a790
jmp 0x42eb93
call fcn.00408004
jmp 0x42eb93
pop edi
dec dword [0x46631c]
pop esi
pop ebx
ret

Function at 0x418ce0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x200
xor edx, edx
push ebx
push esi
push edi
lea esi, [ecx + 4]
push ebp
cmp dword [esi], edx
jne 0x43416a
xor ebx, ebx
xor ebp, ebp
push str.MSC_CMD_FLAGS
call dword [sym.imp.MSVCRT40.dll_getenv]
add esp, 4
mov esi, eax
cmp esi, ebx
je 0x418d13
cmp byte [esi], bl
jne 0x418d3d
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x200
ret
test ebx, ebx
jne 0x418d73
cmp byte [esi], 0
je 0x418d28
inc esi
lea ecx, [esp + 0x10]
mov edx, ebp
mov byte [edi], 0
call fcn.00418c3e
mov ebp, eax
cmp byte [esi], 0
je 0x418d13
cmp byte [esi], 0x20
je 0x434181
mov al, byte [esi]
test al, al
je 0x418d38
lea edi, [esp + 0x10]
jmp 0x418d6d
cmp ecx, 0x16
je 0x43418d
cmp ecx, 0x23
mov byte [edi], al
je 0x434199
inc edi
inc esi
cmp byte [esi], 0
je 0x418d22
mov al, byte [esi]
cmp al, 0x20
je 0x418d1e
xor edx, edx
xor ecx, ecx
mov dl, al
mov cl, byte [edx + 0x45b0b0]
test ecx, ecx
jne 0x418d52
cmp al, 0x3f
je 0x418d9d
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
je 0x418d9d
mov byte [edi], 0x5c
inc edi
mov al, byte [esi]
test al, al
je 0x418d68
cmp al, 0x20
je 0x418da1
mov byte [edi], al
jmp 0x418d66
test ebx, ebx
je 0x418d68
jmp 0x418d9d
mov ecx, dword [esi]
add esi, 4
call fcn.00418c3e
mov edx, eax
cmp dword [esi], 0
je 0x418cf7
jmp 0x43416a
inc esi
cmp byte [esi], 0x20
jne 0x418d46
jmp 0x434181
cmp ebx, 1
sbb ebx, ebx
neg ebx
jmp 0x418d67
mov al, byte [esi + 1]
inc esi
inc edi
jmp 0x418d9d
Function at 0x418dc2
Capabilities:
Get system information on windows

Disassembly:
mov dword [0x45c580], 1
push esi
push edi
call fcn.00418ede
call fcn.00417cd7
push 0x41ef77
call fcn.00419a2f
add esp, 4
mov esi, dword [sym.imp.MSVCRT40.dll_signal]
push fcn.00444867
push 2
call esi
add esp, 8
push fcn.00444867
push 0xf
call esi
add esp, 8
push fcn.00444867
push 0x15
call esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 8
mov ecx, edi
mov dword [0x467040], esi
mov dword [0x467044], edi
call fcn.00418ce0
call fcn.00417e1b
push 0x45c6d8
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.00417bd8
mov edx, edi
mov ecx, esi
call fcn.0041a501
mov ecx, str.init1
call fcn.00407071
cmp dword [0x45c494], 0
je 0x4341a3
or dword [0x45bf98], 0x2000
cmp dword [0x45c100], 0
jne 0x4341b5
call fcn.00418f1b
jmp 0x4341b2
and dword [0x45bf98], 0xffffdfff
jmp 0x418e69
pop edi
pop esi
ret
call fcn.00418f52
pop edi
pop esi
ret