joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a65f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi + 0xc]
add eax, edx
cmp byte [eax], 0xcc
jne 0x5a6618
mov edx, dword [esi + 8]
cmp ecx, edx
jae 0x5a6618
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, 0xcc
je 0x5a660a
cmp ecx, dword [esi + 8]
jb 0x5a6623
xor eax, eax
pop esi
pop ebx
pop ebp
ret
mov dl, byte [eax]
xor ecx, ecx
cmp dl, 0xe9
pop esi
sete cl
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x5a7f30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x209
mov esi, dword [ebp + 0xc]
lea eax, [edi + 5]
cdq
idiv ecx
lea eax, [edx + 0x69]
mov dword [esi], eax
mov ecx, dword [0x636b94]
cmp ecx, 2
lea ecx, [eax*8]
jl 0x5a8016
sub ecx, eax
shl ecx, 2
mov eax, dword [ecx + 0xa4b1c0]
test eax, eax
jne 0x5a7fdc
lea edx, [ecx + 0xa4b1c4]
push edx
call fcn.005ad510
add esp, 4
test eax, eax
je 0x5a7f8a
mov eax, 0xc0000098
jmp 0x5a7fde
mov ecx, dword [esi]
mov eax, ecx
shl eax, 3
sub eax, ecx
shl eax, 2
mov ecx, dword [eax + 0xa4b1c0]
test ecx, ecx
jne 0x5a7fd2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [esi]
mov edx, ecx
shl edx, 3
sub edx, ecx
mov dword [edx*4 + 0xa4b1c0], eax
mov eax, dword [esi]
mov ecx, eax
shl ecx, 3
sub ecx, eax
mov dword [ecx*4 + 0xa4b1c4], 0
jmp 0x5a7fdc
mov dword [eax + 0xa4b1c4], 0
xor eax, eax
test eax, eax
jne 0x5a8030
mov eax, dword [esi]
push 0xffffffffffffffff
mov edx, eax
shl edx, 3
sub edx, eax
mov eax, dword [edx*4 + 0xa4b1c0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
mov ecx, eax
shl ecx, 3
sub ecx, eax
lea edx, [ecx*4 + 0xa4b1c4]
push edx
call fcn.005ad510
add esp, 4
jmp 0x5a8030
sub ecx, eax
lea eax, [ecx*4 + 0xa4b1c4]
mov ecx, dword [ecx*4 + 0xa4b1c4]
test ecx, ecx
jne 0x5a8030
mov dword [eax], 1
cmp dword [0x636b94], 1
jl 0x5a8052
mov eax, dword [esi]
mov edx, eax
shl edx, 3
sub edx, eax
lea eax, [edx*4 + 0xa4b1d0]
push eax
call fcn.005ad4b0
add esp, 4
mov esi, dword [esi]
mov eax, dword [ebp + 0x10]
mov ecx, esi
shl ecx, 3
sub ecx, esi
mov edx, dword [ecx*4 + 0xa4b1d8]
mov dword [eax], edx
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x5a808d
mov ecx, dword [eax]
cmp dword [ecx + 0xb8], edi
jge 0x5a808d
mov dword [edx], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x18]
test ecx, ecx
mov dword [eax], ecx
jne 0x5a8076
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5ad400
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0x5ad470
push 0x708388
call fcn.005ad580
mov eax, dword [0x708370]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5ad45d
mov ecx, dword [0x708538]
mov edx, dword fs:[0x2c]
push edi
push esi
mov ebx, dword [edx + ecx*4]
mov ecx, 0xb
add ebx, 8
mov esi, 0x636b68
mov edi, ebx
push ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x708370]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop edi
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx], ebx
pop ebx
pop ebp
ret
Function at 0x5ad9b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0xc], 1
mov dword [0xa4b19c], ebx
mov dword [0xa4b1a0], 0x708398
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
lea eax, [ebp - 4]
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
push ecx
call fcn.005a3d00
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + esi - 1]
cmp esi, ecx
mov dword [ebp - 8], ecx
ja 0x5adb72
xor edi, edi
cmp esi, ecx
ja 0x5ada4e
cmp dword [0x63753c], 1
jle 0x5ada30
movsx ecx, byte [esi]
push 8
push ecx
call fcn.005c0544
mov ecx, dword [ebp - 8]
add esp, 8
jmp 0x5ada3e
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
jne 0x5ada49
mov edi, 1
jmp 0x5ada4a
inc esi
test edi, edi
je 0x5ada10
test edi, edi
je 0x5adb72
mov edx, dword [0xa4b19c]
mov eax, dword [ebp - 0xc]
inc edx
cmp edx, eax
mov dword [0xa4b19c], edx
jle 0x5adac1
cmp eax, 1
jne 0x5ada9f
push 0xa4b1a0
push 0
push 0x2c
mov dword [ebp - 0xc], 0xb
call fcn.005a3d00
add esp, 0xc
test eax, eax
jne 0x5adb74
mov ecx, dword [0xa4b1a0]
mov edx, dword [0x708398]
mov dword [ecx], edx
jmp 0x5adabe
add eax, 0xa
push 0xa4b1a0
mov dword [ebp - 0xc], eax
shl eax, 2
push eax
call fcn.005a3d40
add esp, 8
test eax, eax
jne 0x5adb74
mov ecx, dword [ebp - 8]
mov edx, dword [0xa4b1a0]
mov edi, dword [0xa4b19c]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], 0
mov dword [edx + edi*4 - 4], eax
mov edi, 1
cmp esi, ecx
ja 0x5adb5d
cmp byte [esi], 0x22
jne 0x5adb11
inc esi
test ebx, ebx
je 0x5adb0a
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x22
jne 0x5adb11
cmp esi, ecx
ja 0x5adb0c
mov edx, dword [ebp - 4]
mov byte [edx], 0x22
mov edx, dword [ebp - 4]
inc edx
inc esi
mov dword [ebp - 4], edx
jmp 0x5adb0c
mov ebx, edi
cmp byte [esi], 0x22
je 0x5adae9
test ebx, ebx
jne 0x5adb47
cmp dword [0x63753c], edi
jle 0x5adb30
movsx eax, byte [esi]
push 8
push eax
call fcn.005c0544
mov ecx, dword [ebp - 8]
add esp, 8
jmp 0x5adb3e
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
je 0x5adb47
mov dword [ebp - 0x10], edi
jmp 0x5adb56
mov eax, dword [ebp - 4]
mov dl, byte [esi]
mov byte [eax], dl
mov edx, dword [ebp - 4]
inc edx
inc esi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5adae0
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov edx, dword [ebp - 4]
inc edx
cmp esi, ecx
mov dword [ebp - 4], edx
jbe 0x5ada0e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b4cc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov ebx, dword [eax + 0x7c]
cmp ebx, edi
jne 0x5b4cd7
xor eax, eax
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x636b94]
mov eax, dword [ebx + 0x14]
push esi
cmp ecx, 2
mov esi, eax
jl 0x5b4d72
shl esi, 3
sub esi, eax
shl esi, 2
cmp dword [esi + 0xa478a4], edi
jne 0x5b4d4c
lea edi, [esi + 0xa478a8]
push edi
call fcn.005ad510
add esp, 4
test eax, eax
je 0x5b4d18
mov eax, 0xc0000098
xor edi, edi
jmp 0x5b4d4e
mov eax, dword [esi + 0xa478a4]
test eax, eax
jne 0x5b4d40
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xa478a4], eax
mov dword [edi], 0
xor eax, eax
xor edi, edi
jmp 0x5b4d4e
mov dword [edi], 0
xor eax, eax
xor edi, edi
jmp 0x5b4d4e
xor eax, eax
cmp eax, edi
jne 0x5b4d8c
mov ecx, dword [esi + 0xa478a4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esi + 0xa478a8]
push edx
call fcn.005ad510
add esp, 4
jmp 0x5b4d8c
shl esi, 3
sub esi, eax
shl esi, 2
cmp dword [esi + 0xa478a8], edi
jne 0x5b4d8c
mov dword [esi + 0xa478a8], 1
cmp dword [0x636b94], 1
jl 0x5b4da4
lea eax, [esi + 0xa478b4]
push eax
call fcn.005ad4b0
add esp, 4
mov ecx, dword [ebx + 0x18]
dec ecx
mov eax, ecx
mov dword [ebx + 0x18], ecx
cmp eax, edi
jg 0x5b4e2a
mov eax, dword [ebx]
cmp eax, edi
je 0x5b4dbd
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x5b4dca
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x5b4dd2
mov eax, dword [ebx]
mov dword [esi + 0xa478a0], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x7c], edi
mov eax, dword [0x636b94]
cmp eax, 1
jl 0x5b4df1
lea edx, [esi + 0xa478b4]
push edx
call fcn.005ad4e0
add esp, 4
mov eax, dword [0x636b94]
mov dword [esi + 0xa478a8], edi
cmp eax, 2
jl 0x5b4e0e
mov eax, dword [esi + 0xa478a4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebx + 8]
push ecx
call fcn.005a3d70
add esp, 4
push ebx
call fcn.005a3d70
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [0x636b94], 1
jl 0x5b4e42
lea edx, [esi + 0xa478b4]
push edx
call fcn.005ad4e0
add esp, 4
mov eax, dword [0x636b94]
mov dword [esi + 0xa478a8], edi
cmp eax, 2
jl 0x5b4e5f
mov eax, dword [esi + 0xa478a4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x5b8430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.005ad5f0
mov eax, dword [0x7083c0]
mov esi, dword [ebp + 8]
test eax, eax
je 0x5b8458
test esi, esi
je 0x5b844d
mov eax, dword [esi]
jmp 0x5b844f
xor eax, eax
push eax
call fcn.005bf460
add esp, 4
test esi, esi
je 0x5b846c
mov esi, dword [esi]
push esi
call fcn.005c2233
add esp, 4
pop esi
pop ebp
ret 4
xor esi, esi
push esi
call fcn.005c2233
add esp, 4
pop esi
pop ebp
ret 4

Function at 0x5bf340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x7083c0]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x5bf390
mov eax, dword [ebp + 0x20]
cmp eax, 1
je 0x5bf388
cmp eax, 2
je 0x5bf388
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x5bf376
cmp eax, 0xfffffffa
jne 0x5bf376
mov esi, 1
mov ebx, edi
jmp 0x5bf393
test eax, eax
jne 0x5bf390
mov esi, 1
call fcn.005bf440
mov ebx, eax
jmp 0x5bf393
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x7083c0]
test eax, eax
je 0x5bf3bc
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x5bf3bc
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x5bf3bc
push ebx
call fcn.005bf460
add esp, 4
push ebx
call fcn.005bf480
add esp, 4
test esi, esi
je 0x5bf40c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
call fcn.005bf460
mov edi, dword [ebp + 0x14]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [edi], esi
jne 0x5bf3e4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push ebx
push 2
push 0x636f10
call fcn.005bf460
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov byte [esi + edx], 0xa
mov eax, dword [edi]
inc eax
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5c03d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005c000e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5c03fb
test byte [esp + 8], 2
je 0x5c03fb
call fcn.005c0081
mov dword [eax], 0xd
call fcn.005c008a
mov dword [eax], 5
jmp 0x5c03d4
xor eax, eax
ret
Function at 0x5c8266
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x637a50
cmp edx, dword [eax]
je 0x5c8288
add eax, 8
inc ecx
cmp eax, 0x637ae0
jl 0x5c8279
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x637a50]
jne 0x5c83b6
mov eax, dword [0x7083d8]
cmp eax, 1
je 0x5c8390
test eax, eax
jne 0x5c82b9
cmp dword [0x6371b0], 1
je 0x5c8390
cmp edx, 0xfc
je 0x5c83b6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5c82f0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005bfe20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005c05c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5c8333
lea eax, [ebp - 0x1a4]
push eax
call fcn.005c05c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x5de998
push edi
call fcn.005bff10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005bfe20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005bfe30
lea eax, [ebp - 0xa0]
push 0x5de994
push eax
call fcn.005bfe30
push dword [esi + 0x637a54]
lea eax, [ebp - 0xa0]
push eax
call fcn.005bfe30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.005cc882
add esp, 0x2c
pop edi
jmp 0x5c83b6
lea eax, [ebp + 8]
lea esi, [esi + 0x637a54]
push 0
push eax
push dword [esi]
call fcn.005c05c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x1011db70
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1011dd54
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdb000]
push edi
jmp 0x1011db9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1011dba1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1011db90
mov eax, 1
add ebx, ebx
jne 0x1011dbb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1011dbc4
jne 0x1011dbe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1011dbe3
dec eax
add ebx, ebx
jne 0x1011dbd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1011dba8
add ebx, ebx
jne 0x1011dbdf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1011dc35
xor ecx, ecx
sub eax, 3
jb 0x1011dbfb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1011dc6a
sar eax, 1
mov ebp, eax
jmp 0x1011dc06
add ebx, ebx
jne 0x1011dc06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1011dbd4
inc ecx
add ebx, ebx
jne 0x1011dc14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1011dbd4
add ebx, ebx
jne 0x1011dc21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1011dc16
jne 0x1011dc32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1011dc16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1011dc54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1011dc46
jmp 0x1011db96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1011dc54
add edi, ecx
jmp 0x1011db96
pop esi
mov edi, esi
mov ecx, 0x1241
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1011dc72
cmp byte [edi], 0x11
jne 0x1011dc72
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 0x1011dc77
lea edi, [esi + 0x119000]
mov eax, dword [edi]
or eax, eax
je 0x1011dce6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11d000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11d154]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1011dca4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11d158]
or eax, eax
je 0x1011dce0
mov dword [ebx], eax
add ebx, 4
jmp 0x1011dcc1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1011dd17
cmp al, 0xef
ja 0x1011dd0a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1011dcec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1011dcf9
mov ebp, dword [esi + 0x11d15c]
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 0x1011dd4b
sub esp, 0xffffff80
jmp 0x10044fb9
Function at 0x40e5bf
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x416a70]
je 0x40e5e5
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x40e5d3
cmp esi, 0x17
jae 0x40e73f
push 3
call fcn.00411631
pop ecx
cmp eax, 1
je 0x40e709
push 3
call fcn.00411631
pop ecx
test eax, eax
jne 0x40e618
cmp dword [0x417254], 1
je 0x40e709
cmp edi, 0xfc
je 0x40e73f
push 0x401dc4
mov edi, 0x314
push edi
mov esi, 0x417888
push esi
call fcn.0040ebb0
add esp, 0xc
test eax, eax
je 0x40e64e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
mov byte [0x4179a5], bl
push 0x104
mov ebx, 0x4178a1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e691
push 0x401dac
push 0x2fb
push ebx
call fcn.0040ebb0
add esp, 0xc
test eax, eax
je 0x40e691
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040c94b
add esp, 0x14
push ebx
push edi
push esi
call fcn.0040ff0b
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x40e6af
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
push 0x401da8
push edi
push esi
call fcn.0040ff0b
add esp, 0xc
test eax, eax
je 0x40e6cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x416a74]
push edi
push esi
call fcn.0040ff0b
add esp, 0xc
test eax, eax
je 0x40e6f4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
push 0x12010
push 0x401d80
push esi
call fcn.0041148a
add esp, 0xc
jmp 0x40e73f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x40e73f
cmp edi, 0xffffffff
je 0x40e73f
mov edx, dword [esi*8 + 0x416a74]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e728
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f046
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40f079
Function at 0x4010d8
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010ea
mov eax, dword [0x44b08b]
shl eax, 2
mov dword [0x44b08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0040972c
pop edx
call fcn.00408ac8
call fcn.00409730
push 0
call fcn.0040acc8
pop ecx
push 0x44b034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x44b093], eax
push 0
jmp fcn.004113e0
Function at 0x401fe0
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40204f
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x402017
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40206c
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov esi, dword [ebx]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], esi
mov ecx, 0xc6ef3720
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x4020de
mov esi, edx
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
sub eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
sub edx, esi
sub ecx, 0x9e3779b9
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x4020a6
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4021c8
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, 0x20
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov edi, dword [esi]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], edi
mov ecx, 0xc6ef3720
mov edi, dword [esi + 4]
mov dword [ebp - 8], edi
mov edi, dword [esi + 8]
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0xc]
mov dword [ebp - 0x10], esi
jmp 0x40223a
mov esi, edx
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
sub eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
sub edx, esi
sub ecx, 0x9e3779b9
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x402202
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret