joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10110f50
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x10119928]
add eax, 0xffffffb2
mov dword [0x10119928], eax
call fcn.100010a0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
jne 0x101110fb
lea eax, [esp + 0x40]
mov dword [0x10119928], 0x20e4
mov dword [0x1011992c], 0x230a
mov dword [esp + 0x28], eax
call fcn.10110680
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x101110f3
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.101108e0
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x78], edx
mov dword [esp + 0x6c], 0x13d000
mov dword [0x1011992c], 0x137c
mov edx, dword [0x10119914]
mov dword [esp + 0x84], edx
mov edx, dword [0x10119918]
mov dword [esp + 0x64], edx
mov edx, dword [0x1011991c]
add ecx, 0x14
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
lea eax, [0x1010f500]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ecx], edx
mov esi, dword [0x10119920]
mov dword [esp + 0x40], esi
mov esi, dword [0x10119924]
mov dword [esp + 0x5c], esi
mov dword [0x10119928], 0x5a0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10111066
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
je 0x1011107a
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1011103f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x8c], eax
mov dword [0x1011992c], 0xca5
mov dword [0x10119928], 0x17e4
mov eax, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.1010ffa0
mov ecx, dword [0x10119928]
add ecx, 0xffffed48
mov dword [0x10119928], ecx
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x1011992c]
add ecx, 0x1314
mov dword [0x10119928], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x5a1860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12a000]
push edi
or ebp, 0xffffffff
jmp 0x5a1882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5a1889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a1878
mov eax, 1
add ebx, ebx
jne 0x5a189b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5a18ac
jne 0x5a18cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a18cb
dec eax
add ebx, ebx
jne 0x5a18b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5a1890
add ebx, ebx
jne 0x5a18c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5a191d
xor ecx, ecx
sub eax, 3
jb 0x5a18e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5a1952
sar eax, 1
mov ebp, eax
jmp 0x5a18ee
add ebx, ebx
jne 0x5a18ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a18bc
inc ecx
add ebx, ebx
jne 0x5a18fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a18bc
add ebx, ebx
jne 0x5a1909
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5a18fe
jne 0x5a191a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5a18fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5a193c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5a192e
jmp 0x5a187e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5a193c
add edi, ecx
jmp 0x5a187e
pop esi
mov edi, esi
mov ecx, 0x9b4a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5a195a
cmp byte [edi], 0x16
jne 0x5a195a
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 0x5a195f
lea edi, [esi + 0x19d000]
mov eax, dword [edi]
or eax, eax
je 0x5a19ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ad6e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ad7ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5a198c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ad7f4]
or eax, eax
je 0x5a19c8
mov dword [ebx], eax
add ebx, 4
jmp 0x5a19a9
call dword [esi + 0x1ad7f0]
mov ebp, dword [esi + 0x1ad7f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x5a1a02
sub esp, 0xffffff80
jmp 0x51f5b8
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x4eba0818
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x95d224d
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x60a338], 1
mov dword [0x60a33c], 1
mov dword [0x60a340], 1
mov dword [0x60a32c], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x402cac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x10
test edx, edx
je 0x402cc6
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_fflush
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x405f2b
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x60a09c], 0
jne 0x405f36
jmp fcn.00405ee7
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
call fcn.00405e9c
mov dword [esp + 4], edx
mov ebx, edx
mov dword [esp], eax
call dword [0x60a09c]
push edx
push edx
test ebx, ebx
je 0x405f65
bt dword [ebx], 0x1e
jb 0x405f65
mov dword [esp], ebx
call fcn.00403bec
mov dword [esp], 0x4381cc
call fcn.00427660
cmp byte [eax], 0
je 0x405f99
mov byte [eax], 0
mov dword [esp], 0x43814c
call fcn.00427660
mov ecx, eax
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
mov dword [esp], 0
call fcn.0040422c
push eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40767a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
xor ebx, ebx
sub esp, 0x2c
mov dword [esp], 0x60a080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edx
cmp ebx, esi
jl 0x4076eb
mov dword [esp], 1
mov ebx, dword [fcn.0042d238]
call ebx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x43937b
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x60a080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
jmp 0x407764
test ebx, ebx
jns 0x4076fe
dec esi
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.0040598b
jmp 0x407764
mov dword [esp], 1
call dword [0x438690]
mov dword [esp + 8], 0
mov ecx, eax
lea eax, [edi + ebx*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040757c
sub esp, 0xc
mov dword [esp], 0x4381cc
call fcn.00427660
cmp byte [eax], 0
jne 0x407764
lea ecx, [ebp - 0x1c]
mov edx, 1
mov eax, ebx
call fcn.00402bc7
test al, al
je 0x40775c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00403d00
mov ebx, dword [ebp - 0x1c]
jmp 0x407697
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41bbc8
Capabilities:
Hash data using sha256

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [ebp - 0x90], edx
lea edx, [ebp - 0x80]
mov edi, edx
mov dword [ebp - 0x94], ecx
mov ecx, 0x1a
rep stosd dword es:[edi], eax
mov dword [esp], 0x4381cc
mov dword [ebp - 0x78], 0x6a09e667
mov dword [ebp - 0x74], 0xbb67ae85
mov dword [ebp - 0x70], 0x3c6ef372
mov dword [ebp - 0x6c], 0xa54ff53a
mov dword [ebp - 0x68], 0x510e527f
mov dword [ebp - 0x64], 0x9b05688c
mov dword [ebp - 0x60], 0x1f83d9ab
mov dword [ebp - 0x5c], 0x5be0cd19
call fcn.00427660
xor edx, edx
mov dword [ebp - 0x8c], eax
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
cmp byte [edi], 0
jne 0x41bd27
test eax, eax
jle 0x41bcf9
mov esi, dword [ebp - 0x80]
mov ecx, 0x40
and esi, 0x3f
sub ecx, esi
cmp ecx, eax
mov ebx, ecx
cmovg ebx, eax
test edx, edx
js 0x41bc77
cmp dword [ebp - 0x90], edx
jg 0x41bc8c
mov eax, dword [ebp - 0x90]
mov dword [esp], edx
dec eax
mov dword [esp + 4], eax
call fcn.0040598b
jmp 0x41bcf9
lea esi, [ebp + esi - 0x58]
mov ecx, ebx
mov edi, esi
mov esi, dword [ebp - 0x94]
add esi, edx
rep movsb byte es:[edi], byte [esi]
lea esi, [edx + ebx]
mov ecx, ebx
xor edx, esi
xor ecx, esi
test edx, ecx
js 0x41bcbb
mov edi, eax
mov edx, ebx
sub edi, ebx
xor eax, edi
xor edx, edi
not eax
or eax, edx
js 0x41bcc2
call fcn.00403d00
jmp 0x41bcf9
add ebx, dword [ebp - 0x80]
mov dword [ebp - 0x80], ebx
jae 0x41bccd
inc dword [ebp - 0x7c]
and bl, 0x3f
je 0x41bcdb
mov eax, edi
mov edx, esi
jmp 0x41bc4f
mov dword [esp], 0x40
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x78]
call fcn.0041bd60
push eax
mov eax, dword [ebp - 0x8c]
cmp byte [eax], 0
je 0x41bcd2
mov eax, dword [ebp - 0x8c]
cmp byte [eax], 0
jne 0x41bd27
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x80]
call fcn.0041e756
mov eax, dword [ebp - 0x8c]
cmp byte [eax], 0
jne 0x41bd27
mov edx, 0x68
lea ecx, [ebp - 0x80]
call fcn.0041bb90
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x425db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.0042d238
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.0042d238
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x426900
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x42691f
mov eax, 0
jmp 0x426963
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x426942
mov eax, 0
jmp 0x426963
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x42695e
mov eax, 0
jmp 0x426963
mov eax, 1
leave
ret

Function at 0x426965
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4269c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4269bc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4269bc
mov eax, dword [ebp - 4]
jmp 0x4269d8
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x426999
mov eax, 0
leave
ret
Function at 0x42e3d5
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x42e4ee
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004321bc
cmp eax, 1
jne 0x42e4e4
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x42e49a
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x42e4b1
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x42e496
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x42e4cf
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x42e4ef
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x42f489
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x42f2f6
mov dword [esp], 0x60ad80
call fcn.0042ea4a
mov eax, dword [0x4386ac]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x42f4d0
mov eax, dword [ebp - 0x20]
jmp 0x42f61b
call fcn.0042e2de
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x42f4e7
cmp dword [ebp - 0x20], 0
jne 0x42f4f1
mov eax, 0
jmp 0x42f61b
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042e3d5
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x42f5c3
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x4386ac]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x42f618
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42f6df
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.0042f489
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.0042f31a
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x42f73a
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_longjmp]
call eax
mov eax, dword [0x4386ac]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42f864
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x42f7cc
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x42f789
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042e1ec
mov dword [ebp - 0x10], 0
mov eax, dword [0x4386ac]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x42f864
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x42f7fc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x42f864
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042e1ec
mov dword [ebp - 0x10], 0
mov eax, dword [0x4386ac]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0x4010d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x4010f8
push section..data
lea ecx, [ebp - 0xc]
call fcn.00403363
push 0x412ed0
lea eax, [ebp - 0xc]
push eax
call fcn.00403416
push edi
xor edi, edi
cmp dword [ecx + 0x3cc], edi
jle 0x40111c
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
sub esi, eax
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
inc edi
cmp edi, dword [ecx + 0x3cc]
jl 0x40110c
pop esi
pop edi
leave
ret 8
Function at 0x4029af
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00403a80
xor ebx, ebx
inc ebx
pop ecx
cmp eax, 0x24
jne 0x402a3a
lea eax, [ebp + 0x10]
push eax
push edi
push 0
call fcn.004022ea
add esp, 0xc
test eax, eax
je 0x402a3a
cmp dword [ebp + 0x10], 2
mov eax, str.DavNetCode5
jae 0x4029f0
mov eax, str.DavNetCode
cmp dword [ebp + 0x10], 2
push ebx
push edi
push eax
sbb eax, eax
and eax, 0xfffffffe
mov esi, str.Settings
add eax, 2
push esi
push eax
call fcn.004027e6
add esp, 0x14
cmp dword [ebp + 0x10], 2
mov eax, str.DavLinkCode5
jae 0x402a1e
mov eax, str.DavLinkCode
xor ecx, ecx
cmp ecx, dword [ebp + 0x10]
sbb ecx, ecx
neg ecx
push ecx
push edi
push eax
push esi
push ebx
call fcn.004027e6
add esp, 0x14
and dword [ebp - 4], 0
jmp 0x402a85
push edi
call fcn.00403a80
pop ecx
cmp eax, 0x24
jne 0x402a85
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
call fcn.004022ea
add esp, 0xc
test eax, eax
je 0x402a85
cmp dword [ebp + 0x10], 2
mov eax, str.DavLinkCode5
jae 0x402a68
mov eax, str.DavLinkCode
xor ecx, ecx
cmp ecx, dword [ebp + 0x10]
sbb ecx, ecx
neg ecx
push ecx
push edi
push eax
push str.Settings
push ebx
call fcn.004027e6
add esp, 0x14
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], 0
je 0x402b4f
mov esi, 0x100
push esi
call fcn.00402da6
push esi
mov dword [ebp + 0xc], eax
call fcn.00402da6
pop ecx
pop ecx
dec esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push 0x410cf8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x410cf4
push str.DavNet
push dword [ebp + 0xc]
push 0x410cf2
push dword [ebp - 8]
call fcn.00403e90
push 0x410cf0
push dword [ebp - 8]
call fcn.00403e79
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x402b3d
mov eax, dword [ebp - 4]
sub eax, 0
push edi
push ebx
je 0x402b06
dec eax
je 0x402afe
push 2
push 0x410cec
jmp 0x402b2e
push ebx
push 0x410ce8
jmp 0x402b0c
push ebx
push 0x410ce4
call fcn.00403d43
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
push esi
call fcn.004022ea
add esp, 0x1c
test eax, eax
je 0x402b36
push edi
push ebx
push 2
push 0x410ce0
call fcn.00403d43
add esp, 0x10
push edi
call fcn.00403b78
pop ecx
push dword [ebp + 0xc]
call fcn.00402d4c
push dword [ebp - 8]
call fcn.00402d4c
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp - 4], 0xffffffff
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x40320a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41405c]
jne 0x403214
repz ret
jmp fcn.004054cc