joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcaa6
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4bcad1
call fcn.004b91f8
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4bcaf4
push eax
push dword [esi + 4]
call fcn.004bca2c
push esi
push eax
mov ecx, 0x69d48c
call fcn.004bc6d9
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4cead5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x65d4c0]
jne 0x4ceadf
repz ret
jmp fcn.004daf9d

Function at 0x4ea4c2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004d82cd
and dword [ebp - 4], 0
cmp dword [0x69e2f8], 0
mov ebx, eax
jne 0x4ea573
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4ea624
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6389e8
push edi
call esi
test eax, eax
je 0x4ea624
push eax
call fcn.004d825b
mov dword [esp], 0x6389d8
push edi
mov dword [0x69e2f8], eax
call esi
push eax
call fcn.004d825b
mov dword [esp], 0x6389c4
push edi
mov dword [0x69e2fc], eax
call esi
push eax
call fcn.004d825b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x69e300], eax
call esi
push eax
call fcn.004d825b
pop ecx
mov dword [0x69e308], eax
test eax, eax
je 0x4ea573
push 0x638990
push edi
call esi
push eax
call fcn.004d825b
pop ecx
mov dword [0x69e304], eax
mov eax, dword [0x69e304]
cmp eax, ebx
je 0x4ea5cb
cmp dword [0x69e308], ebx
je 0x4ea5cb
push eax
call fcn.004d82d6
push dword [0x69e308]
mov esi, eax
call fcn.004d82d6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4ea5cb
test edi, edi
je 0x4ea5cb
call esi
test eax, eax
je 0x4ea5c2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4ea5c2
test byte [ebp - 0xc], 1
jne 0x4ea5cb
or dword [ebp + 0x10], 0x200000
jmp 0x4ea604
mov eax, dword [0x69e2fc]
cmp eax, ebx
je 0x4ea604
push eax
call fcn.004d82d6
pop ecx
test eax, eax
je 0x4ea604
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4ea604
mov eax, dword [0x69e300]
cmp eax, ebx
je 0x4ea604
push eax
call fcn.004d82d6
pop ecx
test eax, eax
je 0x4ea604
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x69e2f8]
call fcn.004d82d6
pop ecx
test eax, eax
je 0x4ea624
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4ea626
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f8550
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x4f86fa
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x4f85a8
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x4f85bb
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x4f85cf
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x4f8616.3
jmp 0x4f85e0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x4f85ec
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x4f85f1
mov esi, 1
inc eax
cmp eax, edi
jl 0x4f85e0
cmp si, cx
je case.0x4f8616.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4f8616.3
movzx eax, byte [eax + 0x4f8714]
jmp dword [eax*4 + 0x4f8700]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x4f8616.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4f8630
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x4f8616.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x4f8670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x4f8616.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x4f8696
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x4f8616.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x4f86c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4fe7c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x65d4c0]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp eax, 3
jne 0x4fe84a
movzx eax, word [esi + 0x118]
test ax, ax
jne 0x4fe7f6
test byte [esi + 0x230], 1
jne 0x4fe81e
movzx cx, byte [edi]
cmp cx, ax
jbe 0x4fe81e
push str.Invalid_background_palette_index
push esi
call fcn.004f0900
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004cead5
add esp, 0xc
ret
mov dl, byte [edi]
push 1
lea eax, [esp + 0xc]
push eax
push str.bKGD
push esi
mov byte [esp + 0x18], dl
call fcn.004fd9a0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004cead5
add esp, 0xc
ret
test al, 2
je 0x4fe8de
movzx ecx, word [edi + 2]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.004fc9b0
movzx eax, word [edi + 4]
push eax
lea ecx, [esp + 0x16]
push ecx
call fcn.004fc9b0
movzx edx, word [edi + 6]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004fc9b0
add esp, 0x18
cmp byte [esi + 0x127], 8
jne 0x4fe8b8
mov cl, byte [esp + 0xc]
or cl, byte [esp + 0xa]
or cl, byte [esp + 8]
je 0x4fe8b8
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push esi
call fcn.004f0900
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004cead5
add esp, 0xc
ret
push 6
lea edx, [esp + 0xc]
push edx
push str.bKGD
push esi
call fcn.004fd9a0
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004cead5
add esp, 0xc
ret
mov cl, byte [esi + 0x127]
movzx eax, word [edi + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4fe912
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.004f0900
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004cead5
add esp, 0xc
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004fc9b0
push 2
lea ecx, [esp + 0x14]
push ecx
push str.bKGD
push esi
call fcn.004fd9a0
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
pop esi
xor ecx, esp
call fcn.004cead5
add esp, 0xc
ret
Function at 0x502290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x24]
push ebp
push esi
mov ebp, dword [edi + 0x34]
sub ebp, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x50230e
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004cf320
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x5022e1
sub eax, ebx
jmp 0x5022e3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x5022d2
mov ecx, dword [edi + 0x38]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x502302
sub eax, ebx
jmp 0x502304
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x5022f3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x502369
mov edx, dword [edi + 0x6c]
add edx, dword [edi + 0x64]
mov ecx, ebp
add edx, dword [edi + 0x30]
push edx
call fcn.00501f90
add dword [edi + 0x6c], eax
mov edx, dword [edi + 0x6c]
add esp, 4
cmp edx, 3
jb 0x502355
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp edx, 0x106
jae 0x502369
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x502296
pop esi
pop ebp
pop ebx
ret
Function at 0x5037c0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x5037da
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x5038ea
push ebp
jmp 0x5037f0
mov eax, ebx
cmp ebx, 0x15b0
jb 0x5037ff
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x5038ab
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x503820
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x503820
test eax, eax
je 0x5038bd
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x5038b0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x5037f0
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x401762
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4021b9
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4021d2
lea ecx, [eax + 1]
mov eax, dword [esp + 4]
xor byte [eax], 0xa5
inc eax
dec ecx
jne 0x4021cb
ret
Function at 0x402bf9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x200]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0xc
leave
ret

Function at 0x403037
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x11c
call edi
push dword [ebp + 8]
mov esi, eax
call sub.MSVCRT.dll_strlen
add eax, 4
push eax
call edi
push dword [ebp + 8]
mov edi, eax
push edi
call sub.MSVCRT.dll_strcpy
push 0x40c74c
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov dword [esi], eax
call edi
cmp dword [esi], 0xffffffff
pop ecx
jne 0x4030e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x4030b1
cmp eax, 3
jle 0x4030d3
cmp eax, 8
je 0x4030c5
cmp eax, 0x12
je 0x4030d3
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x16
push esi
call edi
pop ecx
xor eax, eax
jmp 0x403129
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xc
jmp 0x4030bd
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 2
jmp 0x4030bd
mov eax, dword [ebp - 0x140]
sub eax, 0x80
neg eax
sbb eax, eax
and eax, dword [ebp - 0x140]
mov word [esi + 0xa], 0xa
mov word [esi + 8], 0xa
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x114]
push eax
lea eax, [esi + 0x10]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov byte [esi + 0x118], 1
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4038f3
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.00403037
mov edi, eax
pop ecx
test edi, edi
je 0x4039bb
push esi
push ebx
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [ebp - 0x400]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov cl, byte [ebp + esi - 0x401]
add esp, 0x10
cmp cl, 0x2f
je 0x40394a
mov al, byte [0x40b19c]
cmp cl, al
je 0x40394a
mov byte [ebp + esi - 0x400], al
inc esi
push edi
call fcn.0040312d
test eax, eax
pop ecx
je 0x4039b3
cmp byte [eax + 0x10], 0x2e
lea ecx, [eax + 0x10]
jne 0x403970
mov dl, byte [eax + 0x11]
test dl, dl
je 0x40394a
cmp dl, 0x2e
jne 0x403970
cmp byte [eax + 0x12], 0
je 0x40394a
lea eax, [ebp + esi - 0x400]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x400]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__chmod]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 0x14
test eax, eax
je 0x40394a
lea eax, [ebp - 0x400]
push eax
call fcn.004038f3
pop ecx
jmp 0x40394a
push edi
call fcn.004031ec
pop ecx
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll__rmdir]
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x4039c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ebx
push edi
je 0x4039fb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
jne 0x4039ef
xor eax, eax
jmp 0x403a51
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x403a25
push dword [ebp + 8]
jmp 0x403a1c
lea eax, [ebp - 0x104]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x403a25
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [edi], eax
push 0x40c944
push 0x40c940
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x403a4f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403a4f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4041aa
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x200]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp eax, ecx
je 0x4041f6
cmp byte [eax], cl
je 0x4041f6
push ecx
push eax
lea eax, [ebp - 0x200]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0xc
leave
ret
Function at 0x405587
Capabilities:
Get system information on windows
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [ebp + 8]
push eax
call fcn.00405560
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4055a9
xor eax, eax
jmp 0x4056f6
push 0x8000
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCRT.dll__open
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x4055ca
xor eax, eax
jmp 0x4056f6
push 2
push 0xfffffffffffffff4
mov edx, dword [ebp - 0x30]
push edx
call sub.MSVCRT.dll__lseek
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x4055e8
jmp 0x4056e8
push 0xc
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCRT.dll__read
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xc
je 0x405608
jmp 0x4056e8
lea edx, [ebp - 0x28]
push edx
call fcn.00404f50
add esp, 4
test eax, eax
jne 0x40561d
jmp 0x4056e8
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x20]
ja 0x40562a
jmp 0x4056e8
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
push 0
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 0x30]
push edx
call sub.MSVCRT.dll__get_osfhandle
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x40565e
jmp 0x4056e8
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
xor edx, edx
div dword [ebp - 0x40]
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 0xc]
push eax
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x34]
push ecx
push 0
push 4
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4056a8
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4056e8
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00404f50
add esp, 4
test eax, eax
jne 0x4056d7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4056e8
mov edx, dword [ebp - 0x30]
push edx
call sub.MSVCRT.dll__close
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x4056f6
mov eax, dword [ebp - 0x30]
push eax
call sub.MSVCRT.dll__close
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405744
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b1d0
push 0x40588e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40e530], 0xffffffff
or dword [0x40e534], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40e488]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40e484]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40e538], eax
call fcn.0040588d
cmp dword [0x40cf00], 0
jne 0x4057c7
push 0x40588a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00405878
push 0x40c00c
push 0x40c008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40e480]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40e47c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40c004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x405f20
Capabilities:
Allocate thread local storage

Disassembly:
or al, 0x83
rol byte [edx], 0xd1
clc
mov dword [esi + 0x41], ebp
add al, 0x9d
add al, 0
add bh, bh
jnp 0x405e8c
call dword [0xa840c15c]
adc eax, 0xa840c15c
pop esp
rol dword [eax - 0x58], 0x8b
clc
mov edi, eax
mov eax, dword [ebp + 0x10]
lea esi, [eax + eax*2 + 1]
push esi
mov dword [ebp - 4], esi
push edi
adc eax, sym.imp.MSVCRT.dll_malloc
add esp, 8
lea ecx, [ebp - 4]
mov dword [edi], eax
in al, 0x55
adc byte [ecx + 0x50], dl
mov eax, dword [ebp + 1]
push edx
push eax
call fcn.0040abf0
mov edx, dword [ebp - 4]
cmp al, 7
sub esi, edx
push esi
push eax
jge 0x405e7b
and cl, al
inc eax
add byte [edx + 1], bh
add byte [eax], al
add byte [ebx + 0x603b08c4], al
mov dword [edi], eax
jle 0x405f02
lea ecx, [ebx + 0x50]
lea eax, [edi + 4]
mov esp, ecx
or al, 0x41
mov ebp, dword [edx + 0x2c283fc]
sbb byte [ebx + 0x168a30ee], bl
inc esi
test byte [ebp - 0xa8acf77], ch
cmp eax, 0xc0bd0c55
add al, 0x4a
out 0x55, al
rol byte [edx + ecx*2], 0xe6
push ebp
je 0x405f76
loope 0x405e8e
mov ebp, dword [esi - 0x70875bf8]
add byte [eax], al
add byte [eax], al
mov dword [eax], edi
pop edi
cli
ret
scasb al, byte es:[edi]
or byte [eax + edi*2 + 0x8f], ah
add byte [ecx - 0x3c05a0c8], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
and dword [eax], 0x95fc6a98
clc
mov eax, 0x8b004103
enter 0xffffffffffff8540, 0xffffffffffffffc9
mov dword [0x830388], eax
je 0x405f40
scasd eax, dword es:[edi]
sbb byte [ebx - 0x721aa24d], cl
push ebp
clc
lea edx, [ebp - 8]
lcall 0x8300, 0x47d7e8
les eax, [eax*4 + 0x77850fc0]
xchg ebp, eax
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
or edx, dword [ecx + ecx + 0x41]
add byte [ecx - 0x1624], ah
test eax, eax
jne 0x405fdb
push eax
push eax
push eax
inc esp
idiv ah
xchg esi, eax
in al, dx
cld
jl 0x405f5e
loop 0x405efa
shr byte [edi + 9], 0xb8
inc eax
dec esi
pop edi
add byte [ebx - 0x743ca21b], cl
dec ebp
cld
push 0x840f424
push ecx
call fcn.004055f0
lea edx, [ebp - 0x198]
push edx
push 2
call dword [0x3bc1d4]
test eax, eax
jne 0x405fdb
outsd dx, dword [esi]
or dword [eax + 0x5f4e40], edi
mov esp, ebp
pop ebp
ret
push bp
test dword [eax - 2], ebp
sbb dword [ebx + 0x3c], 0x33233502
leave
mov cl, ah