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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x412516
jl 0x41250d
test edi, edi
jne 0x412516
xor eax, eax
xor edx, edx
jmp 0x4125d7
cmp dword [ebx + 0x38], 0
je 0x41252b
push eax
push edi
push dword [ebp + 8]
call fcn.004125dd
jmp 0x4125d7
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x412572
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x412572
cmp eax, edi
jb 0x41254c
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00416490
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x412578
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4125cc
mov ecx, ebx
call fcn.00411d44
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4125b7
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041c6b4
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4125cc
jmp 0x41258a
test edx, edx
je 0x4125cc
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041c6b4
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x414b50
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414b8f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414b8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414b8f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414b8f
cmp dword [ecx + 0x74], 0xe
jbe 0x414b8f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4228c6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438a08
push 0x438a00
push str.FlsAlloc
push 0x1f
call fcn.00422731
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4228fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341c0]
call esi
jmp 0x422900
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422944
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438a18
push 0x438a10
push str.FlsGetValue
push 0x21
call fcn.00422731
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42297b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4341c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
Function at 0x422983
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438a20
push 0x438a18
push str.FlsSetValue
push 0x22
call fcn.00422731
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4229bd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4341c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
Function at 0x427c75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00414db0
mov eax, dword [0x441040]
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.004254cf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x427cb7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x427e13
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00431f20
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 + 0x443508]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00428e4b
mov ecx, dword [esi*4 + 0x443508]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x427e0c
cmp eax, dword [ecx + edi + 0x24]
jne 0x427e0c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x427e0c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00428e4b
add esp, 0x14
test edx, edx
jl 0x427e0c
jg 0x427d82
test eax, eax
jb 0x427e0c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x427e0c
jl 0x427d9c
cmp dword [ebp - 0x1008], eax
ja 0x427e0c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x427dba
test ebx, ebx
je 0x427df3
cmp ecx, edi
jae 0x427df3
mov al, byte [ecx]
cmp al, 0xd
jne 0x427dd4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x427de0
cmp byte [ecx + 1], 0xa
jne 0x427de0
inc ecx
jmp 0x427de0
movzx eax, al
movsx eax, byte [eax + 0x4414d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x427dba
cmp edx, ebx
jne 0x427dba
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x427e11
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413da9
leave
ret
Function at 0x4282e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x443508]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x428323
cmp byte [ebx], 0xa
jne 0x428323
or byte [edi + eax + 0x28], 4
jmp 0x428328
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x428427
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42840a
inc eax
cmp dl, 0xd
je 0x428354
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42837a
cmp eax, ecx
jae 0x428388
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42833c
jmp 0x428427
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x428405
cmp dword [ebp - 0x10], 0
je 0x428405
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x443508]
test byte [eax + edi + 0x28], 0x48
je 0x4283df
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4283ca
mov byte [esi], dl
jmp 0x4283db
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x443508]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x428427
cmp byte [ebp - 1], 0xa
jne 0x4283ee
cmp esi, ebx
jne 0x4283ee
mov byte [esi], 0xa
jmp 0x428426
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00428e69
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x428427
mov byte [esi], 0xd
jmp 0x428426
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x443508]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x428424
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x428427
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x428430
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x443508]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x428476
cmp word [ebx], dx
jne 0x428476
or byte [eax + edi + 0x28], 4
jmp 0x42847b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4285de
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4285be
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4284bc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4284f2
cmp eax, edx
jae 0x428500
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x428497
jmp 0x4285de
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x4285b9
cmp dword [ebp - 0x18], 0
je 0x4285b9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x443508]
test byte [eax + edi + 0x28], 0x48
je 0x42858f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x428553
mov word [esi], cx
jmp 0x42858a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x443508]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x443508]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x443508]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4285de
pop eax
cmp word [ebp - 4], ax
jne 0x42859f
cmp esi, ebx
jne 0x42859f
mov word [esi], ax
jmp 0x4285db
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00428e69
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4285de
push 0xd
pop eax
jmp 0x42859a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x443508]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4285d8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4285de
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a2c0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42a35d
push ebx
push esi
call fcn.0042a289
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.004290eb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42a30a
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a35c
push edi
push eax
call fcn.0042455e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42a32a
call fcn.0042421b
pop ecx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42a35b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004290eb
add esp, 0x20
test eax, eax
jne 0x42a349
push edi
call fcn.0042421b
jmp 0x42a351
push ebx
call fcn.0042421b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42a360
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42a371
pop esi
ret
push ebx
push edi
push esi
call fcn.0042a289
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042455e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42a399
push ebx
push esi
push edi
call fcn.00416490
add esp, 0xc
push 0
call fcn.0042421b
pop ecx
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42aaf3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a60e

Function at 0x42cfbb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00422f5a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x42d02a
cmp esi, dword [ebp - 4]
je 0x42d025
cmp dword [ebp + 0xc], 0
je 0x42d025
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42d002
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042cb0d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42d02c
xor eax, eax
inc eax
jmp 0x42d02c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x431ee0
Capabilities:
Parse pe header

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

Function at 0x16b08d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x499000]
push edi
or ebp, 0xffffffff
jmp 0x16b08f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16b08f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16b08e8
mov eax, 1
add ebx, ebx
jne 0x16b090b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16b091c
jne 0x16b093b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16b093b
dec eax
add ebx, ebx
jne 0x16b0928
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16b0900
add ebx, ebx
jne 0x16b0937
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16b098d
xor ecx, ecx
sub eax, 3
jb 0x16b0953
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16b09c2
sar eax, 1
mov ebp, eax
jmp 0x16b095e
add ebx, ebx
jne 0x16b095e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16b092c
inc ecx
add ebx, ebx
jne 0x16b096c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16b092c
add ebx, ebx
jne 0x16b0979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16b096e
jne 0x16b098a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16b096e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16b09ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16b099e
jmp 0x16b08ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16b09ac
add edi, ecx
jmp 0x16b08ee
pop esi
mov edi, esi
mov ecx, 0xc608
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16b09ca
cmp byte [edi], 0x24
jne 0x16b09ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x16b09cf
lea edi, [esi + 0x7ac000]
mov eax, dword [edi]
or eax, eax
je 0x16b0a3e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x82babc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x82bbe8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16b09fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x82bbec]
or eax, eax
je 0x16b0a38
mov dword [ebx], eax
add ebx, 4
jmp 0x16b0a19
call dword [esi + 0x82bbfc]
mov ebp, dword [esi + 0x82bbf0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x16b0a72
sub esp, 0xffffff80
jmp 0x1158aec
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x67e468], 0
je 0x401016
xor eax, eax
jmp 0x401232
cmp dword [0x67e464], 0
je 0x401029
mov eax, dword [0x67e464]
jmp 0x401232
push 0x24
push 0
push 0x67e440
call fcn.005c7c50
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x67e440], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x67e444], eax
cmp dword [0x67e444], 0
jne 0x4010ce
mov dword [0x67e468], 1
cmp dword [0x67e444], 0
je 0x401081
mov eax, dword [0x67e444]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x67e448], 0
mov dword [0x67e44c], 0
mov dword [0x67e450], 0
mov dword [0x67e454], 0
mov dword [0x67e458], 0
mov dword [0x67e45c], 0
mov dword [0x67e460], 0
xor eax, eax
jmp 0x401232
push str.ImagehlpApiVersionEx
mov ecx, dword [0x67e444]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x67e448], eax
push str.SymInitialize
mov edx, dword [0x67e444]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x67e44c], eax
push str.SymSetOptions
mov eax, dword [0x67e444]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x67e450], eax
push str.SymGetOptions
mov ecx, dword [0x67e444]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x67e454], eax
push str.SymLoadModule64
mov edx, dword [0x67e444]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x67e458], eax
push str.SymGetModuleInfo64
mov eax, dword [0x67e444]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x67e45c], eax
push str.SymFromName
mov ecx, dword [0x67e444]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x67e460], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.005c7c50
add esp, 0xc
mov eax, 0xb
mov word [ebp - 8], ax
cmp dword [0x67e448], 0
je 0x4011b3
cmp dword [0x67e44c], 0
je 0x4011b3
cmp dword [0x67e458], 0
je 0x4011b3
cmp dword [0x67e45c], 0
je 0x4011b3
cmp dword [0x67e460], 0
jne 0x4011b8
jmp 0x401062
lea ecx, [ebp - 8]
push ecx
call dword [0x67e448]
movzx edx, word [ebp - 8]
cmp edx, 0xb
jge 0x4011d0
jmp 0x401062
push 0
push 0
mov eax, dword [0x67e440]
push eax
call dword [0x67e44c]
test eax, eax
jne 0x4011e9
jmp 0x401062
cmp dword [0x67e454], 0
je 0x401223
cmp dword [0x67e450], 0
je 0x401223
call dword [0x67e454]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
or edx, 0x2704
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x67e450]
mov dword [0x67e464], 0x67e440
mov eax, dword [0x67e464]
mov esp, ebp
pop ebp
ret
Function at 0x401790
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00401860
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x401855
mov edx, dword [ebp - 4]
cmp edx, dword [0x670464]
jb 0x4017d5
mov eax, dword [ebp - 4]
cmp eax, dword [0x670468]
ja 0x4017d5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x4017a5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.005c7c50
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4017fb
jmp 0x401855
cmp dword [ebp - 0x10], 0x10000
jne 0x40183e
cmp dword [ebp - 0x14], 0x10000
jb 0x40183e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x401831
mov eax, dword [ebp - 0x24]
jmp 0x401857
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x401850
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00401860
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4017a5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401890
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00401970
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x40195d
mov edx, dword [ebp - 4]
cmp edx, dword [0x670464]
jb 0x4018da
mov eax, dword [ebp - 4]
cmp eax, dword [0x670468]
ja 0x4018da
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x4018aa
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.005c7c50
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x401900
jmp 0x40195d
cmp dword [ebp - 0x10], 0x10000
jne 0x401943
cmp dword [ebp - 0x14], 0x10000
jb 0x401943
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x401936
mov eax, dword [ebp - 0x24]
jmp 0x40195f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x401958
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00401970
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4018aa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401cc0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x67e47c], eax
je 0x401cde
mov eax, 0x10dd
jmp 0x401dbf
mov eax, dword [0x67e48c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401d5c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x401d3a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x401d3a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00401e30
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0049a336
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x401ce6
mov dword [0x67e48c], 0
call fcn.00401dd0
mov ecx, dword [0x67e488]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x401da9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0049a336
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x401d74
mov dword [0x67e488], 0
mov dword [0x67e47c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret