joyce8/EMBER2024-capa huggingface dataset:
Function at 0x75bbcb87
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, word [ebx + 2]
push edi
push ecx
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [0x77461614]
adc eax, 0x77461614
mov dword [ebp + 0x10], eax
cmp eax, edi
je 0x75bd1ef6
mov dword [ebp - 8], eax
mov ax, word [ebx + 2]
push esi
mov word [ebp - 0xa], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
cmp dword [ebp + 0x14], edi
je 0x75bbcc85
call 0x75b9c0e9
mov esi, eax
cmp esi, edi
jl 0x75bd1f00
mov eax, dword [ebp - 8]
mov si, word [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x14], si
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x2c]
cmp dword [ebp + 0x18], edi
jne 0x75bd1f1d
push eax
push 0x2000000
push dword [ebp + 0xc]
call dword [0x774615c4]
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x75bbcc65
mov ecx, dword [ebp - 8]
sub word [ebp - 0xc], si
movzx eax, si
shr eax, 1
lea eax, [ecx + eax*2]
push 0x5c
pop ecx
mov dword [ebp - 8], eax
cmp cx, word [eax]
jne 0x75bbcc5a
mov ecx, 0xfffe
add word [ebp - 0xc], cx
inc eax
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [0x77461470]
push dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [0x77461630]
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0x14
call 0x75b9c595
jmp 0x75bbcbdb
sbb byte [eax], al
shl byte [eax + ebx], 0
sbb byte gs:[eax], al
fdivr st(7)
invalid
jb 0x75bd1f6f
popal
arpl word [ebx + 0x61], bp
dec ecx
add byte fs:[eax + 0x6dffffff], ch
add byte [ecx], ah
arpl word [eax], ax
push 0x6e006900
add byte [ebp], ah
add byte cs:[ecx], ch
outsb dx, byte [esi]
add byte [esi], ah
pop edi
add byte [eax], bh
cmp byte [eax], al
add byte ss:[edi], bl
outsb dx, byte [esi]
add byte [ebp], ah
jne 0x75bd1f52
je 0x75bd1f54
jb 0x75bd1f56
popal
add byte [eax + eax + 0x5f], ch
add byte [ecx], ah
cmp dword [eax], eax
aaa
add byte [ecx], ah
xor al, byte [eax]
popal
add byte [eax], dh
add byte [eax + eax + 0x30], ah
add byte [esi], ah
bound eax, qword [eax]
add byte [edx], ah
arpl word [eax], ax
add byte ss:[esi], dh
add byte [ecx], bh
add byte [esi], dh
add byte [eax], al
add byte [eax + 0x61], dl
cwde
invalid
Function at 0x75be2f50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x24]
mov eax, dword [eax + 0xa0]
sub ecx, dword [eax + 0xc]
neg ecx
sbb ecx, ecx
inc ecx
mov eax, ecx
ret
Function at 0x10012076
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10012085
pop dword [ebp - 0x24]
mov eax, 0x794b34f9
sub eax, 0x694a1474
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x5df7b5b
sub dword [ebp - 0x34], 0xb78d3610
mov dword [ebp - 0x30], 0xfa3fd54c
add dword [ebp - 0x30], 0x37f376f9
mov dword [ebp - 0x2c], 0xae15a797
add dword [ebp - 0x2c], 0x9e369c97
mov dword [ebp - 0x28], 0x17759078
add dword [ebp - 0x28], 0xe88a6f88
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x1ee05138
add dword [ebp - 0x34], 0x5592181e
mov dword [ebp - 0x30], 0x6e64975c
add dword [ebp - 0x30], 0xd307ca19
mov dword [ebp - 0x2c], 0xa561e32f
add dword [ebp - 0x2c], 0xbe0d893d
mov dword [ebp - 0x28], 0xf7811c1f
add dword [ebp - 0x28], 0x87ee3e1
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x4ea9ec74
sub eax, 0x3ea80bf0
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3edbd
push 0
call eax
mov ecx, 0x4e46
mov edi, eax
mov esi, 0x1f2b2197
add esi, 0xf0d83669
add esi, dword [ebp - 0x24]
mov ebx, 0xe371e1e5
sub ebx, 0x4eed1eba
add dword [ebp - 0x10], 0xa38a8010
mov edx, dword [esi]
xor dword [ebp - 0x1c], eax
add edx, ebx
sub dword [ebp - 0x20], ebx
mov dword [edi], edx
add edi, 4
add esi, 0xebb078ac
add esi, 0x144f8758
loop 0x1001219c
add eax, 0xd91ad8f1
sub eax, 0xd919ad06
mov ebx, eax
add eax, 0xe50a7c7
add eax, 0xf1af583e
mov ecx, 0x7f94692b
add ecx, 0x906b96d5
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x135125f8
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3e8b66c9
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x423e80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x423ea2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423ea9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423e98
mov eax, 1
add ebx, ebx
jne 0x423ebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423eb0
jne 0x423ecc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423eb0
xor ecx, ecx
sub eax, 3
jb 0x423ee0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423f52
mov ebp, eax
add ebx, ebx
jne 0x423eeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423ef8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423f1c
inc ecx
add ebx, ebx
jne 0x423f08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423efd
jne 0x423f19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423efd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423f3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423f2d
jmp 0x423e9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423f3c
add edi, ecx
jmp 0x423e9e
pop esi
mov edi, esi
mov ecx, 0x40f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423f5a
cmp byte [edi], 2
jne 0x423f5a
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 eax, ebx
loop 0x423f5f
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423fd7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29dc0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29e60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423f8c
mov ecx, edi
jns 0x423fbb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x29e64]
or eax, eax
je 0x423fd1
mov dword [ebx], eax
add ebx, 4
jmp 0x423fa9
call dword [esi + 0x29e68]
popal
jmp 0x40a6cf

Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40316d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x4105f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
mov edi, ebx
mov eax, dword [edi]
cmp eax, 0x63
jbe 0x4031a8
mov eax, dword [esi]
mov edi, esi
cmp eax, 0x63
ja 0x4031c1
push 0x50
lea edx, [ebp - 0xf4]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0xf4]
mov dword [edi], eax
mov edi, dword [ebp - 0xf8]
test edi, edi
je 0x403223
push dword [ebx]
lea eax, [ebp - 0xa4]
push dword [esi]
push 0x402788
push 0xa0
push eax
call fcn.004030ae
add esp, 0x14
lea ecx, [ebp - 0xa4]
test eax, eax
lea edx, [ecx + 1]
sets al
dec al
and byte [ebp - 0xa4], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4031fe
push 0
lea eax, [ebp - 0xf8]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0xa4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403231
push 0
push dword [esi]
push dword [ebx]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406053
leave
ret 8
Function at 0x403aaf
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x40f589
call fcn.0040c16e
mov edi, ecx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x3e
jg 0x403bf1
xor eax, eax
cmp dword [edi + 0x1c], eax
je 0x403ae2
push 0x2e
lea ecx, [edi + 0x28]
pop edx
jmp 0x403bfb
mov dword [ebp - 0x10], eax
push 1
mov dword [ebp - 4], eax
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov esi, eax
mov dword [ebp - 0x18], esi
and dword [ebp - 0x14], 0
push ebx
push 1
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.msi.dll_MsiReinstallFeatureFromDescriptorW]
test eax, eax
je 0x403b1c
push 0x27
mov dword [edi + 0xc], 1
mov ecx, ebx
pop edx
jmp 0x403bfb
cmp dword [ebp - 0x10], 0
je 0x403b2b
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x402948
push dword [edi + 4]
call dword [sym.imp.msi.dll_MsiEnableUIPreview]
test eax, eax
je 0x403b52
push 0x1a
lea eax, [edi + 0x28]
mov ecx, edi
push eax
call fcn.00403360
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
je 0x403b6d
push 0x1b
lea eax, [edi + 0x28]
mov ecx, edi
push eax
call fcn.00403360
cmp dword [ebp - 0x14], 0
je 0x403b7c
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
cmp eax, 0x103
jne 0x403b9b
mov edx, 0x402970
jmp 0x403bf6
push dword [ebp - 0x14]
push 6
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordClearData]
test eax, eax
je 0x403bb7
push 0x2b
push ebx
mov ecx, edi
call fcn.00403360
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
cmp dword [ebp - 0x14], 0
je 0x403bcf
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test esi, esi
je 0x403bda
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x10], 0
je 0x403be9
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
call fcn.0040c13c
ret 4
mov edx, 0x40290c
mov ecx, 0x402934
call fcn.00403242
int3
Function at 0x403c01
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x40f589
call fcn.0040c16e
mov edi, ecx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x3e
jg 0x403d43
xor eax, eax
cmp dword [edi + 0x1c], eax
je 0x403c34
push 0x2e
lea ecx, [edi + 0x28]
pop edx
jmp 0x403d4d
mov dword [ebp - 0x10], eax
push 1
mov dword [ebp - 4], eax
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov esi, eax
mov dword [ebp - 0x18], esi
and dword [ebp - 0x14], 0
push ebx
push 1
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.msi.dll_MsiReinstallFeatureFromDescriptorW]
test eax, eax
je 0x403c6e
push 0x27
mov dword [edi + 0xc], 1
mov ecx, ebx
pop edx
jmp 0x403d4d
cmp dword [ebp - 0x10], 0
je 0x403c7d
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x4029b4
push dword [edi + 4]
call dword [sym.imp.msi.dll_MsiEnableUIPreview]
test eax, eax
je 0x403ca4
push 0x1a
lea eax, [edi + 0x28]
mov ecx, edi
push eax
call fcn.00403360
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
je 0x403cbf
push 0x1b
lea eax, [edi + 0x28]
mov ecx, edi
push eax
call fcn.00403360
cmp dword [ebp - 0x14], 0
je 0x403cce
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
cmp eax, 0x103
jne 0x403ced
mov edx, 0x4029e0
jmp 0x403d48
push dword [ebp - 0x14]
push 6
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordClearData]
test eax, eax
je 0x403d09
push 0x2b
push ebx
mov ecx, edi
call fcn.00403360
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewGetErrorW]
cmp dword [ebp - 0x14], 0
je 0x403d21
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test esi, esi
je 0x403d2c
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x10], 0
je 0x403d3b
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
call fcn.0040c13c
ret 4
mov edx, 0x402988
mov ecx, 0x402934
call fcn.00403242
int3
Function at 0x405a20
Capabilities:
Accept command line arguments

Disassembly:
call fcn.004078bd
jmp 0x405a2a
push 0x170
push 0x40f890
call fcn.00407a4c
push dword [0x4105b0]
call fcn.00406627
pop ecx
mov dword [0x4105b0], eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x405a7c
mov eax, 0xff
jmp 0x405bd2
mov esi, dword [ebp - 0x124]
and esi, 0x7fff
mov edi, dword [ebp - 0x120]
cmp edi, 2
je 0x405a99
or esi, 0x8000
mov edx, dword [ebp - 0x12c]
mov ecx, edx
shl ecx, 8
mov eax, dword [ebp - 0x128]
add ecx, eax
mov dword [0x410ec8], edi
mov dword [0x410ed0], ecx
mov dword [0x410ed4], edx
mov dword [0x410ed8], eax
mov dword [0x410ecc], esi
call fcn.00405bef
mov edi, eax
mov dword [ebp - 0x13c], edi
push 1
call fcn.00407205
pop ecx
test eax, eax
jne 0x405aea
push 0x1c
call fcn.00405c35
pop ecx
call fcn.00406aa2
test eax, eax
jne 0x405afb
push 0x10
call fcn.00405c35
pop ecx
and dword [ebp - 4], 0
call fcn.00407235
test eax, eax
jns 0x405b10
push 0x1b
call fcn.00406d60
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4127e0], eax
call fcn.00407955
mov dword [0x410b80], eax
call fcn.004074b3
test eax, eax
jns 0x405b36
push 8
call fcn.00406d60
pop ecx
call fcn.004077a3
test eax, eax
jns 0x405b47
push 9
call fcn.00406d60
pop ecx
push 1
call fcn.00406db3
pop ecx
test eax, eax
je 0x405b5a
push eax
call fcn.00406d60
pop ecx
call fcn.004079ea
test byte [ebp - 0x154], 1
je 0x405b71
movzx ecx, word [ebp - 0x150]
jmp 0x405b74
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x138], esi
test edi, edi
je 0x405be2
call fcn.00406da4
jmp 0x405bc9
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push esi
call fcn.00407052
push esi
call fcn.00406c90
int3
Function at 0x406aa2
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call fcn.004068ed
mov esi, eax
test esi, esi
je 0x406c1f
push 0x401344
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401350
push esi
mov dword [0x410ea8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40135c
push esi
mov dword [0x410eac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401368
push esi
mov dword [0x410eb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x410ea8], 0
mov dword [0x410eb4], eax
je 0x406b18
cmp dword [0x410eac], 0
je 0x406b18
cmp dword [0x410eb0], 0
je 0x406b18
test eax, eax
jne 0x406b40
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x410eac], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x410eb0], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x410ea8], 0x406660
mov dword [0x410eb4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4105c4], eax
cmp eax, 0xffffffff
je 0x406c24
push dword [0x410eac]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x406c24
call fcn.00406e52
push dword [0x410ea8]
call fcn.00406712
push dword [0x410eac]
mov dword [0x410ea8], eax
call fcn.00406712
push dword [0x410eb0]
mov dword [0x410eac], eax
call fcn.00406712
push dword [0x410eb4]
mov dword [0x410eb0], eax
call fcn.00406712
add esp, 0x10
mov dword [0x410eb4], eax
call fcn.0040a055
test eax, eax
je 0x406c1f
push 0x406790
push dword [0x410ea8]
call fcn.0040669d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x4131e4]
call esi
mov dword [0x4105c0], eax
cmp eax, 0xffffffff
je 0x406c1f
push 0x214
push 1
call fcn.0040a0bc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x406c1f
push edi
push dword [0x4105c0]
push dword [0x410eb0]
call fcn.0040669d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x4131e4]
call esi
test eax, eax
jne 0x406c29
push edi
call fcn.00409df5
pop ecx
call fcn.00406c3c
xor eax, eax
pop edi
pop esi
ret
push 0
push edi
call fcn.004069c9
pop ecx
pop ecx
or dword [edi + 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x406c26
Function at 0x4070a1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
cmp edi, dword [esi*8 + 0x401010]
je 0x4070c0
inc esi
cmp esi, 0x17
jb 0x4070b1
cmp esi, 0x17
jae 0x407200
push 3
call fcn.0040afd7
pop ecx
cmp eax, 1
je 0x4071ca
push 3
call fcn.0040afd7
pop ecx
test eax, eax
jne 0x4070f3
cmp dword [0x4105b0], 1
je 0x4071ca
cmp edi, 0xfc
je 0x407200
push 0x401940
push 0x314
mov edi, 0x410ef0
push edi
call fcn.0040aee8
add esp, 0xc
test eax, eax
je 0x407128
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409d4f
add esp, 0x14
push 0x104
push 0x410f09
push ebx
mov byte [0x41100d], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40716b
push 0x40195c
push 0x2fb
push 0x410f09
call fcn.0040aee8
add esp, 0xc
test eax, eax
je 0x40716b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409d4f
add esp, 0x14
push 0x401974
push 0x314
push edi
call fcn.0040af58
add esp, 0xc
test eax, eax
je 0x40718f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409d4f
add esp, 0x14
push dword [esi*8 + 0x401014]
push 0x314
push edi
call fcn.0040af58
add esp, 0xc
test eax, eax
je 0x4071b5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00409d4f
add esp, 0x14
push 0x12010
push 0x401978
push edi
call fcn.0040b023
add esp, 0xc
jmp 0x407200
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x407200
cmp edx, 0xffffffff
je 0x407200
mov esi, dword [esi*8 + 0x401014]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4071e9
push ebx
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407955
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x4079e7
xor edx, edx
push esi
mov esi, edi
cmp word [edi], dx
je 0x40798a
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x407985
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x407972
push ebx
push edx
push edx
push edx
sub esi, edi
push edx
sar esi, 1
inc esi
push esi
push edi
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x4079dc
push eax
call fcn.00408ce3
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4079dc
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4079d1
push ebx
call fcn.00409df5
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4079e5
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40ab30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40ab6e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40ab66
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40ab70
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40ab56
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40ac40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40ac71
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40ac71
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40ac71
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret