joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422a84
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x4d3370
call fcn.0041f3e6
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, 0xbab1f0ed
jne 0x422ab0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
jg 0x422af2
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.0041ccb4
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], 0x4d3370
call fcn.0041f45e
mov eax, dword [ebp + 0xc]
leave
ret

Function at 0x486450
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x486490
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x486461
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4cb380
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 0x4c8982
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.00428a60
mov edx, eax
test eax, eax
je 0x4cb36c
jmp 0x4c8959
call fcn.004c9c80
nop
nop
nop
call fcn.004c9c80
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x30
mov dword [esp + 4], 0
mov dword [esp], 0x4d36e0
call fcn.0041f10c
mov dword [esp], str.GLIBCXX_TUNABLES
mov dword [0x4d36e4], 0
mov dword [0x4d36e8], 0
mov dword [0x4d36ec], 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 0x4cb416
jmp 0x4cb4d6
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 0x4cb490
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 0x4cb400
mov eax, dword [ebx + 7]
mov edx, dword [ebx + 0xb]
xor eax, 0x5f68652e
xor edx, 0x6c6f6f70
or eax, edx
jne 0x4cb400
cmp byte [ebx + 0xf], 0x2e
jne 0x4cb400
add ebx, 0x10
lea esi, [esp + 0x18]
mov edi, dword [esi]
test edi, edi
je 0x4cb473
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 0x4cb47d
cmp byte [ebx + edi], 0x3d
je 0x4cb504
add esi, 0xc
lea eax, [esp + 0x30]
cmp eax, esi
jne 0x4cb456
jmp 0x4cb400
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 [0x4d36ec], ebx
test ebx, ebx
jne 0x4cb4e5
mov dword [esp], 0x4c9800
call fcn.00401494
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov dword [0x4d36ec], 0x3200
mov ebx, 0x3200
mov dword [esp], ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov dword [0x4d36e8], eax
test eax, eax
je 0x4cb542
xor edx, edx
mov dword [0x4d36e4], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
jmp 0x4cb4c3
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 0x4cb532
test dl, dl
jne 0x4cb400
test eax, eax
js 0x4cb400
mov dword [esi + 8], eax
jmp 0x4cb400
xor ecx, ecx
mov dword [0x4d36ec], ecx
jmp 0x4cb4c3
Function at 0x41248f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4124a8
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x4124cb
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4124d0
inc esi
cmp esi, dword [ebp - 4]
jb 0x4124c2
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x4125c4
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x412506
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x412533
cmp cl, 0xff
je 0x412533
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x4124bd
dec ecx
shl edx, cl
and edx, 7
je 0x4124ec
movzx ecx, byte [edx + 0x416824]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x41681c], 0
mov cl, byte [ebx + 4]
je 0x41252e
test cl, cl
je 0x41252e
cmp cl, 0xff
jne 0x4124ec
mov dword [ebp + 0xc], eax
jmp 0x4124fb
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x41255c
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x412563
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x412597
movzx edi, byte [edx + 0x416824]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x412582
cmp al, 0xff
jne 0x412594
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x41254e
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4124bd
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x412a82
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4168d8
call fcn.00412a30
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x412ad6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x412ad6
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x412aee
cmp ecx, 0x20b
je 0x412adb
mov dword [ebp - 0x1c], ebx
jmp 0x412b05
cmp dword [eax + 0x400084], 0xe
jbe 0x412ad6
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x412aff
cmp dword [eax + 0x400074], 0xe
jbe 0x412ad6
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x41aba4], edi
mov dword [0x41aba8], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41a78c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41a788]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41aba0], eax
call fcn.00412d58
cmp dword [0x41a5b0], ebx
jne 0x412b62
push fcn.00412d58
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00412d46
push 0x415344
push 0x415340
call sub.msvcrt.dll__initterm
mov eax, dword [0x41a784]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x41a780]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x41533c
push 0x415300
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x412bed
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x412bcd
cmp cl, 0x22
jne 0x412bbe
cmp byte [eax], 0x22
jne 0x412bd6
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x412be1
cmp cl, 0x20
jbe 0x412bd2
test byte [ebp - 0x54], 1
je 0x412bf8
movzx ecx, word [ebp - 0x50]
jmp 0x412bfb
cmp byte [eax], 0x20
jbe 0x412bd6
inc eax
mov dword [ebp - 0x20], eax
jmp 0x412bed
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.004053d0
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x412c19
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x412c55
mov eax, esi
jmp 0x412c69
call fcn.00412a6b
ret
Function at 0x43c51b
Capabilities:
Parse pe header

Disassembly:
pop ebx
mov eax, 0x500311d3
sub eax, 0x50031032
add eax, ebx
xor dword [eax], 0x78c9aed2
call 0x43c51b
jmp 0x43c4fd
call fcn.0043c43d
push 0x86abc981
push 0x5ac18765
xor eax, eax
js 0x43c581
insb byte es:[edi], dx
imul esi, dword [eax + eax + 0x61], 0xa6e9
add byte [ebp - 0x75], dl
in al, dx
mov ebx, 0x77000000
add ebx, 0x10000
cmp ebx, 0x80000000
jne 0x43c536
mov ebx, 0xbff00000
call fcn.0043c57a
cmp eax, 0
je 0x43c523
cmp word [ebx], 0x5a4d
jne 0x43c523
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp word [eax], 0x4550
jne 0x43c523
test byte [eax + 0x17], 0x20
je 0x43c523
mov eax, dword [eax + 0x78]
add eax, ebx
mov edx, dword [eax + 0xc]
add edx, ebx
cmp dword [edx], 0x4e52454b
jne 0x43c523
cmp dword [edx + 4], 0x32334c45
jne 0x43c523
mov eax, ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x500311b8
sub edx, 0x50031192
add eax, edx
push eax
push dword fs:[0]
mov dword fs:[0], esp
mov ecx, dword [ebx]
mov ecx, 1
jmp 0x43c5b3
pop dword fs:[0]
pop eax
mov dword [esp + 0x1c], ecx
popal
ret
Function at 0x1055d0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1055d200
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 0x1055d0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1055d0c2
add dl, dl
jne 0x1055d0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1055d134
xor eax, eax
add dl, dl
jne 0x1055d0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1055d1d5
add dl, dl
jne 0x1055d0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1055d108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1055d113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1055d11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1055d12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1055d0cd
mov eax, 1
add dl, dl
jne 0x1055d142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1055d14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1055d139
sub eax, ebx
mov ebx, 1
jne 0x1055d180
mov ecx, 1
add dl, dl
jne 0x1055d166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1055d171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1055d15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1055d0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1055d197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1055d1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1055d18e
cmp eax, 0x7d00
jae 0x1055d1c5
cmp eax, 0x500
jb 0x1055d1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1055d0cd
cmp eax, 0x7f
ja 0x1055d1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1055d0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1055d1f6
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 0x1055d0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xef4980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0xf1b01c]
push edi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x47049f
nop
push eax
nop
call 0x77c8e026
mov ebx, eax
push 0xf24fb0
mov dword [ebp - 4], ebx
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
mov byte [ebx + edi], 0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0xef4a9a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
call 0x763543d3
nop
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0xf24fb0
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0xef4a26
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
push 0xf24fb0
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x4704a4
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xef6e30
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0xef6ed1
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x76349910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0xef6f00
mov eax, dword [esi + 0x3c]
test eax, eax
je 0xef6f00
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0xef6ed1
mov ecx, dword [ebx]
push edi
push 0xf8
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
call 0x76349910
nop
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0xef6f00
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0xef6f00
movzx eax, word [esi + 0x46]
test ax, ax
je 0xef6f00
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.011290f4]
push eax
call dword [fcn.01129088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0xef6ed7
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00ef74d0
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x13f3010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor eax, eax
push esi
push edi
cmp byte [0xf1d014], al
je 0x13f302d
inc eax
cmp byte [eax + 0xf1d014], 0
jne 0x13f3023
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
inc eax
call fcn.013d1a40
mov dword [esi], eax
test eax, eax
je 0x13f304b
push 0xf1d014
push eax
call dword [fcn.01129134]
mov esi, dword [0x1128aa4]
xor eax, eax
cmp byte [esi], al
je 0x13f305e
inc eax
cmp byte [esi + eax], 0
jne 0x13f3057
inc eax
call fcn.013d1a40
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x13f3075
push esi
push ebx
call dword [fcn.01129134]
lea eax, [ebp - 0x24]
push eax
call dword [0x1129044]
mov eax, dword [ebp - 0x16]
xor edi, edi
lea esi, [eax + eax*4]
mov word [0x1128ec0], si
cmp dword [ebp + 0xc], edi
jle 0x13f30e9
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx ecx, si
mov dword [ebp - 4], eax
mov edi, edi
mov eax, ecx
shr eax, 2
xor eax, ecx
shr eax, 1
xor eax, ecx
shr eax, 2
xor eax, ecx
and eax, 1
mov dword [0x1128ec4], eax
shl eax, 0xf
shr si, 1
or si, ax
movzx ecx, si
xor edx, edx
mov ebx, 0xb
mov eax, ecx
div ebx
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
inc edi
mov dl, byte [edx + ebx]
mov byte [eax + edi - 1], dl
cmp edi, dword [ebp + 0xc]
jl 0x13f30a0
mov word [0x1128ec0], si
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], 0
test ebx, ebx
je 0x13f3161
mov ecx, dword [ebx - 8]
lea eax, [ebx - 0x10]
mov dword [eax], 1
test ecx, ecx
je 0x13f3131
cmp dword [ecx], 0
je 0x13f3131
cmp dword [0x11291c4], ecx
jne 0x13f311b
mov dword [0x11291c4], eax
mov esi, dword [ecx + 4]
add dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x13f3131
mov dword [ecx + 0xc], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x13f3161
cmp dword [ecx], 0
je 0x13f3161
cmp dword [0x11291c4], eax
jne 0x13f314b
mov dword [0x11291c4], ecx
mov esi, dword [eax + 4]
add dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov eax, dword [eax + 8]
test eax, eax
je 0x13f3161
mov dword [eax + 0xc], ecx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x13f5520
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x11290e0]
test esi, esi
jne 0x13f5538
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x13f5531
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x13f5531
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x13f559a
jmp 0x13f5580
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x1128bf0]
add eax, esi
call fcn.013f2fb0
test eax, eax
je 0x13f55a3
inc edi
cmp edi, dword [ebp - 4]
jb 0x13f5580
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401990
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x544e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x2c], ebx
xor edi, edi
push 0x583380
mov dword [esp + 0x64], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x36
mov byte [esp + 0x16], 0x42
mov byte [esp + 0x17], 0x4d
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x70]
push 0x583460
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0x28
lea ecx, [eax + eax*2]
mov word [esp + 0x40], 1
mov word [esp + 0x42], 0x18
mov dword [esp + 0x44], edi
lea ebp, [ecx*8 + 0x1f]
mov ecx, dword [esp + 0x78]
shr ebp, 5
imul eax, ecx
shl ebp, 2
mov edx, ebp
mov dword [esp + 0x3c], ecx
imul edx, ecx
mov ecx, dword [esp + 0x6c]
add edx, 0x36
lea eax, [eax + eax*2]
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x401a6a
push str.Cant_open_file_for_writing
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator_2
jmp 0x401b6f
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea edx, [esp + 0x1a]
push 1
push edx
call edi
push esi
push 1
lea eax, [esp + 0x2b]
push 1
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x40]
push 4
push ecx
call edi
push esi
push 1
lea edx, [esp + 0x54]
push 2
push edx
call edi
add esp, 0x40
lea eax, [esp + 0x20]
push esi
push 1
push 2
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x3c]
push 4
push ecx
call edi
push esi
push 1
lea edx, [esp + 0x58]
push 0x28
push edx
call edi
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
add esp, 0x30
mov dword [esp + 0x74], 0x36
test eax, eax
lea ebx, [ebx + ebx*2]
mov dword [esp + 0x14], 0
jle 0x401b65
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x6c]
push esi
push 1
push ebx
push ecx
call edi
add esp, 0x10
cmp eax, 1
jne 0x401b57
mov ecx, dword [esp + 0x74]
add ecx, ebx
cmp ebx, ebp
mov dword [esp + 0x74], ecx
jae 0x401b3a
sub ebp, ebx
mov eax, ecx
add eax, ebp
mov dword [esp + 0x74], eax
push esi
push 1
lea edx, [esp + 0x78]
push 1
push edx
mov byte [esp + 0x80], 0
call edi
add esp, 0x10
dec ebp
jne 0x401b1c
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x38]
inc eax
add edx, ebx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], edx
jl 0x401af1
jmp 0x401b65
mov ecx, dword [esp + 0x2c]
push str.fwrite_error_nGiving_up
call sub.MFC42u.DLL_CString::operator_2
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0x10