joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096a0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x409774
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
push 0x10
call fcn.00420210
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x11
mov dword [esp + 0x14], 0xf
mov dword [eax + 0xb], 0x676d692e
mov dword [eax + 8], 0x2e797470
mov dword [eax + 4], 0x6d655f72
mov dword [eax], 0x65707573
mov byte [eax + 0xf], 0
mov eax, dword [edi]
lea edx, [esp + 4]
lea esi, [esp + 0x10]
mov ecx, edi
push edx
push esi
call dword [eax + 8]
mov ebx, eax
test byte [esp + 0x10], 1
je 0x409732
push dword [esp + 0x18]
call fcn.004203b0
add esp, 4
test bl, bl
je 0x40982d
mov dword [esp + 0x10], 0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
sub ecx, eax
push ecx
push eax
push esi
call fcn.00485c30
add esp, 0xc
push ebp
push dword [esp + 0x14]
call fcn.004287b0
add esp, 8
mov ebx, eax
mov ecx, esi
push 0
call fcn.00414390
jmp 0x40982f
push str.ANDROID_PRODUCT_OUT
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x409846
cmp byte [eax], 0
je 0x409846
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
push 0x10
call fcn.00420210
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x11
mov dword [esp + 0x14], 0xf
mov dword [eax + 0xb], 0x676d692e
mov dword [eax + 8], 0x2e797470
mov dword [eax + 4], 0x6d655f72
mov dword [eax], 0x65707573
mov byte [eax + 0xf], 0
lea edi, [esp + 4]
lea esi, [esp + 0x10]
mov ecx, edi
mov edx, esi
call fcn.00401780
test byte [esp + 0x10], 1
je 0x40980b
push dword [esp + 0x18]
call fcn.004203b0
add esp, 4
movzx eax, byte [esp + 4]
mov ecx, eax
and cl, 1
je 0x409852
mov eax, dword [esp + 8]
test eax, eax
je 0x409858
test cl, cl
mov byte [esp + 3], cl
je 0x409860
mov eax, dword [esp + 0xc]
jmp 0x409864
xor ebx, ebx
mov eax, dword [esp + 4]
test eax, eax
je 0x409848
mov dword [esp + 8], eax
push eax
call fcn.004203b0
add esp, 4
jmp 0x409848
xor ebx, ebx
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
shr eax, 1
test eax, eax
jne 0x40981f
xor ebx, ebx
test cl, cl
jne 0x4098c1
jmp 0x409848
lea eax, [esp + 5]
push 4
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__access
add esp, 8
test eax, eax
je 0x409880
xor ebx, ebx
movzx ecx, byte [esp + 3]
test cl, cl
jne 0x4098c1
jmp 0x409848
mov dword [esp + 0x10], 0
push edi
push esi
call fcn.00485d40
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4098a8
push ebp
push eax
call fcn.004287b0
add esp, 8
mov ebx, eax
jmp 0x4098aa
xor ebx, ebx
lea ecx, [esp + 0x10]
push 0
call fcn.00414390
movzx ecx, byte [esp + 4]
and cl, 1
test cl, cl
je 0x409848
push dword [esp + 0xc]
jmp 0x40983c
Function at 0x40e290
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov ecx, esp
push edx
call fcn.00423570
movzx eax, byte [esp]
test al, 1
je 0x40e2ca
mov eax, dword [esp + 4]
cmp eax, 3
je 0x40e2d1
jmp 0x40e2eb
shr eax, 1
cmp eax, 3
jne 0x40e2eb
mov ecx, esp
push 3
push 0x5787ef
push 0xffffffffffffffff
push 0
call fcn.00425430
test eax, eax
je 0x40e3b4
mov ecx, dword [0x5aa310]
call fcn.004031d0
test eax, eax
je 0x40e47d
mov edi, eax
movzx eax, byte [esp]
mov ecx, eax
shr ecx, 1
and al, 1
mov edx, dword [esp + 4]
mov ebx, edx
cmove ebx, ecx
cmp ebx, 5
jne 0x40e340
mov ecx, esp
push 5
push str.other
push 0xffffffffffffffff
push 0
call fcn.00425430
test eax, eax
je 0x40e3d8
movzx ecx, byte [esp]
mov edx, dword [esp + 4]
mov eax, ecx
and al, 1
shr ecx, 1
test al, al
cmovne ecx, edx
cmp ecx, 1
jne 0x40e466
test al, al
je 0x40e358
mov eax, dword [esp + 8]
jmp 0x40e35c
lea eax, [esp + 1]
movzx eax, byte [eax]
cmp al, 0x61
jl 0x40e466
add eax, 0xffffff9f
cmp eax, edi
jge 0x40e466
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [esp]
movsd qword [esi], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
test byte [esp], 1
je 0x40e3ab
push dword [esp + 8]
call fcn.004203b0
add esp, 4
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
cmp byte [esp + 0x28], 0
je 0x40e435
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov byte [esi], 6
mov word [esi + 1], 0x6c61
mov byte [esi + 3], 0x6c
jmp 0x40e399
lea eax, [esp + 0xc]
push eax
call fcn.004030d0
add esp, 4
movzx ebx, byte [esp + 0xc]
test bl, 1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xd]
cmovne eax, ecx
movsx eax, byte [eax]
add eax, 0xffffffa0
cdq
idiv edi
add dl, 0x61
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 1], dl
mov byte [esi], 2
test bl, 1
je 0x40e399
push ecx
call fcn.004203b0
add esp, 4
jmp 0x40e399
mov ecx, dword [0x5aa310]
call fcn.004031d0
test eax, eax
jle 0x40e4db
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [esi], 0x6102
jmp 0x40e399
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esp], 1
je 0x40e487
mov ecx, dword [esp + 8]
jmp 0x40e48b
push str.Device_does_not_support_slots
call fcn.004286b0
lea ecx, [esp + 1]
push ecx
push str.Slot__s_does_not_exist._supported_slots_are:_n
push eax
call fcn.004018e0
add esp, 0xc
test edi, edi
jle 0x40e4d4
mov esi, 0x61000000
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
nop dword [eax]
push 2
call ebx
add esp, 4
mov ecx, esi
sar ecx, 0x18
push ecx
push 0x57b4f0
push eax
call fcn.004018e0
add esp, 0xc
add esi, 0x1000000
dec edi
jne 0x40e4b0
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push str.No_known_slots
call fcn.004286b0
nop word cs:[eax + eax]
Function at 0x40f710
Capabilities:
Get common file path

Disassembly:
push edi
push esi
sub esp, 0x208
lea esi, [esp + 0x104]
push 0x104
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
jbe 0x40f789
mov edi, esp
push 0x104
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push edi
push 0
push 0x5788c8
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40f79a
push str.wbTD
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno_1
add esp, 0x20c
pop esi
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempPath_failed__error__ld
call fcn.004286b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempFileName_failed__error__ld
call fcn.004286b0
nop dword [eax + eax]
Function at 0x415700
Capabilities:
Parse credit card information

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, ebp
je 0x415800
mov edi, ecx
movsx eax, byte [esi]
cmp eax, 0x5b
jg 0x4157b5
cmp eax, 0x24
je 0x4157da
cmp eax, 0x28
jne 0x415800
lea eax, [esi + 1]
cmp eax, ebp
je 0x415800
cmp byte [eax], 0x3f
jne 0x415800
lea eax, [esi + 2]
cmp eax, ebp
je 0x415800
movsx eax, byte [eax]
cmp eax, 0x21
je 0x4158a1
cmp eax, 0x3d
jne 0x415800
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov ebx, esp
mov ecx, ebx
call fcn.00416290
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], eax
add esi, 3
mov ecx, ebx
push ebp
push esi
call fcn.00414ca0
mov esi, eax
mov ebx, dword [esp + 0x10]
mov ecx, edi
push dword [edi + 0x10]
push 0
jmp 0x4158e6
cmp eax, 0x5c
je 0x41580c
cmp eax, 0x5e
jne 0x415800
push 8
call fcn.00420210
add esp, 4
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov dword [eax], 0x57c490
jmp 0x4157f3
push 8
call fcn.00420210
add esp, 4
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov dword [eax], 0x57c4cc
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
mov dword [edi + 0x24], eax
inc esi
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea eax, [esi + 1]
cmp eax, ebp
je 0x415800
movzx eax, byte [eax]
cmp eax, 0x42
je 0x415856
cmp eax, 0x62
jne 0x415800
push 0x18
call fcn.00420210
add esp, 4
mov ebx, eax
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov dword [ebx], 0x57c508
lea ecx, [ebx + 8]
push edi
call fcn.0043eb60
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x14], 0
jmp 0x41588a
push 0x18
call fcn.00420210
add esp, 4
mov ebx, eax
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov dword [ebx], 0x57c508
lea ecx, [ebx + 8]
push edi
call fcn.0043eb60
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x14], 1
mov eax, dword [edi + 0x24]
mov dword [eax + 4], ebx
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 4]
mov dword [edi + 0x24], eax
add esi, 2
jmp 0x415800
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov ebx, esp
mov ecx, ebx
call fcn.00416290
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], eax
add esi, 3
mov ecx, ebx
push ebp
push esi
call fcn.00414ca0
mov esi, eax
mov ebx, dword [esp + 0x10]
mov ecx, edi
push dword [edi + 0x10]
push 1
lea eax, [esp + 8]
push eax
call fcn.004162d0
add dword [edi + 0x10], ebx
cmp esi, ebp
je 0x415909
cmp byte [esi], 0x29
jne 0x415909
inc esi
mov ecx, esp
call fcn.00412780
jmp 0x415800
call fcn.00416360
int3
Function at 0x427ee0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
mov dword [esp + 0xc], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0049ddc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]

Function at 0x427f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x5aad20]
test eax, eax
jle 0x428050
mov edx, dword [0x5aad24]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
cmp ecx, esi
ja 0x427f71
mov edi, dword [edx + 0x10]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x427fea
add ebx, 1
add edx, 0x14
cmp ebx, eax
jne 0x427f60
mov dword [esp], esi
call fcn.0049df20
test eax, eax
mov edi, eax
je 0x428077
lea esi, [ebx + ebx*4]
mov ebx, dword [0x5aad24]
shl esi, 2
add ebx, esi
mov dword [ebx + 0x10], eax
mov dword [ebx], 0
call fcn.0049e010
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x5aad24]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x428057
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x427ff2
add dword [0x5aad20], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x427fe3
cmp eax, 0x80
je 0x427fe3
cmp eax, 8
je 0x427fe3
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add esi, dword [0x5aad24]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x427fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00427ee0
nop
lea esi, [esi]
xor ebx, ebx
jmp 0x427f7b
mov eax, dword [0x5aad24]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00427ee0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00427ee0
mov esi, esi
lea edi, [edi]

Function at 0x4286b0
Capabilities:
Terminate process

Disassembly:
push edi
push esi
push eax
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp], eax
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push 0x57d4f8
push eax
call fcn.00428d60
add esp, 8
push 2
call esi
add esp, 4
push dword [esp]
push edi
push eax
call fcn.00428d80
add esp, 0xc
push 2
call esi
add esp, 4
push 0x57d50a
push eax
call fcn.00428d60
add esp, 8
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax]
Function at 0x429730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x1050
call fcn.004a1d40
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 8]
test byte [edx], 1
jne 0x429755
mov word [edx], 0
jmp 0x429762
mov ecx, dword [edx + 8]
mov byte [ecx], 0
mov dword [edx + 4], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov edi, dword [eax]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat32i64]
add esp, 8
cmp eax, 0xffffffff
je 0x4297f4
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp esi, 1
mov ecx, eax
sbb ecx, 0
jl 0x4297f4
xor ecx, ecx
mov edx, 0x7fffffff
cmp edx, esi
sbb ecx, eax
jl 0x4297f4
mov edx, esi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx]
mov dword [esp + 0xc], esi
and esi, 0xfffffffe
dec esi
test byte [ebx], 1
mov eax, esi
mov ecx, 0xa
cmove eax, ecx
cmp eax, edx
jb 0x4297ec
test byte [esp + 0xc], 1
mov eax, 0xa
cmove esi, eax
sub esi, edx
jbe 0x4297f4
cmp esi, 0x40
jb 0x4297f4
mov esi, edx
mov ecx, ebx
push 0
call fcn.00423ba0
mov edx, esi
mov ecx, ebx
push edx
call fcn.00423ba0
lea ebx, [esp + 0x4c]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x429807
call esi
cmp dword [eax], 4
jne 0x429830
push 0x1000
push ebx
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
cmp eax, 0xffffffff
je 0x429800
test eax, eax
jle 0x42982b
mov ecx, dword [ebp + 0xc]
push eax
push ebx
call fcn.00423e00
jmp 0x429807
sete al
jmp 0x429832
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x429a70
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
mov al, 1
test esi, esi
je 0x429ac5
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov ebp, dword [eax]
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
push esi
push edi
push ebp
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
cmp eax, 0xffffffff
jne 0x429aa9
call ebx
cmp dword [eax], 4
je 0x429a90
jmp 0x429ac3
test eax, eax
je 0x429ab7
add edi, eax
sub esi, eax
jne 0x429a90
mov al, 1
jmp 0x429ac5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], pe_nt_image_headers32
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x429ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x40]
mov al, 1
test esi, esi
je 0x429ba1
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ebp, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x429b21
mov edi, ebp
call ebp
mov dword [eax], 5
call edi
cmp dword [eax], 4
jne 0x429b9f
mov dword [esp + 8], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [esp]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x429b10
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
mov edi, ebp
je 0x429b1a
test eax, eax
je 0x429b93
mov ebp, edi
add ebx, eax
mov ecx, eax
sar ecx, 0x1f
add dword [esp], eax
adc dword [esp + 4], ecx
sub esi, eax
jne 0x429b21
mov al, 1
jmp 0x429ba1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], pe_nt_image_headers32
xor eax, eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x476690
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0xc], 8
mov dword [esp + 0xd], 0x746f6f62
mov dword [esp + 8], 0
mov byte [esp], 0xe
mov dword [esp + 1], 0x746f6f42
mov dword [esp + 4], 0x676e6974
mov esi, dword [ecx]
mov edi, esp
lea ebx, [esp + 0xc]
push 0
push edx
push eax
push edi
push ebx
call dword [esi + 0x20]
mov esi, eax
test byte [esp], 1
je 0x4766fc
push dword [esp + 8]
call fcn.004203b0
add esp, 4
test byte [esp + 0xc], 1
je 0x47670f
push dword [esp + 0x14]
call fcn.004203b0
add esp, 4
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
ret 8
Function at 0x47a170
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
cmp dword [ecx + 0x40], 0
je 0x47a317
mov esi, ecx
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x47a329
mov dword [esp], 0
mov eax, dword [esi + 0x54]
test al, 0x10
jne 0x47a1c7
test al, 8
je 0x47a31e
mov eax, dword [esi + 0x4c]
mov dword [esp + 4], eax
cmp byte [esi + 0x5a], 0
je 0x47a258
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, ecx
sar eax, 0x1f
xor ebx, ebx
jmp 0x47a2c4
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x14]
je 0x47a1e1
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0x34]
cmp eax, 0xffffffff
je 0x47a2de
lea ebp, [esi + 0x48]
nop word cs:[eax + eax]
mov dword [esp + 8], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x34]
add edx, eax
mov edi, dword [ecx]
lea ebx, [esp + 8]
push ebx
push edx
push eax
push ebp
call dword [edi + 0x14]
mov ebx, eax
mov edi, dword [esp + 8]
mov eax, dword [esi + 0x20]
sub edi, eax
push dword [esi + 0x40]
push edi
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, edi
jne 0x47a2de
cmp ebx, 1
je 0x47a1f0
cmp ebx, 2
je 0x47a2de
push dword [esi + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
test eax, eax
jne 0x47a2de
jmp 0x47a31e
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
sub edi, edx
test eax, eax
jle 0x47a284
mov edx, edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar edx, 0x1f
imul ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, edx
xor ebx, ebx
jmp 0x47a2c4
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x47a2bb
mov ebx, edi
sar ebx, 0x1f
mov ecx, dword [esi + 0x44]
sub eax, dword [esi + 8]
mov ebp, dword [ecx]
push eax
push edx
push dword [esi + 0x20]
lea eax, [esp + 0x10]
push eax
call dword [ebp + 0x20]
add eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
sub ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, ebx
mov bl, 1
jmp 0x47a2c4
mov eax, edi
sar eax, 0x1f
xor ebx, ebx
mov ecx, edi
xor edx, edx
neg ecx
sbb edx, eax
push 1
push edx
push ecx
push dword [esi + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
test eax, eax
je 0x47a2e7
mov dword [esp], 0xffffffff
jmp 0x47a31e
test bl, bl
je 0x47a2f2
mov eax, dword [esp + 4]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x54], 0
mov dword [esp], 0
mov eax, dword [esp]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0047a740
int3
Function at 0x47f8a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xdc
mov esi, ecx
mov eax, dword [edx]
lea ecx, [eax + 1]
test byte [eax], 1
mov edi, dword [eax + 8]
mov ebp, edi
cmove ebp, ecx
mov ebx, dword [edx + 0x10]
add ebp, dword [esp + 0xf0]
cmp ebp, ebx
je 0x47f903
mov dword [esp + 0x3c], str.Old_offset_mismatch:_expected:_0x:x__actual:_0x:x
mov dword [esp + 0x40], 0x35
test byte [eax], 1
cmove edi, ecx
sub ebx, edi
mov dword [esp + 0x24], ebx
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xf0]
jmp 0x47f956
mov ecx, dword [esp + 0xf4]
test byte [edx + 4], 1
je 0x47f915
mov eax, dword [edx + 0xc]
jmp 0x47f918
lea eax, [edx + 5]
add ecx, eax
mov edx, dword [edx + 0x14]
cmp ecx, edx
je 0x47fa51
mov dword [esp + 0x34], str.New_offset_mismatch:_expected:_0x:x__actual:_0x:x
mov dword [esp + 0x38], 0x35
sub edx, eax
mov dword [esp + 0x24], edx
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xf4]
mov dword [esp + 0xc], eax
lea edi, [esp + 0x44]
mov dword [esp], edi
call fcn.00480af0
mov dword [esp], edi
lea edi, [esp + 0x28]
mov ecx, edi
call fcn.00480300
sub esp, 4
mov ebx, dword [esp + 0xd4]
mov dword [esp], edi
lea ecx, [esp + 0x14]
call fcn.00423570
sub esp, 4
mov dword [esp + 0x20], ebx
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x15]
mov dword [esi + 1], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esi], al
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
test byte [esp + 0x28], 1
je 0x47f9e2
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004203b0
mov dword [esp + 0x44], 0x57bb68
lea edi, [esp + 0x84]
mov dword [esp + 0x84], 0x57bb90
mov dword [esp + 0x4c], 0x57bb7c
lea ebx, [esp + 0x50]
mov dword [esp + 0x50], 0x57bdd8
test byte [esp + 0x70], 1
je 0x47fa23
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.004203b0
mov ecx, ebx
call fcn.0042cdb0
mov dword [esp], 0x57bb9c
lea ecx, [esp + 0x44]
call fcn.0043b7e0
sub esp, 4
mov ecx, edi
call fcn.0042cc10
mov eax, esi
add esp, 0xdc
pop esi
pop edi
pop ebx
pop ebp
ret
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
jmp 0x47fa44