joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402c00
pop dword [ebp - 0x10]
mov eax, 0x6b867e9d
sub eax, 0x6b46529d
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x56964990
add dword [ebp - 0x20], 0xf7bbfbbb
mov dword [ebp - 0x1c], 0x2a425930
add dword [ebp - 0x1c], 0x7f0f315
mov dword [ebp - 0x18], 0x14d0e5fc
add dword [ebp - 0x18], 0x377b5e32
mov dword [ebp - 0x14], 0x142807a5
sub dword [ebp - 0x14], 0x142807a5
lea eax, [ebp - 0x20]
push eax
mov eax, 0xb172a566
sub eax, 0xb13224da
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x1cd7072f
sub dword [ebp - 0x20], 0xa8649dd9
mov dword [ebp - 0x1c], 0xd3e0829b
add dword [ebp - 0x1c], 0x6d8bdeda
mov dword [ebp - 0x18], 0x7c462742
sub dword [ebp - 0x18], 0x18d6bad6
mov dword [ebp - 0x14], 0x2f47adea
add dword [ebp - 0x14], 0xd0b85216
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3b7ca
push 0
call eax
mov ecx, 0x5b31
mov edi, eax
mov edx, 0x27487cf2
add edx, 0xd8f8930e
add edx, dword [ebp - 0x10]
mov esi, 0x548e7217
add esi, 0x617df893
xor dword [ebp - 8], 0xdab3c8a4
mov ebx, dword [edx]
add dword [ebp - 4], 0xc5a2db10
xor ebx, esi
mov dword [edi], ebx
xor dword [ebp - 4], 0xaffee277
add edi, 0xb2cc8349
add edi, 0x4d337cbb
add edx, 4
loop 0x402d17
add eax, 0x67865cb2
sub eax, 0x6784fd1b
xor ebx, ebx
add ebx, eax
add eax, 0xbae0be82
add eax, 0x451f4183
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x406670
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.004088b0
test eax, eax
je 0x4066a2
mov eax, 1
jmp 0x406747
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4066c1
xor eax, eax
jmp 0x406747
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40672e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406747
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x406760
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004088b0
test eax, eax
jne 0x40677f
mov eax, 1
jmp 0x40680a
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40679b
xor eax, eax
jmp 0x40680a
push 0x10020
mov eax, dword [ebp - 0x2c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4067ca
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40680a
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x406808
mov eax, 1
jmp 0x40680a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x409a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x409a1f
pop dword [ebp - 0xc]
mov eax, 0x409a1f
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x2c21702e
sub dword [ebp - 0x1c], 0xddcf2ae3
mov dword [ebp - 0x18], 0xa494c04e
add dword [ebp - 0x18], 0x8d9e8bf7
mov dword [ebp - 0x14], 0xf90b8862
add dword [ebp - 0x14], 0x5340bbcc
mov dword [ebp - 0x10], 0x4bcbbba9
add dword [ebp - 0x10], 0xb4344457
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xec45f9bd
add dword [ebp - 0x1c], 0x882c6f99
mov dword [ebp - 0x18], 0xd131fff7
sub dword [ebp - 0x18], 0x8fc59e82
mov dword [ebp - 0x14], 0xa8b69dba
add dword [ebp - 0x14], 0xbab8ceb2
mov dword [ebp - 0x10], 0x8aafe4d4
add dword [ebp - 0x10], 0x75501b2c
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x2706fe98
sub eax, 0x26c5ce5c
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39aae
push 0
call eax
mov ecx, 0x4329
mov esi, eax
mov edi, 0xb9775581
sub edi, 0xb935a581
add edi, dword [ebp - 0xc]
mov edx, 0x5deed27
sub edx, 0xd2f9c1bd
xor dword [ebp - 4], 0x811bf1f
mov ebx, dword [edi]
xor dword [ebp - 4], 0x7d759949
xor ebx, edx
sub dword [ebp - 8], edi
mov dword [esi], ebx
mov dword [ebp - 8], 0xbbff7384
add esi, 0xda0aa9b8
sub esi, 0xda0aa9b4
add edi, 0x2f32c919
add edi, 0xd0cd36eb
loop 0x409b31
add eax, 0xff77
mov ebx, eax
add eax, 0x553ce6ec
add eax, 0xaac31919
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x410100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41011c
mov dword [eax], ecx
jmp 0x41011e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410190
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x47d3e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x67000]
push edi
jmp 0x47d3fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47d401
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d3f0
mov eax, 1
add ebx, ebx
jne 0x47d413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47d424
jne 0x47d443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d443
dec eax
add ebx, ebx
jne 0x47d430
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47d408
add ebx, ebx
jne 0x47d43f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47d495
xor ecx, ecx
sub eax, 3
jb 0x47d45b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47d4ca
sar eax, 1
mov ebp, eax
jmp 0x47d466
add ebx, ebx
jne 0x47d466
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d434
inc ecx
add ebx, ebx
jne 0x47d474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47d434
add ebx, ebx
jne 0x47d481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47d476
jne 0x47d492
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47d476
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47d4b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47d4a6
jmp 0x47d3f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47d4b4
add edi, ecx
jmp 0x47d3f6
pop esi
mov edi, esi
mov ecx, 0x2a00
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47d4d2
cmp byte [edi], 6
jne 0x47d4d2
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 0x47d4d7
lea edi, [esi + 0x7a000]
mov eax, dword [edi]
or eax, eax
je 0x47d54f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7d000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7d118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47d504
mov ecx, edi
jns 0x47d533
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 + 0x7d11c]
or eax, eax
je 0x47d549
mov dword [ebx], eax
add ebx, 4
jmp 0x47d521
call dword [esi + 0x7d12c]
mov ebp, dword [esi + 0x7d120]
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 0x47d583
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.00401485
lea eax, [ebp - 0x404]
push eax
call fcn.00401485
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b66
leave
ret

Function at 0x401485
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401494
pop dword [ebp - 0x28]
mov eax, 0x401494
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xcd683162
sub dword [ebp - 0x38], 0x7f15ec17
mov dword [ebp - 0x34], 0x8246a6a6
sub dword [ebp - 0x34], 0x50135a61
mov dword [ebp - 0x30], 0x32268810
add dword [ebp - 0x30], 0x1a25bc1e
mov dword [ebp - 0x2c], 0x7a04220c
sub dword [ebp - 0x2c], 0x7a04220c
lea eax, [ebp - 0x38]
push eax
mov eax, 0x921a158c
add eax, 0x6e26bac0
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x831b4aab
sub dword [ebp - 0x38], 0xea8e155
mov dword [ebp - 0x34], 0xe6b99b0
add dword [ebp - 0x34], 0x3300c7c5
mov dword [ebp - 0x30], 0x4dfe7117
sub dword [ebp - 0x30], 0xea8f04ab
mov dword [ebp - 0x2c], 0x6c75954b
add dword [ebp - 0x2c], 0x938a6ab5
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x3a045de0
add eax, 0xc63c7268
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3a7d1
push 0
call eax
mov ecx, 0xe1b387c4
add ecx, 0x1e4cc3c5
xor esi, esi
add esi, eax
mov edi, 0xa09ae4b1
add edi, 0x5fa6cb4f
add edi, dword [ebp - 0x28]
mov ebx, 0xf9276b93
sub ebx, 0x9b2ea8c4
xor dword [ebp - 0x1c], 0x967c35c
mov edx, dword [edi]
add dword [ebp - 0x10], ebx
sub edx, ebx
xor dword [ebp - 8], 0xde3e36e
mov dword [esi], edx
mov dword [ebp - 0x24], 0x26efeaa9
add esi, 4
add edi, 0x2d937237
add edi, 0xd26c8dcd
loop 0x4015b3
add eax, 0x2199ebe5
sub eax, 0x2198caee
mov ebx, eax
add eax, 5
mov ecx, 0xd52fb9ad
sub ecx, 0xd4efb9ad
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040151e
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e7d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
add byte [esi + edi], 0x6b
call ebx
add byte [esi + edi], 0x64
call ebx
xor byte [esi + edi], 1
call ebx
add byte [esi + edi], 0x12
call ebx
add byte [esi + edi], 0xb5
call ebx
add byte [esi + edi], 0x31
call ebx
add byte [esi + edi], 0x4c
call ebx
xor byte [esi + edi], 0xe1
call ebx
add byte [esi + edi], 0x6a
call ebx
add byte [esi + edi], 0x31
call ebx
call ebx
add byte [esi + edi], 0xf6
call ebx
add byte [esi + edi], 0x38
call ebx
add byte [esi + edi], 0x8d
call ebx
add byte [esi + edi], 0x2b
call ebx
add byte [esi + edi], 0x2f
call ebx
xor byte [esi + edi], 0x84
call ebx
add byte [esi + edi], 0xb2
call ebx
add byte [esi + edi], 0xe6
call ebx
add byte [esi + edi], 0x72
call ebx
add byte [esi + edi], 0x84
call ebx
add byte [esi + edi], 0x58
call ebx
call ebx
add byte [esi + edi], 0xe
call ebx
add byte [esi + edi], 0x85
call ebx
xor byte [esi + edi], 0x6e
call ebx
add byte [esi + edi], 0x69
call ebx
add byte [esi + edi], 0xfe
call ebx
add byte [esi + edi], 0x4c
call ebx
add byte [esi + edi], 0xb2
call ebx
add byte [esi + edi], 0x5d
call ebx
xor byte [esi + edi], 0x42
call ebx
xor byte [esi + edi], 0xa
call ebx
xor byte [esi + edi], 0x4e
call ebx
add byte [esi + edi], 0x4d
call ebx
add byte [esi + edi], 0xf4
call ebx
xor byte [esi + edi], 0xe9
call ebx
add byte [esi + edi], 0x94
call ebx
add byte [esi + edi], 0x13
call ebx
xor byte [esi + edi], 0xe3
call ebx
add byte [esi + edi], 0xdf
call ebx
xor byte [esi + edi], 0xa8
call ebx
add byte [esi + edi], 0x84
call ebx
xor byte [esi + edi], 0xe7
call ebx
add byte [esi + edi], 0x7d
call ebx
xor byte [esi + edi], 0x4f
call ebx
add byte [esi + edi], 0x9f
call ebx
add byte [esi + edi], 0x50
call ebx
add byte [esi + edi], 0xd6
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

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

Disassembly:
sub esp, 0x20
mov eax, dword [0x4460ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f70
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040de
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f88
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f38
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f44
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f72
Function at 0x4040de
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x10], ebp
jb 0x404103
mov esi, dword [esi]
mov dword [esp + 0x18], esi
push esi
shr edi, 2
push edi
push str._x_and__p
call fcn.004043b2
add esp, 0xc
test edi, edi
je 0x40415e
mov ebp, esi
mov esi, edi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00406aa0
imul ecx, dword [esp + 0x28], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x1c], eax
sub esi, 1
jne 0x40411d
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x404187
sub eax, 1
je 0x40417d
sub eax, 1
jne 0x404195
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret

Function at 0x4041bb
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipCursor]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4476a0], eax
pop edi
pop esi
ret

Function at 0x4066ce
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40670d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40670d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40670d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40670d
cmp dword [ecx + 0x74], 0xe
jbe 0x40670d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d08a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bd28
push 0x41bd20
push str.FlsAlloc
push 0x1e
call fcn.0040cf4b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d0be
push dword [ebp + 8]
mov ecx, esi
call dword [0x419184]
call esi
jmp 0x40d0c4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d108
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bd38
push 0x41bd30
push str.FlsGetValue
push 0x20
call fcn.0040cf4b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d13f
push dword [ebp + 8]
mov ecx, esi
call dword [0x419184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x406ade
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0xafe9a93e
or cl, byte [edi + 0x69]
dec edx
push es
out dx, eax
inc esp
mov ah, ch
push ds
and esp, dword [edx + eax*8 + 0x199f58ad]
popfd
dec ebx
loopne 0x406a7b
add bh, bh
pop esp
rol dword [ecx + 0x2420e69a], 1
out 0x1a, al
in al, 0x18
jb 0x406a37
call [ecx + edx*8 - 0x7f]
lcall 0xe41a, 0xe62420e6
sbb byte [edx - 0xf], dh
movsd dword es:[edi], dword [esi]
and al, 0xe8
mul dword [ecx - 0x20acc69a]
outsb dx, byte [esi]
insd dword es:[edi], dx
mov edi, 0xdee6ebe8
adc eax, 0xaa4d7b1
invalid
pop ebx
and eax, 0xe9a3f76f
setno byte [edx + 0x78]
lcall 0x64f3, 0xe6953680
jge 0x406a80
mul dword [ebx + 0x4a910fe9]
dec edx
js 0x406a1d
xor byte [esi], 0x95
out 0xf3, al
jge 0x406a80
adc ch, 0x5d
stc
jne 0x406a38
jae 0x406a91
cmpsb byte [esi], byte es:[edi]
add ebx, 0xbd117cd6
lodsd eax, dword [esi]
and byte [ecx], dh
out dx, eax
pop ebx
sub eax, 0xd9700fc5
pop edi
scasb al, byte es:[edi]
add esp, dword [ebp - 0x57731201]
inc esi
lodsd eax, dword [esi]
inc ebx
xor byte [edx + ebp], 0xf5
jle 0x406a80
push edi
push edx
inc esp
cmp dword [edx - 0x8350b8e], 0x10
jp 0x406a51
hlt
popfd
loop 0x406a78
fcomp qword [ebx + edi]
fsubr st(5)
arpl sp, sp
or dh, byte [eax + 0x3d]
scasd eax, dword es:[edi]
mov dh, 0xf6
mov dword [esi - 0x110861df], esp
sahf
popal
cmpsb byte [esi], byte es:[edi]
and dword [esi + 0x619eeef7], ebx
in al, 0x1d
scasd eax, dword es:[edi]
xor ecx, dword [edi]
inc eax
rol dword [edx], 0x3e
push cs
mov byte [eax - 0x78e2fabe], bl
push ebp
aam 0xd2
xor byte [ebx], dl
pop es
xor eax, 0xff61550b
jl 0x406aef
dec ebp
add dword [eax - 0x5196390], 0xf9fd08ba
test al, 0x35
fisubr word [esi - 0x58477a08]
lodsb al, byte [esi]
xchg esp, eax
jge 0x406b61
bound ebp, qword [ecx]
lea ebx, [esi - 0x159419cb]
invalid
cmp ecx, esp
mov dh, 0xff
imul eax, dword [ebx], 0x73b8dd96
lahf
xor dword [ecx - 0x76], 0x5f
invalid