joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4301e8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff7
call fcn.00430638
mov esi, eax
mov dword [ebp - 0x14], esi
push 4
push esi
call fcn.00406628
mov edx, dword [0x46993c]
mov edx, dword [edx]
cmp eax, dword [edx + 0x30]
je 0x430243
mov eax, dword [ebp - 0x14]
call fcn.0042f754
mov esi, eax
test esi, esi
je 0x430376
jmp 0x430232
mov esi, eax
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x430230
mov eax, esi
call fcn.00439050
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x430376
mov esi, ebx
jmp 0x430253
mov esi, eax
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x430251
mov eax, esi
call fcn.00439050
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x14]
je 0x430376
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x430298
mov edx, dword [ebp + 8]
mov esi, eax
jmp 0x430285
mov esi, eax
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x430283
mov eax, esi
call fcn.00439050
mov dword [ebp - 0x1c], eax
jmp 0x4302c2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [0x42ec5c]
call fcn.004033d4
test al, al
je 0x4302bd
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00439050
mov dword [ebp - 0x1c], eax
jmp 0x4302c2
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 8], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 9]
mov dword [ebp - 0x10], edx
mov edx, dword [eax - 5]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x1c]
push eax
push 0x43017c
call sub.user32.dll_GetWindowTextA
push eax
call fcn.004064c0
cmp byte [ebp - 8], 0
je 0x430376
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00406648
mov eax, dword [ebp + 8]
add eax, 0xfffffff7
push eax
mov eax, dword [ebp + 8]
dec eax
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x10]
mov eax, ebx
mov si, 0xffbd
call fcn.00403444
mov eax, dword [0x46ab30]
mov edx, dword [0x42d864]
call fcn.004033d4
test al, al
je 0x43035d
mov eax, dword [0x46ab30]
mov eax, dword [eax + 0x38]
cmp dword [eax + 0xa0], 0
je 0x43035d
mov eax, dword [0x46ab30]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0xa0]
call fcn.00439050
cmp eax, dword [ebp - 0x14]
je 0x430376
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406680
test eax, eax
je 0x430376
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4311b0
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push ebx
call sub.user32.dll_EnableWindow
push 0
mov eax, dword [esp + 8]
sub eax, edi
push eax
mov eax, dword [esp + 8]
sub eax, esi
push eax
push ebx
call sub.user32.dll_GetKeyboardLayout
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x43ddc4
Capabilities:
Get graphical window text
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43df3c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.user32.dll_GetWindowRect
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x43df50
call fcn.00408b58
mov edx, dword [ebp - 4]
mov eax, 0x46ab20
call fcn.00403fec
mov eax, dword [0x46ab20]
call fcn.00404458
push eax
call sub.user32.dll_LoadIconA
mov word [0x46ab1c], ax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x46a664]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call sub.user32.dll_GetWindowTextA
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x43df64
call fcn.00408b58
mov edx, dword [ebp - 0x10]
mov eax, 0x46ab24
call fcn.00403fec
mov eax, dword [0x46ab24]
call fcn.00404458
push eax
call sub.user32.dll_LoadIconA
mov word [0x46ab1e], ax
mov eax, dword [0x46ab24]
call fcn.00404458
push eax
call fcn.00406760
mov dword [0x46ab28], eax
mov dl, 1
mov eax, dword [0x411670]
call fcn.00413b88
mov dword [0x46ab60], eax
call fcn.0043d9c8
mov dl, 1
mov eax, dword [0x42f600]
call fcn.0043d7f0
mov dword [0x46ab10], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x448c30]
call fcn.0044f880
mov edx, dword [0x469a80]
mov dword [edx], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x448d08]
call fcn.00450964
mov edx, dword [0x46993c]
mov dword [edx], eax
mov eax, dword [0x46993c]
mov eax, dword [eax]
mov dl, 1
call fcn.004525ec
mov ecx, 0x42f974
mov edx, 0x42f984
mov eax, dword [0x42d56c]
call fcn.0041333c
push 0x43df78
call sub.user32.dll_IsDialogMessageA
mov ebx, eax
test ebx, ebx
je 0x43df1e
push 0x43df80
push ebx
call sub.user32.dll_IsIconic
mov dword [0x468a24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43df43
lea eax, [ebp - 0x10]
call fcn.00403f98
lea eax, [ebp - 4]
call fcn.00403f98
ret

Function at 0x448ed4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov edx, dword [0x468c7c]
mov dword [ebp - 8], edx
mov edx, dword [0x468c88]
mov dword [ebp - 0xc], edx
mov dword [0x468c7c], eax
xor eax, eax
mov dword [0x468c88], eax
xor eax, eax
push ebp
push 0x448f77
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x448f40
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x448e84
call sub.user32.dll_GetWindowTextA
push eax
call fcn.004064c0
mov eax, dword [0x468c88]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x448f59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448f7e
mov eax, dword [ebp - 0xc]
mov dword [0x468c88], eax
mov eax, dword [ebp - 8]
mov dword [0x468c7c], eax
ret
Function at 0x4490a0
Capabilities:
Get graphical window text

Disassembly:
add esp, 0xfffffff8
call fcn.004064f8
mov dword [esp], eax
mov byte [esp + 4], 0
mov eax, esp
push eax
push 0x449080
call sub.user32.dll_GetWindowTextA
push eax
call fcn.004064c0
mov al, byte [esp + 4]
pop ecx
pop edx
ret

Function at 0x44ffcc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp si, word [ebx + 0x44]
je 0x450050
mov word [ebx + 0x44], si
test si, si
jne 0x450040
push esp
call fcn.00406530
push dword [esp + 4]
push dword [esp + 4]
call fcn.004068a8
mov edi, eax
test edi, edi
je 0x450040
push 0
push edi
call fcn.00406658
mov ebp, eax
call sub.user32.dll_GetWindowTextA
cmp ebp, eax
jne 0x450040
mov eax, esp
call fcn.00406928
push eax
push 0
push 0x84
push edi
call fcn.00406798
mov ebx, eax
mov dx, 0x200
mov eax, ebx
call fcn.004068b0
push eax
push edi
push 0x20
push edi
call fcn.00406798
jmp 0x450053
movsx edx, si
mov eax, ebx
call fcn.0044ffa4
push eax
call fcn.004067b8
inc dword [ebx + 0x48]
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x452718
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452828
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004526a0
mov ebx, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x452761
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
jne 0x452761
mov eax, dword [ebp - 4]
call fcn.00452c70
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004506b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0042f9d8
mov edx, dword [ebp - 0xc]
mov eax, dword [0x46abb0]
call fcn.004528d8
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x4527cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0x102], 0
je 0x4527b7
lea ecx, [ebp - 5]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x104]
call dword [ebx + 0x100]
cmp byte [ebp - 5], 0
je 0x4527c5
mov eax, dword [ebp - 4]
call fcn.0045263c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4527e4
call sub.user32.dll_GetWindowTextA
mov edx, dword [0x469aa4]
cmp eax, dword [edx]
jne 0x452802
xor eax, eax
call fcn.00419174
test al, al
je 0x452802
mov byte [ebp - 5], 0
cmp byte [ebp - 5], 0
je 0x45280d
call fcn.00406898
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45282f
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403fbc
ret
Function at 0x456418
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x456446
mov eax, ebx
call fcn.00456ecc
cmp dword [ebx + 0x40], 0
je 0x45643f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4564b7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4564a9
cmp dword [ebx + 8], 0
je 0x456468
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45647a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4564a9
cmp dword [ebx + 8], 0
je 0x45645b
cmp eax, 3
je 0x45648d
dec eax
jne 0x45645b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45645b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45645b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4564d5
cmp dword [ebx + 0x14], 0xcc
je 0x4564d5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004564e0
pop ebx
ret
Function at 0x6710a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13d000]
mov dword [edi + 0x1d4acc], 0x2df9668e
push edi
or ebp, 0xffffffff
jmp 0x6710ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6710d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6710c0
mov eax, 1
add ebx, ebx
jne 0x6710e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6710f4
jne 0x671113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x671113
dec eax
add ebx, ebx
jne 0x671100
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6710d8
add ebx, ebx
jne 0x67110f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x671165
xor ecx, ecx
sub eax, 3
jb 0x67112b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x67119a
sar eax, 1
mov ebp, eax
jmp 0x671136
add ebx, ebx
jne 0x671136
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x671104
inc ecx
add ebx, ebx
jne 0x671144
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x671104
add ebx, ebx
jne 0x671151
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x671146
jne 0x671162
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x671146
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x671184
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x671176
jmp 0x6710c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x671184
add edi, ecx
jmp 0x6710c6
pop esi
mov edi, esi
mov ecx, 0x3e39
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6711a2
cmp byte [edi], 0x11
jne 0x6711a2
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 0x6711a7
lea edi, [esi + 0x26b000]
mov eax, dword [edi]
or eax, eax
je 0x67121f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x27d074]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27d1c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6711d4
mov ecx, edi
jns 0x671203
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 + 0x27d1cc]
or eax, eax
je 0x671219
mov dword [ebx], eax
add ebx, 4
jmp 0x6711f1
call dword [esi + 0x27d1dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x671250
cmp al, 0xef
ja 0x671243
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x671225
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x671232
mov ebp, dword [esi + 0x27d1d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x671284
sub esp, 0xffffff80
jmp 0x48123e
Function at 0x4034c6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
test eax, 0x58aa45c6
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00403268
jne 0x403560
hlt
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00403268
push ss
cli
mov esi, 0xc0458d55
push eax
call fcn.00403278
push eax
push esi
push dword [ebp + 8]
call fcn.0040322d
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00403268
jp 0x4035a7
imul edx, dword [ebx], 0x88e8458d
pop ebp
call 0xe99dbe29
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00403278
push eax
push esi
push dword [ebp + 8]
call fcn.0040322d
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00403278
push eax
push esi
push dword [ebp + 8]
call fcn.0040322d
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403278
push eax
push esi
push dword [ebp + 8]
call fcn.0040322d
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00403268
cwde
mov ah, 0x83
hlt
Function at 0x405695
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056b1
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056b4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405727
test edi, edi
jne 0x4056ee
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405721
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x40108e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push 0x403140
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
mov ebx, eax
push edi
push 0xfffffffffffffff8
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401169
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 8]
push 4
push eax
push ebx
call esi
test eax, eax
je 0x401169
cmp dword [ebp - 4], 4
jb 0x401169
cmp dword [ebp - 8], 0x53445250
jne 0x401169
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push ebx
call esi
test eax, eax
je 0x401169
cmp dword [ebp - 4], 4
jb 0x401169
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401169
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 8]
push 4
push eax
push ebx
call esi
test eax, eax
je 0x401169
cmp dword [ebp - 4], 4
jb 0x401169
cmp dword [ebp - 8], 0x53445250
jne 0x401169
push 0x403124
push ebx
call fcn.00401175
push 0x403120
push ebx
call fcn.00401175
push 0x403128
push ebx
call fcn.00401175
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40226c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov esi, eax
push 0x106
lea eax, [esp + 4]
push eax
mov eax, dword [esi]
call fcn.004017ac
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
cmp eax, 0x106
setb bl
test bl, bl
je 0x4022a7
mov eax, esi
mov edx, esp
mov ecx, 0x106
call fcn.004015d0
mov eax, ebx
add esp, 0x108
pop esi
pop ebx
ret

Function at 0x402768
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402871
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x10e]
push eax
mov eax, dword [0x4073a8]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
je 0x4027b8
mov eax, 0x408078
lea edx, [ebp - 0x10e]
mov ecx, 0x106
call fcn.004015d0
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00401af0
mov ebx, eax
jmp 0x4027cf
test al, al
je 0x40285b
inc ebx
mov al, byte [ebx]
cmp al, 0x20
jbe 0x4027c6
xor eax, eax
xor esi, esi
mov dl, byte [ebx]
cmp dl, 0x22
jne 0x4027eb
test al, al
je 0x4027e7
inc ebx
jmp 0x402802
mov al, 1
jmp 0x4027f3
mov byte [ebp + esi - 0x10e], dl
inc esi
inc ebx
cmp byte [ebx], 0
je 0x402802
cmp byte [ebx], 0x20
jne 0x4027d9
test al, al
jne 0x4027d9
cmp dword [ebp - 4], 0
je 0x402853
lea edx, [ebp - 0x10e]
lea eax, [ebp - 8]
mov ecx, esi
call fcn.00401570
mov edx, dword [ebp - 8]
mov eax, 0x40288c
call fcn.00401890
test eax, eax
jne 0x402836
lea eax, [ebp - 8]
mov edx, 0x40288c
call fcn.004015f0
push dword [0x408080]
push dword [ebp - 8]
push 0x402898
mov eax, 0x408080
mov edx, 3
call fcn.004016a8
inc dword [ebp - 4]
jmp 0x4027cf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402878
lea eax, [ebp - 8]
call fcn.0040148c
ret

Function at 0x402d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
jne 0x402d6b
mov al, 1
pop ebx
ret
push ebx
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x402d7a
test al, 0x10
jne 0x402d7e
xor eax, eax
jmp 0x402d80
mov al, 1
pop ebx
ret

Function at 0x402f64
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x402fef
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00402d84
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00402e74
push 0x80
mov esi, ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
call sub.KERNEL32.DLL_SetLastError
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call sub.KERNEL32.DLL_CreateFileA
mov dword [0x408094], eax
cmp dword [0x408094], 0
je 0x402fd2
cmp dword [0x408094], 0xffffffff
jne 0x402fd9
mov eax, ebx
call fcn.00402b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ff6
lea eax, [ebp - 4]
call fcn.0040148c
ret