joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e3ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4a8ccc], 0
je 0x46e4fb
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4a7dfc]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x46e4fb
mov eax, dword [0x4a8cd0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4a8ccc]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x46e4ca
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4a8ccc]
call fcn.00419500
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x46e4c2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x46e4c2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x46e4c2
mov eax, dword [ebp - 0x14]
call fcn.00476f7c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x46e4c2
push ebp
call fcn.0046e368
pop ecx
test al, al
jne 0x46e4c2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x46e47e
mov eax, dword [ebp - 0x14]
call fcn.00475ad8
dec eax
jle 0x46e4c2
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004383e8
cmp byte [ebp - 1], 0
je 0x46e4c2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x46e4c2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4a8cd0]
call fcn.0046db30
inc edi
dec ebx
jne 0x46e411
mov eax, dword [0x4a8cd0]
cmp dword [eax + 8], 0
jle 0x46e4e2
mov eax, dword [0x4a8cd0]
call fcn.0046dbc0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46e4fb
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0046e1d0
pop ecx
test al, al
jne 0x46e4fb
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471aec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x471b38
mov eax, esi
call fcn.0045f110
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x471b38
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x471b38
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x471c77
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x471b78
cmp eax, 0x108
ja 0x471b78
mov eax, esi
call fcn.0045f110
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x471c6e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x471c77
jmp 0x471c6e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x471c57
cmp eax, 0x20a
ja 0x471c57
test byte [esi + 0x50], 0x80
jne 0x471baa
sub eax, 0x203
je 0x471ba7
sub eax, 3
je 0x471ba7
sub eax, 3
jne 0x471baa
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x471bbe
dec eax
je 0x471bd3
dec eax
je 0x471bf0
dec eax
je 0x471bd3
jmp 0x471bf7
mov ecx, ebx
mov eax, dword [0x4a7dfc]
mov eax, dword [eax]
mov edx, esi
call fcn.00468b94
jmp 0x471c6e
cmp byte [esi + 0x5d], 1
jne 0x471be9
mov eax, esi
mov si, 0xffed
call fcn.004383e8
jmp 0x471c77
or word [esi + 0x54], 1
jmp 0x471c6e
and word [esi + 0x54], 0xfffe
jmp 0x471c6e
mov eax, dword [0x4a8c88]
cmp byte [eax + 0x20], 0
je 0x471c6e
mov eax, dword [0x4a8c88]
cmp dword [eax + 0x1c], 0
je 0x471c6e
mov eax, dword [ebx]
mov edx, dword [0x4a8c88]
cmp eax, dword [edx + 0x1c]
jne 0x471c6e
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0045f054
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004383e8
jmp 0x471c77
cmp eax, 0xb00b
jne 0x471c6e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0047040c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475174
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x475190
cmp dword [esi + 4], 0
je 0x4751bd
test byte [ebx + 0x55], 1
jne 0x4751af
mov eax, ebx
call fcn.00473dcc
test eax, eax
jne 0x4751af
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4752cd
mov edx, esi
mov eax, ebx
call fcn.00474c94
jmp 0x4752cd
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4752c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00476f7c
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00471a20
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00475174
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00476f7c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4752cd
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b7e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4a7c24]
cmp byte [eax + 0xc], 0
je 0x47b951
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47b94a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a8cdc], 0
jne 0x47b838
push 0x47b958
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x47b960
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8cdc], eax
cmp dword [0x4a33d0], 0
jne 0x47b933
push 0x47b970
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4a33d0], eax
cmp dword [0x4a33d0], 0
je 0x47b933
push 0x47b97c
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8ce0], eax
push 0x47b98c
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8ce4], eax
push 0x47b9a0
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8ce8], eax
push 0x47b9b8
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8cec], eax
push 0x47b9d0
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8cf0], eax
push 0x47b9e4
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8cf4], eax
push 0x47b9fc
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8cf8], eax
push 0x47ba14
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8cfc], eax
push 0x47ba30
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8d00], eax
push 0x47ba3c
mov eax, dword [0x4a33d0]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a8d04], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b951
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x47ff00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ffd8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a8d18], 0
jne 0x47ffbc
lea eax, [ebp - 4]
mov edx, 0x47fff0
call fcn.00438dd0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004391e8
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47ffbc
mov eax, ebx
call fcn.00437198
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47ffb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x47ff9f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x480000
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x47ff9f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4a8d18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ffbc
mov eax, dword [ebp - 0xc]
call fcn.004371b8
ret
mov ebx, dword [0x4a8d18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ffdf
lea eax, [ebp - 4]
call fcn.00438d38
ret

Function at 0x48bc90
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4a8d3c], 0
jne 0x48bcb3
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x48bc04
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4a8d3c], eax
ret

Function at 0x48ce34
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00477280
test al, al
je 0x48ce8f
cmp bl, 7
jne 0x48ce6b
push 2
lea eax, [esp + 4]
push eax
push 0x100c
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
movzx edi, byte [esp]
sub edi, 0x30
jmp 0x48ce70
mov edi, ebx
and edi, 0x7f
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xcc]
test eax, eax
je 0x48ce8f
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, edi
call fcn.0041499c
mov byte [esi + 0x220], bl
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4911e8
call fcn.0049262c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x491204
test bl, 1
je 0x491204
call fcn.004960c0
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4913e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004921c8
test byte [ebp + 0xd], 0xc0
jne 0x49140c
mov eax, dword [0x4a4440]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x491419
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x491446
je 0x491458
sub ecx, 0x100
je 0x491466
sub ecx, 0x100
je 0x49146d
sub ecx, 0x100
je 0x49145f
jmp 0x491474
sub ecx, 0x600
je 0x49146d
sub ecx, 0x100
je 0x491458
jmp 0x491474
mov edi, 1
jmp 0x491479
mov edi, 2
jmp 0x491479
mov edi, 4
jmp 0x491479
mov edi, 5
jmp 0x491479
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4914a0
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4a3eb8]
test al, 0x80
je 0x491499
mov ebx, 0x80
jmp 0x4914b2
mov ebx, 1
jmp 0x4914b2
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4914b2
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4914c4
je 0x4914cd
dec eax
je 0x4914d6
jmp 0x4914df
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x4914ee
mov dword [ebp - 4], 0x40000000
jmp 0x4914ee
mov dword [ebp - 4], 0xc0000000
jmp 0x4914ee
push 1
call fcn.004925c0
pop ecx
mov ebx, eax
jmp 0x4915de
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x49150a
sub eax, 0x10
je 0x491511
sub eax, 0x10
je 0x49151a
sub eax, 0x10
je 0x491523
jmp 0x491523
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x49152a
mov dword [ebp - 8], 1
jmp 0x49152a
mov dword [ebp - 8], 2
jmp 0x49152a
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x491597
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x49158c
test byte [ebp + 0xd], 1
je 0x491587
mov ebx, 0x50
jmp 0x49158c
mov ebx, 2
push ebx
call fcn.004925c0
pop ecx
mov ebx, eax
jmp 0x4915de
mov edi, esi
push edi
call fcn.0049134c
pop ecx
test eax, eax
je 0x4915ab
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4915b7
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004922e8
add esp, 8
mov ebx, eax
inc eax
jne 0x4915de
push 4
call fcn.004925c0
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004921fc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496058
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4960ba
call fcn.00496008
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00490050
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00490050
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x496138
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4a52e0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x496212
cmp dword [0x4a52dc], 0
jne 0x496212
cmp dword [0x4a54c0], 0
je 0x4961cc
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00495f08
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4961b2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00495f08
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4961b2
lea ebx, [ebp - 0x84]
jmp 0x4961b3
inc ebx
call fcn.004960f4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x49624d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4a52e4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00490050
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4a52e7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x49624d
cmp dword [0x4a52dc], 0
je 0x49622c
cmp dword [0x4a52dc], 0xffffffff
je 0x49624d
push esi
call dword [0x4a52dc]
pop ecx
mov eax, dword [0x4a52e0]
test eax, eax
je 0x49624d
cmp dword [0x4a52e0], 0xffffffff
je 0x49624d
cmp byte [eax], 0
je 0x49624d
push esi
push eax
call fcn.00496058
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4969e4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4a95d4], 0
jne 0x496a65
cmp dword [0x4a95f4], 0
jne 0x496a14
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4a95f4], eax
test eax, eax
jne 0x496a14
push str.GetEnvironmentStrings_failed
call fcn.00496264
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4a95f4]
jmp 0x496a28
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00490050
pop ecx
mov edi, eax
test eax, eax
jne 0x496a20
lea edi, [ebp + 1]
push edi
call fcn.0048f934
pop ecx
mov ebx, eax
mov dword [0x4a95d8], ebx
test ebx, ebx
jne 0x496a52
xor eax, eax
jmp 0x496b28
push edi
mov edx, dword [0x4a95f4]
push edx
push ebx
call fcn.0048ff00
add esp, 0xc
jmp 0x496a85
xor esi, esi
mov ebx, dword [0x4a95d4]
jmp 0x496a7f
push eax
call fcn.00490050
pop ecx
test eax, eax
jne 0x496a7b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x496a6f
lea ebx, [esi + 4]
push 4
mov dword [0x4a95dc], ebx
inc ebx
push ebx
call fcn.0048f0f0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x496aa8
xor eax, eax
jmp 0x496b28
cmp dword [0x4a95d4], 0
jne 0x496ad9
xor esi, esi
mov ebx, dword [0x4a95d8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x496aca
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00490050
pop ecx
mov edi, eax
test eax, eax
jne 0x496ac0
jmp 0x496b0a
xor esi, esi
mov ebx, dword [0x4a95d4]
mov eax, dword [esp]
mov edi, eax
jmp 0x496b04
push eax
call fcn.00490050
pop ecx
test eax, eax
je 0x496af9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x496afd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x496ae8
mov eax, dword [0x4a95d4]
test eax, eax
je 0x496b1a
push eax
call fcn.0048f944
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4a95d4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49bd50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
lea eax, [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call fcn.00492a4c
add esp, 0x10
lea eax, [ebp - 0x1000]
push eax
call sub.KERNEL32.DLL_OutputDebugStringA
mov esp, ebp
pop ebp
ret
Function at 0x61002e30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov edx, dword [ebp]
test edx, edx
setne byte [esp + 0xb]
cmp byte [esp + 0xb], 0
je 0x61002eb0
mov esi, ebx
mov edi, edx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61002e75
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x61002e80
test al, al
jne 0x61002e66
mov eax, 1
jmp 0x61002e82
xor eax, eax
test eax, eax
je 0x61002ea0
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add esp, 0x1c
ret
mov eax, edx
call sym._cfree_4
mov esi, esi
lea edi, [edi]
test ebx, ebx
mov eax, 0x6110d474
je 0x61002ebb
mov eax, ebx
call sym._cstrdup_4
cmp byte [esp + 0xb], 0
mov dword [ebp], eax
je 0x61002e86
lea eax, [ebp + 0xc]
xor edx, edx
call sym._cfree_and_set_8
lea eax, [ebp + 0x10]
xor edx, edx
call sym._cfree_and_set_8
lea eax, [ebp + 4]
xor edx, edx
call sym._cfree_and_set_8
lea eax, [ebp + 8]
xor edx, edx
call sym._cfree_and_set_8
lea eax, [ebp + 0x18]
mov ebx, dword [esp + 0xc]
xor edx, edx
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add esp, 0x1c
jmp sym._cfree_and_set_8
Function at 0x61006220
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0x10]
cmp byte [0x6110752d], 0
je 0x61006280
mov dword [esp], ebx
mov edx, 0x6110ded6
mov dword [esp + 4], edx
call sym.cygwin1.dll__strstr
test eax, eax
je 0x61006268
mov eax, dword [0x61107524]
mov word [eax + 0x10], 3
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
mov eax, str.cygheap
mov dword [esp + 4], eax
call sym.cygwin1.dll__strstr
test eax, eax
jne 0x61006253
lea esi, [esi]
mov dword [esp], str.CYGWIN_MISMATCH_OK
mov eax, 0x400
mov dword [esp + 8], eax
lea eax, [ebp - 0x408]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
sub esp, 0xc
test eax, eax
jne 0x6100625e
movzx eax, word [ebp + 0xc]
cmp eax, esi
jne 0x610062ee
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp], 0x6110c854
mov dword [esp + 0x14], eax
mov eax, str._s_magic_number_mismatch_detected____p__p
mov dword [esp + 0xc], eax
mov eax, str.void_multiple_cygwin_problem_const_char__unsigned_int__unsigned_int_
mov dword [esp + 8], eax
mov eax, 0x8000
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], str._s_mismatch_detected____p__p._nThis_problem_is_probably_due_to_using_incompatible_versions_of_the_cygwin_DLL._nSearch_for_cygwin1.dll_using_the_Windows_Start__Find_Search_facility_nand_delete_all_but_the_most_recent_version.__The_most_recent_version_should_nreside_in_x:cygwin_bin__where_x_is_the_drive_on_which_you_have_ninstalled_the_cygwin_distribution.__Rebooting_is_also_suggested_if_you_nare_unable_to_find_another_cygwin_DLL.
mov dword [esp + 8], eax
call sym.___api_fatal
nop
lea esi, [esi]
Function at 0x610068a0
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x65f4]
test eax, eax
jne 0x61006915
mov eax, 1
mov dword [edi + 0x65f4], eax
test byte [0x6110c854], 1
jne 0x610069be
xor esi, esi
mov ebx, edi
jmp 0x610068de
inc esi
add ebx, 0x104
cmp esi, 0x63
jg 0x61006915
cmp byte [esi + edi + 0x6590], 0
je 0x610068d2
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
test eax, eax
je 0x6100691c
test byte [0x6110c854], 1
jne 0x61006976
xor eax, eax
add ebx, 0x104
mov byte [esi + edi + 0x6590], al
inc esi
cmp esi, 0x63
jle 0x610068de
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call sub.KERNEL32.dll_GetLastError
mov edx, eax
xor eax, eax
cmp edx, 0x20
mov dword [edi + 0x65f4], eax
je 0x61006981
mov eax, dword [0x611650ec]
test byte [eax + 0x10], 4
je 0x61006940
cmp edx, 5
je 0x61006981
test byte [0x6110c854], 1
je 0x61006900
mov dword [esp + 0x10], ebx
mov ecx, str.Hmm__dont_know_what_to_do_with__s___E
mov dword [esp + 0xc], ecx
mov edx, str.void_delqueue_list::process_queue__
mov eax, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61006900
mov dword [esp + 0x10], ebx
mov ecx, str.Deleted__s
jmp 0x61006952
test byte [0x6110c854], 1
je 0x610068d2
mov dword [esp + 0x10], ebx
mov eax, str.Still_using__s
mov dword [esp + 0xc], eax
mov eax, str.void_delqueue_list::process_queue__
mov dword [esp + 8], eax
mov eax, 0x10
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610068d2
mov dword [esp], 0x6110c854
mov eax, str.Running_delqueue
mov esi, str.void_delqueue_list::process_queue__
mov dword [esp + 0xc], eax
mov ebx, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610068cc