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

Disassembly:
push ebp
push ebx
push edi
push esi
mov edx, 0xfffffffe
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ecx + edx + 2], 0
lea edx, [edx + 2]
jne 0x1604400
test edx, edx
je 0x160447a
sar edx, 1
lea esi, [edx - 1]
mov edi, edx
and edi, 3
je 0x1604435
xor ebx, ebx
nop
nop
nop
movzx ebp, word [ecx]
add ecx, 2
xor ebp, eax
imul eax, ebp, 0x1000193
inc ebx
cmp edi, ebx
jne 0x1604420
sub edx, ebx
cmp esi, 3
jb 0x160447a
xor esi, esi
nop
nop
nop
nop
movzx edi, word [ecx + esi*2]
xor edi, eax
imul eax, edi, 0x1000193
movzx edi, word [ecx + esi*2 + 2]
xor edi, eax
imul eax, edi, 0x1000193
movzx edi, word [ecx + esi*2 + 4]
xor edi, eax
imul eax, edi, 0x1000193
movzx edi, word [ecx + esi*2 + 6]
xor edi, eax
imul eax, edi, 0x1000193
add esi, 4
cmp edx, esi
jne 0x1604440
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1608000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x232021f6
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xb
ja 0x1608086
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
lea esi, [ecx + 0xdb]
add ecx, edx
and esi, edx
add esi, esi
sub ecx, esi
add ecx, 0x498375db
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
mov edx, ecx
xor edx, 2
and ecx, 2
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xc
jb 0x1608040
mov ecx, dword [esp + 8]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [0x450938]
mov esi, dword [0x44666c]
nop
nop
nop
nop
jmp esi
Function at 0x160b710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 8]
movzx eax, word [eax]
mov dword [esp + 0x10], 0xb3b21b0d
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xc
ja 0x160b7ae
mov edx, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx esi, byte [esp + ecx + 0x10]
lea edi, [edx - 0x3f842a38]
and edi, esi
lea ecx, [edx + esi]
add ecx, 0xc07bd5c8
mov ebx, 0x3f842a37
sub ebx, edx
or ebx, esi
add ebx, edx
lea edx, [edi + ebx]
add edx, 0xc07bd5c9
mov esi, edx
xor esi, ecx
not edx
and edx, ecx
add edx, edx
sub edx, esi
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xc]
add cl, 0x88
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xd
jb 0x160b750
xor ecx, ecx
cmp dword [esp + 0x10], eax
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x447400]
Function at 0x12869
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x128a8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x128a8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x128a8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x128a8
cmp dword [ecx + 0x74], 0xe
jbe 0x128a8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x3915b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x3919a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x3919a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x3919a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x3919a
cmp dword [ecx + 0x74], 0xe
jbe 0x3919a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4135d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00041231
Function at 0x41cc6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x66040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41d11
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00042166
test al, al
jne 0x41d0b
sub edx, 2
cmp edx, edi
jne 0x41cf1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41d33
lea eax, [edi + 2]
cmp edx, eax
je 0x41d33
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0004198d
add esp, 0x10
jmp 0x41e2d
push esi
lea ecx, [ebp - 0x255]
call fcn.00042166
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d76
push dword [ebp - 0x25c]
jmp 0x41d23
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41db3
cmp word [ebp - 0x226], 0
je 0x41dd4
cmp word [ebp - 0x226], ax
jne 0x41db3
cmp word [ebp - 0x224], 0
je 0x41dd4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0004198d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41e20
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41d8d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41e08
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41e2d
push 0x413dd
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0004f360
add esp, 0x10
jmp 0x41dfd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00011c73
leave
ret
Function at 0x43736
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 0x437d3
push ebx
push esi
call fcn.000436f2
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.0004362f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43780
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437d2
push edi
push eax
call fcn.0003dc03
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x437a0
call fcn.0003dbc9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437d1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0004362f
add esp, 0x20
test eax, eax
jne 0x437bf
push edi
call fcn.0003dbc9
jmp 0x437c7
push ebx
call fcn.0003dbc9
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 0x437d6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x437e7
pop esi
ret
push ebx
push edi
push esi
call fcn.000436f2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0003dc03
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4380f
push ebx
push esi
push edi
call fcn.0001b6e0
add esp, 0xc
push 0
call fcn.0003dbc9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x440fe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00043a84

Function at 0x473a7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.000409bd
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47416
cmp esi, dword [ebp - 4]
je 0x47411
cmp dword [ebp + 0xc], 0
je 0x47411
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x473ee
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00046ef9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x47418
xor eax, eax
inc eax
jmp 0x47418
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4747d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x66040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.000409bd
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.000409bd
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x474f4
cmp word [ecx], dx
je 0x474f4
mov eax, dword [0x5ed6c]
push edi
dec eax
push eax
push 0x5ec58
call fcn.0004741c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x47567
cmp word [eax], dx
je 0x47567
mov eax, dword [edi]
test eax, eax
je 0x47518
cmp word [eax], dx
je 0x47518
lea eax, [ebp - 0x10]
push eax
call fcn.00046dff
jmp 0x47521
lea eax, [ebp - 0x10]
push eax
call fcn.00046e9a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x47591
mov eax, dword [0x5ec54]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5e948
call fcn.0004741c
add esp, 0xc
test al, al
je 0x47591
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4755c
cmp word [eax], di
je 0x4755c
lea eax, [ebp - 0x10]
push eax
call fcn.00046dff
pop ecx
jmp 0x47593
lea eax, [ebp - 0x10]
push eax
call fcn.00046e9a
jmp 0x47559
mov eax, dword [edi]
test eax, eax
je 0x4757e
cmp word [eax], dx
je 0x4757e
lea eax, [ebp - 0x10]
push eax
call fcn.00046d96
pop ecx
jmp 0x47591
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4765c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.000472a1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4765c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4765c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4765c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x475e9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0004836a
test ebx, ebx
je 0x47657
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0004836a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4765c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4765c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00050823
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4765e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00011c73
leave
ret
Function at 0x47fdc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ff94
push 0x5ff8c
push 0x5d3d8
push 0x1f
call fcn.00047caa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48010
push dword [ebp + 8]
mov ecx, esi
call dword [fcn.0005c218]
call esi
jmp 0x48016
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4805a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ffa4
push 0x5ff9c
push 0x5d3fc
push 0x21
call fcn.00047caa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48091
push dword [ebp + 8]
mov ecx, esi
call dword [fcn.0005c218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48099
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ffac
push 0x5ffa4
push 0x5d410
push 0x22
call fcn.00047caa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x480d3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [fcn.0005c218]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5438c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x267a58]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x543cc
cmp byte [ebx], 0xa
jne 0x543cc
or byte [edi + eax + 0x28], 4
jmp 0x543d1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x544d0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x544b3
inc eax
cmp dl, 0xd
je 0x543fd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x54423
cmp eax, ecx
jae 0x54431
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x543e5
jmp 0x544d0
push 0
lea eax, [ebp - 0x10]
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 0x544ae
cmp dword [ebp - 0x10], 0
je 0x544ae
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x267a58]
test byte [eax + edi + 0x28], 0x48
je 0x54488
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x54473
mov byte [esi], dl
jmp 0x54484
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x267a58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x544d0
cmp byte [ebp - 1], 0xa
jne 0x54497
cmp esi, ebx
jne 0x54497
mov byte [esi], 0xa
jmp 0x544cf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00053870
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x544d0
mov byte [esi], 0xd
jmp 0x544cf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x267a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x544cd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x544d0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x544d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x267a58]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5451f
cmp word [ebx], dx
jne 0x5451f
or byte [eax + edi + 0x28], 4
jmp 0x54524
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x54687
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x54667
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x54565
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5459b
cmp eax, edx
jae 0x545a9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x54540
jmp 0x54687
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54662
cmp dword [ebp - 0x18], 0
je 0x54662
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x267a58]
test byte [eax + edi + 0x28], 0x48
je 0x54638
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x545fc
mov word [esi], cx
jmp 0x54633
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x267a58]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x267a58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x267a58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x54687
pop eax
cmp word [ebp - 4], ax
jne 0x54648
cmp esi, ebx
jne 0x54648
mov word [esi], ax
jmp 0x54684
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00053870
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x54687
push 0xd
pop eax
jmp 0x54643
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x267a58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x54681
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x54687
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57c00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57c2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57c2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

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

Function at 0x408941
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.0040896c
xor dword [eax], esi
add ebx, 0xf9a5757f
sub esp, 4
mov dword [esp], 0x8f703d4d
pop ebx
inc eax
dec ebx
sub ebx, ecx
cmp eax, edi
jne fcn.00408941
mov ebx, 0x5381182e
ret
Function at 0x4e4230
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, dword [ebp + 0x10]
xor edx, edx
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov ecx, dword [ecx]
xor edx, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x4e43af
mov eax, dword [ebp - 0x14]
push 0x407c44
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x4e42ea
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x24], 0x36
call fcn.004e767a
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x4e42e4
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push 4
push 0x1000
mov eax, dword [ebx + 0xc]
push esi
add eax, ecx
push eax
call dword [fcn.00536c04]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x402793
ret
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x43
call fcn.004e767a
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
add edx, ecx
push edx
call dword [fcn.00536c04]
mov dword [ebp - 0x20], eax
mov eax, 0x402727
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e43c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405d40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
mov eax, dword [eax]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 0
mov cx, word [eax + 0x14]
lea eax, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
xor edx, edx
mov dx, word [ecx + 6]
mov ecx, dword [ebp - 0x20]
cmp ecx, edx
jge 0x4e456c
mov eax, dword [eax + 0x24]
push 0x407c44
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
and ecx, 1
mov dword [ebp - 0x18], ecx
mov ecx, eax
shr edx, 0x1e
and edx, 1
shr ecx, 0x1f
test eax, 0x2000000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], ecx
je 0x4e4470
lea edx, [ebp - 0x24]
mov dword [ebp - 4], 0
push edx
mov dword [ebp - 0x24], 0x4b
call fcn.004e767a
mov eax, dword [ebp - 0x14]
push 0x4000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call dword [fcn.00536bf4]
mov eax, 0x402953
ret
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x36
call fcn.004e767a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx*2]
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + eax*2]
mov eax, dword [edx*4 + 0x5361a8]
mov dword [ebp - 0x1c], eax
mov eax, 0x4028a6
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f07e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x4f0800
mov dl, byte [ecx + eax]
xor dl, 3
sub dl, 4
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x4f07ef
pop esi
ret