joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b58b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b22d

Function at 0x41b596
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b3bc

Function at 0x41b990
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409dd0
mov eax, dword [0x47ff40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041852c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b9d2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bb2e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425e70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x481d28]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cb60
mov ecx, dword [esi*4 + 0x481d28]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bb27
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bb27
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bb27
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cb60
add esp, 0x14
test edx, edx
jl 0x41bb27
jg 0x41ba9d
test eax, eax
jb 0x41bb27
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bb27
jl 0x41bab7
cmp dword [ebp - 0x1008], eax
ja 0x41bb27
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bad5
test ebx, ebx
je 0x41bb0e
cmp ecx, edi
jae 0x41bb0e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41baef
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bafb
cmp byte [ecx + 1], 0xa
jne 0x41bafb
inc ecx
jmp 0x41bafb
movzx eax, al
movsx eax, byte [eax + 0x480218]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bad5
cmp edx, ebx
jne 0x41bad5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bb2c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004092b4
leave
ret
Function at 0x41bffe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x481d28]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c03e
cmp byte [ebx], 0xa
jne 0x41c03e
or byte [eax + edi + 0x28], 4
jmp 0x41c043
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c141
mov al, byte [edx]
cmp al, 0x1a
je 0x41c123
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c072
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c097
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c0a1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c054
jmp 0x41c141
push 0
lea eax, [ebp - 0xc]
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 0x41c11e
cmp dword [ebp - 0xc], 0
je 0x41c11e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481d28]
test byte [eax + edi + 0x28], 0x48
je 0x41c0f8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c0e3
mov byte [esi], dl
jmp 0x41c0f4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481d28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c141
cmp byte [ebp - 1], 0xa
jne 0x41c107
cmp esi, ebx
jne 0x41c107
mov byte [esi], 0xa
jmp 0x41c140
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c141
mov byte [esi], 0xd
jmp 0x41c140
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481d28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c13d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c141
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c14a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x481d28]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c18d
cmp word [esi], dx
jne 0x41c18d
or byte [edi + eax + 0x28], 4
jmp 0x41c192
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c2e5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c2c5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c1d4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c20a
cmp eax, edx
jae 0x41c216
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c1ac
jmp 0x41c2e5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c2c1
cmp dword [ebp - 0x14], 0
je 0x41c2c1
mov eax, dword [ebx*4 + 0x481d28]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c299
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c262
mov word [esi], cx
jmp 0x41c295
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481d28]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481d28]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481d28]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c2e5
pop ebx
cmp word [ebp - 4], bx
jne 0x41c2aa
cmp esi, dword [ebp + 0xc]
jne 0x41c2aa
mov word [esi], bx
jmp 0x41c2e2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c2e5
push 0xd
jmp 0x41c2de
mov ecx, dword [ebx*4 + 0x481d28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c2dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c2e5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e0dc
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 0x41e179
push ebx
push esi
call fcn.0041e0a5
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.0041cd2a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e126
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e178
push edi
push eax
call fcn.00417686
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e146
call fcn.0041745c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e177
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cd2a
add esp, 0x20
test eax, eax
jne 0x41e165
push edi
call fcn.0041745c
jmp 0x41e16d
push ebx
call fcn.0041745c
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 0x425c70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425c9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425c9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x427000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x4813b8
mov ebx, ecx
call fcn.00401200
push eax
call fcn.004021f0
push 8
call fcn.00409271
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427062
push 4
call fcn.00409271
add esp, 4
test eax, eax
je 0x427040
mov dword [eax], 0x427bc0
jmp 0x427042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x4021d0
push 0
push 0
call fcn.00410396
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42709d
jmp 0x427064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4270aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4270b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00405ba5
add esp, 0xc
test eax, eax
jne 0x4270b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004092a1
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.00405d5b
push 1
call fcn.00405d5b
push 5
call fcn.00405d5b
push 2
call fcn.00405d5b
int3

Function at 0x4275d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24c
mov eax, dword [0x47ff40]
Function at 0x6d00396e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d0070c0]
jne 0x6d003978
repz ret
jmp fcn.6d003f95

Function at 0x6d003c50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x6d003c5f
pop dword [ebp - 0x2c]
mov eax, 0xefe52068
add eax, 0x7d1b1bf7
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x90272e4c
sub dword [ebp - 0x3c], 0x41d4e901
mov dword [ebp - 0x38], 0xe78430f3
sub dword [ebp - 0x38], 0xb550e4ae
mov dword [ebp - 0x34], 0xfded8acc
add dword [ebp - 0x34], 0x4e5eb962
mov dword [ebp - 0x30], 0x7fcc48b8
sub dword [ebp - 0x30], 0x7fcc48b8
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x6a4b13e3
sub eax, 0xfd4ac3bf
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x30339adf
sub dword [ebp - 0x3c], 0xbbc13189
mov dword [ebp - 0x38], 0x311f3ebb
sub dword [ebp - 0x38], 0xefb2dd46
mov dword [ebp - 0x34], 0x2c1939dd
add dword [ebp - 0x34], 0x3756328f
mov dword [ebp - 0x30], 0x7335a655
sub dword [ebp - 0x30], 0x7335a655
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xa5190e44
add eax, 0xc7e741dc
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3643b
push 0
call eax
mov ecx, 0x93153623
sub ecx, 0x9314f035
xor esi, esi
add esi, eax
mov edx, 0xab33db10
add edx, 0xc1ccdaf0
add edx, dword [ebp - 0x2c]
mov ebx, 0x6bb23419
xor dword [ebp - 0x1c], edi
mov edi, dword [edx]
sub dword [ebp - 0x10], ecx
add edi, ebx
sub dword [ebp - 0x10], eax
mov dword [esi], edi
xor dword [ebp - 0x20], 0xc9ca38f5
add esi, 0xf099bcd1
sub esi, 0xf099bccd
add edx, 0x2cccdea2
sub edx, 0x2cccde9e
loop 0x6d003d7d
add eax, 0xc4763e90
add eax, 0x3b8acbfb
mov ebx, eax
add eax, 5
mov ecx, 0x9748247
sub ecx, 0x9c748247
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4aac7d
Capabilities:
Encode data using xor

Disassembly:
retf
add eax, dword [ebx + 0xb8b1d41]
mov eax, dword [0xc72f1d8]
wait
jg 0x4aac20
out dx, eax
in eax, dx
outsb dx, byte [esi]
out 0x4f, eax
mov ch, byte [0x1f656c66]
pop ds

Function at 0x4bac8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c43b0
cmp edx, dword [eax]
je 0x4bacaf
add eax, 8
inc ecx
cmp eax, 0x4c4440
jl 0x4baca0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c43b0]
jne 0x4baddd
mov eax, dword [0x4c8d3c]
cmp eax, 1
je 0x4badb7
test eax, eax
jne 0x4bace0
cmp dword [0x4c42d8], 1
je 0x4badb7
cmp edx, 0xfc
je 0x4baddd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bad17
lea eax, [ebp - 0x1a4]
push 0x4bfd10
push eax
call fcn.004bb670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbb00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bad5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbb00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfd0c
push edi
call fcn.004bd9d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfcf0
push eax
call fcn.004bb670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb680
lea eax, [ebp - 0xa0]
push 0x4bfcec
push eax
call fcn.004bb680
push dword [esi + 0x4c43b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb680
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfcc4
push eax
call fcn.004bd944
add esp, 0x2c
pop edi
jmp 0x4baddd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c43b4]
push 0
push eax
push dword [esi]
call fcn.004bbb00
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 0x401caf
Capabilities:
Check mutex on windows

Disassembly:
push 0x118
mov eax, 0x46cb34
call fcn.00462d75
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x401cca
mov eax, dword [edi]
jmp 0x401ccc
mov eax, edi
push eax
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x88], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401edc
cmp dword [ebp - 0x88], esi
je 0x401edc
lea eax, [ebp - 0x124]
push eax
call fcn.00402ec2
mov dword [ebp - 4], esi
lea eax, [ebp - 0x124]
push eax
mov ecx, edi
call fcn.0040632c
pop ecx
push 0xf
pop ebx
push 0x16
push str.helper::wait_b5t_mutex
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
call fcn.00403e19
mov byte [ebp - 4], 1
push 0x51
push str.e:code_b5m_client_bang5tao_b5tclient_sourceuninst.._B5TLib_common_helper_inl.h
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x68], 0
call fcn.00403e19
mov byte [ebp - 4], 2
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x124]
call fcn.00402f86
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x30]
push eax
push 0x30d
lea eax, [ebp - 0x68]
push eax
push 1
push ecx
call fcn.00439dc3
pop ecx
push eax
call fcn.0043a160
mov byte [ebp - 4], 2
push 1
xor edi, edi
lea esi, [ebp - 0x84]
call fcn.004041e3
mov byte [ebp - 4], 1
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x68]
call fcn.00403eaf
mov byte [ebp - 4], 0
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00403eaf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.00402f43
lea ecx, [ebp - 0xd4]
call fcn.004029cc
push dword [ebp + 8]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x124]
push eax
call fcn.00403575
mov dword [ebp - 4], 4
push edi
push ecx
lea eax, [ebp - 0x124]
push 0x4768dc
push eax
call fcn.0040667a
add esp, 0xc
push eax
call fcn.004027f8
push 0x16
push str.helper::wait_b5t_mutex
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x4c], 0
call fcn.00403e19
mov byte [ebp - 4], 5
push 0x51
push str.e:code_b5m_client_bang5tao_b5tclient_sourceuninst.._B5TLib_common_helper_inl.h
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
call fcn.00403e19
mov byte [ebp - 4], 6
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x124]
call fcn.00403624
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x30f
push 2
call fcn.00439dc3
lea ecx, [ebp - 0x30]
mov ebx, eax
call fcn.00439e02
mov byte [ebp - 4], 6
push esi
push 1
lea ecx, [ebp - 0x84]
call fcn.00403eaf
mov byte [ebp - 4], 5
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00403eaf
mov byte [ebp - 4], 4
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.00403eaf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.004035e1
lea ecx, [ebp - 0xd4]
call fcn.00402925
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00462df8
ret
Function at 0x401ee2
Capabilities:
Print debug messages

Disassembly:
push 0x444
mov eax, 0x469bd4
call fcn.00462d75
xor eax, eax
push 0x206
mov word [ebp - 0x418], ax
xor edi, edi
lea eax, [ebp - 0x416]
push edi
push eax
call fcn.004556a0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x402061
push 0x104
lea ecx, [ebp - 0x418]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402061
lea eax, [ebp - 0x418]
push eax
lea esi, [ebp - 0x434]
call fcn.00402684
mov dword [ebp - 4], edi
push 1
push 0x4768d4
mov eax, esi
call fcn.00404159
cmp eax, 0xffffffff
jne 0x401f6d
or dword [ebp - 4], eax
push 1
jmp 0x402054
push eax
push edi
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.0040278c
mov byte [ebp - 4], 1
mov ebx, eax
lea eax, [ebp - 0x434]
call fcn.00403eff
mov byte [ebp - 4], 0
push 1
xor edi, edi
lea esi, [ebp - 0x450]
call fcn.004041e3
lea eax, [ebp - 0x450]
push str._resconfig.dll
push eax
lea ebx, [ebp - 0x434]
call fcn.0040680b
pop ecx
pop ecx
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x401fcb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x48f008], eax
mov byte [ebp - 4], 0
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
lea esi, [ebp - 0x450]
call fcn.004041e3
mov eax, dword [0x48f008]
test eax, eax
jne 0x40203d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004556a0
push esi
lea eax, [ebp - 0x210]
push str.m_hDll_is_NULL_Pointer__error_is__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40204f
push str.GenerateExceptionDumpFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40204f
call eax
or dword [ebp - 4], 0xffffffff
push ebx
xor edi, edi
lea esi, [ebp - 0x434]
call fcn.004041e3
call fcn.00462df8
ret
Function at 0x4086f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b09a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48b370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea ecx, [edi + 0x68]
mov dword [edi], 0x4770f4
call fcn.004042e9
lea esi, [edi + 0x10]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00408570
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00405242
mov byte [ebp - 4], 2
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x48f150]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a548
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48b370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x44], esi
je 0x4094c4
cmp byte [ebx + 0x49], 0
je 0x4094c4
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4094b1
mov ecx, 0xf
mov dword [ebp - 0x18], ecx
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40937a
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x409393
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4093d1
dec eax
je 0x4093d5
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
je 0x4094bf
call fcn.004025cc
xor al, al
jmp 0x4094c6
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4093e5
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x409412
cmp edi, 0x10
jae 0x4093f4
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0044de39
add esp, 0x10
cmp esi, eax
jne 0x4094a2
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4094b5
test esi, esi
jne 0x409387
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4094e2
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4094e2
cmp edi, esi
jae 0x40948b
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405db7
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x409387
mov ecx, eax
cmp edi, 0x10
jae 0x409467
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x409482
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x409381
test esi, esi
jne 0x40945d
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x40949a
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x409381
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025cc
xor al, al
jmp 0x4094c6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004025cc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044cdc7
mov esp, ebp
pop ebp
ret
push 0x476a80
call fcn.00462317
int3