joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dfb04
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov ecx, 0x2cc
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.0046b3f1
mov esi, eax
mov edx, str.OpenThread
mov ecx, 0x4f55c4
mov dword [ebp - 8], esi
mov dword [esi], 0x10007
call fcn.004a3fa7
cmp eax, edi
je 0x4dfb83
push ebx
push edi
push 0x1f03ff
call eax
mov edi, eax
test edi, edi
je 0x4dfb83
push edi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
je 0x4dfb75
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x4dfb75
push 0
mov edx, ebx
lea ecx, [ebp - 0xc]
call fcn.004df92a
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4e1476
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0x400
mov dword [0x56bfdc], 0
mov dword [0x56bfd0], 1
push 0x4e1460
call sub.MSVCRT.dll__beginthread
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0xc
push 0x10
call esi
mov dword [0x56bfd0], 0
push 1
call esi
mov ecx, dword [0x56bfdc]
mov eax, dword [0x56bfdc]
shr ecx, 3
xor eax, ecx
mov ecx, dword [0x56bfd8]
shr eax, 3
xor ecx, eax
xor dword [0x56bfdc], ecx
and dword [0x56bfdc], 7
mov eax, dword [0x56bfdc]
mov dword [0x56bfd8], eax
mov eax, dword [0x56bfd4]
mov ecx, dword [0x56bfdc]
shl eax, 3
xor ecx, eax
mov dword [0x56bfd4], ecx
mov eax, dword [0x56bfd4]
pop esi
ret
call 0x4e1476
call 0x4e1476
call 0x4e1476
call 0x4e1476
call 0x4e1476
call 0x4e1476
call 0x4e1476
call 0x4e1476
call 0x4e1476
call 0x4e1476
jmp 0x4e1476
Function at 0x4e7e01
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
xor ecx, ecx
cpuid
lea edi, [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
xor eax, eax
inc eax
xor ecx, ecx
cpuid
mov esi, edi
mov edi, dword [ebp - 4]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
and dword [ebp - 0x10], 0xffffff
add edi, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push ebx
push 0x25
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x11c]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4e7e91
mov cl, byte [eax + 0x50e2b4]
mov byte [ebp + eax - 0x11c], cl
inc eax
cmp cl, bl
jne 0x4e7e7f
push 0xa
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x11c]
call fcn.004ed964
test al, al
jne 0x4e7eb9
xor eax, eax
mov cl, byte [eax + 0x50e2b4]
mov byte [ebp + eax - 0x11c], cl
inc eax
cmp cl, bl
jne 0x4e7ea7
mov eax, 0x105
push eax
lea ecx, [ebp - 0x224]
push ecx
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
je 0x4e7ee5
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], ebx
xor eax, eax
lea edi, [ecx + 0x20]
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406106
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x406115
pop dword [ebp - 0x3c]
mov eax, 0x406115
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xdc114e3a
add dword [ebp - 0x4c], 0x7240f711
mov dword [ebp - 0x48], 0x65bb1214
add dword [ebp - 0x48], 0xcc783a31
mov dword [ebp - 0x44], 0x63bceb46
sub dword [ebp - 0x44], 0x1770a718
mov dword [ebp - 0x40], 0x6c094779
add dword [ebp - 0x40], 0x93f6b887
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x2437afcb
sub dword [ebp - 0x4c], 0xafc54675
mov dword [ebp - 0x48], 0x637a6c6b
sub dword [ebp - 0x48], 0x220e0af6
mov dword [ebp - 0x44], 0x1f78b1d5
sub dword [ebp - 0x44], 0xbc094569
mov dword [ebp - 0x40], 0x8800a8b6
sub dword [ebp - 0x40], 0x8800a8b6
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xd3568bdb
add eax, 0x2ce9f525
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3470b
push 0
call eax
mov ecx, 0x4618715b
sub ecx, 0x461833a1
xor esi, esi
add esi, eax
mov edx, 0xb471cb0c
sub edx, 0xb42cc70c
add edx, dword [ebp - 0x3c]
mov ebx, 0xc923e4b
sub dword [ebp - 0x20], eax
mov edi, dword [edx]
xor dword [ebp - 0x30], edi
sub edi, ebx
sub dword [ebp - 0x18], 0x1837d6f1
mov dword [esi], edi
add dword [ebp - 0x2c], 0x7d0c03c1
add esi, 0x47bcc957
sub esi, 0x47bcc953
add edx, 0x52e5d03e
sub edx, 0x52e5d03a
loop 0x406229
add eax, 0xfe9c6c75
sub eax, 0xfe9b82ba
xor ebx, ebx
add ebx, eax
add eax, 0x211463c0
add eax, 0xdeeb9c45
mov ecx, 0x59536e52
add ecx, 0xa6ec91ae
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x40656f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4065a6
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406580
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40657b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065d7
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4065b9
pop edi
not eax
pop esi
ret 0xc
Function at 0xd01058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd011a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd0107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0106a
add dl, dl
jne 0xd01089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd010dc
xor eax, eax
add dl, dl
jne 0xd01096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd0117d
add dl, dl
jne 0xd010a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd010b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd010bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd010c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd010d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd01075
mov eax, 1
add dl, dl
jne 0xd010ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd010f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd010e1
sub eax, ebx
mov ebx, 1
jne 0xd01128
mov ecx, 1
add dl, dl
jne 0xd0110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd01119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd01105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd01075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd0113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd0114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd01136
cmp eax, 0x7d00
jae 0xd0116d
cmp eax, 0x500
jb 0xd01168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd01075
cmp eax, 0x7f
ja 0xd01170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd01075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd0119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd01075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x408a51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x408a60
pop dword [ebp - 0x50]
mov eax, 0x841beff7
sub eax, 0x83db6597
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xc5159a7e
add dword [ebp - 0x60], 0x893caacd
mov dword [ebp - 0x5c], 0xccaf587b
sub dword [ebp - 0x5c], 0x9a7c0c36
mov dword [ebp - 0x58], 0x8650d068
sub dword [ebp - 0x58], 0x3a048c3a
mov dword [ebp - 0x54], 0x4cbaa69c
sub dword [ebp - 0x54], 0x4cbaa69c
lea eax, [ebp - 0x60]
push eax
mov eax, 0x3cfc19c6
sub eax, 0x3cbb4972
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xd2ff6ba5
add dword [ebp - 0x60], 0xa172fdb1
mov dword [ebp - 0x5c], 0xc03b3349
add dword [ebp - 0x5c], 0x81312e2c
mov dword [ebp - 0x58], 0x5814072d
add dword [ebp - 0x58], 0xb5b653f
mov dword [ebp - 0x54], 0x4902426a
add dword [ebp - 0x54], 0xb6fdbd96
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x891f436e
sub eax, 0x88de7322
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x38867
push 0
call eax
mov ecx, 0xf85ffeb3
add ecx, 0x7a04558
xor ebx, ebx
add ebx, eax
mov esi, 0x5ab44636
sub esi, 0x5a729636
add esi, dword [ebp - 0x50]
mov edx, 0xd27737b8
add edx, 0x57a00098
mov dword [ebp - 0x24], 0xfbf6549c
mov edi, dword [esi]
add dword [ebp - 0x24], 0xe62260dc
sub edi, edx
xor dword [ebp - 8], ebx
mov dword [ebx], edi
add dword [ebp - 0x44], 0xccfd47f2
add ebx, 4
add esi, 0xfcfe813
sub esi, 0xfcfe80f
loop 0x408b84
add eax, 0x102ff
xor ebx, ebx
add ebx, eax
add eax, 0xd6780f4a
add eax, 0x2987f0bb
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10001430
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10003020]
jne 0x1000143a
repz ret
jmp fcn.100017d0

Function at 0x1000148d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1000149c
pop dword [ebp - 0x40]
mov eax, 0x1000149c
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x9cd93d44
sub dword [ebp - 0x50], 0x4e86f7f9
mov dword [ebp - 0x4c], 0xeb99c444
sub dword [ebp - 0x4c], 0xb96677ff
mov dword [ebp - 0x48], 0x9b24e4f3
add dword [ebp - 0x48], 0xb1275f3b
mov dword [ebp - 0x44], 0x2b54278e
sub dword [ebp - 0x44], 0x2b54278e
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x8bf525c1
add dword [ebp - 0x50], 0xe87d4395
mov dword [ebp - 0x4c], 0xc5ab98b1
add dword [ebp - 0x4c], 0x7bc0c8c4
mov dword [ebp - 0x48], 0x5f6b71dc
sub dword [ebp - 0x48], 0xfbfc0570
mov dword [ebp - 0x44], 0x1d14c7e2
add dword [ebp - 0x44], 0xe2eb381e
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x76e32a08
add eax, 0x991ce638
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3880b
push 0
call eax
mov ecx, 0x5018
mov ebx, eax
mov esi, 0xe61a050e
sub esi, 0xd619b30e
add esi, dword [ebp - 0x40]
mov edi, 0xbe5d13b7
add dword [ebp - 8], eax
mov edx, dword [esi]
mov dword [ebp - 0x38], 0x74a4d73
xor edx, edi
mov dword [ebp - 0x34], 0x76b2a7a7
mov dword [ebx], edx
add dword [ebp - 0x20], 0xcbe49cf8
add ebx, 4
add esi, 0xe3ceee8b
add esi, 0x1c311179
loop 0x100015a8
add eax, 0x476a0eef
add eax, 0xb8972444
mov ebx, eax
add eax, 0x1ba69c1c
sub eax, 0x1ba69c17
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x61002e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov ecx, dword [eax]
mov dword [ebp - 0x10], eax
test ecx, ecx
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x61002ee0
mov esi, ebx
mov edi, ecx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61002eaf
xor al, byte [eax + 0x610ef1e4]
cmp al, byte [edi - 1]
jne 0x61002eba
test al, al
jne 0x61002ea0
mov eax, 1
jmp 0x61002ebc
xor eax, eax
test eax, eax
je 0x61002ed0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, ecx
call fcn.61002b30
mov esi, esi
lea edi, [edi]
test ebx, ebx
mov esi, ebx
je 0x61002f44
mov eax, esi
call fcn.61002c70
cmp byte [ebp - 0x11], 0
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
je 0x61002ec0
mov eax, edx
add eax, 0xc
xor edx, edx
call fcn.61002b90
mov eax, dword [ebp - 0x10]
xor edx, edx
add eax, 0x10
call fcn.61002b90
mov eax, dword [ebp - 0x10]
xor edx, edx
add eax, 4
call fcn.61002b90
mov eax, dword [ebp - 0x10]
xor edx, edx
add eax, 8
call fcn.61002b90
mov eax, dword [ebp - 0x10]
xor edx, edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
add eax, 0x14
mov esp, ebp
pop ebp
jmp fcn.61002b90
mov esi, 0x610026ce
jmp 0x61002ee6
Function at 0x61003420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x20], eax
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x61003520
mov eax, dword [ebx + 8]
test eax, eax
je 0x610034b0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x610034a0
mov dword [esp], eax
call sub.KERNEL32.dll_SetEvent
mov ecx, dword [0x610f08a0]
sub esp, 4
test ecx, ecx
jne 0x61003471
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], 0x6100325b
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x61003220
mov dword [esp + 4], 0xc0000
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x6100346c
xor eax, eax
call fcn.61055610
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x610034a0
jmp 0x61003457
mov dword [ebx + 0x14], 0
lea eax, [ebx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
cmp byte [ebx + 0x24], 0
je 0x61003516
mov eax, 0x61003110
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x610ef788
call sub.KERNEL32.dll_CreateThread
mov dword [ebx + 8], eax
sub esp, 0x18
test eax, eax
je 0x61003554
mov edx, dword [0x610f08a0]
test edx, edx
je 0x6100346c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x61003274
jmp 0x61003480
mov eax, 0x61002fb0
jmp 0x610034d5
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x61003286
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0x61003220
mov dword [esp + 4], 0xc0000
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61003449
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp], 0x610032a0
mov dword [esp + 4], eax
call fcn.610065d0
jne 0x610035de
imul ebp, dword [esi + 0x6f], 0x77
outsb dx, byte [esi]
and byte [eax], ch
and eax, 0x65002970
js 0x610035e7
je 0x610035e9
outsb dx, byte [esi]
and byte [si + 0x68], dh
jb 0x610035ec
popal
add byte fs:[ebp + 0x61], ch
imul ebp, dword [esi], 0xe5895590
push ebp
mov ebp, esp
nop
or byte [eax], al
add bl, ch
invalid
Function at 0x61003720
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x40
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x24], 0
je 0x61003885
mov dword [esp + 4], 0
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [ebx + 8]
sub esp, 8
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebx + 0x14]
sub esp, 4
test edx, edx
je 0x61003872
cld
xor eax, eax
mov dword [esp + 8], 0x1c
lea edi, [ebp - 0x28]
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [esp], edx
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
jne 0x61003810
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc], 0x610036a3
mov dword [esp + 8], 0x61003680
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x8000
mov dword [esp], 0x610f089c
call fcn.6108fd50
cmp byte [ebx + 0x24], 0
jne 0x61003801
mov dword [ebx + 8], 0
mov edx, dword [ebx]
xor ecx, ecx
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov eax, edx
lock cmpxchg dword [ebx], ecx
jne 0x610037f4
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
mov dword [esp], ebx
call fcn.61054b50
jmp 0x610037fa
mov dword [esp + 8], 0x8000
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualFree
sub esp, 0xc
test eax, eax
jne 0x610037d3
mov eax, dword [0x610f08a0]
test eax, eax
je 0x610037d3
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc], 0x610036e0
mov dword [esp + 8], 0x61003680
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x610037d3
xor eax, eax
call fcn.61055610
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x61003872
jmp 0x6100377a
mov dword [esp], ebx
call fcn.61003610
mov dword [esp], eax
call sub.KERNEL32.dll_ResetEvent
mov eax, dword [ebx + 0x10]
sub esp, 4
mov dword [esp], eax
call sub.KERNEL32.dll_ResetEvent
sub esp, 4
jmp 0x61003735
Function at 0x61004600
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
lea eax, [ebx + 1]
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0x610ef788
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x61004790
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileSize
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x61004754
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [esp], eax
call sym.cygwin1.dll__strlen
lea eax, [edi + eax + 2]
mov dword [esp], eax
call fcn.61054c10
mov dword [ebp - 0x14], eax
test eax, eax
je 0x61004740
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
test ebx, ebx
je 0x610046d2
cmp dword [ebp - 0x10], edi
je 0x61004712
mov ebx, dword [0x610f08a0]
test ebx, ebx
jne 0x610046ec
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0xc], 0x61004580
mov dword [esp + 8], 0x61004560
mov dword [esp + 4], 0x40
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x610046e0
mov edx, dword [ebp - 0x14]
mov byte [edi + edx], 0x20
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], eax
lea eax, [edx + edi + 1]
mov dword [esp], eax
call sym.cygwin1.dll__strcpy
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, 1
jmp 0x610046e2
mov esi, dword [0x610f08a0]
test esi, esi
je 0x610046e0
mov dword [esp + 0xc], 0x61004594
jmp 0x610046f4
mov edi, dword [0x610f08a0]
test edi, edi
je 0x610046e0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x610045c0
mov dword [esp + 8], 0x61004560
mov dword [esp + 4], 0x40
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x610046e0
mov eax, dword [0x610f08a0]
test eax, eax
je 0x610046e0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x610045e4
jmp 0x6100476a
Function at 0x61005110
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov edx, dword [0x610edadc]
mov ebx, dword [0x610edad0]
mov eax, dword [esi + 0x11c]
add edx, ebx
cmp eax, dword [0x610edad4]
jbe 0x61005290
cmp eax, edx
jae 0x61005290
mov byte [ebp - 0x39], 1
nop
lea esi, [esi]
mov eax, dword [esi + 0x120]
sub eax, edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x2000
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_VirtualAlloc
sub esp, 0x10
test eax, eax
je 0x61005271
mov ebx, dword [esi + 0x120]
mov eax, dword [esi + 0x48]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
sub ebx, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualAlloc
sub esp, 0x10
test eax, eax
je 0x6100525a
mov dword [esp + 8], 0x1c
lea edi, [ebp - 0x38]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x610052ae
cmp byte [ebp - 0x39], 0
jne 0x61005225
mov edx, dword [ebp - 0x38]
mov eax, dword [0x61148914]
dec edx
mov dword [ebp - 0x38], edx
movzx eax, byte [eax + 0xc]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], edx
shr al, 4
and eax, 1
test al, al
setne al
movzx eax, al
dec eax
and eax, 0xfffffec1
add eax, 0x140
mov dword [esp + 0xc], eax
call sub.KERNEL32.dll_VirtualAlloc
sub esp, 0x10
test eax, eax
je 0x6100529b
mov dword [esp + 8], 0x1c
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x610052ae
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x11c], eax
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x48]
mov dword [esp + 4], ebx
mov dword [esp], 0x61005020
mov dword [esp + 8], eax
call fcn.610065d0
mov eax, dword [esi + 0x120]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x11c]
mov dword [esp], 0x61005060
mov dword [esp + 4], eax
jmp 0x6100526c
mov byte [ebp - 0x39], 0
mov edx, eax
jmp 0x61005150
mov dword [esp], 0x610050a0
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.610065d0
mov dword [esp], 0x610050e0
call fcn.610065d0
lea esi, [esi]
outsw dx, word [esi]
jb 0x6100532f
cmp ah, byte [eax]
arpl word [edi + 0x75], bp
insb byte es:[edi], dx
outsb dx, byte fs:[esi]
daa
je 0x610052ef
je 0x610052f3
jae 0x61005349
popal
arpl word [ebx + 0x20], bp
imul ebp, dword [esi + 0x66], 0x25202c6f
inc ebp
add byte [ebp + 0x26b4], cl
add byte [eax], al
lea edi, [edi]
add byte [ebp - 0x77], dl
in eax, 0x83
in al, dx
sub byte [ecx + 0x758bf875], cl
or byte [ecx + 0x7d89f45d], cl
cld
popal

Function at 0x610053a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128