joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10087a52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
add eax, dword [ebp + 8]
push 0
push 0
push eax
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x18]
call dword [sym.imp.kernel32.dll_ReadFile]
pop esi
pop ebp
ret 0xc

Function at 0x10087c7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x74], eax
cmp dword [0x100fcd68], ebx
je 0x10087dfd
call fcn.10050e80
cmp eax, ebx
jne 0x10087cc6
mov dword [0x100fcd68], ebx
jmp 0x10087dfd
lea ecx, [ebp - 0x7c]
push ecx
push 0xf003f
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10087cbb
push edi
push dword [esi + 4]
mov edi, dword [sym.imp.MSVCR100.dll_wcscpy]
lea eax, [ebp - 0x70]
push eax
call edi
lea eax, [ebp - 0x70]
push 0x2c
push eax
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 0x10
cmp eax, ebx
je 0x10087d08
xor ecx, ecx
mov word [eax], cx
mov esi, 0x104
push esi
lea eax, [ebp + 0x30]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push ebx
push 0x50
lea eax, [ebp + 0x134]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
mov dword [ebp - 0x78], esi
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp + 0x134]
push eax
push dword [ebp - 0x7c]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10087db5
cmp dword [0x100fcd6c], ebx
je 0x10087dfc
mov esi, 0x100fffe8
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
test eax, eax
je 0x10087d7f
push esi
push dword [ebp - 0x74]
call edi
jmp 0x10087dfa
push 5
pop ecx
mov esi, 0x100d4964
lea edi, [ebp + 0x184]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp + 0x184]
movsw word es:[edi], word [esi]
push eax
push dword [ebp - 0x7c]
xor esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10087dc9
lea eax, [ebp + 0x30]
push str.userfont.fon
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x10087dd1
mov dword [0x100fcd6c], ebx
jmp 0x10087dfc
push dword [ebp + 0x1ac]
lea eax, [ebp + 0x30]
push dword [ebp - 0x74]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp esi, ebx
je 0x10087dfc
push dword [ebp - 0x74]
push 0x100fffe8
call dword [sym.imp.MSVCR100.dll_wcscpy]
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp + 0x19c]
pop esi
xor ecx, ebp
pop ebx
call fcn.100b4c22
add ebp, 0x1a0
leave
ret 8
Function at 0x100883c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.10087947
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x10088489
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x28]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push eax
call edi
movzx ecx, byte [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov edx, 0x100
imul cx, dx
shr eax, 8
movzx eax, al
add ax, cx
xor ecx, ecx
mov word [ebp - 0xc], ax
mov dword [ebp - 0x24], ebx
cmp cx, ax
jae 0x10088466
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x18]
call edi
cmp dword [ebp - 0x20], 0x70616d63
je 0x10088466
movzx eax, word [ebp - 0xc]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], eax
jl 0x10088441
lea eax, [ebp - 0x18]
push eax
call fcn.100879d4
mov eax, dword [ebp - 0x18]
pop ecx
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.10088071
push dword [esi + 0x18]
mov dword [esi + 0x1c], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x18], ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.100b4c22
leave
ret 4

Function at 0x1008c620
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push str.IMLIB_DEBUG
call esi
add esp, 4
mov ebx, 1
test eax, eax
je 0x1008c662
call sym.awt.dll_awt_setMlibStartTimer
mov dword [0x10100298], eax
call sym.awt.dll_awt_setMlibStartTimer
cmp dword [0x10100298], 0
mov dword [0x1010029c], eax
je 0x1008c662
test eax, eax
je 0x1008c662
mov dword [0x10100288], ebx
push str.IMLIB_PRINT
call esi
add esp, 4
test eax, eax
je 0x1008c676
mov dword [0x1010028c], ebx
push str.IMLIB_START
call esi
add esp, 4
test eax, eax
je 0x1008c698
push 0x10100290
push 0x100cf05c
push eax
call dword [sym.imp.MSVCR100.dll_sscanf]
add esp, 0xc
push str.IMLIB_NOMLIB
call esi
add esp, 4
test eax, eax
je 0x1008c6b3
pop esi
mov dword [0x10100294], ebx
xor al, al
pop ebx
ret 8
mov eax, dword [esp + 0xc]
push 0x1010027c
push 0x100fce2c
push eax
call fcn.10050e80
add esp, 0xc
test eax, eax
jne 0x1008c6a6
pop esi
mov al, bl
pop ebx
ret 8
Function at 0x10093269
Capabilities:
Get keyboard layout

Disassembly:
push 0x14
mov eax, 0x100b7a16
call fcn.100b4d71
and dword [ebp - 4], 0
call fcn.100b022b
call fcn.10050e80
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [ebp - 0x13]
push ecx
push dword [ebp + 0x10]
push edi
call dword [eax + 0x2a4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x10093337
movzx eax, word [0x100ffb2c]
push eax
call sub.java.dll_getJavaIDFromLangID
mov esi, eax
pop ecx
test esi, esi
je 0x100932e5
push ebx
push esi
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x100932dd
mov eax, dword [edi]
push ebx
push dword [ebp + 0x10]
push edi
call dword [eax + 0x2a8]
push esi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov al, 1
jmp 0x10093339
push esi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 0
push 0
call ebx
mov edi, eax
inc edi
js 0x100933e8
cmp edi, 0xffffffff
ja 0x100933e8
test edi, edi
je 0x10093313
cmp edi, 0x3fffffff
ja 0x100933e8
mov eax, edi
shl eax, 2
push eax
call fcn.10050e80
mov esi, eax
pop ecx
test esi, esi
jne 0x10093341
push dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2a8]
xor al, al
call fcn.100b4e16
ret 0x10
lea eax, [esi + 4]
push eax
lea eax, [edi - 1]
push eax
call ebx
call fcn.10050e80
and dword [ebp - 0x18], 0
mov dword [esi], eax
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x18]
cmp eax, edi
jge 0x100933b4
lea ebx, [esi + eax*4]
movzx eax, word [ebx]
push eax
call sub.java.dll_getJavaIDFromLangID
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100933e0
push dword [ebp - 0x1c]
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x100933d6
push dword [ebx]
movzx eax, byte [ebp + 0x14]
push eax
push 0x9823
mov ecx, 0x101004d8
call fcn.10019d20
test eax, eax
je 0x100933aa
push dword [ebx]
call fcn.100a4130
pop ecx
mov byte [ebp - 0x11], 1
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
push dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2a8]
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov al, byte [ebp - 0x11]
pop ecx
jmp 0x10093339
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
inc dword [ebp - 0x18]
jmp 0x1009335a
xor eax, eax
lea edi, [ebp + 0x17]
stosb byte es:[edi], al
mov al, byte [ebp + 0x17]
mov byte [ebp - 0x12], al
push 0x100da640
lea eax, [ebp - 0x12]
push eax
call sub.MSVCR100.dll__CxxThrowException
call fcn.100b024a
mov eax, 0x1009340d
ret
Function at 0x10093418
Capabilities:
Get keyboard layout

Disassembly:
push 0x1c
mov eax, 0x100b7a31
call fcn.100b4d71
xor edi, edi
mov dword [ebp - 4], edi
call fcn.100b022b
call fcn.10050e80
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push edi
call esi
mov ebx, eax
cmp ebx, edi
jl 0x100935cc
cmp ebx, 0xffffffff
ja 0x100935cc
cmp ebx, edi
je 0x10093460
cmp ebx, 0x3fffffff
ja 0x100935cc
mov edi, ebx
shl edi, 2
push edi
call fcn.10050e80
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100934aa
push eax
push ebx
call esi
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
cmp ebx, esi
je 0x10093492
cmp ebx, 0x3fffffff
ja 0x100935b2
push edi
call fcn.10050e80
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x100934b4
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
xor eax, eax
call fcn.100b4e16
ret 8
cmp dword [ebp - 0x24], ebx
jge 0x1009350a
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + ecx*4]
push eax
call sub.java.dll_getJavaIDFromLangID
mov edi, eax
pop ecx
test edi, edi
je 0x10093502
xor esi, esi
cmp esi, dword [ebp - 0x20]
jge 0x100934f4
mov eax, dword [ebp - 0x1c]
push edi
push dword [eax + esi*4]
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x10093507
push edi
call dword [sym.imp.MSVCR100.dll_free]
cmp esi, dword [ebp - 0x20]
pop ecx
jne 0x10093502
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x18]
inc dword [ebp - 0x20]
mov dword [eax + esi*4], edi
inc dword [ebp - 0x24]
jmp 0x100934b4
inc esi
jmp 0x100934d2
mov esi, dword [ebp + 8]
mov eax, dword [esi]
and dword [ebp - 0x20], 0
push str.java_util_Locale
push esi
call dword [eax + 0x18]
xor edi, edi
mov dword [ebp + 8], eax
cmp eax, edi
je 0x10093572
mov ecx, dword [esi]
push edi
push eax
push dword [ebp - 0x18]
push esi
call dword [ecx + 0x2b0]
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x10093569
cmp edi, dword [ebp - 0x18]
jge 0x10093569
mov eax, dword [ebp - 0x1c]
push dword [eax + edi*4]
push esi
call fcn.1009310c
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
mov eax, dword [esi]
je 0x10093589
push dword [ebp - 0x20]
push esi
call dword [eax + 0x5c]
and dword [ebp - 0x20], 0
push dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x5c]
xor esi, esi
cmp esi, dword [ebp - 0x18]
jge 0x10093598
mov eax, dword [ebp - 0x1c]
push dword [eax + esi*4]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
inc esi
jmp 0x10093574
push ebx
push edi
push dword [ebp - 0x20]
push esi
call dword [eax + 0x2b8]
inc edi
jmp 0x1009353a
push dword [ebp - 0x28]
mov esi, dword [sym.imp.MSVCR100.dll_free]
call esi
push dword [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
jmp 0x100934ac
xor eax, eax
lea edi, [ebp + 0xb]
stosb byte es:[edi], al
mov al, byte [ebp + 0xb]
mov byte [ebp - 0x11], al
push 0x100da640
lea eax, [ebp - 0x11]
push eax
call sub.MSVCR100.dll__CxxThrowException
xor eax, eax
lea edi, [ebp + 0xb]
stosb byte es:[edi], al
mov al, byte [ebp + 0xb]
mov byte [ebp - 0x12], al
push 0x100da640
lea eax, [ebp - 0x12]
jmp 0x100935c6
Function at 0x10098ab6
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x38c]
sub esp, 0x40c
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp + 0x388], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc08]
push edi
call fcn.100a9f93
mov edi, eax
test edi, edi
je 0x10098c87
push ebx
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esi + 0xc08]
push edi
mov ebx, eax
call fcn.100a9f9d
cmp ebx, 8
jne 0x10098b53
mov ecx, dword [esi + 0xc08]
call fcn.100a9f93
mov ebx, eax
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.1009892f
pop ecx
pop ecx
mov ecx, dword [esi + 0xc08]
push ebx
mov edi, eax
call fcn.100a9f9d
cmp edi, dword [esi + 0xc00]
jne 0x10098b5a
mov eax, edi
shl eax, 2
push eax
lea eax, [esi + 0x800]
push eax
lea eax, [ebp - 0x78]
push eax
call sub.MSVCR100.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10098b5a
xor eax, eax
jmp 0x10098c86
mov eax, 0x100
cmp edi, eax
jle 0x10098b65
mov edi, eax
mov eax, edi
shl eax, 2
push eax
lea eax, [ebp - 0x78]
push eax
lea ebx, [esi + 0x800]
push ebx
call sub.MSVCR100.dll_memcpy
and dword [ebp - 0x80], 0
add esp, 0xc
lea eax, [edi - 1]
push ebx
mov ecx, esi
mov dword [esi + 0xc00], edi
mov dword [ebp - 0x7c], eax
call fcn.10050e80
cmp eax, 1
jne 0x10098b9f
push 2
jmp 0x10098be2
cmp eax, 2
jne 0x10098ba8
push 3
jmp 0x10098be2
push str.FORCEGRAY
call dword [sym.imp.MSVCR100.dll_getenv]
pop ecx
test eax, eax
je 0x10098be0
push 0xa
pop edx
lea eax, [esi + 0x7d8]
mov ecx, edx
and dword [eax - 0x3d8], 0
and dword [eax], 0
add eax, 4
dec ecx
jne 0x10098bc3
sub edi, 0x14
sub dword [ebp - 0x7c], edx
mov dword [ebp - 0x80], edx
push 1
jmp 0x10098be2
push 0
mov ecx, dword [esi + 0xc08]
call fcn.100aa544
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x7c]
jg 0x10098c26
lea eax, [esi + ecx*4 + 0x400]
movzx edx, byte [ebp + ecx*4 - 0x78]
movzx ebx, byte [ebp + ecx*4 - 0x77]
or edx, 0xffffff00
shl edx, 8
or edx, ebx
movzx ebx, byte [ebp + ecx*4 - 0x76]
shl edx, 8
or edx, ebx
mov dword [eax], edx
inc ecx
add eax, 4
cmp ecx, dword [ebp - 0x7c]
jle 0x10098bfc
push 0x20
lea ebx, [esi + 0x400]
push edi
push ebx
call fcn.10050e80
mov dword [esi + 0xc0c], eax
mov eax, dword [esi + 0xc08]
mov edi, dword [eax + 8]
mov eax, dword [eax]
mov eax, dword [eax]
add esp, 0xc
cmp eax, 3
je 0x10098c55
cmp eax, 1
jne 0x10098c83
test edi, edi
je 0x10098c83
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10098c6c
push eax
call dword [sym.imp.MSVCR100.dll_free]
and dword [edi + 0x10], 0
pop ecx
mov eax, dword [esi + 0xc08]
push dword [eax + 8]
push 0x100
push ebx
call fcn.10050e80
add esp, 0xc
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp + 0x388]
pop edi
xor ecx, ebp
pop esi
call fcn.100b4c22
add ebp, 0x38c
leave
ret
Function at 0x100a5c50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x100fd640]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
call fcn.100b022b
call fcn.10050e80
mov esi, dword [sym.imp.kernel32.dll_GetVersion]
call esi
push eax
push eax
push str.0x_x___ld
lea eax, [ebp - 0x114]
push 0x80
push eax
call fcn.100a3e5f
add esp, 0x14
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.kernel32.dll_lstrlenW]
mov edi, eax
call esi
cmp al, 5
jb 0x100a5d17
call esi
cmp al, 5
jb 0x100a5cdc
call esi
shr eax, 8
cmp al, 1
jae 0x100a5ce2
call esi
cmp al, 5
jbe 0x100a5d03
call esi
cmp al, 6
jb 0x100a5cef
push str.__Windows_Vista_
jmp 0x100a5d1c
push str.__Windows_XP_
push 0x80
lea eax, [ebp + edi*2 - 0x114]
push eax
jmp 0x100a5d29
push str.__Windows_2000_
push 0x80
lea ecx, [ebp + edi*2 - 0x114]
push ecx
jmp 0x100a5d29
push str.__Unknown_
push 0x80
lea edx, [ebp + edi*2 - 0x114]
push edx
call fcn.100a3e5f
lea eax, [ebp - 0x114]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR100.dll_wcslen]
mov ecx, dword [ebx]
add esp, 4
push eax
mov eax, dword [ecx + 0x28c]
lea edx, [ebp - 0x114]
push edx
push ebx
call eax
jmp 0x100a5d63
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b4c22
mov esp, ebp
pop ebp
ret 8
Function at 0x100ab4e3
Capabilities:
Check os version

Disassembly:
push 0xc
mov eax, 0x100b92f3
call fcn.100b4d71
mov eax, dword [0x100fd620]
cmp eax, 0xfffffffe
jne 0x100ab568
call dword [sym.imp.kernel32.dll_GetVersion]
cmp al, 6
jae 0x100ab50e
and dword [0x100fd620], 0
xor eax, eax
jmp 0x100ab568
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call fcn.10050e80
pop ecx
cmp eax, ebx
jl 0x100ab532
mov ebx, dword [ebp - 0x14]
jmp 0x100ab532
push 0x10002
push dword [0x101004d4]
mov dword [0x100fd620], ebx
call sub.java.dll__JNU_GetEnv_8
movzx ecx, bl
push ecx
push str._Z_V
push str.dwmCompositionChanged
push str.sun_awt_Win32GraphicsEnvironment
push 0
push eax
call sub.java.dll_JNU_CallStaticMethodByName
add esp, 0x18
mov eax, ebx
call fcn.100b4e16
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
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 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x45c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x460190
cmp edx, dword [eax]
je 0x45c78b
add eax, 8
inc ecx
cmp eax, 0x460220
jl 0x45c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x460190]
jne 0x45c8b9
mov eax, dword [0x460bb0]
cmp eax, 1
je 0x45c893
test eax, eax
jne 0x45c7bc
cmp dword [0x4600e4], 1
je 0x45c893
cmp edx, 0xfc
je 0x45c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x45c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45f45c
push edi
call fcn.0045df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045d680
lea eax, [ebp - 0xa0]
push 0x45f43c
push eax
call fcn.0045d680
push dword [esi + 0x460194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045d680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0045de75
add esp, 0x2c
pop edi
jmp 0x45c8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x460194]
push 0
push eax
push dword [esi]
call fcn.0045d490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x417f3d
pop dword [ebp - 0x44]
mov eax, 0x417f3d
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3bf70
push 0
mov eax, 0xede26c26
add eax, 0x12602406
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x53aa
xor esi, esi
add esi, eax
mov edx, 0xafb9b9bd
sub edx, 0xaf764bbd
add edx, dword [ebp - 0x44]
mov edi, 0x9071195b
add edi, 0x8d8d072a
add dword [ebp - 0x24], edi
mov ebx, dword [edx]
xor dword [ebp - 0x28], edi
add ebx, edi
sub dword [ebp - 0x34], ecx
mov dword [esi], ebx
add esi, 4
add edx, 4
loop 0x417f93
add eax, 0x1417b
mov ebx, eax
add eax, 5
mov ecx, 0xdb607cbb
add ecx, 0x24df8345
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x41e7e0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp ax, 6
je 0x41e81d
push str.SetDefaultDllDirectories
push 0x429a14
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x41e81d
push 0xc00
call eax
test eax, eax
jne 0x41e8b6
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41e8b6
cmp eax, 0x104
ja 0x41e8b6
cmp word [esp + eax*2 + 6], 0x5c
je 0x41e84c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x41e8b6
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x41e88b
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x41e877
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x41e86c
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x4035f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x46b030]
xor eax, esp
mov dword [esp + 0x410], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], edx
jne 0x40377c
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x110
push 2
pop edx
jne 0x403697
push ecx
push ecx
mov dword [esi + 0x98], edi
call fcn.004037de
mov dword [ebx], eax
cmp dword [esi + 0x98], 0
jne 0x4036bc
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402a25
add esp, 0xc
test eax, eax
jne 0x4036bc
cmp dword [ebp + 0xc], 0x111
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], eax
jne 0x403725
cmp di, word [ebp + 0x10]
jne 0x40374f
push edi
push dword [esi + 4]
mov dword [esi + 0x50], edi
call dword [sym.imp.USER32.dll_EndDialog]
and dword [ebx], 0
jmp 0x403749
cmp dword [ebp + 0xc], 0x111
jne 0x40364a
mov eax, dword [ebp + 0x10]
movzx eax, ax
mov ecx, eax
cmp dx, ax
jne 0x4036c3
push edx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor edi, edi
inc edi
mov dword [ebx], edi
mov eax, edi
jmp 0x40377e
cmp di, cx
jne 0x40370b
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0041cfe0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x80]
call fcn.0040220b
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4036ba
push 0x4d
pop eax
cmp ax, cx
jne 0x40364a
sub esp, 0x10
mov ecx, esi
call fcn.00403c36
mov dword [ebx], eax
jmp 0x4036bc
cmp dword [ebp + 0xc], 0x10
jne 0x403732
push 2
jmp 0x403683
cmp dword [ebp + 0xc], 0x110
jne 0x40374f
push ecx
push ecx
mov ecx, esi
mov dword [esi + 0x50], edi
call fcn.00402918
mov dword [ebx], eax
cmp dword [esi + 0x50], 0
jne 0x403769
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402a25
add esp, 0xc
test eax, eax
je 0x403775
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
jmp 0x4036bc
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
xor eax, eax
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b29a
mov esp, ebp
pop ebp
ret 0x18

Function at 0x40755b
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x44cf90
call fcn.0041bb9e
mov esi, ecx
push 4
xor ebx, ebx
call fcn.0041b2d9
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], edx
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x40794c
push ebx
push ebx
call fcn.00426f8d
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x4075a2
mov eax, esi
call fcn.0041bb6c
ret 4
push 6
mov dword [edi], ebx
call fcn.0041a31d
int3