joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x401047
mov eax, dword [esp + 8]
push esi
push 1
push eax
call sub.gnwie.dll_WIgetvar
mov esi, eax
mov ecx, dword [esi + 0x10]
add esp, 8
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40103f
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push edx
push eax
push 0x601
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push edi
call dword [sym.imp.MSVCR80.dll_exit]
pop esi
pop edi
ret

Function at 0x4011d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4061bc]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, 1
cmp ebp, esi
push edi
mov edi, dword [esp + 0x124]
jle 0x401269
nop
mov ecx, dword [edi + esi*4]
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401208
sub eax, ebx
cmp eax, 3
jbe 0x401262
cmp byte [ecx], 0x2d
jne 0x401262
cmp byte [ecx + 2], 0x3d
jne 0x401262
movsx eax, byte [ecx + 1]
push eax
call dword [sym.imp.MSVCR80.dll_toupper]
add esp, 4
cmp eax, 0x49
je 0x40124e
cmp eax, 0x50
jne 0x401262
mov ecx, dword [edi + esi*4]
add ecx, 3
push ecx
call dword [sym.imp.MSVCR80.dll_atol]
mov dword [esp + 0x18], eax
jmp 0x40125f
mov edx, dword [edi + esi*4]
add edx, 3
push edx
call dword [sym.imp.MSVCR80.dll_atoi]
mov dword [esp + 0x14], eax
add esp, 4
add esi, 1
cmp esi, ebp
jl 0x401200
push 0x100
lea ebx, [esp + 0x1c]
call fcn.00401050
add esp, 4
test eax, eax
je 0x4012ba
push 0x10
push str.SAP_Graphics_Fatal_Error
mov eax, ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4012b2
mov ecx, dword [esp + 0x10]
push 0
push ecx
push 0x601
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x6f
call dword [sym.imp.MSVCR80.dll_exit]
lea edx, [ebp*4]
push edx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x4012d4
xor ax, ax
jmp 0x40133c
xor edx, edx
test ebp, ebp
jle 0x4012f0
xor ecx, ecx
lea esp, [esp]
mov esi, dword [edi + ecx*4]
add edx, 1
mov dword [eax + ecx*4], esi
movsx ecx, dx
cmp ecx, ebp
jl 0x4012e0
push 1
push eax
push ebp
call sub.gnwie.dll_WIinitialise
movzx esi, ax
add esp, 0xc
test si, si
je 0x4012cf
push 1
push esi
call sub.gnwie.dll_WIgetvar
mov edx, dword [0x4061dc]
mov ecx, dword [0x4061d8]
push edx
push ecx
push str.hInst__X__hPrev__X_n
push esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
call sub.gnwie.dll_Wtrace
push sym.gndlx.exe_cbexit
push esi
call sub.gnwie.dll_Wregexitproc
add esp, 0x20
mov ax, si
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040346e
add esp, 0x10c
ret
Function at 0x401550
Capabilities:
Terminate process

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4061bc]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
push esi
mov dword [esp + 0xc], eax
mov al, byte [ebx]
xor esi, esi
test al, al
push edi
mov ecx, ebx
lea edi, [esi + 1]
je 0x4015af
cmp al, 0x22
jne 0x401596
xor edx, edx
test esi, esi
sete dl
mov esi, edx
jmp 0x4015a5
cmp al, 0x20
je 0x40159e
test al, al
jne 0x4015a5
test esi, esi
jne 0x4015a5
add edi, 1
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x401587
mov ebp, dword [sym.imp.MSVCR80.dll_malloc]
lea eax, [edi*4 + 4]
push eax
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
push 0x80
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4015e0
lea ecx, [esp + 0x18]
sub eax, edx
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4015f2
sub ecx, esi
add eax, ecx
je 0x4016f6
add eax, 2
push eax
call ebp
mov edi, eax
add esp, 4
test edi, edi
jne 0x40161c
push 0xffffffffffffffff
call dword [sym.imp.MSVCR80.dll_exit]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401623
sub eax, edx
add eax, 1
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.MSVCR80.dll_memcpy
lea eax, [esp + 0x24]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401647
mov ebp, dword [esp + 0x14]
sub eax, ecx
lea esi, [eax + edi + 1]
mov eax, ebx
mov dword [ebp], edi
mov edi, 1
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401667
sub eax, ecx
add eax, 1
push eax
push ebx
push esi
call sub.MSVCR80.dll_memcpy
mov eax, esi
add esp, 0xc
xor ebx, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401687
sub eax, ecx
add eax, 1
test eax, eax
mov dword [ebp + 4], esi
jle 0x4016fa
lea ecx, [esi + 1]
mov edx, eax
movsx eax, byte [esi]
sub eax, 0
je 0x4016ec
sub eax, 0x20
je 0x4016d7
sub eax, 2
je 0x4016bb
add esi, 1
add ecx, 1
jmp 0x4016ef
xor eax, eax
test ebx, ebx
sete al
mov byte [esi], 0
mov ebx, eax
test ebx, ebx
je 0x4016cf
mov dword [ebp + edi*4], ecx
add esi, 1
add ecx, 1
jmp 0x4016ef
test ebx, ebx
jne 0x4016e4
add edi, 1
mov byte [esi], bl
mov dword [ebp + edi*4], ecx
add esi, 1
add ecx, 1
jmp 0x4016ef
add edi, 1
sub edx, 1
jne 0x4016a1
jmp 0x4016fa
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xa4]
push ebp
push edi
mov dword [0x4061d8], ecx
mov dword [0x4061dc], edx
call fcn.00401cf0
mov ecx, dword [esp + 0xa0]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040346e
add esp, 0x8c
ret 0x10
Function at 0x402236
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [0x4067ec]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
inc edi
test ebx, ebx
jne 0x40225b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
test ebx, ebx
mov dword [0x4067ec], ebx
je 0x4022b7
mov ebp, dword [sym.imp.MSVCR80.dll_malloc]
push 0xc
call ebp
mov esi, eax
test esi, esi
pop ecx
je 0x4022b7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0xc
push 0
push esi
call sub.MSVCR80.dll_memset
mov dword [esi + 4], edi
imul edi, edi, 0x14
push edi
call ebp
add esp, 0x10
test eax, eax
mov dword [esi + 8], eax
je 0x4022b7
push edi
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esi + 8]
xor eax, eax
inc eax
mov dword [ecx + 0x14], eax
mov ecx, dword [esi + 8]
mov dword [ecx + 0x28], eax
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [ecx + 0x3c], eax
and dword [esi], 0
jmp 0x4022b9
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402507
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4061bc]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x98]
call fcn.004022be
mov esi, dword [ebp + 0x94]
imul esi, esi, 0x14
add esi, dword [eax + 8]
xor ebx, ebx
and dword [ebp - 0x80], ebx
cmp dword [ebp + 0x94], 3
mov al, 1
jle 0x402648
cmp dword [esi + 8], ebx
je 0x402603
mov eax, dword [esi + 4]
add eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0xc]
jl 0x4025ad
mov eax, dword [esi + 8]
mov ecx, 0x100
cmp eax, ecx
jb 0x402575
mov eax, ecx
push 0
lea ecx, [ebp - 0x80]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x80]
mov dword [esi + 0xc], eax
cmp dword [ebp - 0x80], 0
jl 0x4025dc
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
push dword [esi + 4]
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 4]
add esp, 0xc
and dword [esi + 0x10], 0
cmp dword [esi + 0xc], 0
jne 0x4025b6
mov byte [eax], 0x1a
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4025e9
cmp cl, 0xa
je 0x4025f5
cmp cl, 0xd
je 0x4025d6
mov byte [edi], cl
mov ecx, dword [ebp + 0x9c]
inc edi
inc ebx
dec ecx
cmp ebx, ecx
je 0x4025f9
inc eax
inc dword [esi + 0x10]
jmp 0x40255f
call fcn.004022be
or dword [eax], 0xffffffff
xor eax, eax
inc eax
jmp 0x40264b
test ebx, ebx
setne al
dec al
and eax, 3
jmp 0x4025fb
xor al, al
jmp 0x4025fb
mov al, 2
mov byte [edi], 0
inc dword [esi + 0x10]
jmp 0x402648
push 0
lea eax, [ebp - 0x80]
push eax
push 1
lea eax, [ebp - 0x79]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x80], 0
jne 0x402624
mov al, 0x1a
mov byte [ebp - 0x79], al
jmp 0x402627
mov al, byte [ebp - 0x79]
cmp al, 0x1a
je 0x402663
cmp al, 0xa
je 0x40266f
cmp al, 0xd
je 0x402603
mov byte [edi + ebx], al
mov eax, dword [ebp + 0x9c]
inc ebx
dec eax
cmp ebx, eax
jne 0x402603
mov al, 2
mov byte [edi + ebx], 0
movzx eax, al
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040346e
add ebp, 0x8c
leave
ret
test ebx, ebx
setne al
dec al
and eax, 3
jmp 0x402644
xor al, al
jmp 0x402644
Function at 0x4027a7
Capabilities:
Read file via mapping

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x4067f4], ebx
push edi
mov edi, dword [0x4060d0]
jne 0x4027c1
push 0x40
call fcn.0040276c
pop ecx
cmp edi, dword [0x4067f4]
jle 0x4027d0
xor eax, eax
jmp 0x40285b
cmp byte [esp + 0x14], bl
push esi
je 0x402808
push dword [esp + 0x10]
push dword [esp + 0x18]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [0x4067f0]
push ebx
push ebx
push ebx
push 2
push eax
mov dword [ecx + edi*8], eax
lea esi, [ecx + edi*8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
jmp 0x40281e
push dword [esp + 0x14]
mov eax, dword [0x4067f0]
push 2
lea esi, [eax + edi*8]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
mov ecx, dword [0x4060d0]
mov eax, dword [0x4060d4]
jmp 0x402837
mov edx, dword [0x4067f0]
cmp dword [edx + ecx*8], ebx
je 0x40283d
inc ecx
cmp ecx, eax
jl 0x40282b
jmp 0x402847
cmp ecx, eax
mov dword [0x4060d0], ecx
jne 0x402852
inc eax
mov dword [0x4060d4], eax
mov dword [0x4060d0], eax
mov eax, dword [esi]
neg eax
sbb eax, eax
and eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x40285e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
cmp esi, edx
je 0x402874
cmp byte [esi], dl
je 0x402874
mov bl, 1
jmp 0x402876
xor bl, bl
mov eax, dword [ebp + 0x14]
cmp eax, edx
je 0x4028cc
mov ecx, dword [ebp + 0x18]
cmp ecx, edx
je 0x4028cc
cmp dword [ebp + 0x1c], edx
mov byte [eax], dl
je 0x40289d
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403277
add esp, 0x10
jmp 0x4028cf
cmp bl, dl
je 0x4028b7
push esi
push ecx
push eax
push 0x404512
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4028cf
push ecx
push eax
push 0x404512
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
jmp 0x4028cf
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
Function at 0x402dde
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x118
mov eax, dword [0x4061bc]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push edi
mov edi, dword [ebp + 0x78]
mov eax, edi
call fcn.00402922
mov ebx, eax
test ebx, ebx
je 0x40300a
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR80.dll__time64]
cmp byte [ebp + 0x7c], 0
pop ecx
jne 0x402e2a
push 0x404830
push edi
call fcn.00402d7e
pop ecx
pop ecx
push esi
push 1
push dword [ebp + 0x7c]
push edi
call fcn.00402db2
mov esi, str.____n
push esi
push edi
call fcn.00402d7e
add esp, 0x14
cmp byte [ebp + 0x7c], 0
je 0x402e79
push str.06:52:56
push str.Feb_13_2008
push str.____Build:__s___s_n
push edi
call fcn.00402d7e
add ebx, 0x28
push ebx
push str.____trace_file__s_n
push edi
call fcn.00402d7e
add esp, 0x1c
mov ebx, str.opened
jmp 0x402e7e
mov ebx, str.closed
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCR80.dll__ctime64]
push eax
push ebx
push str._____s_on__s
push edi
call fcn.00402d7e
add esp, 0x14
cmp byte [ebp + 0x7c], 0
je 0x402fe1
lea eax, [ebp - 0x9c]
push eax
mov ebx, 0x4047c0
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x8c]
cmp eax, 3
jae 0x402ed3
mov ebx, dword [eax*4 + 0x406100]
push eax
push ebx
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push str.____32_Bit_Windows_Version__ld._ld__Build__ld__under_Windows__s___ld__n
push edi
call fcn.00402d7e
add esp, 0x1c
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp + 0x30]
push str.____Processor_Type__lX_n
push edi
call fcn.00402d7e
push esi
push edi
call fcn.00402d7e
mov edi, dword [sym.imp.KERNEL32.dll_GetProfileStringA]
add esp, 0x14
push 0x20
lea eax, [ebp - 8]
push eax
mov ebx, 0x404512
push ebx
push str.sLanguage
mov esi, str.intl
push esi
call edi
push 0x80
lea eax, [ebp - 0x88]
push eax
push ebx
push str.sCountry
push esi
call edi
push 0
push str.iCountry
push esi
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
push 0x20
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x1c]
push eax
push ebx
push str.sShortDate
push esi
call edi
push 0x10
lea eax, [ebp + 0x4c]
push eax
push ebx
push str.sCurrency
push esi
call edi
push 0x10
lea eax, [ebp + 0x5c]
push eax
push ebx
push str.sThousand
push esi
call edi
push 0x10
lea eax, [ebp + 0x3c]
push eax
push ebx
push str.sDecimal
push esi
call edi
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 8]
push eax
push str.____Intl:_Ctry__s__s___d__n
push dword [ebp + 0x78]
call fcn.00402d7e
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x1c]
push eax
push str.__________Date__s__Cur__s__Th__s_Dec__s_n
push dword [ebp + 0x78]
call fcn.00402d7e
mov edi, dword [ebp + 0x78]
add esp, 0x2c
mov esi, str.____n
push esi
push edi
call fcn.00402d7e
push 0
push dword [ebp + 0x7c]
push edi
call fcn.00402db2
add esp, 0x14
cmp byte [ebp + 0x7c], 0
pop esi
je 0x40300a
push 0x404830
push edi
call fcn.00402d7e
pop ecx
pop ecx
mov ecx, dword [ebp + 0x6c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040346e
add ebp, 0x70
leave
ret
Function at 0x403277
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
push edi
je 0x4032d6
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4032d6
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov byte [esi], 0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4032a9
push 0xfffffffffffffffe
pop eax
jmp 0x4032d9
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 0x10], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4032c6
mov esi, dword [ebp + 0x10]
jmp 0x4032c9
push 0xfffffffffffffffd
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4032d9
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x40346e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4061bc]
jne 0x403478
repz ret
jmp fcn.004037a6
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 0xd33058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd331a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd3307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd3306a
add dl, dl
jne 0xd33089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd330dc
xor eax, eax
add dl, dl
jne 0xd33096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd3317d
add dl, dl
jne 0xd330a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd330b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd330bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd330c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd330d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd33075
mov eax, 1
add dl, dl
jne 0xd330ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd330f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd330e1
sub eax, ebx
mov ebx, 1
jne 0xd33128
mov ecx, 1
add dl, dl
jne 0xd3310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd33119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd33105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd33075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd3313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd3314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd33136
cmp eax, 0x7d00
jae 0xd3316d
cmp eax, 0x500
jb 0xd33168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd33075
cmp eax, 0x7f
ja 0xd33170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd33075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd3319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd33075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4081c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040866c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40834d
test edi, edi
je 0x40834d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40828d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408268
cmp edi, 0xffffffff
je 0x408229
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408229
mov byte [esp], 0
jmp 0x40834d
cmp dword [esi], 1
jg 0x408268
cmp dword [esi], 0
jne 0x40825a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40825a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40834d
lea eax, [esp + 0xc]
call fcn.00407e98
dec ebp
test ebp, ebp
jg 0x40820e
cmp edi, 0xffffffff
je 0x40828d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40828b
mov byte [esp], 0
jmp 0x40834d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4081d2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40828d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004083c8
mov edx, eax
mov ebx, dword [0x4c28f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4082f1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4082ef
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4082f1
xor edi, edi
cmp byte [esp], 0
je 0x408317
mov ebx, dword [esi]
test bl, 1
jne 0x40832d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4082f7
mov byte [esp + 1], 1
jmp 0x40832d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408317
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4082a4
cmp byte [esp], 0
je 0x40834d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4091fc
Capabilities:
Persist via application shimming
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c2058], 0
je 0x409263
cmp word [0x4c2344], 0xd7b2
jne 0x409225
cmp dword [0x4c234c], 0
jbe 0x409225
mov eax, 0x4c2340
call dword [0x4c235c]
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, 0x409290
call fcn.00409d5c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4be032], 0
jne 0x40927f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4b6660
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4b6684
mov eax, dword [ebp - 4]
jmp 0x4b6687
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b668c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4b66d9
xor ebx, ebx
jmp 0x4b66ce
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0041bb74
test eax, eax
jne 0x4b66cd
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4b6784
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b66af
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4b66e5
je 0x4b66ee
jmp 0x4b66f7
call fcn.004257f4
mov esi, eax
jmp 0x4b66f9
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4b66f9
xor esi, esi
test si, si
je 0x4b6784
xor ebx, ebx
jmp 0x4b671f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4b671e
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4b6784
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b6706
xor ebx, ebx
jmp 0x4b6779
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4b6778
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4b676d
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004b6660
push eax
mov eax, esi
call fcn.004b6660
pop edx
cmp edx, eax
jne 0x4b6778
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4b6784
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b672e
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x401133
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x421a76
call fcn.00418758
sub esp, 0x3c
test byte [ebp + 0xd], 1
je 0x4011d4
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00401644
and dword [ebp - 4], 0
push 1
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x10], 0x5c
call fcn.00401759
cmp eax, 0xffffffff
je 0x4011bb
push edi
push eax
lea edi, [eax + 1]
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401667
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x401191
lea eax, [ebp - 0x28]
push eax
call fcn.0042112a
pop ecx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017f4
push 1
push edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x10], 0x5c
call fcn.00401759
cmp eax, 0xffffffff
jne 0x401173
pop edi
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or byte [ebp + 0xd], 2
push 1
lea ecx, [ebp - 0x48]
call fcn.004017f4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415fd0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
leave
ret