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

Disassembly:
push 0x64
mov eax, 0x5436cd
call fcn.0052c05f
mov eax, edx
mov dword [ebp - 0x40], eax
mov ebx, ecx
xor esi, esi
lea edx, [ebp - 0x4c]
mov ecx, eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
call fcn.004f6230
xor eax, eax
mov word [ebp - 0x3c], 0xbbef
lea edi, [ebp - 0x4c]
mov byte [ebp - 0x3a], 0xbf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
lea edi, [ebp - 0x2c]
push 3
pop ecx
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], ecx
mov esi, 0x40928c
push eax
lea eax, [ebp - 0x38]
mov edx, ecx
push eax
movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f7471
mov esi, eax
test esi, esi
jns 0x508b43
mov dword [ebp - 4], 1
jmp 0x508c98
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x508c6a
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
and dword [ebp - 0x40], 0
push 0
push eax
push edi
push dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x508bce
xor ebx, ebx
test edi, edi
je 0x508bce
mov ecx, dword [ebp - 0x44]
mov eax, 0x4000
sub eax, ecx
mov dword [ebp - 0x60], eax
add ecx, ebx
add eax, ecx
cmp eax, edi
jae 0x508ba7
mov eax, 0x4000
jmp 0x508bab
mov eax, edi
sub eax, ebx
push 0
lea edx, [ebp - 0x40]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x508bef
mov eax, dword [ebp - 0x60]
add ebx, 0x4000
mov ecx, dword [ebp - 0x44]
cmp ebx, edi
jb 0x508b98
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x508c50
call fcn.004fb949
mov esi, eax
test esi, esi
js 0x508c25
push 0xc00000e5
call dword [fcn.00440b24]
call fcn.004fb949
mov esi, eax
test esi, esi
jns 0x508be4
and dword [ebp - 0x64], 0
lea ecx, [ebp - 0x70]
push esi
mov dword [ebp - 0x70], 0x4177cc
mov dword [ebp - 0x6c], 0x41783c
mov dword [ebp - 0x68], 0x338
call fcn.004f7c89
mov dword [ebp - 4], 2
jmp 0x508c98
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x5c]
push esi
mov dword [ebp - 0x5c], 0x4177cc
mov dword [ebp - 0x58], 0x41783c
mov dword [ebp - 0x54], 0x33c
call fcn.004f7c89
mov dword [ebp - 4], 3
jmp 0x508c98
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 5
call fcn.0044387a
xor eax, eax
jmp 0x508ca2
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x5c]
mov esi, 0xc0000001
mov dword [ebp - 0x5c], 0x4177cc
push esi
mov dword [ebp - 0x58], 0x41783c
mov dword [ebp - 0x54], 0x342
call fcn.004f7c89
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.0044387a
mov eax, esi
call fcn.0052bffc
ret
Function at 0x509f73
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x424
mov eax, 0x5438be
call fcn.0052c0d7
mov eax, ecx
mov dword [ebp - 0x424], eax
xor ebx, ebx
mov dword [ebp - 0x430], eax
push ebx
push 1
push 3
push ebx
push ebx
push SysReAllocString
lea ecx, [eax + 0x68]
call fcn.00502c1c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x428], edi
cmp edi, 0xffffffff
jne 0x509fc4
call fcn.005085d7
jmp 0x50a0a2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x42c], esi
lea eax, [esi + 1]
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp eax, 0x400
jbe 0x50a02a
push eax
lea ecx, [ebp - 0x420]
call fcn.0050eb31
mov eax, dword [ebp - 0x420]
jmp 0x50a036
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], ebx
test eax, eax
jne 0x50a044
mov esi, 0x8007000e
jmp 0x50a080
push ebx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50a061
call fcn.005085d7
mov esi, eax
test esi, esi
js 0x50a080
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x424]
mov byte [edx + eax], bl
push dword [ebp - 0x420]
call fcn.0050a0ae
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x50a0a0
lea ecx, [ebp - 0x420]
call fcn.0050d97d
mov eax, esi
call fcn.0052c011
ret

Function at 0x513c62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x513cbb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x513cbb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x513cac
cmp esi, ecx
jae 0x513cbb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x513c9a
cmp esi, ecx
jae 0x513cbb
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x513cbd
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x518cf2
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x518d09
lea edi, [ebp - 4]
mov ebx, dword [ebp + 8]
push esi
push esi
push esi
push 2
push esi
mov dword [edi], esi
push ecx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi], eax
test eax, eax
je 0x518d35
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx], eax
test eax, eax
jne 0x518d6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x518d4c
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x518d6a
mov ecx, edi
call fcn.00518cd6
mov eax, dword [ebx]
and dword [ebx], 0
test eax, eax
je 0x518d6a
cmp eax, 0xffffffff
je 0x518d6a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 4]
call fcn.00518cd6
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x518d81
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [edi + 8]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x518dd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x518dd5
jle 0x518dc5
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x518dde
mov ecx, edi
call fcn.00518e7f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
mov ecx, dword [edi + 8]
lea eax, [edi + 0x18]
push eax
lea edx, [edi + 0xc]
call fcn.00518cf2
mov esi, eax
test esi, esi
js 0x518dc7
xor esi, esi
jmp 0x518dce
Function at 0x51a728
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5527f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp eax, 4
je 0x51a79c
cmp eax, 8
je 0x51a798
cmp eax, 0x10
je 0x51a794
cmp eax, 0x20
je 0x51a78d
cmp eax, 0x40
je 0x51a789
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x28]
mov esi, 0xc000000d
mov dword [ebp - 0x28], 0x43b6ec
push esi
mov dword [ebp - 0x24], 0x43bf28
mov dword [ebp - 0x20], 0x41e
call fcn.004f7c89
mov eax, esi
jmp 0x51a7fd
push 0x7c
jmp 0x51a79e
mov esi, 0x8c
jmp 0x51a79f
push 0x6c
jmp 0x51a79e
push 0x5c
jmp 0x51a79e
push 0x4c
pop esi
mov ax, word [edi + esi]
xor ecx, ecx
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x18], 0xffffffff
push ecx
mov word [ebp - 8], ax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ecx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.NTDLL.dll_NtWriteFile]
test eax, eax
js 0x51a7fd
xor ecx, ecx
lea eax, [ebp - 0x18]
push ecx
push eax
push dword [edi + esi + 4]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push dword [edi + esi + 0xc]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.NTDLL.dll_NtWriteFile]
test eax, eax
js 0x51a7fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b1d0
leave
ret 8

Function at 0x5234b2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412254
push 0x41224c
push 0x412254
push 0x1f
call fcn.00523324
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5234e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x5552f8]
call esi
jmp 0x5234ec
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x52353c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412278
push 0x412270
push 0x412278
push 0x21
call fcn.00523324
mov esi, eax
add esp, 0x10
test esi, esi
je 0x523573
push dword [ebp + 8]
mov ecx, esi
call dword [0x5552f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x523581
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41228c
push 0x412284
push 0x41228c
push 0x22
call fcn.00523324
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5235bb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5552f8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x524bf2
Capabilities:
Parse pe header

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

Function at 0x528dd7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0052121b
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 0x528e46
cmp esi, dword [ebp - 4]
je 0x528e41
cmp dword [ebp + 0xc], 0
je 0x528e41
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x528e1e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005288f4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x528e48
xor eax, eax
inc eax
jmp 0x528e48
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x528eb9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5527f0]
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.0052121b
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.0052121b
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 0x528f30
cmp word [ecx], dx
je 0x528f30
mov eax, dword [0x412390]
push edi
dec eax
push eax
push 0x4015e8
call fcn.00528e52
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x528fa3
cmp word [eax], dx
je 0x528fa3
mov eax, dword [edi]
test eax, eax
je 0x528f54
cmp word [eax], dx
je 0x528f54
lea eax, [ebp - 0x10]
push eax
call fcn.005287ee
jmp 0x528f5d
lea eax, [ebp - 0x10]
push eax
call fcn.0052888f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x528fcd
mov eax, dword [0x41238c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4012d8
call fcn.00528e52
add esp, 0xc
test al, al
je 0x528fcd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x528f98
cmp word [eax], di
je 0x528f98
lea eax, [ebp - 0x10]
push eax
call fcn.005287ee
pop ecx
jmp 0x528fcf
lea eax, [ebp - 0x10]
push eax
call fcn.0052888f
jmp 0x528f95
mov eax, dword [edi]
test eax, eax
je 0x528fba
cmp word [eax], dx
je 0x528fba
lea eax, [ebp - 0x10]
push eax
call fcn.0052879d
pop ecx
jmp 0x528fcd
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 0x529098
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00528cc5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x529098
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x529098
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x529098
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x529025
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005236df
test ebx, ebx
je 0x529093
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005236df
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x529098
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 0x529098
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0051e5e3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x52909a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b1d0
leave
ret
Function at 0x52b305
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x52b342
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x52b33b
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x52b347
add edx, 0x28
cmp edx, esi
jne 0x52b32c
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x52b344

Function at 0x536986
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5527f0]
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 0x5369d1
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00536b2d
test al, al
jne 0x5369cb
sub edx, 2
cmp edx, edi
jne 0x5369b1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5369f3
lea eax, [edi + 2]
cmp edx, eax
je 0x5369f3
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005368cc
add esp, 0x10
jmp 0x536aed
push esi
lea ecx, [ebp - 0x255]
call fcn.00536b2d
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 0x536a36
push dword [ebp - 0x25c]
jmp 0x5369e3
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 0x536a73
cmp word [ebp - 0x226], 0
je 0x536a94
cmp word [ebp - 0x226], ax
jne 0x536a73
cmp word [ebp - 0x224], 0
je 0x536a94
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005368cc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x536ae0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x536a4d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x536ac8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x536aed
push 0x5366f0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00535b20
add esp, 0x10
jmp 0x536abd
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.0052b1d0
leave
ret
Function at 0x536c32
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x536c43
pop esi
ret
push ebx
push edi
push esi
call fcn.00536bf5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005256af
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x536c6b
push ebx
push esi
push edi
call fcn.0052e380
add esp, 0xc
push 0
call fcn.00522fbe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x537059
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00536c86

Function at 0x53c540
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x53c57e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x53c576
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x53c580
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x53c566
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x53c660
Capabilities:
Parse pe header

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

Function at 0x40bcf1
Capabilities:
Encode data using xor

Disassembly:
call fcn.0043fbfd
add esp, 8
mov dword [0x44bfc0], eax
push 0x109b1eec
push dword [0x44bfe4]
call fcn.0043fbfd
add esp, 8
mov dword [0x44bfc4], eax
push 0x4079f34d
push dword [0x44bfe4]
mov edi, 0x4e80044
aas
add eax, dword [eax]
add esp, 8
mov dword [0x44bfc8], eax
push 0xc0a21202
push dword [0x44bfe4]
call 0x3ac1c0fd
fiadd word [ebx]
add byte [ebx - 0x335cf73c], al
mov edi, 0x95680044
push ecx
cmp dword [eax], esp
push dword [0x44bfe4]
call 0x3ac1c100
aam 3
cmp dword [edx], 0x830003de
les ecx, [eax]
mov dword [0x44bfd0], eax
push 0x3dc6a9d0
push dword [0x44bfe4]
call 0x3ac1c103
fiadd word [ebx]
add byte [ebx - 0x2b5cf73c], al
mov edi, 0x7d8b0044
in al, 0x83
mov dword [edx], 0x45c7c031
lock add byte [eax], al
add byte [eax], al
cmp ebx, 0x24
add al, ah
dec esi
mov bh, 0x95

Function at 0x416a4d
Capabilities:
Encode data using xor

Disassembly:
add byte [eax + 0x78c6a580], bh
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0xbd1f90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcd000]
push edi
jmp 0xbd1faa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xbd1fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbd1fa0
mov eax, 1
add ebx, ebx
jne 0xbd1fc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xbd1fd4
jne 0xbd1ff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbd1ff3
dec eax
add ebx, ebx
jne 0xbd1fe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xbd1fb8
add ebx, ebx
jne 0xbd1fef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xbd2045
xor ecx, ecx
sub eax, 3
jb 0xbd200b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xbd207a
sar eax, 1
mov ebp, eax
jmp 0xbd2016
add ebx, ebx
jne 0xbd2016
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbd1fe4
inc ecx
add ebx, ebx
jne 0xbd2024
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xbd1fe4
add ebx, ebx
jne 0xbd2031
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xbd2026
jne 0xbd2042
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xbd2026
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xbd2064
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xbd2056
jmp 0xbd1fa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xbd2064
add edi, ecx
jmp 0xbd1fa6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xbd2082
cmp byte [edi], 0x11
jne 0xbd2082
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 al, bl
loop 0xbd2087
lea edi, [esi + 0x11a000]
mov eax, dword [edi]
or eax, eax
je 0xbd20ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16bacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16bc48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xbd20b4
mov ecx, edi
jns 0xbd20e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16bc4c]
or eax, eax
je 0xbd20f9
mov dword [ebx], eax
add ebx, 4
jmp 0xbd20d1
call dword [esi + 0x16bc5c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xbd2130
cmp al, 0xef
ja 0xbd2123
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xbd2105
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xbd2112
mov ebp, dword [esi + 0x16bc50]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xbd2164
sub esp, 0xffffff80
jmp 0xad5f74