joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f4e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42f270
push esi
call fcn.00406577
push esi
call fcn.00405ef1
mov edi, eax
test edi, edi
jne 0x405f6f
xor eax, eax
jmp 0x405fc7
push edi
call fcn.00406825
test byte [0x434718], 0x80
je 0x405f8c
mov ax, word [edi]
test ax, ax
je 0x405f6b
cmp ax, 0x5c
je 0x405f6b
sub edi, esi
sar edi, 1
jmp 0x405fa6
call fcn.004068d4
test eax, eax
je 0x405fa0
test byte [eax], 0x10
je 0x405f6b
push esi
call fcn.00405e92
push esi
call sub.KERNEL32.DLL_lstrlenW
cmp eax, edi
push esi
jg 0x405f92
call fcn.00405e46
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406042
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406061
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406067
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
ret 0xc

Function at 0x406096
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x4060e6
test edi, edi
jne 0x4060a3
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060e0
Function at 0x4061bd
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x430108], 0x55004e
mov dword [0x43010c], 0x4c
mov edi, 0x400
mov ebp, 0x430108
je 0x406213
push 1
push 0
push esi
call fcn.00406067
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406332
cmp eax, edi
jg 0x406332
mov esi, 0x430908
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406332
cmp eax, edi
jg 0x406332
push esi
push ebp
push str._ls_ls_r_n
push 0x42fd08
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434710]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004065b4
push 4
push 0xc0000000
push esi
call fcn.00406067
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406332
push 0
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40632b
push edi
push esi
push ebp
call fcn.004060ea
test eax, eax
je 0x40632b
push str._Rename__r_n
push esi
call fcn.00405fcc
test eax, eax
jne 0x4062c9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
add edi, 0xa
jmp 0x4062fe
add eax, 0xa
push 0x40a580
push eax
call fcn.00405fcc
mov ebp, eax
test ebp, ebp
je 0x4062fa
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062eb
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062e5
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406300
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42fd08
push eax
call fcn.00406022
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406119
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406337
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
jne 0x40635a
push dword [esp + 8]
push dword [esp + 8]
call fcn.004061bd
pop ecx
pop ecx
inc dword [0x434790]
ret 8
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
leave
ret 4

Function at 0x406a58
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc
Function at 0x100fdea
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push esi
push 0x444
mov esi, ecx
call fcn.01010506
xor ecx, ecx
cmp ax, 1
sete cl
mov eax, ecx
mov dword [esi + 0x38], eax
mov ecx, esi
mov dword [0x101dba0], eax
pop esi
jmp fcn.0100dc06

Function at 0x100fe19
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push esi
push 0x445
mov esi, ecx
call fcn.01010506
xor ecx, ecx
cmp ax, 1
sete cl
mov dword [esi + 0x3c], ecx
mov ecx, esi
pop esi
jmp fcn.0100dc06

Function at 0x10101c8
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0xc], 0
pop esi
ret

Function at 0x10101ca
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [esi + 0xc], 0
pop esi
ret

Function at 0x101418f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x101a118]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10141d6
cmp dword [ebp - 0x108], 2
jne 0x10141d6
cmp dword [ebp - 0x114], 5
jb 0x10141d6
xor eax, eax
inc eax
jmp 0x10141d8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010139bb
leave
ret
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x47fbc0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040607a
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403e46
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x480af0], eax
push 0x27
push 0x47f628
push 0x547
mov esi, 0x47f650
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x480af0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403ea6
call fcn.00403d5c
xor eax, eax
pop ecx
ret 0x10
Function at 0x417fb0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417e21

Function at 0x4183aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406f70
mov eax, dword [0x47fbc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041612b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4183ec
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418548
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421830
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x481590]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004193a2
mov ecx, dword [esi*4 + 0x481590]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418541
cmp eax, dword [edi + ecx + 0x24]
jne 0x418541
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418541
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004193a2
add esp, 0x14
test edx, edx
jl 0x418541
jg 0x4184b7
test eax, eax
jb 0x418541
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418541
jl 0x4184d1
cmp dword [ebp - 0x1008], eax
ja 0x418541
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4184ef
test ebx, ebx
je 0x418528
cmp ecx, edi
jae 0x418528
mov al, byte [ecx]
cmp al, 0xd
jne 0x418509
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418515
cmp byte [ecx + 1], 0xa
jne 0x418515
inc ecx
jmp 0x418515
movzx eax, al
movsx eax, byte [eax + 0x47fe98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4184ef
cmp edx, ebx
jne 0x4184ef
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418546
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040607a
leave
ret
Function at 0x41883f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x481590]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41887f
cmp byte [ebx], 0xa
jne 0x41887f
or byte [eax + edi + 0x28], 4
jmp 0x418884
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418982
mov al, byte [edx]
cmp al, 0x1a
je 0x418964
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4188b3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4188d8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4188e2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x418895
jmp 0x418982
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41895f
cmp dword [ebp - 0xc], 0
je 0x41895f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481590]
test byte [eax + edi + 0x28], 0x48
je 0x418939
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418924
mov byte [esi], dl
jmp 0x418935
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481590]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418982
cmp byte [ebp - 1], 0xa
jne 0x418948
cmp esi, ebx
jne 0x418948
mov byte [esi], 0xa
jmp 0x418981
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004193c0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418982
mov byte [esi], 0xd
jmp 0x418981
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41897e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418982
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41898b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x481590]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4189ce
cmp word [esi], dx
jne 0x4189ce
or byte [edi + eax + 0x28], 4
jmp 0x4189d3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418b26
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x418b06
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x418a15
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418a4b
cmp eax, edx
jae 0x418a57
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4189ed
jmp 0x418b26
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418b02
cmp dword [ebp - 0x14], 0
je 0x418b02
mov eax, dword [ebx*4 + 0x481590]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x418ada
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x418aa3
mov word [esi], cx
jmp 0x418ad6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481590]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481590]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481590]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418b26
pop ebx
cmp word [ebp - 4], bx
jne 0x418aeb
cmp esi, dword [ebp + 0xc]
jne 0x418aeb
mov word [esi], bx
jmp 0x418b23
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004193c0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418b26
push 0xd
jmp 0x418b1f
mov ecx, dword [ebx*4 + 0x481590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418b1d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418b26
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41aca6
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 0x41ad43
push ebx
push esi
call fcn.0041ac6f
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.004198db
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41acf0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ad42
push edi
push eax
call fcn.0041523a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ad10
call fcn.004147f6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ad41
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004198db
add esp, 0x20
test eax, eax
jne 0x41ad2f
push edi
call fcn.004147f6
jmp 0x41ad37
push ebx
call fcn.004147f6
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 0x421630
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42165d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42165d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, reloc.authz.dll_AuthzFreeResourceManager
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xbd827bc
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..rdata
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2fda3988
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x141b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0141b1a8
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 0x141b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x141b06a
add dl, dl
jne 0x141b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x141b0dc
xor eax, eax
add dl, dl
jne 0x141b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x141b17d
add dl, dl
jne 0x141b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x141b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x141b075
mov eax, 1
add dl, dl
jne 0x141b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x141b0e1
sub eax, ebx
mov ebx, 1
jne 0x141b128
mov ecx, 1
add dl, dl
jne 0x141b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x141b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x141b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x141b136
cmp eax, 0x7d00
jae 0x141b16d
cmp eax, 0x500
jb 0x141b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x141b075
cmp eax, 0x7f
ja 0x141b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x141b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x141b19e
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 0x141b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4015e0
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
call fcn.00436140
mov dword [esp], 0x51a5
call fcn.00438f00
mov dword [esp], 1
call fcn.00436aa0
call sym.xml.exe_exsltRegisterAll
call sym.xml.exe_xsltRegisterTestModule
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4016ba
mov dword [esp], 1
call fcn.00436ae0
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x401690
mov dword [esp], 0
call fcn.00436a80
cmp dword [ebx], 1
mov edx, dword [ebx + 0x18]
mov dword [0x5190a0], 1
sbb eax, eax
and eax, 6
test edx, edx
mov dword [0x61e08c], eax
jne 0x401680
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x401663
add esp, 0x18
pop ebx
ret
mov dword [esp], str.SGML_CATALOG_FILES
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4016a0
mov dword [esp + 0x20], eax
add esp, 0x18
pop ebx
jmp fcn.0043ad20
mov dword [esp], 1
call sym.xml.exe_xsltSetXIncludeDefault
jmp 0x401657
mov dword [esp], 0
call fcn.00436ae0
jmp 0x40162d
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Variable__SGML_CATALOG_FILES_not_set_n
add eax, 0x40
mov dword [esp], eax
call fcn.00401560
jmp 0x40165e
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym.xml.exe_xsltDebugDumpExtensions
mov dword [esp], 0
call sub.msvcrt.dll_exit
lea esi, [esi]
lea edi, [edi]