joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101efae1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fff60
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x101efb8a
mov edi, 0x5c
jmp 0x101efa00
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x1029c688]
lea ecx, [eax*4 + 0x1029c688]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x101efa28
cmp esi, 0xffffffff
jne 0x101efbb7
jmp 0x101efb7f
mov esi, dword [eax*4 + 0x10221228]
cmp byte [0x1029c680], 0
mov dword [ebp - 4], 0
je 0x101efa5d
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x101efb6f
test esi, esi
je 0x101efb6d
cmp word [esi], 0
je 0x101efb6d
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x101efb64
cmp eax, 0x200
jae 0x101efb64
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x101efb64
movzx ecx, word [esi]
test cx, cx
je 0x101efad4
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x101efb64
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x101efab2
add eax, eax
cmp eax, 0x400
jae 0x101efbbb
mov edi, dword [0x102519c8]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x1029c684]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x101efb40
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov esi, eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x101efb6f
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call eax
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
mov edi, 0x5c
jmp 0x101efb6f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x101efba8
or eax, 0xffffffff
xchg dword [ecx], eax
add ebx, 4
cmp ebx, edx
jne 0x101efa00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x101efbb7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x101efb8c
call fcn.101c8260
int3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x421f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x421f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421f38
mov eax, 1
add ebx, ebx
jne 0x421f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421f50
jne 0x421f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421f50
xor ecx, ecx
sub eax, 3
jb 0x421f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421ff2
mov ebp, eax
add ebx, ebx
jne 0x421f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421fbc
inc ecx
add ebx, ebx
jne 0x421fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421f9d
jne 0x421fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421fcd
jmp 0x421f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421fdc
add edi, ecx
jmp 0x421f3e
pop esi
mov edi, esi
mov ecx, 0x558
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421ffa
cmp byte [edi], 5
jne 0x421ffa
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 0x421fff
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x422077
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22238]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x222a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42202c
mov ecx, edi
jns 0x42205b
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 + 0x222ac]
or eax, eax
je 0x422071
mov dword [ebx], eax
add ebx, 4
jmp 0x422049
call dword [esi + 0x222a8]
mov ebp, dword [esi + 0x222b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x4220ab
sub esp, 0xffffff80
jmp 0x40473a

Function at 0x438c8a
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
mov edi, edi
add ecx, 0xdb6d9d2a
call fcn.00438cc8
add edi, 0xafd96a2f
xor dword [eax], edx
add ecx, 1
or ecx, ecx
add edi, ecx
inc eax
add ecx, edi
or ecx, edi
and edi, ecx
cmp eax, ebx
jne fcn.00438c8a
inc ecx
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x53dc647a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
mov eax, section..pdata_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x408537a1
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4090f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
mov edx, ecx
push ebx
push esi
push edi
je 0x40910a
cmp dword [edx + 4], 0xffffffff
mov ebx, 1
jne 0x40910c
xor ebx, ebx
mov esi, dword [edx + 0xc]
test ebx, ebx
je 0x409179
test esi, esi
je 0x409179
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x409179
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x409179
mov eax, dword [eax + esi + 0x98]
test eax, eax
je 0x409179
lea edi, [eax + esi]
test edi, edi
je 0x409179
lea eax, [edi + 8]
test eax, eax
je 0x409179
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x409179
mov al, byte [ecx]
inc ecx
mov dword [ebp - 4], ecx
cmp al, 0x82
jne 0x409179
mov eax, dword [ebp - 4]
movzx ecx, byte [ecx]
shl ecx, 8
movzx eax, byte [eax + 1]
add eax, 0x13
add eax, ecx
and eax, 0xffffff8
je 0x409179
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], edi
jmp 0x409181
mov edi, dword [edx + 0x18]
xor ebx, ebx
mov eax, dword [edx + 0x14]
add edi, eax
test ebx, ebx
je 0x409204
mov eax, dword [edx + 0x10]
add eax, esi
cmp edi, eax
jae 0x409204
xor ebx, ebx
cmp dword [edi], 0x74636159
sete bl
test ebx, ebx
je 0x4091f9
movzx ecx, byte [edi + 4]
mov eax, 0x100
imul ecx, eax
movzx eax, byte [edi + 5]
inc ax
add cx, ax
mov eax, dword [ebp + 8]
movzx ecx, cx
mov esi, ecx
mov eax, dword [eax]
test eax, eax
jne 0x4091d9
mov eax, dword [ebp + 0xc]
push esi
mov dword [eax], esi
call fcn.00410b36
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x4091f9
push esi
push 0
push eax
call fcn.00412cb0
push esi
lea eax, [edi + 6]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00412730
add esp, 0x18
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ed1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xfe28
call fcn.00403c50
sub esp, eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xfdfc], ax
lea eax, [ebp - 0xfdf4]
mov dword [ebp - 0xc], eax
mov dword [esp], 0
call sym._htons_4
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0xc]
mov word [eax], dx
movzx eax, word [ebp - 0xfdfc]
mov dword [esp], eax
call sym._htons_4
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0xc]
mov word [eax + 2], dx
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._memcpy
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._strlen
add eax, 5
mov edx, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea eax, [ebp - 0xfdf4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._sendto_24
sub esp, 0x18
nop
leave
ret

Function at 0x401f91
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xfe28
call fcn.00403c50
sub esp, eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xfdfc], ax
lea eax, [ebp - 0xfdf4]
mov dword [ebp - 0xc], eax
mov dword [esp], 3
call sym._htons_4
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0xc]
mov word [eax], dx
movzx eax, word [ebp - 0xfdfc]
mov dword [esp], eax
call sym._htons_4
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0xc]
mov word [eax + 2], dx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._memcpy
mov eax, dword [ebp + 0x14]
add eax, 4
mov edx, eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea eax, [ebp - 0xfdf4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._sendto_24
sub esp, 0x18
nop
leave
ret

Function at 0x40203e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xfe28
call fcn.00403c50
sub esp, eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xfdfc], ax
lea eax, [ebp - 0xfdf4]
mov dword [ebp - 0xc], eax
mov dword [esp], 4
call sym._htons_4
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0xc]
mov word [eax], dx
movzx eax, word [ebp - 0xfdfc]
mov dword [esp], eax
call sym._htons_4
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0xc]
mov word [eax + 2], dx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
lea eax, [ebp - 0xfdf4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._sendto_24
sub esp, 0x18
nop
leave
ret
Function at 0x403710
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x409058
call sym._EnterCriticalSection_4
mov ebx, dword [0x409050]
sub esp, 4
test ebx, ebx
je 0x40375b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x403754
test esi, esi
je 0x403754
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403730
mov dword [esp], 0x409058
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x403940
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x403990
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x403a68
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4039ce
cmp eax, 4
jne 0x4039f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4039de
cmp edx, 4
je 0x4039de
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00403940
Function at 0x4079d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4681d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4a5590]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4a5590]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x407b1b
cmp byte [edi + 0x45], 0
je 0x407b1b
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x407a30
xor al, al
jmp 0x407b1d
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x18], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 8
cmp ecx, 0x10
jae 0x407a59
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0x10
mov ebx, dword [esp + 0x18]
jae 0x407aa0
lea ebx, [esp + 0x18]
mov esi, ebx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407aa6
dec eax
je 0x407aaa
sub eax, 2
je 0x407b02
xor bl, bl
jmp 0x407b04
mov esi, dword [esp + 0x18]
jmp 0x407a76
mov byte [edi + 0x45], 0
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x407ab9
lea eax, [esp + 0x18]
mov esi, dword [esp + 0x14]
sub esi, eax
je 0x407ae3
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x407ad0
lea eax, [esp + 0x18]
push dword [edi + 0x50]
push esi
push 1
push eax
call fcn.0044da24
add esp, 0x10
cmp esi, eax
jne 0x407a9c
cmp byte [edi + 0x45], 0
je 0x407b02
test esi, esi
jne 0x407a65
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00407650
jmp 0x407a65
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x407b17
push dword [esp + 0x18]
call fcn.0044d639
add esp, 4
mov al, bl
jmp 0x407b1d
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x40a4d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x130], 0
mov dword [ebp - 4], 0
jbe 0x40a51b
mov esi, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [ebx + 0x120]
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
call fcn.00409da0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 8], 0
jne 0x40a539
mov ecx, dword [ebp + 8]
push 0x47abfc
call fcn.0040a210
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [0x47ac60]
neg eax
push edi
sbb eax, eax
and eax, 3
push eax
lea edi, [ebx + 0x120]
push 0x47ac60
mov ecx, edi
call fcn.0040a110
mov eax, dword [ebx + 8]
sub eax, 5
je 0x40a603
dec eax
je 0x40a586
sub eax, 4
jne case.default.0x40a592
cmp dword [ebx + 0xc], eax
jne case.default.0x40a592
push 0x47ac58
jmp 0x40a63e
mov eax, dword [ebx + 0xc]
cmp eax, 3
ja case.default.0x40a592
jmp dword [eax*4 + 0x40a674]
cmp byte [ebx + 0x11e], 1
mov ecx, edi
jne 0x40a5ae
push 0x47ac28
jmp 0x40a640
push 0x47ac18
jmp 0x40a640
cmp byte [ebx + 0x11e], 1
mov ecx, edi
jne 0x40a5ca
push 0x47ac30
jmp 0x40a640
push 0x47ac20
jmp 0x40a640
cmp byte [ebx + 0x11e], 1
mov ecx, edi
jne 0x40a5e3
push 0x47ac38
jmp 0x40a640
push 0x47ac40
jmp 0x40a640
cmp byte [ebx + 0x11e], 1
mov ecx, edi
jne 0x40a5fc
push 0x47ac48
jmp 0x40a640
push 0x47ac50
jmp 0x40a640
mov eax, dword [ebx + 0xc]
sub eax, 0
je 0x40a639
dec eax
je 0x40a62b
dec eax
jne case.default.0x40a592
cmp byte [ebx + 0x11e], 1
jne 0x40a632
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x28], 9
jne case.default.0x40a592
push 0x47ac08
jmp 0x40a63e
push 0x47ac10
jmp 0x40a63e
push 0x47ac00
mov ecx, edi
call fcn.00409270
mov esi, dword [ebp + 8]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push edi
mov ecx, esi
mov word [esi], ax
call fcn.00409da0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469539
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a5590]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
xor ebx, ebx
mov edi, 0x107d
mov ecx, 0xff
lea ecx, [ecx]
mov eax, edi
cdq
idiv ecx
mov ecx, esi
xor dl, byte [ebx + str._v.k]
movsx ax, dl
movzx eax, ax
push eax
push 1
call fcn.00409440
add edi, 0x3f
lea ebx, [ebx + 1]
mov ecx, 0xff
cmp edi, 0x20bb
jl 0x40b230
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b7f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
jmp 0x40b800
mov edx, eax
and edx, 1
dec edx
not edx
and edx, 0xedb88320
mov ecx, eax
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov dword [eax*4 + 0x4adec0], ecx
inc eax
cmp eax, 0x100
jb 0x40b800
cmp eax, 0x800
jae 0x40b8d3
lea esp, [esp]
mov edx, dword [eax*4 + 0x4adac0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4adec0]
inc eax
mov dword [eax*4 + 0x4adebc], edx
cmp eax, 0x800
jb 0x40b8b0
lea ecx, [ebp - 0x20]
mov dword [0x4acdb8], 0x40b990
call fcn.0040f610
test eax, eax
je 0x40b988
mov edi, dword [ebp - 0x10]
mov esi, edi
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor ecx, ecx
mov eax, 0x4a6a84
xor edx, edx
lea ecx, [ecx]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x40b927
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x40b927
cmp dword [eax], ebx
je 0x40b936
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x40b910
or ecx, 0xffffffff
sub ecx, 0
je 0x40b96f
dec ecx
je 0x40b95e
dec ecx
jne 0x40b988
cmp esi, 6
jb 0x40b988
jne 0x40b97e
cmp edi, 0xf
jb 0x40b988
mov dword [0x4acdb8], 0x40ba30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x40b988
jne 0x40b97e
cmp edi, 6
jb 0x40b988
cmp edi, 0xa
jmp 0x40b97c
cmp esi, 6
jb 0x40b988
jne 0x40b97e
cmp edi, 0x100c
je 0x40b988
mov dword [0x4acdb8], 0x40ba30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c4f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 4], ecx
test esi, esi
je 0x40c54e
mov dword [edi], 0
jmp 0x40c510
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40c51f
mov eax, esi
push 0
lea edx, [ebp + 8]
push edx
push eax
push ebx
push dword [ecx]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40c557
test ecx, ecx
je 0x40c54e
mov ecx, dword [ebp - 4]
test esi, esi
jne 0x40c510
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 4], ecx
test esi, esi
je 0x40c5ce
mov dword [edi], 0
jmp 0x40c590
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40c59f
mov eax, esi
push 0
lea edx, [ebp + 8]
push edx
push eax
push ebx
push dword [ecx]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40c5d7
test ecx, ecx
je 0x40c5ce
mov ecx, dword [ebp - 4]
test esi, esi
jne 0x40c590
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret