joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485bbf
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4af138
push esi
call fcn.00485f1a
pop ecx
pop ecx
test eax, eax
jne 0x485bed
xor al, al
jmp 0x485c6a
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004858f4
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x485c27
push dword [ebp - 0x210]
call fcn.0047dab0
xor al, al
jmp 0x485c68
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x485c2d
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x485c4d
push edx
call fcn.00485af6
pop ecx
test al, al
je 0x485c18
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x485c5b
mov bl, 1
push dword [ebp - 0x210]
call fcn.0047dab0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004728e8
leave
ret
Function at 0x48d0e3
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 + 0x4c2a10]
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 0x48d123
cmp byte [ebx], 0xa
jne 0x48d123
or byte [edi + eax + 0x28], 4
jmp 0x48d128
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 0x48d227
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48d20a
inc eax
cmp dl, 0xd
je 0x48d154
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48d17a
cmp eax, ecx
jae 0x48d188
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 0x48d13c
jmp 0x48d227
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 0x48d205
cmp dword [ebp - 0x10], 0
je 0x48d205
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c2a10]
test byte [eax + edi + 0x28], 0x48
je 0x48d1df
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48d1ca
mov byte [esi], dl
jmp 0x48d1db
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c2a10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48d227
cmp byte [ebp - 1], 0xa
jne 0x48d1ee
cmp esi, ebx
jne 0x48d1ee
mov byte [esi], 0xa
jmp 0x48d226
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004917a7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48d227
mov byte [esi], 0xd
jmp 0x48d226
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c2a10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48d224
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48d227
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48d230
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 + 0x4c2a10]
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 0x48d276
cmp word [ebx], dx
jne 0x48d276
or byte [eax + edi + 0x28], 4
jmp 0x48d27b
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 0x48d3de
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 0x48d3be
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48d2bc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48d2f2
cmp eax, edx
jae 0x48d300
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 0x48d297
jmp 0x48d3de
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 0x48d3b9
cmp dword [ebp - 0x18], 0
je 0x48d3b9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c2a10]
test byte [eax + edi + 0x28], 0x48
je 0x48d38f
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 0x48d353
mov word [esi], cx
jmp 0x48d38a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c2a10]
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 + 0x4c2a10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c2a10]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48d3de
pop eax
cmp word [ebp - 4], ax
jne 0x48d39f
cmp esi, ebx
jne 0x48d39f
mov word [esi], ax
jmp 0x48d3db
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004917a7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48d3de
push 0xd
pop eax
jmp 0x48d39a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c2a10]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48d3d8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48d3de
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 0x49108a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b099c
push 0x4b0994
push str.FlsAlloc
push 0x1f
call fcn.00490eb5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4910be
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a2398]
call esi
jmp 0x4910c4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x491108
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b09ac
push 0x4b09a4
push str.FlsGetValue
push 0x21
call fcn.00490eb5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x49113f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a2398]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x491147
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b09b4
push 0x4b09ac
push str.FlsSetValue
push 0x22
call fcn.00490eb5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x491181
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a2398]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x494cf4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4c0100]
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 0x494d3f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00494e8f
test al, al
jne 0x494d39
sub edx, 2
cmp edx, edi
jne 0x494d1f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x494d61
lea eax, [edi + 2]
cmp edx, eax
je 0x494d61
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00494c40
add esp, 0x10
jmp 0x494e5b
push esi
lea ecx, [ebp - 0x255]
call fcn.00494e8f
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 0x494da4
push dword [ebp - 0x25c]
jmp 0x494d51
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 0x494de1
cmp word [ebp - 0x226], 0
je 0x494e02
cmp word [ebp - 0x226], ax
jne 0x494de1
cmp word [ebp - 0x224], 0
je 0x494e02
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00494c40
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x494e4e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x494dbb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x494e36
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x494e5b
push 0x494a70
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00484e10
add esp, 0x10
jmp 0x494e2b
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.004728e8
leave
ret

Function at 0x495767
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x495778
pop esi
ret
push ebx
push edi
push esi
call fcn.00495730
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048ebd4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4957a0
push ebx
push esi
push edi
call fcn.00474370
add esp, 0xc
push 0
call fcn.0048eb9a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x495b70
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004957b5
Function at 0x497cef
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0048e8a9
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 0x497d5e
cmp esi, dword [ebp - 4]
je 0x497d59
cmp dword [ebp + 0xc], 0
je 0x497d59
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x497d36
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049782c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x497d60
xor eax, eax
inc eax
jmp 0x497d60
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x497dc5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c0100]
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.0048e8a9
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.0048e8a9
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 0x497e3c
cmp word [ecx], dx
je 0x497e3c
mov eax, dword [0x4b0f0c]
push edi
dec eax
push eax
push 0x4b0df8
call fcn.00497d64
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x497eaf
cmp word [eax], dx
je 0x497eaf
mov eax, dword [edi]
test eax, eax
je 0x497e60
cmp word [eax], dx
je 0x497e60
lea eax, [ebp - 0x10]
push eax
call fcn.00497732
jmp 0x497e69
lea eax, [ebp - 0x10]
push eax
call fcn.004977cd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x497ed9
mov eax, dword [0x4b0df4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4b0ae8
call fcn.00497d64
add esp, 0xc
test al, al
je 0x497ed9
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x497ea4
cmp word [eax], di
je 0x497ea4
lea eax, [ebp - 0x10]
push eax
call fcn.00497732
pop ecx
jmp 0x497edb
lea eax, [ebp - 0x10]
push eax
call fcn.004977cd
jmp 0x497ea1
mov eax, dword [edi]
test eax, eax
je 0x497ec6
cmp word [eax], dx
je 0x497ec6
lea eax, [ebp - 0x10]
push eax
call fcn.004976e7
pop ecx
jmp 0x497ed9
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 0x497fa4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00497be9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x497fa4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x497fa4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x497fa4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x497f31
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00491323
test ebx, ebx
je 0x497f9f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00491323
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x497fa4
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 0x497fa4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0049bb4d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x497fa6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004728e8
leave
ret
Function at 0x49b55c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c0100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x49b59f
call fcn.0047f395
mov dword [eax], 0xf
call fcn.0047f3a8
mov dword [eax], 0xd
call fcn.004780b4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004728e8
leave
ret
test eax, eax
jne 0x49b5a6
inc eax
jmp 0x49b593
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x49b591
xor eax, eax
cmp ecx, 1
setne al
jmp 0x49b593
Function at 0x49c1f5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0049c171
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x49c364
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x49c364
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x49c319
jg 0x49c251
test eax, eax
je 0x49c30f
push 1
push 0x1000
call fcn.00490ba8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x49c274
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x49c306
push 0x8000
push ebx
call fcn.0048af5e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x49c29d
jg 0x49c298
cmp ecx, 0x1000
jb 0x49c29d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048e34d
add esp, 0x10
cmp eax, 0xffffffff
je 0x49c2e2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x49c298
jl 0x49c2c9
test ecx, ecx
jne 0x49c28a
push dword [ebp - 0xc]
push ebx
call fcn.0048af5e
push esi
call fcn.0048eb9a
add esp, 0xc
xor ebx, ebx
jmp 0x49c372
cmp byte [edi + 0x24], 0
je 0x49c2f9
cmp dword [edi + 0x20], 5
jne 0x49c2f9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x49c304
mov ebx, dword [edi + 0x18]
jmp 0x49c306
xor ebx, ebx
push esi
call fcn.0048eb9a
pop ecx
jmp 0x49c372
test ecx, ecx
jg 0x49c2db
jl 0x49c319
test eax, eax
jae 0x49c2db
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004917a7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x49c339
cmp byte [edi + 0x1c], 0
je 0x49c2db
jmp 0x49c36a
push ebx
call fcn.00492c8f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x49c2db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x49c372
cmp byte [edi + 0x1c], 0
je 0x49c36f
mov ebx, dword [edi + 0x18]
jmp 0x49c372
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004917a7
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49d4c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49d4ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49d4ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4050f5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
invalid
invalid
invalid

Function at 0x40693c
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x406964
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x406956
pop edi
pop esi
pop ebp
ret 4
Function at 0x40bf40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 4]
mov edi, ecx
sub esp, 0x10
mov dword [esp + 0x1c], edi
mov edx, dword [esi]

Function at 0x40ec40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword fs:[0x2c]
mov dword [esp + 0x18], ecx
push ebx
push esi
mov ecx, dword [eax]
mov eax, dword [0x4d2580]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x8c], ecx
cmp eax, dword [ecx + 4]
jg 0x40fe3a
mov ebx, dword [ebp + 0x10]
xor esi, esi
xor al, al
mov word [esp + 0x54], 1
push 8
mov byte [esp + 0x1f], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], esi
mov word [esp + 0x38], 1
call fcn.0041fddb
mov ecx, dword [edi]
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], 1
mov dword [edx], 0x14
mov dword [edx + 4], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], 0x17
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x49c470]
mov dword [esp + 0x70], ecx
movsx eax, word [eax + 0xa]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
push 0x4d2580
call fcn.00420242
add esp, 4
cmp dword [0x4d2580], 0xffffffff
jne 0x40ec76
push 0x44247b
call fcn.004200a3
add esp, 4
push 0x4d2580
call fcn.004201f8
add esp, 4
jmp 0x40ec76
Function at 0x41f4d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4d1363]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
push 0x8000
push edi
mov esi, edx
call fcn.0042d955
pop ecx
push eax
call fcn.0042d776
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x45f274
lea ecx, [ebp - 0x18]
call fcn.00409ad3
mov ecx, esi
call fcn.00407510
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0041f6c9
push dword [ebp - 0x18]
push 0x49d158
push edi
call fcn.0041f574
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x45f294
lea ecx, [ebp - 0x18]
call fcn.0040988f
mov esi, dword [ebp - 8]
push edi
call fcn.0042dd99
push edi
call fcn.0042d955
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41f564
mov ebx, 0x4000
push ebx
push eax
call fcn.0042d776
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.00471f06
push eax
push 1
call fcn.00471e96
push eax
call fcn.0042dbb3
add esp, 0x10
mov esi, eax
jmp 0x41f54c
mov ecx, esi
call fcn.00407510
mov eax, dword [esi + 8]
push dword [eax]
call dword [0x49c240]
jmp 0x41f541

Function at 0x43927b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004390fa

Function at 0x4696e2
Capabilities:
Encode data using xor

Disassembly:
xor word [edi + eax*2], cx
inc edi
inc eax
cmp eax, ecx
jl 0x4696df
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x472055
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x472078
push 0
call fcn.0042e4f7
pop ecx
mov ecx, eax
call 0x48582015
mov dword [0x4d06e0], 0x840f0270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7f0470fe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
test ecx, ecx
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x163ef9cc]
xchg byte [esi], cl
add esi, 4
sub edx, 1
jne 0x47208d
mov eax, dword [esi]
mov dword [ebp - 4], 0xc3018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7f0470fe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
test ecx, ecx
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720c7
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7f0470fe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
test ecx, ecx
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret
Function at 0x49b079
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0xfad13814
lea ecx, [ebp - 0x58]
imul eax, edx, 6
ja 0x8100b3a3
push eax
dec edi
dec esp
add byte [0x504c5440], al
call 0xb7590639
or dword [ebx + 0x37ff50c1], ecx
movzx ecx, word [ecx]
mov eax, ecx
push eax
push dword [edi]
call dword [0x835656fc]
jne 0x49b04c
cmp byte [eax], 0
je 0x49b08b
movzx eax, byte [eax]
add dword [ebp - 8], 2
mov ebx, eax
call dword [0xc83b56fc]
or byte [ebx - 0x13a2b777], cl
mov ebx, dword [ebp - 0x10]
je 0x49b037
cmp word [ebp - 0x18], ax
jbe 0x49b0dc
adc al, 0x46
inc ebp
lea edi, [edx + 1]
jmp fcn.0049b079
cmp edi, eax
jl 0x49b01a
or dword [ecx + 0x2f00c771], ecx
adc byte [esi + 0x50], 0xe9
imul ebp, dword [ecx + 0x4d790100], 0x6bc03308
push es
jns 0x49b0da
or byte [ebx], dh
shr byte [ebx - 0xe], 6
inc eax
movzx edx, word [esi + str.COMMIT]
mov dword [ecx], edx
mov ecx, esp
jmp 0x49b0d3
jb 0x49b0f0
mov esi, eax
push 0x39
pop eax
movzx edx, si
salc
cmp si, ax
ja 0x49b0f0
add ecx, ebx
movzx eax, word [ecx]
mov esi, eax
mov edx, eax
cmp ax, di
jae 0x49b0d7
push 0x7d
pop esi
dec bp
salc
je 0x49b147
add ecx, ebx
cmp dx, 0x2c
jne 0x49b14c
movzx eax, word [ecx]
add byte [ebp], cl
push eax
aas
push 9
add eax, 0xffffffd0
pop edx
cmp ax, dx
ja 0x49b14c
add ecx, ebx
movzx eax, word [ecx]
mov edx, eax
cmp ax, di
or eax, 0x4d191c
push esi
cmp ecx, 0xffffffff
pop ebx
ret

Function at 0x40ed5a
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
mov ecx, dword [esp]
add esp, 4
mov ebx, 0x7b03d913
call fcn.0040ed8b
push ebx
mov edx, dword [esp]
add esp, 4
xor dword [esi], ecx
inc esi
cmp esi, eax
jne fcn.0040ed5a
add ebx, 0xc62405c5
ret