joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401160
lea ebx, [ebx]
cmp esi, eax
jae 0x401164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401150
cmp esi, eax
jb 0x40116a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4012d0
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x401374
push 0x94
mov edi, 1
call fcn.00410467
mov esi, eax
add esp, 4
test esi, esi
je 0x4013e7
push 0x94
push 0
push esi
call fcn.00410310
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x401335
push esi
lea edi, [eax + 1]
call fcn.0041038a
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x4013de
cmp dword [esi + 8], 0
jne 0x401355
push esi
lea edi, [eax + 1]
call fcn.0041038a
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x4013de
cmp dword [esi + 8], edi
jne 0x4013de
push esi
lea edi, [eax + 2]
call fcn.0041038a
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x40137d
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call fcn.00410467
mov esi, eax
add esp, 4
test esi, esi
je 0x4013e7
push 0x94
push 0
push esi
call fcn.00410310
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x4013de
cmp dword [esi + 8], 0xa
jne 0x4013d1
push esi
lea edi, [eax - 1]
call fcn.0041038a
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x4013de
cmp dword [esi + 8], 0x5a
jne 0x4013de
mov edi, eax
push esi
call fcn.0041038a
add esp, 4
mov eax, edi
pop edi
pop esi
ret
Function at 0x41099a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432f68]
jne 0x4109a4
repz ret
jmp fcn.0041950c

Function at 0x41e7bd
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.00416239
and dword [ebp - 4], 0
cmp dword [0x437b44], 0
mov ebx, eax
jne 0x41e86e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e91f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c3f4
push edi
call esi
test eax, eax
je 0x41e91f
push eax
call fcn.004161c7
mov dword [esp], 0x42c3e4
push edi
mov dword [0x437b44], eax
call esi
push eax
call fcn.004161c7
mov dword [esp], 0x42c3d0
push edi
mov dword [0x437b48], eax
call esi
push eax
call fcn.004161c7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437b4c], eax
call esi
push eax
call fcn.004161c7
pop ecx
mov dword [0x437b54], eax
test eax, eax
je 0x41e86e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004161c7
pop ecx
mov dword [0x437b50], eax
mov eax, dword [0x437b50]
cmp eax, ebx
je 0x41e8c6
cmp dword [0x437b54], ebx
je 0x41e8c6
push eax
call fcn.00416242
push dword [0x437b54]
mov esi, eax
call fcn.00416242
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41e8c6
test edi, edi
je 0x41e8c6
call esi
test eax, eax
je 0x41e8bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e8bd
test byte [ebp - 0xc], 1
jne 0x41e8c6
or dword [ebp + 0x10], 0x200000
jmp 0x41e8ff
mov eax, dword [0x437b48]
cmp eax, ebx
je 0x41e8ff
push eax
call fcn.00416242
pop ecx
test eax, eax
je 0x41e8ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41e8ff
mov eax, dword [0x437b4c]
cmp eax, ebx
je 0x41e8ff
push eax
call fcn.00416242
pop ecx
test eax, eax
je 0x41e8ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437b44]
call fcn.00416242
pop ecx
test eax, eax
je 0x41e91f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e921
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404750
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x28], ebp
mov ebp, eax
xor eax, eax
mov dword [esp + 0x1c], ebx
mov ebx, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov edi, ecx
call fcn.00404680
test eax, eax
mov esi, eax
je 0x40479f
mov eax, dword [0x51920c]
test eax, eax
je 0x404786
add eax, esi
cmp eax, 0x45
jg 0x4047d0
cmp edi, 0x20
je 0x404807
mov edx, ebx
mov eax, ebp
call fcn.00404680
add dword [0x51920c], esi
cmp edi, 0x3a
je 0x4047b3
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
add esp, 0x2c
ret
mov dword [esp + 4], ebp
mov dword [esp], 0x3a
call sub.msvcrt.dll_putc
add dword [0x51920c], 1
jmp 0x40479f
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.__n
call sub.msvcrt.dll_fwrite
cmp edi, 0x20
mov eax, 0
mov dword [0x51920c], 0
cmove edi, eax
jmp 0x40478b
mov dword [esp + 4], ebp
mov dword [esp], 0x20
call sub.msvcrt.dll_putc
mov edx, ebx
mov eax, ebp
add dword [0x51920c], 1
call fcn.00404680
add dword [0x51920c], esi
jmp 0x40479f
Function at 0x40c560
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, eax
push esi
xor eax, eax
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], edx
test esi, esi
je 0x40c59d
xor ebx, ebx
lea esi, [esi]
movsx ebp, byte [ecx + ebx]
add ebx, 1
add eax, ebp
shl ebp, 0x11
add ebp, eax
mov eax, ebp
shr eax, 2
xor eax, ebp
cmp ebx, esi
jne 0x40c580
mov dword [esp + 0x14], edx
mov ebx, esi
mov edx, dword [esp + 0x48]
shl ebx, 0x11
add ebx, esi
add eax, ebx
mov ebx, eax
shr ebx, 2
xor ebx, eax
test edx, edx
je 0x40c5bb
mov eax, dword [esp + 0x48]
mov dword [eax], ebx
mov ebp, dword [esp + 0x14]
xor edx, edx
mov eax, ebx
div dword [ebp]
mov eax, dword [edi]
shl edx, 2
add edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
test eax, eax
je 0x40c5e0
mov ebp, dword [esp + 0x44]
mov dword [ebp], edx
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, dword [edx]
test edi, edi
je 0x40c645
xor ebp, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
jmp 0x40c602
mov eax, dword [edi]
test eax, eax
je 0x40c645
mov ebp, edi
mov edi, eax
cmp ebx, dword [edi + 8]
jne 0x40c5f8
mov ecx, dword [esp + 0x14]
mov esi, dword [edi + 4]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40c5f8
mov edx, dword [esp + 0x14]
cmp byte [esi + edx], 0
jne 0x40c5f8
test ebp, ebp
mov eax, edi
je 0x40c645
mov edx, dword [edi]
mov ecx, dword [esp + 0x1c]
mov dword [ebp], edx
mov edx, dword [ecx]
mov dword [edi], edx
mov dword [ecx], edi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40cba0
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ebx, ebx
sub esp, 0x18
mov eax, dword [0x5192e8]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
je 0x40cbc0
add esp, 0x18
mov eax, ebx
pop ebx
ret
mov eax, dword [0x5192e8]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov ebx, eax
mov eax, dword [0x5192e8]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x40cbb7
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004a2ab0
mov dword [esp], str.cant_read_from__s:__s
mov dword [esp + 8], eax
mov eax, dword [0x5192ec]
mov dword [esp + 4], eax
call fcn.00411ff0
add esp, 0x18
mov eax, ebx
pop ebx
ret
Function at 0x410180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov eax, edx
mov edx, dword [ecx]
mov dword [esp + 0x18], ecx
mov ebp, eax
cmp ebx, edx
jae 0x4102b4
mov eax, dword [ebp]
movzx edi, byte [eax + ebx]
mov ecx, edi
cmp cl, 0x22
je 0x4101c8
cmp cl, 0x3c
je 0x4102a0
cmp cl, 0x27
jne 0x4102b4
mov eax, dword [0x5194e0]
test eax, eax
je 0x4102b4
mov eax, edi
add ebx, 1
movsx eax, al
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jmp 0x410208
cmp al, dl
je 0x410280
mov ecx, dword [esp + 0x40]
movsx eax, al
add ebx, 1
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00419640
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
cmp ebx, dword [esp + 0x14]
jae 0x4102b4
mov ecx, dword [ebp]
xor esi, 1
mov edx, 0
cmp byte [ecx + ebx - 1], 0x5c
movzx eax, byte [ecx + ebx]
cmovne esi, edx
mov edx, dword [0x5194e0]
test edx, edx
je 0x410237
cmp al, 0x21
je 0x410260
test esi, esi
mov edx, edi
jne 0x4101e0
cmp al, dl
nop
jne 0x4101e8
add ebx, 1
cmp dword [esp + 0x14], ebx
jbe 0x410253
movzx eax, byte [ecx + ebx]
cmp al, dl
je 0x4101e8
mov edx, dword [esp + 0x14]
jmp 0x410193
movsx eax, byte [ecx + ebx + 1]
add ebx, 2
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00419640
jmp 0x4101fe
mov ecx, dword [esp + 0x1c]
add ebx, 1
mov eax, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00419640
jmp 0x4101fe
mov esi, dword [0x5194e0]
test esi, esi
jne 0x4102c0
mov ecx, dword [0x5194e4]
test ecx, ecx
jne 0x4102c0
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add ebx, 1
xor esi, esi
mov edi, dword [esp + 0x40]
jmp 0x4102f5
xor eax, eax
cmp cl, 0x3c
sete al
add esi, eax
movsx ecx, cl
add ebx, 1
mov dword [esp + 4], ecx
mov dword [esp], edi
call fcn.00419640
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp]
mov edx, dword [ecx]
movzx ecx, byte [eax + ebx]
cmp cl, 0x3e
je 0x410328
cmp ebx, edx
jae 0x410330
cmp cl, 0x21
je 0x410312
cmp cl, 0x3e
jne 0x4102d0
sub esi, 1
nop
jmp 0x4102da
movsx eax, byte [eax + ebx + 1]
add ebx, 2
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00419640
jmp 0x4102ec
test esi, esi
jne 0x4102fe
lea esi, [esi]
add ebx, 1
jmp 0x410193
Function at 0x411bc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3c
mov edx, dword [0x519500]
mov dword [esp + 0x1c], eax
test edx, edx
jne 0x411c23
test eax, eax
mov dword [0x519500], 1
je 0x411c27
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4c66f4
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x14
mov dword [esp + 4], 1
mov dword [esp], str.Assembler_messages:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add esp, 0x3c
ret
lea eax, [esp + 0x2c]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.0040d7e0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x411bfb
jmp 0x411bdf

Function at 0x411cd0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push ebx
sub esp, 0x24
add dword [0x5194fc], 1
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
je 0x411da6
call fcn.00411bc0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x411d1f
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x411d81
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4c66f4
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str.Error:
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], esi
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_putc
mov dword [esp], esi
call fcn.0040e310
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], edx
mov dword [esp + 4], str._s:_u:
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x411d1f
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.0040d7e0
mov eax, dword [esp + 0x1c]
jmp 0x411cee
Function at 0x411dd0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push ebx
sub esp, 0x24
add dword [0x5194f8], 1
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
je 0x411ea6
call fcn.00411bc0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x411e1f
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x411e81
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4c66f4
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.Warning:
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], esi
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_putc
mov dword [esp], esi
call fcn.0040e300
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], edx
mov dword [esp + 4], str._s:_u:
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x411e1f
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.0040d7e0
mov eax, dword [esp + 0x1c]
jmp 0x411dee

Function at 0x412090
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
call fcn.00411c50
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea ebx, [esp + 0x24]
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], str.Fatal_error:
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_putc
mov eax, dword [0x51e334]
test eax, eax
je 0x41210a
mov dword [esp], eax
call fcn.004a1920
mov dword [esp], 1
call fcn.004a2430
lea esi, [esi]
lea edi, [edi]
Function at 0x412120
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
call fcn.00411c50
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp], str.Internal_error__n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
test ebx, ebx
je 0x4121bb
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
add eax, 0x40
mov dword [esp + 4], str.Assertion_failure_in__s_at__s_line__d._n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x18
mov dword [esp + 4], 1
mov dword [esp], 0x4c6792
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call fcn.004a2430
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], str.Assertion_failure_at__s_line__d._n
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x412187

Function at 0x4121e0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
call fcn.00411c50
test ebx, ebx
je 0x412253
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
add eax, 0x40
mov dword [esp + 4], str.Internal_error__aborting_at__s_line__d_in__s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x18
mov dword [esp + 4], 1
mov dword [esp], 0x4c6792
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call fcn.004a2430
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], str.Internal_error__aborting_at__s_line__d_n
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41221f

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

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x4c88a2
mov edx, 0x4c88ab
jmp fcn.004198c0
Function at 0x448800
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
movzx edx, byte [esi]
lea ebp, [esi + 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
test edx, edx
je 0x448849
nop
lea esi, [esi]
add eax, edx
shl edx, 0x11
add edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
movzx edx, byte [ebp]
add ebp, 1
test edx, edx
jne 0x448830
sub ebp, esi
sub ebp, 1
mov edx, ebp
add eax, ebp
shl edx, 0x11
add eax, edx
xor edx, edx
mov ebx, eax
shr ebx, 2
xor ebx, eax
mov eax, ebx
div dword [edi + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x4488b8
mov dword [esp + 0x1c], edi
mov edi, esi
mov esi, ebx
mov ebx, edx
jmp 0x448886
mov ebx, dword [ebx]
test ebx, ebx
je 0x4488b0
cmp dword [ebx + 8], esi
jne 0x448880
mov dword [esp + 4], edi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x448880
mov edx, ebx
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, esi
mov esi, edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x448944
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44890f
mov eax, ebp
mov ecx, dword [edi + 8]
mov edx, 8
add eax, 1
mov dword [esp + 0x14], eax
jne 0x448927
mov ebp, dword [ecx + 4]
cmp ebp, edx
jb 0x448934
mov eax, dword [ecx]
sub ebp, edx
mov dword [ecx + 4], ebp
add eax, edx
mov ebp, eax
mov dword [ecx], eax
sub ebp, edx
test ebp, ebp
je 0x44894b
mov eax, dword [esp + 0x14]
mov dword [esp + 4], esi
mov esi, ebp
mov dword [esp], ebp
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00448620
lea edx, [ebp + 8]
mov ebp, dword [ecx + 4]
and edx, 0xfffffff8
cmp ebp, edx
jae 0x4488e6
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.004a8630
mov ebp, eax
jmp 0x4488f5
xor edx, edx
jmp 0x4488a0
mov dword [esp], 6
call fcn.00446410
xor edx, edx
jmp 0x4488a0

Function at 0x460dc0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
test eax, eax
je 0x460e16
mov edi, str.default
mov ecx, 8
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x460e26
test ebx, ebx
je 0x460df6
and byte [ebx + 0xb4], 0xfd
call fcn.00460cc0
test eax, eax
je 0x460e06
test ebx, ebx
je 0x460e06
mov dword [ebx + 8], eax
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 0x1c
ret
mov dword [esp], str.GNUTARGET
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x460ddb
mov eax, dword [0x4c0f44]
test eax, eax
je 0x460e50
test ebx, ebx
je 0x460e06
or byte [ebx + 0xb4], 2
mov esi, dword [esp + 0x14]
mov dword [ebx + 8], eax
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add esp, 0x1c
ret
mov eax, dword [0x4c0f4c]
mov eax, dword [eax]
jmp 0x460e2f
Function at 0x4a2450
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x51e688]
test eax, eax
je 0x4a243e
call eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
sub esp, 0x1c
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x11
mov dword [esp + 4], 1
mov dword [esp], str.memory_exhausted_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [0x4c1798]
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
lea esi, [esi]
Function at 0x4af200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
cmp dword [ecx], 0x2d
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
je 0x4af230
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
jmp fcn.004aad30
mov edx, dword [ecx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 4]
test edi, edi
je 0x4af2b2
mov edx, dword [eax + 0x100]
xor ebx, ebx
jmp 0x4af262
mov esi, edx
add edx, 1
add ebx, 1
cmp edi, ebx
mov byte [eax + esi], cl
mov dword [eax + 0x100], edx
mov byte [eax + 0x104], cl
je 0x4af2b2
cmp edx, 0xff
movzx ecx, byte [ebp + ebx]
jne 0x4af247
mov edx, dword [eax + 0x10c]
xor esi, esi
mov byte [eax + 0xff], 0
mov dword [esp], eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], edx
mov byte [esp + 0x1c], cl
mov dword [esp + 4], 0xff
call dword [eax + 0x108]
mov eax, dword [esp + 0x18]
mov edx, 1
movzx ecx, byte [esp + 0x1c]
add dword [eax + 0x120], 1
jmp 0x4af24c
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
add esp, 0x3c
ret

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

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x24], ebx
mov ebx, eax
mov eax, dword [ecx]
mov dword [esp + 0x28], esi
cmp eax, 0x2c
je 0x4af2e9
cmp eax, 1
ja 0x4af300
mov eax, ebx
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
add esp, 0x2c
jmp fcn.004aad30
cmp eax, 6
je 0x4af2e9
mov eax, dword [ebx + 0x100]
cmp eax, 0xff
lea esi, [eax + 1]
je 0x4af392
mov byte [ebx + eax], 0x28
mov eax, ebx
mov dword [ebx + 0x100], esi
mov byte [ebx + 0x104], 0x28
call fcn.004aad30
mov eax, dword [ebx + 0x100]
cmp eax, 0xff
lea edx, [eax + 1]
je 0x4af360
mov byte [ebx + eax], 0x29
mov esi, dword [esp + 0x28]
mov dword [ebx + 0x100], edx
mov byte [ebx + 0x104], 0x29
mov ebx, dword [esp + 0x24]
add esp, 0x2c
ret
mov eax, dword [ebx + 0x10c]
mov byte [ebx + 0xff], 0
mov dword [esp + 4], 0xff
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [ebx + 0x108]
mov edx, 1
xor eax, eax
add dword [ebx + 0x120], 1
jmp 0x4af33d
mov eax, dword [ebx + 0x10c]
mov esi, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov byte [ebx + 0xff], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0xff
mov dword [esp], ebx
call dword [ebx + 0x108]
xor eax, eax
mov ecx, dword [esp + 0x18]
add dword [ebx + 0x120], 1
mov edx, dword [esp + 0x1c]
jmp 0x4af315

Function at 0x4bc110
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004bc170