joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2cf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xb4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0xb4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0xb4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 5
push edx
call ebx
mov eax, dword [esi + 0xb4]
push 0
push 0
push 7
push eax
call ebx
mov ecx, dword [esi + 0xb4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp byte [esi + 0xad], 0
je 0x4c2db9
push edi
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4c2db8
mov edi, dword [esi + 4]
test edi, edi
je 0x4c2d9b
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0x24]
cmp ecx, eax
je 0x4c2d85
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x4c2d9b
mov ecx, dword [edi + 0x24]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x37f
push ecx
call ebx
cmp eax, 1
je 0x4c2daf
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0xad], 0
jne 0x4c2d51
pop edi
xor eax, eax
cmp dword [esi + 0xa8], 1
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d41a0
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push 0x7f02
push 0
mov ebx, ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4d41c9
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 4], eax
jmp 0x4d41d0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0xb4]
push esi
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
call esi
cmp byte [ebx + 0xad], 0
mov edi, eax
je 0x4d423c
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4d423c
call esi
call esi
sub eax, edi
cmp eax, 0x493e0
ja 0x4d423c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [ebx + 0xad], 0
jne 0x4d41f4
mov eax, dword [ebp - 4]
pop edi
pop esi
test eax, eax
je 0x4d424c
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp dword [ebx + 0xa8], 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret
Function at 0x4d82a0
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bc28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x54e938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp byte [ebp + 8], bl
je 0x4d82d8
lea ecx, [esi + 4]
call fcn.004d7b00
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
sar eax, 2
test eax, eax
jne 0x4d83da
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
push ecx
push 0x5329b4
push 1
push ebx
push 0x53615c
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x4d832d
cmp ecx, ebx
je 0x4d832d
mov edx, dword [ecx]
push ebx
lea eax, [ebp + 8]
push eax
push 0x53616c
push ecx
mov ecx, dword [edx + 0xc]
call ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4d83b5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x10]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
mov byte [ebp - 4], 2
call eax
test eax, eax
jne 0x4d839c
lea ecx, [ecx]
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [esi + 4]
call main
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4d837f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x10]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
mov byte [ebp - 4], 2
call eax
test eax, eax
je 0x4d8360
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4d83af
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x4d83c7
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4d83da
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4e08c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x4e08cf
pop dword [ebp - 0x48]
mov eax, 0x4e08cf
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x8810e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0xf7fd2600
sub ecx, 0xf7fce0c4
mov edx, eax
mov edi, 0x18ea75d5
add edi, 0xe76d2c2b
add edi, dword [ebp - 0x48]
mov esi, 0xee1212bb
add esi, 0x2006010a
add dword [ebp - 0x44], edx
mov ebx, dword [edi]
xor dword [ebp - 0x38], esi
add ebx, esi
mov dword [edx], ebx
add edx, 0xde6c9f83
sub edx, 0xde6c9f7f
add edi, 0x36f8c018
add edi, 0xc9073fec
loop 0x4e0924
add eax, 0x953860d7
add eax, 0x6ac8a6ec
mov ebx, eax
add eax, 0x94ff33c4
sub eax, 0x94ff33bf
mov ecx, 0xa4f972a9
sub ecx, 0xa4b972a9
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4f51ea
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x552d4c], 0
push esi
push edi
jne 0x4f5160
call fcn.004f50cc
test eax, eax
je 0x4f51a5
mov eax, dword [0x552d4c]
cmp eax, 1
jne 0x4f5181
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x4f51a5
jmp 0x4f51e7
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4f51e7
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4f51a9
xor eax, eax
jmp 0x4f51e7
mov eax, dword [esi]
push dword [0x552d4c]
call edi
mov edi, eax
test edi, edi
je 0x4f51cb
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x4f51e7
lea edi, [esi + 0xff0]
push esi
push dword [0x552d4c]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4f51d1
mov eax, esi
pop edi
pop esi
ret
jmp 0x4f514c
Function at 0xa76920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4f9000]
push edi
jmp 0xa7693a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa76941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa76930
mov eax, 1
add ebx, ebx
jne 0xa76953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa76964
jne 0xa76983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa76983
dec eax
add ebx, ebx
jne 0xa76970
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa76948
add ebx, ebx
jne 0xa7697f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa769d5
xor ecx, ecx
sub eax, 3
jb 0xa7699b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa76a0a
sar eax, 1
mov ebp, eax
jmp 0xa769a6
add ebx, ebx
jne 0xa769a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa76974
inc ecx
add ebx, ebx
jne 0xa769b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa76974
add ebx, ebx
jne 0xa769c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa769b6
jne 0xa769d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa769b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa769f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa769e6
jmp 0xa76936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa769f4
add edi, ecx
jmp 0xa76936
pop esi
mov edi, esi
mov ecx, 0x1052b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa76a12
cmp byte [edi], 0x6d
jne 0xa76a12
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 0xa76a17
lea edi, [esi + 0x673000]
mov eax, dword [edi]
or eax, eax
je 0xa76a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x67ed58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x67ee5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa76a44
mov ecx, edi
jns 0xa76a73
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 + 0x67ee60]
or eax, eax
je 0xa76a89
mov dword [ebx], eax
add ebx, 4
jmp 0xa76a61
call dword [esi + 0x67ee70]
mov ebp, dword [esi + 0x67ee64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0xa76ac3
sub esp, 0xffffff80
jmp 0x84f960

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 0x403fbc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405ad4
test esi, esi
jne 0x403ff2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405c10
jmp 0x404010
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403ea0
mov edi, eax
test esi, esi
je 0x404010
cmp dword [ebx], 0
je 0x404010
dec esi
jmp 0x403ff9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405854
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43704c], 0
je 0x4058bb
cmp word [0x437338], 0xd7b2
jne 0x40587d
cmp dword [0x437340], 0
jbe 0x40587d
mov eax, 0x437334
call dword [0x437350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4058e8
call fcn.00405f74
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x432022], 0
jne 0x4058d7
push 0
push 0x43299a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4071b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407315
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ad4
cmp si, word [0x4329d8]
jb 0x407248
cmp si, word [0x432bd8]
ja 0x407248
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407248
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4329d8]
jae 0x407222
mov edi, ebx
dec edi
jmp 0x407243
cmp si, word [ebx*8 + 0x4329d8]
jbe 0x407232
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407243
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4329dc]
call fcn.004070d0
jmp 0x407248
cmp edi, dword [ebp - 8]
jae 0x40720c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4072f7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4072f7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004060b0
push dword [ebp - 0x160]
push 0x407330
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004060b0
push dword [ebp - 0x164]
push 0x407340
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004060b0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40731c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405b34
ret
Function at 0x4074c8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4075cb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x439b7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x439b94]
jne 0x407514
mov eax, esi
mov edx, 0x439b96
mov ecx, 0x55
call fcn.004060b0
push 0x439b7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4075b5
push 0x439b7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405ad4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407583
cmp byte [0x439b78], 0
je 0x407548
mov edx, esi
mov eax, ebx
call fcn.004073ac
jmp 0x407583
mov edx, esi
mov eax, ebx
call fcn.004071b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407583
cmp dword [esi], 0
je 0x40756c
mov eax, esi
mov edx, 0x4075e4
call fcn.00406188
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004071b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406188
push 0x439b7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x439b94], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040601c
push eax
push 0x439b96
call sub.kernel32.dll_lstrcpynW
push 0x439b7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4075d2
lea eax, [ebp - 4]
call fcn.00405ad4
ret
Function at 0x407d14
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405bb8
xor eax, eax
push ebp
push 0x407dd4
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004060b0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004061e0
mov eax, dword [ebx]
call fcn.00407bdc
test al, al
jne 0x407db1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004060b0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004061e0
mov eax, dword [ebx]
call fcn.00407bdc
test al, al
jne 0x407db1
mov eax, ebx
call fcn.00405ad4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ddb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405b34
lea eax, [ebp - 4]
call fcn.00405ad4
ret

Function at 0x40834c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040601c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4154b6
test ah, 4
je 0x4154af
test bl, bl
jne 0x415474
mov al, 1
jmp 0x4154dd
test al, 0x10
je 0x41547c
xor eax, eax
jmp 0x4154dd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4154a0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4154dd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4154dd
test al, 0x10
sete al
jmp 0x4154dd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x4154d7
cmp ebx, 3
je 0x4154d7
cmp ebx, 0x7b
je 0x4154d7
mov eax, esi
call fcn.0041540c
test al, al
jne 0x4154db
xor eax, eax
jmp 0x4154dd
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4154e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040601c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41558b
test esi, 0x400
jne 0x415520
test esi, 0x10
setne bl
jmp 0x4155af
cmp byte [esp], 0
je 0x415554
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4155af
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x4155af
test esi, 0x10
je 0x415560
mov bl, 1
jmp 0x4155af
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x415587
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4155af
mov bl, 1
jmp 0x4155af
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4155a9
cmp eax, 3
je 0x4155a9
cmp eax, 0x7b
je 0x4155a9
cmp eax, 0x35
je 0x4155a9
cmp eax, 0x15
jne 0x4155ad
xor ebx, ebx
jmp 0x4155af
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4157d4
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040601c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x415829
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415823
test ah, 4
je 0x415823
test al, 0x10
je 0x415823
mov eax, esi
call fcn.0040601c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x415829
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x417060
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x417099
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405c10
jmp 0x4170a2
mov eax, ebx
mov edx, esi
call fcn.00405d8c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4170ac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4170ce
movzx eax, word [esp]
jmp 0x4170d0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x417da8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x417ecd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417bb0
mov esi, eax
mov eax, dword [0x436410]
cmp byte [eax], 0
je 0x417e75
mov eax, dword [0x436338]
call fcn.004044d8
call fcn.00403d50
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417d78]
call fcn.00406c4c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417ee8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417eb1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x436314]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x439c44]
call fcn.00406d04
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417ed4
lea eax, [ebp - 4]
mov edx, dword [0x417d78]
call fcn.00406c58
ret

Function at 0x418f8c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405e88
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040832c
mov edi, eax
cmp edi, 0x104
jbe 0x418f33
mov eax, edi
add eax, eax
call fcn.00403bfc
mov esi, eax
jmp 0x418f35
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040832c
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418f70
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x418f5a
mov eax, esp
cmp esi, eax
je 0x418f7d
mov eax, esi
call fcn.00403c18
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x418fb8
cmp bl, 0
je 0x418fb4
cmp bl, 0x41
jl 0x418faf
cmp bl, 0x5a
jg 0x418faf
or bl, 0x20
xor al, bl
inc esi
jmp 0x418f93
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418ef4

Function at 0x4191d8
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004060b0
add esp, 0x800
pop ebx
ret
Function at 0x4194c4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00405ad4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040601c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x419509
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00405c10
jmp 0x419522
mov edx, ebx
dec edx
mov eax, esi
call fcn.00406108
push ebx
mov eax, dword [esi]
call fcn.0040601c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c774
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x43420c
test edx, edx
jne 0x41c793
xor eax, eax
jmp 0x41c8b1
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x41c7b0
push esi
push edx
push eax
call fcn.0041c8b8
add esp, 0xc
jmp 0x41c8b1
push esi
push edx
push eax
call fcn.0041cb78
add esp, 0xc
jmp 0x41c8b1
pop esi
pop ebx
pop ecx
pop ebp
ret