joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485ff0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x52000]
lea eax, [edi + 0x7ad3c]
push dword [eax]
mov dword [eax], 0xa097e0be
push eax
push edi
or ebp, 0xffffffff
jmp 0x486022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x486029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x486018
mov eax, 1
add ebx, ebx
jne 0x48603b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48604c
jne 0x48606b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48606b
dec eax
add ebx, ebx
jne 0x486058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x486030
add ebx, ebx
jne 0x486067
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4860bd
xor ecx, ecx
sub eax, 3
jb 0x486083
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4860f2
sar eax, 1
mov ebp, eax
jmp 0x48608e
add ebx, ebx
jne 0x48608e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48605c
inc ecx
add ebx, ebx
jne 0x48609c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48605c
add ebx, ebx
jne 0x4860a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48609e
jne 0x4860ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48609e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4860dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4860ce
jmp 0x48601e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4860dc
add edi, ecx
jmp 0x48601e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x17c4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4860fe
cmp byte [edi], 0x17
jne 0x4860fe
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 0x486103
lea edi, [esi + 0x81000]
mov eax, dword [edi]
or eax, eax
je 0x486172
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x86000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8603c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x486130
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x86044]
or eax, eax
je 0x48616c
mov dword [ebx], eax
add ebx, 4
jmp 0x48614d
call dword [esi + 0x86040]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4861a3
cmp al, 0xef
ja 0x486196
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x486178
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x486185
mov ebp, dword [esi + 0x86048]
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 0x4861d7
sub esp, 0xffffff80
jmp 0x42579b
Function at 0x451ea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2e000]
push edi
jmp 0x451eba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x451ec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x451eb0
mov eax, 1
add ebx, ebx
jne 0x451ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x451ec8
jne 0x451ee4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x451ec8
xor ecx, ecx
sub eax, 3
jb 0x451ef8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x451f6a
mov ebp, eax
add ebx, ebx
jne 0x451f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x451f10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x451f34
inc ecx
add ebx, ebx
jne 0x451f20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x451f15
jne 0x451f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x451f15
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x451f54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x451f45
jmp 0x451eb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x451f54
add edi, ecx
jmp 0x451eb6
pop esi
mov edi, esi
mov ecx, 0xbe8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x451f72
cmp byte [edi], 0x11
jne 0x451f72
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 0x451f77
lea edi, [esi + 0x4e000]
mov eax, dword [edi]
or eax, eax
je 0x451fef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x547b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x54804]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x451fa4
mov ecx, edi
jns 0x451fd3
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 + 0x5480c]
or eax, eax
je 0x451fe9
mov dword [ebx], eax
add ebx, 4
jmp 0x451fc1
call dword [esi + 0x54808]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x452020
cmp al, 0xef
ja 0x452013
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x451ff5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x452002
mov ebp, dword [esi + 0x54810]
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 0x452054
sub esp, 0xffffff80
jmp 0x4079d3
Function at 0x41bdc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41bde2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41bde9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41bdd8
mov eax, 1
add ebx, ebx
jne 0x41bdfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41bdf0
jne 0x41be0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41bdf0
xor ecx, ecx
sub eax, 3
jb 0x41be20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41be92
mov ebp, eax
add ebx, ebx
jne 0x41be2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41be38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41be5c
inc ecx
add ebx, ebx
jne 0x41be48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41be3d
jne 0x41be59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41be3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41be7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41be6d
jmp 0x41bdde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41be7c
add edi, ecx
jmp 0x41bdde
pop esi
mov edi, esi
mov ecx, 0x6b8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41be9a
cmp byte [edi], 6
jne 0x41be9a
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 0x41be9f
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x41bf0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b484]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b55c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41becc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b564]
or eax, eax
je 0x41bf08
mov dword [ebx], eax
add ebx, 4
jmp 0x41bee9
call dword [esi + 0x1b560]
mov ebp, dword [esi + 0x1b568]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x41bf42
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40c820
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
movzx eax, byte [edx]
test eax, eax
jle 0x40c8cf
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 4], eax
jmp 0x40c8c7
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
test eax, eax
je 0x40c8bc
mov eax, dword [esp]
lea edx, [eax + 6]
mov ebx, edx
mov eax, dword [esp]
movzx edx, word [eax]
dec edx
mov edi, edx
mov dword [esp + 8], 0
cmp edi, dword [esp + 8]
jl 0x40c8bc
dec dword [esp + 8]
lea esi, [esi]
inc dword [esp + 8]
lea eax, [ebx + 6]
mov edx, dword [esp + 0xc]
call fcn.00407d30
test eax, eax
jne 0x40c8aa
mov eax, dword [ebx]
add eax, dword [esp + 0x10]
mov esi, eax
jmp 0x40c8d4
lea edx, [ebx + 6]
inc edx
movzx eax, byte [ebx + 6]
add edx, eax
mov ebx, edx
cmp edi, dword [esp + 8]
jg 0x40c88c
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
jne 0x40c858
mov esi, 0
mov eax, esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 0x20
ret

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

Disassembly:
mov dword [0x7cbf90], eax
mov edx, 1
dec edx
nop
inc edx
mov eax, edx
dec eax
mov ecx, dword [eax*4 + 0x7cbf90]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x7cbf90], eax
cmp edx, 0x26f
jl 0x40e78c
mov dword [0x6db660], 0x270
ret
Function at 0x40e7c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], esi
mov eax, dword [0x7cb070]
cmp eax, dword [0x6db3e0]
je 0x40e7e1
mov dword [0x6db660], 0x271
mov eax, dword [0x6db660]
cmp eax, 0x270
jl 0x40e909
mov eax, dword [0x6db660]
cmp eax, 0x271
jne 0x40e818
mov eax, dword [0x7cb070]
call fcn.0040e780
mov eax, dword [0x7cb070]
not eax
mov dword [0x7cb070], eax
mov dword [0x6db3e0], eax
mov edx, 0
dec edx
mov esi, esi
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x7cbf90]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x7cbf90]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0x18d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x7cbf90]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x6db670]
xor esi, eax
mov dword [edx*4 + 0x7cbf90], esi
cmp edx, 0xe2
jl 0x40e820
mov edx, 0xe3
dec edx
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x7cbf90]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x7cbf90]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0xffffff1d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x7cbf90]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x6db670]
xor esi, eax
mov dword [edx*4 + 0x7cbf90], esi
cmp edx, 0x26e
jl 0x40e878
mov eax, dword [0x7cc94c]
and eax, 0x80000000
mov edx, dword [0x7cbf90]
and edx, 0x7fffffff
or eax, edx
mov ecx, eax
shr eax, 1
mov edx, dword [0x7cc5c0]
xor eax, edx
and ecx, 1
mov edx, dword [ecx*4 + 0x6db670]
xor eax, edx
mov dword [0x7cc94c], eax
mov dword [0x6db660], 0
mov eax, dword [0x6db660]
mov edx, dword [eax*4 + 0x7cbf90]
inc dword [0x6db660]
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
mov ebx, dword [esp]
mov esi, dword [esp + 4]
add esp, 8
ret

Function at 0x410b80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, dword [0x6db710]
cmp eax, 0xffffffff
jne 0x410ba6
mov ax, 0xe2
call fcn.0040eec0
push dword [0x6db710]
call sub.kernel32.dll_TlsGetValue
mov esi, eax
test eax, eax
jne 0x410bdf
push dword [0x6db700]
push 0x40
call sub.kernel32.dll_LocalAlloc
mov esi, eax
test eax, eax
jne 0x410bd3
mov ax, 0xe2
call fcn.0040eec0
push esi
push dword [0x6db710]
call sub.kernel32.dll_TlsSetValue
push ebx
call sub.kernel32.dll_SetLastError
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
leave
ret
Function at 0x412780
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x414], edi
mov bl, al
mov dword [ebp - 0x410], edx
mov esi, ecx
movzx eax, bl
test eax, eax
sete byte [ebp - 0x40c]
mov al, byte [ebp - 0x40c]
test al, al
jne 0x41286c
movzx eax, bl
add eax, 0x40
mov byte [0x6db730], al
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov eax, 0x6db730
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
test eax, eax
jne 0x41286c
call sub.kernel32.dll_GetLastError
movzx edi, ax
mov edx, dword [0x7cb090]
test edx, edx
je 0x412809
mov eax, dword [0x7cbe70]
call edx
jmp 0x41280e
mov eax, 0x7cbe74
mov dword [eax], edi
call fcn.00403ca0
push 0x6db740
movzx eax, bl
add eax, 0x40
and eax, 0xff
shl eax, 8
or eax, 1
mov word [ebp - 0x408], ax
lea ecx, [ebp - 0x408]
lea eax, [ebp - 0x308]
mov edx, 0xff
call fcn.00404de0
lea ecx, [ebp - 0x308]
mov edx, esi
mov eax, dword [ebp - 0x410]
call fcn.00404850
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
jmp 0x4128eb
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov al, byte [ebp - 0x40c]
test al, al
jne 0x412893
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea ecx, [ebp - 0x104]
lea eax, [ebp - 0x308]
mov edx, 0xff
call fcn.00404900
lea ecx, [ebp - 0x308]
mov ebx, esi
mov edx, ebx
mov eax, dword [ebp - 0x410]
call fcn.00404850
mov al, byte [0x6db3a0]
test al, al
jne 0x4128eb
lea edx, [ebp - 0x308]
mov eax, dword [ebp - 0x410]
call fcn.00405c80
lea ecx, [ebp - 0x308]
mov edx, ebx
mov eax, dword [ebp - 0x410]
call fcn.00404850
mov ebx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x418]
mov edi, dword [ebp - 0x414]
leave
ret
Function at 0x412b30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 0
mov dword [0x7cbda0], 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, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.00412d20
mov ecx, dword [ebp - 0x110]
inc ecx
mov eax, dword [0x7cbda0]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00404610
call sub.kernel32.dll_GetCommandLineA
mov dword [0x6db1e0], eax
mov ebx, dword [0x6db1e0]
jmp 0x412cd1
inc ebx
movzx eax, byte [ebx]
dec eax
cmp eax, 0x20
jb 0x412bcc
mov al, byte [ebx]
test al, al
je 0x412cdb
mov byte [ebp - 0x10c], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x412c3c
mov al, byte [ebx]
cmp al, 1
jb 0x412c35
sub al, 0x20
jbe 0x412c08
sub al, 2
je 0x412c1a
jmp 0x412c35
mov al, byte [ebp - 0x10c]
test al, al
je 0x412c42
inc dword [ebp - 0x110]
jmp 0x412c3b
mov al, byte [ebx + 1]
cmp al, 0x22
je 0x412c32
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x412c3b
inc ebx
jmp 0x412c3b
inc dword [ebp - 0x110]
inc ebx
mov al, byte [ebx]
test al, al
jne 0x412bf8
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x412ccb
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.00412d20
mov byte [ebp - 0x10c], 0
mov ebx, edi
mov edx, dword [0x7cbda0]
mov eax, dword [ebp - 0x114]
mov esi, dword [edx + eax*4]
jmp 0x412cc2
mov al, byte [ebx]
cmp al, 1
jb 0x412cbc
sub al, 0x20
jbe 0x412c90
sub al, 2
je 0x412ca1
jmp 0x412cbc
mov al, byte [ebp - 0x10c]
test al, al
je 0x412cc8
mov al, byte [ebx]
mov byte [esi], al
inc esi
jmp 0x412cc1
mov al, byte [ebx + 1]
cmp al, 0x22
je 0x412cb9
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x412cc1
inc ebx
jmp 0x412cc1
mov al, byte [ebx]
mov byte [esi], al
inc esi
inc ebx
mov al, byte [ebx]
test al, al
jne 0x412c80
mov byte [esi], 0
inc dword [ebp - 0x114]
mov al, byte [ebx]
test al, al
jne 0x412bcd
mov ebx, dword [ebp - 0x114]
mov dword [0x7cbd90], ebx
mov edx, ebx
inc edx
shl edx, 2
mov eax, 0x7cbda0
call fcn.00410420
mov eax, dword [0x7cbda0]
mov dword [eax + ebx*4], 0
mov ebx, dword [ebp - 0x120]
mov esi, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x118]
leave
ret

Function at 0x414720
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 4
mov dword [esp], ebx
mov dx, 0
dec dx
inc dx
movsx eax, dx
mov ecx, eax
mov bx, 1
dec bx
lea esi, [esi]
inc bx
mov eax, ecx
and eax, 1
je 0x414752
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x414758
mov eax, ecx
shr eax, 1
mov ecx, eax
cmp bx, 8
jl 0x41473c
movsx eax, dx
mov dword [eax*4 + 0x7cebb0], ecx
cmp dx, 0xff
jl 0x41472c
mov ebx, dword [esp]
add esp, 4
ret
Function at 0x414780
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov esi, eax
mov edi, edx
mov ebx, ecx
mov eax, dword [0x7cebb4]
test eax, eax
jne 0x4147a3
call fcn.00414720
mov dword [esp], edi
not esi
mov dword [esp + 4], esi
mov esi, 1
cmp ebx, esi
jl 0x4147e2
dec esi
mov esi, esi
inc esi
mov eax, dword [esp + 4]
mov dl, al
mov edi, dword [esp]
mov cl, byte [edi]
xor cl, dl
movzx edx, cl
mov ecx, eax
shr ecx, 8
mov eax, dword [edx*4 + 0x7cebb0]
xor eax, ecx
mov dword [esp + 4], eax
inc dword [esp]
cmp ebx, esi
jg 0x4147b8
mov eax, dword [esp + 4]
not eax
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
add esp, 0x14
ret

Function at 0x4220d0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
push edi
mov eax, ebx
mov edx, 0
call fcn.00422070
cmp edx, esi
jne 0x42210a
cmp eax, edi
jne 0x42210a
push ebx
call sub.kernel32.dll_SetEndOfFile
or eax, eax
setne al
jmp 0x42210c
mov al, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
leave
ret 8

Function at 0x422160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x422175
mov eax, 0x7cbe60
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x422188
and eax, 0x10
sete al
jmp 0x42218a
mov al, 0
leave
ret

Function at 0x422190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4221a5
mov eax, 0x7cbe60
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4221b8
and eax, 0x10
seta al
jmp 0x4221ba
mov al, 0
leave
ret

Function at 0x4223e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4223f5
mov eax, 0x7cbe60
push eax
call sub.kernel32.dll_GetFileAttributesA
leave
ret

Function at 0x422400
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
push edx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x422419
mov eax, 0x7cbe60
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
je 0x42242a
mov ebx, 0
jmp 0x422431
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
mov ebx, dword [ebp - 8]
leave
ret
Function at 0x422c20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, 1
call fcn.0040d0e0
call fcn.0040f290
push eax
test eax, eax
jne 0x422cf3
mov ebx, 1
dec ebx
nop
inc ebx
lea eax, [ebx*4 + 0x7cf18c]
call fcn.00404c10
mov dword [ebx*4 + 0x7cf18c], 0
mov dword [ebx*4 + 0x7cf1ac], 0xffffffff
cmp ebx, 7
jl 0x422c58
call sub.kernel32.dll_GetThreadLocale
mov ebx, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push ebx
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x422cf3
lea eax, [ebp - 0x38]
call fcn.00404c10
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
mov cl, 1
mov edx, 0xa
call fcn.00408720
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.00419f60
mov esi, eax
sub eax, 3
cmp eax, 3
jae 0x422cf3
push 4
push esi
push ebx
mov eax, 0x422aa0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push esi
push ebx
mov eax, 0x422b60
push eax
call sub.kernel32.dll_EnumCalendarInfoA
call fcn.0040d3b0
lea eax, [ebp - 0x38]
call fcn.00404c10
mov dword [ebp - 0x38], 0
pop eax
test eax, eax
je 0x422d11
call fcn.0040d520
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
leave
ret
Function at 0x423520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, 1
call fcn.0040d0e0
call fcn.0040f290
push eax
test eax, eax
jne 0x42364d
mov ebx, dword [ebp - 8]
mov eax, ebx
call fcn.00404c10
mov dword [ebx], 0
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x44], eax
mov esi, dword [ebp - 0x44]
jmp 0x42363b
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004201b0
mov edx, dword [ebp - 0xc]
mov al, 0x3d
call fcn.00408be0
mov ebx, eax
lea eax, [ebp - 0x38]
call fcn.00404c10
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004091d0
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.00404c10
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x40]
call fcn.00404c10
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [ebp - 0xc]
mov edx, 1
call fcn.00408a90
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00419600
mov eax, dword [ebp - 0x3c]
mov edx, edi
call fcn.00408880
test eax, eax
jne 0x42362f
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x42361c
mov ecx, dword [ecx - 4]
sub ecx, ebx
mov eax, ebx
inc eax
mov edi, dword [ebp - 0xc]
mov edx, eax
mov eax, edi
call fcn.00408a90
jmp 0x423645
mov eax, esi
call fcn.004049c0
add eax, esi
inc eax
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x423590
push dword [ebp - 0x44]
call sub.kernel32.dll_FreeEnvironmentStringsA
call fcn.0040d3b0
lea eax, [ebp - 0x40]
call fcn.00404c10
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x3c]
call fcn.00404c10
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x38]
call fcn.00404c10
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0xc]
call fcn.00404c10
mov dword [ebp - 0xc], 0
pop eax
test eax, eax
je 0x423698
call fcn.0040d520
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
leave
ret