joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f650
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 + 0x4916a8]
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 0x47f690
cmp byte [ebx], 0xa
jne 0x47f690
or byte [edi + eax + 0x28], 4
jmp 0x47f695
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 0x47f794
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47f777
inc eax
cmp dl, 0xd
je 0x47f6c1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47f6e7
cmp eax, ecx
jae 0x47f6f5
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 0x47f6a9
jmp 0x47f794
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 0x47f772
cmp dword [ebp - 0x10], 0
je 0x47f772
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4916a8]
test byte [eax + edi + 0x28], 0x48
je 0x47f74c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47f737
mov byte [esi], dl
jmp 0x47f748
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4916a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47f794
cmp byte [ebp - 1], 0xa
jne 0x47f75b
cmp esi, ebx
jne 0x47f75b
mov byte [esi], 0xa
jmp 0x47f793
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00479c53
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47f794
mov byte [esi], 0xd
jmp 0x47f793
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4916a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47f791
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47f794
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47f79d
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 + 0x4916a8]
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 0x47f7e3
cmp word [ebx], dx
jne 0x47f7e3
or byte [eax + edi + 0x28], 4
jmp 0x47f7e8
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 0x47f94b
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 0x47f92b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47f829
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47f85f
cmp eax, edx
jae 0x47f86d
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 0x47f804
jmp 0x47f94b
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 0x47f926
cmp dword [ebp - 0x18], 0
je 0x47f926
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4916a8]
test byte [eax + edi + 0x28], 0x48
je 0x47f8fc
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 0x47f8c0
mov word [esi], cx
jmp 0x47f8f7
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4916a8]
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 + 0x4916a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4916a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x47f94b
pop eax
cmp word [ebp - 4], ax
jne 0x47f90c
cmp esi, ebx
jne 0x47f90c
mov word [esi], ax
jmp 0x47f948
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00479c53
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47f94b
push 0xd
pop eax
jmp 0x47f907
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4916a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x47f945
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x47f94b
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 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xd9b3c52
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2f2e2f77
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40f2d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x605470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x60546c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x605470], edx
cmp eax, 0x26f
jl 0x40f2d8
mov dword [0x580070], 0x270
ret

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

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x605474]
mov ebx, dword [eax*4 + 0x605470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x605aa4]
mov dword [eax*4 + 0x605470], edx
cmp eax, 0xe2
jl 0x40f318
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x605474]
mov ebx, dword [eax*4 + 0x605470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x6050e4]
mov dword [eax*4 + 0x605470], edx
cmp eax, 0x26e
jl 0x40f368
mov edx, dword [0x605470]
mov ecx, dword [0x605e2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x605aa0]
mov dword [0x605e2c], eax
mov dword [0x580070], 0
pop ebx
ret

Function at 0x40f3f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x580070]
add dword [0x580070], 1
mov eax, dword [0x604020]
cmp eax, dword [0x57f7c0]
jne 0x40f413
cmp ebx, 0x271
jb 0x40f434
mov eax, dword [0x604020]
call fcn.0040f2d0
not dword [0x604020]
mov eax, dword [0x604020]
mov dword [0x57f7c0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40f450
call fcn.0040f310
xor ebx, ebx
mov dword [0x580070], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x605470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x410fa0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x57f500]
cmp ax, 0xcb
je 0x4110ac
cmp ax, 0xcc
je 0x4110ac
lea esi, [esi]
mov edx, dword [0x606070]
test edx, edx
je 0x410fd5
mov eax, dword [0x605f20]
call edx
mov ebx, eax
jmp 0x410fda
mov ebx, 0x605f24
cmp word [0x605f10], 0
jle 0x411000
mov eax, 0x605ef0
call fcn.00411260
mov eax, ebx
call fcn.00410b60
mov eax, ebx
call fcn.00410bd0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x411022
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x41101d
mov edx, edi
mov eax, ebx
call fcn.0040ffd0
jmp 0x411020
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x411008
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x605f10], 0
jle 0x4110ac
mov edx, 0x605e30
mov eax, ebx
call fcn.00410110
mov edi, eax
test edi, edi
je 0x41107c
mov eax, dword [0x605ec4]
mov dword [edi + 0xc], eax
cmp dword [0x605ec4], 0
je 0x411070
mov eax, dword [0x605ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x605ec4], eax
nop
sub word [0x605f10], 1
cmp word [0x605f10], 0
sete bl
mov eax, 0x605ef0
call fcn.00411280
test bl, bl
je 0x4110ac
mov eax, 0x605ef0
call fcn.00411250
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x413950
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00413940
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, esi
test esi, esi
jne 0x413989
mov eax, 0x6052f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
lea edx, [ebx - 1]
lea eax, [ebp - 0xc]
call fcn.0040b9c0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4139ac
mov eax, 0x6052f0
push eax
push ebx
mov eax, esi
test esi, esi
jne 0x4139b9
mov eax, 0x6052f0
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x413a7e
jmp 0x4139d3
sub edx, 1
cmp edx, 3
jbe 0x4139e4
mov eax, dword [ebp - 0xc]
cmp word [eax + edx*2 - 2], 0x5c
je 0x4139d0
mov eax, ebx
mov edi, 0
sub eax, 1
sbb edi, 0
mov ecx, edx
xor ebx, ebx
cmp edi, ebx
jne 0x4139fd
cmp eax, ecx
je 0x413a08
lea eax, [ebp - 0xc]
call fcn.0040b9c0
lea esi, [esi]
mov eax, 0x4011e0
mov edx, dword [ebp - 0xc]
call fcn.004138c0
mov edx, dword [0x606070]
test edx, edx
je 0x413a28
mov eax, dword [0x605160]
call edx
jmp 0x413a2d
mov eax, 0x605164
cmp word [eax], 0
jne 0x413a8a
mov eax, esi
test esi, esi
je 0x413a3d
mov eax, dword [eax - 4]
cmp eax, 2
jle 0x413a8a
cmp word [esi + 2], 0x3a
jne 0x413a8a
mov word [ebp - 8], 0x3d
mov ax, word [esi]
mov word [ebp - 6], ax
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413a6f
mov eax, 0x6052f0
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
lea esi, [esi]
jmp 0x413a8a
mov eax, 0x4011e0
mov edx, esi
call fcn.004138c0
mov edx, dword [0x606070]
test edx, edx
je 0x413a9d
mov eax, dword [0x605160]
call edx
jmp 0x413aa2
mov eax, 0x605164
cmp word [eax], 2
jne 0x413ac8
mov edx, dword [0x606070]
test edx, edx
je 0x413abc
mov eax, dword [0x605160]
call edx
jmp 0x413ac1
mov eax, 0x605164
mov word [eax], 3
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00413940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00413ae0
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x413c2a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b9c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x413b8f
mov edx, 0x6052f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x413be1
call sub.kernel32.dll_GetLastError
call fcn.00404420
lea eax, [ebp - 0x10]
call fcn.0040a560
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040aa00
mov edx, dword [ebp - 0x14]
mov ecx, 0x59d33c
lea eax, [ebp - 0x10]
call fcn.0040a890
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040b290
jmp 0x413c78
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x413bfa
cmp eax, ecx
je 0x413c04
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b9c0
cmp byte [0x57f790], 0
jne 0x413c78
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040c040
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b320
lea esi, [esi]
jmp 0x413c78
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b9c0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x413c4e
mov eax, 0x6052f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x57f790], 0
jne 0x413c78
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040c040
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040b320
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00413ae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4141f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x605260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.004143d0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x605260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403990
call sub.kernel32.dll_GetCommandLineA
mov dword [0x57f580], eax
mov ebx, eax
jmp 0x414393
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x414278
cmp byte [ebx], 0
je 0x41439c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x4142f3
mov al, byte [ebx]
cmp al, 1
jb 0x4142e8
sub al, 0x20
jbe 0x4142b8
sub al, 2
je 0x4142cc
jmp 0x4142e8
mov al, byte [ebp - 0x114]
test al, al
je 0x4142f8
add dword [ebp - 0x110], 1
jmp 0x4142f0
cmp byte [ebx + 1], 0x22
je 0x4142e3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4142f0
add ebx, 1
jmp 0x4142f0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4142a8
test dword [ebp - 0x10c], 0xffffffff
je 0x41438c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004143d0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x605260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x414383
mov al, byte [ebx]
cmp al, 1
jb 0x414378
sub al, 0x20
jbe 0x414348
sub al, 2
je 0x41435c
jmp 0x414378
mov al, byte [ebp - 0x114]
test al, al
je 0x414388
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x414380
cmp byte [ebx + 1], 0x22
je 0x414373
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x414380
add ebx, 1
jmp 0x414380
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x414338
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x41427b
mov ebx, dword [ebp - 0x10c]
mov dword [0x605250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x605260
call fcn.00410de0
mov eax, dword [0x605260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417a70
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov dx, 0xffff
lea esi, [esi]
add dx, 1
movsx eax, dx
mov ecx, eax
xor bx, bx
lea esi, [esi]
add bx, 1
mov eax, ecx
and eax, 1
je 0x417aa1
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x417aa3
shr ecx, 1
cmp bx, 8
jl 0x417a88
movzx eax, dx
mov dword [eax*4 + 0x627d00], ecx
cmp dx, 0xff
jl 0x417a78
pop ebx
ret

Function at 0x417ac0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, edx
mov esi, ecx
cmp dword [0x627d04], 0
jne 0x417ad8
call fcn.00417a70
nop
mov ecx, edi
not ebx
mov eax, ebx
cmp esi, 1
jl 0x417b0c
xor ebx, ebx
lea esi, [esi]
add ebx, 1
mov dl, al
xor dl, byte [ecx]
and edx, 0xff
mov edi, eax
shr edi, 8
xor edi, dword [edx*4 + 0x627d00]
mov eax, edi
add ecx, 1
cmp esi, ebx
jg 0x417ae8
mov esi, esi
not eax
pop edi
pop esi
pop ebx
ret
Function at 0x42cc10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.0042cc00
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x42cd20
mov al, byte [ebp - 0x110]
test al, al
je 0x42cce9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405190
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409600
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a3e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x5a3350
call fcn.00446b10
mov edx, 0x42cc7a
mov ecx, ebp
call fcn.00414f30
jmp 0x42cd20
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x5a3350
call fcn.00446b10
mov edx, 0x42cce9
mov ecx, ebp
call fcn.00414f30
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x42cde4
mov al, byte [ebp - 0x110]
test al, al
je 0x42cdad
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405190
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409600
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a3e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x5a3350
call fcn.00446b10
mov edx, 0x42cd3e
mov ecx, ebp
call fcn.00414f30
jmp 0x42cde4
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x5a3350
call fcn.00446b10
mov edx, 0x42cdad
mov ecx, ebp
call fcn.00414f30
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.0042c380
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0042cc00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42fea0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, 0x5a3fdc
call fcn.0040d2d0
test al, al
je 0x42ff86
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0042ffa0
xor eax, eax
push fcn.0042fe90
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0xc4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1a]
mov byte [edx + 0x1a], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1b]
mov byte [edx + 0x1b], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1c]
mov byte [edx + 0x1c], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.00408d80
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.0042f0b0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.0042ec00
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
call dword [ecx + 0xb0]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0042fe90
jmp 0x42ff91
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00432ae0
mov esp, ebp
pop ebp
ret

Function at 0x431e20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [ebx + 4]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x431e3c
mov dword [ebx + 0xc], 0
mov esi, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ca90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc20]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc10], 0
xor eax, eax
push fcn.0043ca80
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc10]
call fcn.00408d80
lea eax, [ebp - 0xc10]
call fcn.00403eb0
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x43caf0
mov eax, 0x6052f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x43cb9a
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040fe10
xor eax, eax
push fcn.0043ca70
push ebp
push 0x415070
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0xc0c]
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x43cb4c
mov eax, 0x6052f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x43cb88
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5a8bac
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x43cb88
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043ca70
jmp 0x43cbf8
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x43cbbc
mov eax, 0x6052f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x43cbf8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x5a8bac
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x43cbf8
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043ca80
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret