joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497d40
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x5db520]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x497f2a
sub esp, 0x48
mov eax, dword [0x5b53e4]
mov ecx, dword [esp + 0x50]
movzx edx, word [ecx + 2]
movzx ebx, word [ecx + 8]
movzx ebp, word [ecx + 0xa]
movzx esi, word [ecx + 0xc]
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call fcn.00494a50
lea edi, [esp + 0x34]
lea esi, [esp + 0x20]
call fcn.0046e18e
lea edi, [esp]
lea esi, [esp + 0x34]
call fcn.0046e18e
call fcn.00494180
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x15180
mov dword [esp], eax
adc ecx, 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x93a80
mov dword [esp + 0xc], 0
call fcn.00460410
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 4]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, 0xc22e4507
mov ebp, edx
imul edx
mov eax, ebp
sar ebp, 0x1f
add eax, edx
sar eax, 0x10
sub eax, ebp
sub ecx, eax
test ecx, ecx
jge 0x497e17
add ecx, 7
movzx edx, word [ebx + 6]
lea ebp, [edx - 1]
cmp ebp, 4
jge 0x497e31
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*2]
lea ecx, [ecx + edx - 6]
mov edx, ecx
jmp 0x497ea8
movzx eax, word [ebx + 2]
cmp eax, 2
jne 0x497e7e
mov edx, dword [esp + 0x4c]
test edx, 3
jne 0x497e7a
mov ebx, edx
sar edx, 0x1f
mov ebp, eax
mov eax, 0x51eb851f
mov esi, edx
imul ebx
mov edi, edx
sar edx, 5
sub edx, esi
imul edx, edx, 0x64
cmp ebx, edx
jne 0x497e73
sar edi, 7
sub edi, esi
imul edx, edi, 0x190
cmp ebx, edx
jne 0x497e80
mov ebx, 0x1d
jmp 0x497e9e
mov ebp, eax
jmp 0x497e80
mov ebp, eax
cmp ebp, 0xd
jae 0x497f1d
lea eax, [ebp - 1]
lea edx, [0x5ae900]
mov ebx, dword [edx + ebp*4]
cmp eax, 0xd
jae 0x497f13
sub ebx, dword [edx + ebp*4 - 4]
lea edx, [ecx + 0x1d]
cmp ebx, edx
jge 0x497ea8
lea edx, [ecx + 0x16]
mov ecx, dword [esp + 0x38]
test ecx, 0x80000000
je 0x497eda
mov ebx, dword [esp + 0x34]
shl ecx, 1
mov ebp, ebx
shl ebx, 1
shr ebp, 0x1f
or ebp, ecx
mov ecx, ebp
shl ebp, 1
shr ecx, 0x1f
shr ebx, 0x1f
or ebp, ebx
add ebp, 0xd7b17f80
adc ecx, 0xd
jmp 0x497ee2
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
mov edx, eax
sar edx, 0x1f
mov ebx, 0x15180
mov esi, edx
mul ebx
imul ebx, esi, 0x15180
add edx, ebx
add eax, ebp
adc edx, ecx
add eax, 0x886e0900
mov dword [esp + 0x54], eax
adc edx, 0xfffffff1
mov dword [esp + 0x58], edx
add esp, 0x48
ret
mov ecx, 0xd
call fcn.0046db50
mov eax, ebp
mov ecx, 0xd
call fcn.0046db50
nop
call fcn.0046c6d0
jmp fcn.00497d40
Function at 0x402e7a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x494e7c]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ee1
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004035de
lea ecx, [esp + 0x1c]
call fcn.00402a0f
cmp eax, dword [esp + 0x14]
je 0x402ef9
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00404017
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402eb1
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409367
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00404017
jmp 0x402ee3

Function at 0x402f7c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x494e7c], eax
push 0x27
mov esi, 0x492a60
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00402e7a
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x403007
lea ecx, [esp + 0x10]
call fcn.004049da
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x403011
cmp byte [ecx + 0x6c], 0
jne 0x403011
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.0040315a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x41a9f5
Capabilities:
Read file on windows

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

Function at 0x41adef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a430
mov eax, dword [0x432180]
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.00418914
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ae31
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41af8d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424d30
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 + 0x494b40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bde6
mov ecx, dword [esi*4 + 0x494b40]
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 0x41af86
cmp eax, dword [edi + ecx + 0x24]
jne 0x41af86
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 0x41af86
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bde6
add esp, 0x14
test edx, edx
jl 0x41af86
jg 0x41aefc
test eax, eax
jb 0x41af86
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41af86
jl 0x41af16
cmp dword [ebp - 0x1008], eax
ja 0x41af86
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41af34
test ebx, ebx
je 0x41af6d
cmp ecx, edi
jae 0x41af6d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41af4e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41af5a
cmp byte [ecx + 1], 0xa
jne 0x41af5a
inc ecx
jmp 0x41af5a
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41af34
cmp edx, ebx
jne 0x41af34
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41af8b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409367
leave
ret
Function at 0x41b284
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 + 0x494b40]
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 0x41b2c4
cmp byte [ebx], 0xa
jne 0x41b2c4
or byte [eax + edi + 0x28], 4
jmp 0x41b2c9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b3c7
mov al, byte [edx]
cmp al, 0x1a
je 0x41b3a9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b2f8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b31d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b327
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 0x41b2da
jmp 0x41b3c7
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 0x41b3a4
cmp dword [ebp - 0xc], 0
je 0x41b3a4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x494b40]
test byte [eax + edi + 0x28], 0x48
je 0x41b37e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b369
mov byte [esi], dl
jmp 0x41b37a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x494b40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b3c7
cmp byte [ebp - 1], 0xa
jne 0x41b38d
cmp esi, ebx
jne 0x41b38d
mov byte [esi], 0xa
jmp 0x41b3c6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b3c7
mov byte [esi], 0xd
jmp 0x41b3c6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x494b40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b3c3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b3c7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b3d0
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 + 0x494b40]
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 0x41b413
cmp word [esi], dx
jne 0x41b413
or byte [edi + eax + 0x28], 4
jmp 0x41b418
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 0x41b56b
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 0x41b54b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b45a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b490
cmp eax, edx
jae 0x41b49c
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 0x41b432
jmp 0x41b56b
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 0x41b547
cmp dword [ebp - 0x14], 0
je 0x41b547
mov eax, dword [ebx*4 + 0x494b40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b51f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b4e8
mov word [esi], cx
jmp 0x41b51b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x494b40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x494b40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x494b40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b56b
pop ebx
cmp word [ebp - 4], bx
jne 0x41b530
cmp esi, dword [ebp + 0xc]
jne 0x41b530
mov word [esi], bx
jmp 0x41b568
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b56b
push 0xd
jmp 0x41b564
mov ecx, dword [ebx*4 + 0x494b40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b562
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b56b
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 0x401140
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
je 0x401186
mov edi, dword [esp + 0xc]
test edi, edi
je 0x401186
or eax, 0xffffffff
xor edx, edx
test esi, esi
jbe 0x40117f
push ebx
push ebp
lea ecx, [ecx]
movzx ebx, byte [edx + edi]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
mov ebp, dword [ecx + ebx*4]
shr eax, 8
add edx, 2
xor eax, ebp
cmp edx, esi
jb 0x401160
pop ebp
pop ebx
pop edi
not eax
pop esi
ret 8
pop edi
xor eax, eax
pop esi
ret 8

Function at 0x401270
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x40b248
push str.PowerUp.cfg
call fcn.004024f7
push 0x132183f
mov esi, eax
push str._nPOWERUP_VERSION____d
push esi
call fcn.00402538
mov eax, dword [0x40d724]
push eax
push str._nCURRENT_VERSION____d
push esi
call fcn.00402538
mov ecx, dword [0x40d754]
push ecx
push str._nLATEST_VERSION____d
push esi
call fcn.00402538
push esi
call fcn.0040238e
push str.Setup.exe
push str.temp.dat
call fcn.0040250a
add esp, 0x38
push 5
push 0
push 0
push 0x40b1c8
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop esi
ret

Function at 0x401e00
Capabilities:
Read data from internet
Receive data

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x401ea4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x401ea4
mov eax, dword [esi + 8]
test eax, eax
je 0x401ea4
lea edx, [esp + 4]
push edx
mov edx, dword [esi + 0x10]
push 0x83
add edx, eax
push edx
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401e95
mov eax, dword [esp + 4]
test eax, eax
je 0x401e5b
add dword [esi + 0x10], eax
mov eax, 1
pop esi
pop ecx
ret 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x401e8e
mov eax, dword [esp + 0xc]
push edi
push 0x40b4d4
push eax
call fcn.004024f7
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov edi, eax
push edi
push ecx
push 1
push edx
call fcn.0040269d
push edi
call fcn.0040238e
add esp, 0x1c
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
mov dword [esi + 0xc], 0xfffffffb
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov dword [esi + 0xc], 0xfffffffc
or eax, 0xffffffff
pop esi
pop ecx
ret 4
Function at 0x401f30
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
sub esp, 0x808
mov eax, dword [0x40d088]
push esi
mov esi, ecx
mov dword [esp + 0x808], eax
mov eax, dword [esi]
test eax, eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x401f5b
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x401f6c
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x401f83
push eax
call fcn.004025aa
add esp, 4
mov dword [esi + 8], 0
push ebx
mov ebx, dword [esp + 0x81c]
push ebx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], ebx
mov dword [esp + 0x10], 0x400
call fcn.004022ca
mov edi, eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x81c]
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
pop ebx
je 0x402063
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x40205a
push eax
push 1
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
je 0x402051
push 0
push 0
push 0
push 0
push 0x40b4d8
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi], eax
je 0x402051
push 0xa
push 0xa0000000
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
mov dword [esi + 4], eax
je 0x402051
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x804]
call fcn.004027d5
add esp, 0x808
ret 8
mov dword [esi + 0xc], 0xfffffffc
jmp 0x40206a
mov dword [esi + 0xc], 0xfffffffe
jmp 0x40206a
mov dword [esi + 0xc], 0xffffffff
mov ecx, dword [esp + 0x80c]
pop edi
xor eax, eax
pop esi
call fcn.004027d5
add esp, 0x808
ret 8
Function at 0x4021e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40a228
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.00402180
push 0
push esi
call fcn.00402090
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x402226
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10
lea ecx, [esp + 0x30]
call fcn.00401ca0
mov eax, dword [esp + 0x38]
mov ecx, dword [0x40db5c]
push eax
push ecx
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0
call fcn.00401d30
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
call esi
test eax, eax
je 0x4022a1
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea ebx, [ebx]
lea eax, [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
jne 0x402280
pop edi
pop ebx
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00401d20
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10
Function at 0x402ca7
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b548
call fcn.00405aac
mov edi, 0x94
mov eax, edi
call fcn.00407000
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40db90], ecx
mov eax, dword [esi + 4]
mov dword [0x40db9c], eax
mov edx, dword [esi + 8]
mov dword [0x40dba0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40db94], esi
cmp ecx, 2
je 0x402d07
or esi, 0x8000
mov dword [0x40db94], esi
shl eax, 8
add eax, edx
mov dword [0x40db98], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402d42
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402d42
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402d5a
cmp eax, 0x20b
je 0x402d47
mov dword [ebp - 0x1c], esi
jmp 0x402d6e
cmp dword [ecx + 0x84], 0xe
jbe 0x402d42
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402d68
cmp dword [ecx + 0x74], 0xe
jbe 0x402d42
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00406fa2
pop ecx
test eax, eax
jne 0x402d9a
cmp dword [0x40db7c], 1
jne 0x402d87
call fcn.00406693
push 0x1c
call fcn.0040651c
push 0xff
call fcn.004039f5
pop ecx
pop ecx
call fcn.00406f00
mov dword [ebp - 4], esi
call fcn.00406d55
test eax, eax
jge 0x402db3
push 0x1b
call fcn.00402c82
pop ecx
call fcn.00406cb6
mov dword [0x40f274], eax
call fcn.00406b4c
mov dword [0x40db78], eax
call fcn.00406ab6
test eax, eax
jge 0x402dd8
push 8
call fcn.00402c82
pop ecx
call fcn.00406883
test eax, eax
jge 0x402de9
push 9
call fcn.00402c82
pop ecx
push 1
call fcn.00403a25
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x402dff
push eax
call fcn.00402c82
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0040683d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x402e20
movzx eax, word [ebp - 0x40]
jmp 0x402e23
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004021e0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402e41
push edi
call fcn.00403b50
call fcn.00403b72
jmp 0x402e73
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405ae7
ret
Function at 0x403354
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40f148]
push edi
jae 0x403529
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x40f160]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x403529
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4033ff
test dl, 2
jne 0x4033ff
test dl, 0x48
je 0x4033c9
cmp byte [eax + 5], 0xa
je 0x4033c9
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403412
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4033fa
mov dword [0x40db88], ecx
jmp 0x403530
cmp eax, 0x6d
jne 0x403406
xor eax, eax
jmp 0x40353d
push eax
call fcn.00403c02
pop ecx
jmp 0x40353a
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x403524
test eax, eax
je 0x403439
cmp byte [ebx], 0xa
jne 0x403439
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x403442
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40351e
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40350e
cmp al, 0xd
je 0x403474
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x403500
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40348e
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x403489
add dword [ebp - 8], 2
jmp 0x4034e2
mov dword [ebp - 8], eax
jmp 0x4034fc
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4034b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4034fc
cmp dword [ebp - 0x10], 0
je 0x4034fc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4034d7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4034e2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4034ff
cmp ebx, dword [ebp + 0xc]
jne 0x4034e7
cmp byte [ebp - 1], 0xa
jne 0x4034e7
mov byte [ebx], 0xa
jmp 0x4034ff
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00408105
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x403500
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x403458
jmp 0x40351e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40351e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40353d
and dword [0x40db88], 0
mov dword [0x40db84], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a8f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40dbd0], esi
push edi
jne 0x403aaf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40dbcc], esi
mov byte [0x40dbc8], al
jne 0x403b15
mov ecx, dword [0x40f268]
test ecx, ecx
je 0x403af6
mov eax, dword [0x40f264]
sub eax, 4
cmp eax, ecx
jmp 0x403aef
mov eax, dword [eax]
test eax, eax
je 0x403ae1
call eax
mov eax, dword [0x40f264]
sub eax, 4
cmp eax, dword [0x40f268]
mov dword [0x40f264], eax
jae 0x403ad9
mov eax, 0x40d02c
mov esi, 0x40d034
cmp eax, esi
mov edi, eax
jae 0x403b15
mov eax, dword [edi]
test eax, eax
je 0x403b0e
call eax
add edi, 4
cmp edi, esi
jb 0x403b06
mov eax, 0x40d038
mov esi, 0x40d040
cmp eax, esi
mov edi, eax
jae 0x403b34
mov eax, dword [edi]
test eax, eax
je 0x403b2d
call eax
add edi, 4
cmp edi, esi
jb 0x403b25
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403b4e
push dword [ebp + 8]
mov dword [0x40dbd0], 1
call fcn.004039f5
pop ebp
ret