joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4242a8
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.00424052
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.00423ee5
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x424303
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
call eax
mov eax, dword [0x4c9840]
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 0x42442d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x424395
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x424352
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.00422e1b
mov dword [ebp - 0x10], 0
mov eax, dword [0x4c9840]
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 0x42442d
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 0x4243c5
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 0x42442d
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.00422e1b
mov dword [ebp - 0x10], 0
mov eax, dword [0x4c9840]
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.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call eax
Function at 0x4266f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x4c9850
call fcn.004227b2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 0xbab1f0ed
jne 0x42671c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
jg 0x42675e
mov dword [esp], 2
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], str..._.._.._mingw_w64_libraries_winpthreads_src_rwlock.c
mov dword [esp + 8], str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov dword [esp + 4], str.Assertion_failed:___s___file__s__line__d_n
mov dword [esp], eax
call fcn.004200f0
mov dword [esp], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 4]
sub edx, 1
mov dword [eax + 4], edx
mov dword [esp], 0x4c9850
call fcn.0042282a
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x4c2180
Capabilities:
Query environment variable

Disassembly:
push edi
sub esp, 0x18
mov eax, dword [esp + 0x20]
lea edi, [eax + 0x60]
mov dword [esp], edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test eax, eax
je 0x4bfbc2
mov edx, eax
lea edi, [edx + 4]
mov ecx, edx
xor eax, eax
mov dword [edx], 0
and edi, 0xfffffffc
mov dword [edx + 0x5c], 0
sub ecx, edi
add ecx, 0x60
shr ecx, 2
rep stosd dword es:[edi], eax
add esp, 0x18
lea eax, [edx + 0x60]
pop edi
ret
mov eax, edi
call fcn.0042c840
mov edx, eax
test eax, eax
je 0x4c216c
jmp 0x4bfb99
call fcn.004c0bac
nop
nop
nop
call fcn.004c0bac
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x30
mov dword [esp + 4], 0
mov dword [esp], 0x4c9bb8
call fcn.004224d8
mov dword [esp], str.GLIBCXX_TUNABLES
mov dword [0x4c9bbc], 0
mov dword [0x4c9bc0], 0
mov dword [0x4c9bc4], 0
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], str.obj_size
mov ebx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 9
mov dword [esp + 0x28], str.obj_count
mov dword [esp + 0x2c], 0x40
test eax, eax
jne 0x4c2216
jmp 0x4c22d6
mov dword [esp], ebx
mov dword [esp + 4], 0x3a
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov ebx, eax
test eax, eax
je 0x4c2290
xor eax, eax
cmp byte [ebx], 0x3a
sete al
add ebx, eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
xor eax, 0x62696c67
xor edx, 0x2e787863
or eax, edx
jne 0x4c2200
mov eax, dword [ebx + 7]
mov edx, dword [ebx + 0xb]
xor eax, 0x5f68652e
xor edx, 0x6c6f6f70
or eax, edx
jne 0x4c2200
cmp byte [ebx + 0xf], 0x2e
jne 0x4c2200
add ebx, 0x10
lea esi, [esp + 0x18]
mov edi, dword [esi]
test edi, edi
je 0x4c2273
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x4c227d
cmp byte [ebx + edi], 0x3d
je 0x4c2304
add esi, 0xc
lea eax, [esp + 0x30]
cmp eax, esi
jne 0x4c2256
jmp 0x4c2200
mov eax, dword [esp + 0x2c]
mov edx, 0x100
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [esp + 0x20]
test eax, eax
cmove eax, ecx
add eax, 0x2c
imul eax, edx
lea ebx, [eax*4]
mov dword [0x4c9bc4], ebx
test ebx, ebx
jne 0x4c22e5
mov dword [esp], 0x4c0a30
call fcn.00401494
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov dword [0x4c9bc4], 0x3200
mov ebx, 0x3200
mov dword [esp], ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov dword [0x4c9bc0], eax
test eax, eax
je 0x4c2342
xor edx, edx
mov dword [0x4c9bbc], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
jmp 0x4c22c3
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebx + edi + 1]
mov dword [esp], eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov ebx, dword [esp + 0x14]
movzx edx, byte [ebx]
cmp dl, 0x3a
je 0x4c2332
test dl, dl
jne 0x4c2200
test eax, eax
js 0x4c2200
mov dword [esi + 8], eax
jmp 0x4c2200
xor ecx, ecx
mov dword [0x4c9bc4], ecx
jmp 0x4c22c3
Function at 0x4b2bb8
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4bc426
push ebx
push esi
call fcn.004bc352
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004bc2e6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4bc3d3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4bc425
push edi
push eax
call fcn.004bae58
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4bc3f3
call fcn.004ba8a5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4bc424
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004bc2e6
add esp, 0x20
test eax, eax
jne 0x4bc412
push edi
call fcn.004ba8a5
jmp 0x4bc41a
push ebx
call fcn.004ba8a5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4bd7da
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c6a00
push 0x4c69f8
push str.FlsAlloc
push 0x1f
call fcn.004bd699
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bd80e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c412c]
call esi
jmp 0x4bd814
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4bd858
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c6a10
push 0x4c6a08
push str.FlsGetValue
push 0x21
call fcn.004bd699
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bd88f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c412c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4bd897
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c6a18
push 0x4c6a10
push str.FlsSetValue
push 0x22
call fcn.004bd699
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bd8d1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4c412c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4bf474
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4cc100]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bf4b4
cmp byte [ebx], 0xa
jne 0x4bf4b4
or byte [edi + eax + 0x28], 4
jmp 0x4bf4b9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4bf5b8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4bf59b
inc eax
cmp dl, 0xd
je 0x4bf4e5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4bf50b
cmp eax, ecx
jae 0x4bf519
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4bf4cd
jmp 0x4bf5b8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bf596
cmp dword [ebp - 0x10], 0
je 0x4bf596
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4cc100]
test byte [eax + edi + 0x28], 0x48
je 0x4bf570
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4bf55b
mov byte [esi], dl
jmp 0x4bf56c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4cc100]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4bf5b8
cmp byte [ebp - 1], 0xa
jne 0x4bf57f
cmp esi, ebx
jne 0x4bf57f
mov byte [esi], 0xa
jmp 0x4bf5b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004bf26d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4bf5b8
mov byte [esi], 0xd
jmp 0x4bf5b7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4cc100]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4bf5b5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4bf5b8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4bf5c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4cc100]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4bf607
cmp word [ebx], dx
jne 0x4bf607
or byte [eax + edi + 0x28], 4
jmp 0x4bf60c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4bf76f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4bf74f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4bf64d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4bf683
cmp eax, edx
jae 0x4bf691
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4bf628
jmp 0x4bf76f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bf74a
cmp dword [ebp - 0x18], 0
je 0x4bf74a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4cc100]
test byte [eax + edi + 0x28], 0x48
je 0x4bf720
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4bf6e4
mov word [esi], cx
jmp 0x4bf71b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4cc100]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4cc100]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4cc100]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4bf76f
pop eax
cmp word [ebp - 4], ax
jne 0x4bf730
cmp esi, ebx
jne 0x4bf730
mov word [esi], ax
jmp 0x4bf76c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004bf26d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4bf76f
push 0xd
pop eax
jmp 0x4bf72b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4cc100]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4bf769
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4bf76f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c0de5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004c0d61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4c0f54
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4c0f54
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4c0f09
jg 0x4c0e41
test eax, eax
je 0x4c0eff
push 1
push 0x1000
call fcn.004baea6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4c0e64
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4c0ef6
push 0x8000
push ebx
call fcn.004b80e3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4c0e8d
jg 0x4c0e88
cmp ecx, 0x1000
jb 0x4c0e8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b9a31
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c0ed2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4c0e88
jl 0x4c0eb9
test ecx, ecx
jne 0x4c0e7a
push dword [ebp - 0xc]
push ebx
call fcn.004b80e3
push esi
call fcn.004ba8a5
add esp, 0xc
xor ebx, ebx
jmp 0x4c0f62
cmp byte [edi + 0x24], 0
je 0x4c0ee9
cmp dword [edi + 0x20], 5
jne 0x4c0ee9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4c0ef4
mov ebx, dword [edi + 0x18]
jmp 0x4c0ef6
xor ebx, ebx
push esi
call fcn.004ba8a5
pop ecx
jmp 0x4c0f62
test ecx, ecx
jg 0x4c0ecb
jl 0x4c0f09
test eax, eax
jae 0x4c0ecb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004bf26d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c0f29
cmp byte [edi + 0x1c], 0
je 0x4c0ecb
jmp 0x4c0f5a
push ebx
call fcn.004bcbc9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4c0ecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4c0f62
cmp byte [edi + 0x1c], 0
je 0x4c0f5f
mov ebx, dword [edi + 0x18]
jmp 0x4c0f62
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004bf26d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4c2f50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c2f7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c2f7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4074f8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword es:[sym.imp.KERNEL32.dll_GetShortPathNameW]
sub eax, 2
mov edx, dword [ecx]
imul eax, edx
cmp al, 0x7c
jne 0x407545
lea eax, [esp + 4]
push eax
push esp
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
cmp eax, dword [edx + ebp]
je 0x407589
mov eax, 0x407540
lea eax, [edx + eax]
push ebp
push eax
push 0
call sub.KERNEL32.dll_EnumResourceTypesW
jmp 0x407589
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, es:[eax + 0x78968f]
sub eax, 0x783648
xacquire lock add dword es:[edx - 0x1b4], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
mov eax, 0
mov dx, cs
push dx
push ecx
retf
add byte [eax], al
add byte [eax], al
inc esp
add byte [ebp - 0x51dc7c41], cl
or ecx, dword [ebx + 0x43]
add byte [eax], 0x82
add byte [eax - 0x12], dh
clc
jle 0x40758f
retf

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

Disassembly:
xor eax, eax
nop
cld
jmp 0x40ec1b

Function at 0x40f481
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov ecx, ebx
stc
nop
jb 0x40dfb6
test eax, 0x35a2c300
sbb cl, ch
add ecx, dword [ecx + 0x3c]
pushal
stc
nop
jb 0x40d698
leave
sbb byte [eax], al
add byte [eax], al
add byte [edx - 0x40a8af52], ah
int1
stc
inc eax
add byte [edi - 0x63cdbc4], al
add byte [esi + 0x558c00a0], ch
mov ebp, esp
fiadd dword [eax + eax - 0x33]
invalid
Function at 0x418010
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edx, dword [0x63203c]
mov dword [0x635acc], eax
mov eax, dword [0x632038]
mov dword [esp + 0xc], 0
lea ecx, [eax + eax]
or ecx, edx
mov dword [esp + 8], ecx
fild qword [esp + 8]
fadd qword [0x632050]
fstp qword [0x632050]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, dword [0x635acc]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov edx, dword [0x635acc]
add edx, eax
lea eax, [esp + 4]
push eax
push esi
mov dword [0x635acc], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, 0x190
pop esi
add esp, 0xc
ret

Function at 0x62a925
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x632380
cmp edx, dword [eax]
je 0x62a947
add eax, 8
inc ecx
cmp eax, 0x632410
jl 0x62a938
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x632380]
jne 0x62aa75
mov eax, dword [0x636d10]
cmp eax, 1
je 0x62aa4f
test eax, eax
jne 0x62a978
cmp dword [0x6322ac], 1
je 0x62aa4f
cmp edx, 0xfc
je 0x62aa75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62a9af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062b310
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062b7a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62a9f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062b7a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62f86c
push edi
call fcn.0062d670
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062b310
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062b320
lea eax, [ebp - 0xa0]
push 0x62f84c
push eax
call fcn.0062b320
push dword [esi + 0x632384]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062b320
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062d5e4
add esp, 0x2c
pop edi
jmp 0x62aa75
lea eax, [ebp + 8]
lea esi, [esi + 0x632384]
push 0
push eax
push dword [esi]
call fcn.0062b7a0
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 0x401979
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, dword [sym.imp.MSVCRT.dll_wcscpy]
lea edi, [esi + eax*2]
mov dword [esp], 0x408298
push edi
call ebp
pop ecx
lea eax, [esp + 0x18]
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and word [edi], bx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4019c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401a87
lea eax, [esp + 0x40]
push 0x408294
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x401a3a
lea eax, [esp + 0x40]
push 0x40828c
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x401a3a
lea eax, [esp + 0x40]
push eax
push edi
call ebp
test byte [esp + 0x1c], 0x10
pop ecx
pop ecx
je 0x401a1a
push 0x408274
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov ecx, esi
call fcn.00401979
jmp 0x401a34
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401a36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x401a60
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4019c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x12
jne 0x401a60
xor ebx, ebx
push dword [esp + 0x10]
and word [edi], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x401a85
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x401a85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret

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

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x409040
push 8
mov eax, edx
pop esi
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec esi
jne 0x403c38
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x409440
jb 0x403c33
cmp edx, 0x800
jae 0x403c91
lea ecx, [edx*4 + 0x409040]
mov eax, dword [ecx - 0x400]
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x409040]
xor edx, eax
mov dword [ecx], edx
add ecx, 4
cmp ecx, 0x40b040
jb 0x403c6a
mov eax, 0x403cbd
mov esi, 0x403d71
mov dword [0x40b044], eax
mov dword [0x409030], eax
mov dword [0x40b040], esi
call fcn.00405478
test eax, eax
jne 0x403cba
mov dword [0x409030], esi
pop edi
pop esi
ret