joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ba18
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ba2f
add esp, 0xfffffff0
call fcn.00403494
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e328
mov eax, dword [0x478c80]
cmp word [eax + 2], 0
jne 0x45ba57
mov eax, dword [0x478c80]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d198
mov eax, dword [0x478d90]
cmp word [eax + 2], 0
jne 0x45ba71
mov eax, dword [0x478d90]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d390
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4150e8]
call fcn.00403158
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4150e8]
call fcn.00403158
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420514]
call fcn.004262c8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45bbf8
mov eax, dword [0x478b2c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426698
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d930
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x478b2c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c9bc
test eax, eax
je 0x45bb66
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b58
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c9e4
test eax, eax
je 0x45bb7a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041b4
mov eax, dword [0x478950]
cmp byte [eax], 0
jne 0x45bbae
mov eax, ebx
call fcn.0045bd20
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045db0c
mov eax, ebx
call fcn.0045e4d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45bbee
call fcn.004034ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bfa0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479bc0]
cmp dword [eax + 0x30], 0
je 0x45c04a
cmp dword [ebx + 0x94], 0
jne 0x45c044
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45bf30
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45c044
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45c00a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45c044
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004177d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45c019
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45cbac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45cbe1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404034
jmp 0x45cbee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f98
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45dce8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45dd29
mov eax, esi
call fcn.00443ec8
test al, al
je 0x45dd29
mov eax, dword [ebx + 0x84]
call fcn.00443bc4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45dd29
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443bc4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x406430
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4334c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x434368]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4340d0]
cmp eax, dword [ecx + 4]
jg 0x4065f7
cmp dword [0x433498], 0
jne 0x4065da
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407220
test al, al
jne 0x4064e9
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x433488
je 0x4065d1
mov ecx, dword [0x43349c]
cmp ecx, 0x10
jb 0x40658e
mov edx, dword [0x433488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406584
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40662d
jmp 0x406584
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040fc10
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406557
cmp dword [ebp - 0x240], esi
je 0x40654b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406530
jmp 0x406557
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x433488
pop edi
jmp 0x4064a6
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov dword [0x433498], 0
mov dword [0x43349c], 0xf
mov byte [0x433488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x433488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x433498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x433488
mov ecx, ebx
call fcn.00402750
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e2a6
mov esp, ebp
pop ebp
ret
push 0x4340d0
call fcn.0040e242
add esp, 4
cmp dword [0x4340d0], 0xffffffff
jne 0x40646d
push 0x427390
call fcn.0040e513
push 0x4340d0
call fcn.0040e1f1
add esp, 8
jmp 0x40646d
call fcn.004115ff
int3
Function at 0x406640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426606
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4334c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040fc10
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040f910
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4066c5
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x4067be
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040b8b0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406c50
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0x10
jb 0x40676f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406765
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406803
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4067e6
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4067dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406803
jmp 0x4067dc
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040b8b0
add esp, 8
jmp 0x40678a
push ecx
push edx
call fcn.0040e1e3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e2a6
mov esp, ebp
pop ebp
ret
call fcn.004115ff
int3
Function at 0x40ec41
Capabilities:
Parse pe header

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

Function at 0x419d6b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419ced

Function at 0x41c5b1
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 + 0x434a68]
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 0x41c5f1
cmp byte [ebx], 0xa
jne 0x41c5f1
or byte [eax + edi + 0x28], 4
jmp 0x41c5f6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c6f4
mov al, byte [edx]
cmp al, 0x1a
je 0x41c6d6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c625
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c64a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c654
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 0x41c607
jmp 0x41c6f4
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 0x41c6d1
cmp dword [ebp - 0xc], 0
je 0x41c6d1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x434a68]
test byte [eax + edi + 0x28], 0x48
je 0x41c6ab
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c696
mov byte [esi], dl
jmp 0x41c6a7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434a68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c6f4
cmp byte [ebp - 1], 0xa
jne 0x41c6ba
cmp esi, ebx
jne 0x41c6ba
mov byte [esi], 0xa
jmp 0x41c6f3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cfff
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c6f4
mov byte [esi], 0xd
jmp 0x41c6f3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x434a68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c6f0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c6f4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c6fd
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 + 0x434a68]
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 0x41c740
cmp word [esi], dx
jne 0x41c740
or byte [edi + eax + 0x28], 4
jmp 0x41c745
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 0x41c898
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 0x41c878
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c787
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c7bd
cmp eax, edx
jae 0x41c7c9
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 0x41c75f
jmp 0x41c898
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 0x41c874
cmp dword [ebp - 0x14], 0
je 0x41c874
mov eax, dword [ebx*4 + 0x434a68]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c84c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c815
mov word [esi], cx
jmp 0x41c848
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x434a68]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x434a68]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x434a68]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c898
pop ebx
cmp word [ebp - 4], bx
jne 0x41c85d
cmp esi, dword [ebp + 0xc]
jne 0x41c85d
mov word [esi], bx
jmp 0x41c895
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cfff
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c898
push 0xd
jmp 0x41c891
mov ecx, dword [ebx*4 + 0x434a68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c88f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c898
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 0x41e3b0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c288
push 0x42c280
push str.FlsAlloc
push 0x1e
call fcn.0041e24e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e3e4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281dc]
call esi
jmp 0x41e3ea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e42e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c298
push 0x42c290
push str.FlsGetValue
push 0x20
call fcn.0041e24e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e465
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41f764
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 0x41f801
push ebx
push esi
call fcn.0041f72d
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.0041e04a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f7ae
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f800
push edi
push eax
call fcn.0041a61d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f7ce
call fcn.0041a5e3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f7ff
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e04a
add esp, 0x20
test eax, eax
jne 0x41f7ed
push edi
call fcn.0041a5e3
jmp 0x41f7f5
push ebx
call fcn.0041a5e3
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 0x424605
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00424581
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42477d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42477d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42472c
jg 0x42465e
test eax, eax
je 0x424722
push 1
push 0x1000
call fcn.0041e767
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424684
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x424719
push 0x8000
push ebx
call fcn.00417ce8
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4246b0
jg 0x4246ab
cmp ecx, 0x1000
jb 0x4246b0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041d94a
add esp, 0x10
cmp eax, 0xffffffff
je 0x4246f5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4246ab
jl 0x4246dc
test ecx, ecx
jne 0x42469d
push dword [ebp - 0xc]
push ebx
call fcn.00417ce8
push esi
call fcn.0041a5e3
add esp, 0xc
xor edi, edi
jmp 0x42478e
cmp byte [edi + 0x24], 0
je 0x42470c
cmp dword [edi + 0x20], 5
jne 0x42470c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424717
mov edi, dword [edi + 0x18]
jmp 0x424719
xor edi, edi
push esi
call fcn.0041a5e3
pop ecx
jmp 0x42478e
test ecx, ecx
jg 0x4246ee
jl 0x42472c
test eax, eax
jae 0x4246ee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cfff
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42474f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4246ee
jmp 0x424786
push ebx
call fcn.0041fbce
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4246ee
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42478e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42478b
mov edi, dword [edi + 0x18]
jmp 0x42478e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041cfff
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425b50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425b7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425b7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027d0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40217f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402830
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402144
cmp dword [ebp + 0xc], 3
jbe 0x402144
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e50
mov dword [ebp - 0x74], eax
jmp 0x4020e3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40213f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40213a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402154
jmp 0x40213f
jmp 0x402144
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.004028f0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402171
jmp 0x40216c
jmp 0x40217f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402078
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
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 [0x45f200], eax
pop esi
pop edi
pop ebp
ret