joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f22
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push dword [0x433364]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x417f52
jmp loc.0043b580
mov eax, esi
pop esi
ret

Function at 0x422939
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00417e9e
and dword [ebp - 4], 0
cmp dword [0x4366c0], 0
mov ebx, eax
jne 0x4229ea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422a9b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42cf10
push edi
call esi
test eax, eax
je 0x422a9b
push eax
call fcn.00417e2c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4366c0], eax
call esi
push eax
call fcn.00417e2c
mov dword [esp], 0x42ceec
push edi
mov dword [0x4366c4], eax
call esi
push eax
call fcn.00417e2c
mov dword [esp], 0x42ced0
push edi
mov dword [0x4366c8], eax
call esi
push eax
call fcn.00417e2c
pop ecx
mov dword [0x4366d0], eax
test eax, eax
je 0x4229ea
push 0x42ceb8
push edi
call esi
push eax
call fcn.00417e2c
pop ecx
mov dword [0x4366cc], eax
mov eax, dword [0x4366cc]
cmp eax, ebx
je 0x422a42
cmp dword [0x4366d0], ebx
je 0x422a42
push eax
call fcn.00417ea7
push dword [0x4366d0]
mov esi, eax
call fcn.00417ea7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422a42
test edi, edi
je 0x422a42
call esi
test eax, eax
je 0x422a39
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422a39
test byte [ebp - 0xc], 1
jne 0x422a42
or dword [ebp + 0x10], 0x200000
jmp 0x422a7b
mov eax, dword [0x4366c4]
cmp eax, ebx
je 0x422a7b
push eax
call fcn.00417ea7
pop ecx
test eax, eax
je 0x422a7b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422a7b
mov eax, dword [0x4366c8]
cmp eax, ebx
je 0x422a7b
push eax
call fcn.00417ea7
pop ecx
test eax, eax
je 0x422a7b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4366c0]
call fcn.00417ea7
pop ecx
test eax, eax
je 0x422a9b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422a9d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40107e
Capabilities:
Delete file
Manipulate console buffer
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.0040dcd0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
xor ebx, ebx
cmp dword [0x441674], 0x594
push edi
mov dword [ebp - 0x14], ecx
jne 0x4010b6
push ebx
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [str._ahiK8_]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x43233c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.00401077
mov eax, dword [0x432340]
add dword [ebp - 0xc], 0x23f
mov dword [ebp - 0x34], eax
mov eax, dword [0x432344]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4010f4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x14]
shl eax, 4
cmp dword [0x441674], 0xc
mov dword [ebp - 4], eax
jne 0x40114f
push ebx
lea eax, [ebp - 0x840]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x1040]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 0x34]
add dword [ebp - 4], eax
mov eax, dword [0x441674]
cmp eax, 0xfa9
jne 0x40116b
mov dword [0x441670], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401191
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4415c8], ebx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea eax, [edi + edx]
shr edx, cl
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [0x44166c], 0xf4ea3dee
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add edi, esi
shr esi, cl
mov dword [ebp - 0x1c], edi
add esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
cmp dword [0x441674], 0xb03
jne 0x401208
push str.yacey_jutesepage_vomebawaridamuzixobonawodewagim
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor dword [ebp - 4], esi
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
add dword [ebp - 0xc], 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010f1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x40144c
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a131
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
cmp dword [0x441674], 0x400
push edi
jne 0x40150d
push 0xf
pop esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x44], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401be0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401920
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004015d0
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.0040192a
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401700
fstp st(0)
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00401aa0
fstp st(0)
or dword [esp + 0x44], 0xffffffff
add esp, 8
cmp dword [esp + 0x2c], 0x10
jb 0x401501
push dword [esp + 0x18]
call fcn.00401950
pop ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
call esi
call esi
cmp edi, 0x206d51
jg 0x40152a
inc edi
cmp edi, 0x4eed4
jl 0x401515
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp esi, 0x2b2589
jg 0x401544
inc esi
cmp esi, 0x118b1
jl 0x40152c
xor esi, esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
cmp esi, 0x2afdec
jle 0x401564
cmp dword [esp + 0x10], 0x787c7e45
jne 0x40156d
inc esi
cmp esi, 0x42f7
jl 0x401546
mov eax, dword [0x434c8c]
mov dword [0x441674], eax
call fcn.00401244
mov esi, 0x3078f
cmp dword [0x441674], 0x51f
jne 0x401596
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
dec esi
jne 0x401581
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403400
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4311c8]
jne 0x40340a
repz ret
jmp fcn.00407fee
Function at 0x407c1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040490b
and dword [ebp - 4], 0
cmp dword [0x43662c], 0
mov ebx, eax
jne 0x407ccc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407d7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407d7d
push eax
call fcn.00404899
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43662c], eax
call esi
push eax
call fcn.00404899
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x436630], eax
call esi
push eax
call fcn.00404899
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x436634], eax
call esi
push eax
call fcn.00404899
pop ecx
mov dword [0x43663c], eax
test eax, eax
je 0x407ccc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404899
pop ecx
mov dword [0x436638], eax
mov eax, dword [0x436638]
cmp eax, ebx
je 0x407d24
cmp dword [0x43663c], ebx
je 0x407d24
push eax
call fcn.00404914
push dword [0x43663c]
mov esi, eax
call fcn.00404914
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407d24
test edi, edi
je 0x407d24
call esi
test eax, eax
je 0x407d1b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407d1b
test byte [ebp - 0xc], 1
jne 0x407d24
or dword [ebp + 0x10], 0x200000
jmp 0x407d5d
mov eax, dword [0x436630]
cmp eax, ebx
je 0x407d5d
push eax
call fcn.00404914
pop ecx
test eax, eax
je 0x407d5d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407d5d
mov eax, dword [0x436634]
cmp eax, ebx
je 0x407d5d
push eax
call fcn.00404914
pop ecx
test eax, eax
je 0x407d5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43662c]
call fcn.00404914
pop ecx
test eax, eax
je 0x407d7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407d7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406200
Capabilities:
Get socket status

Disassembly:
mov eax, 0x3018
jle 0x4061d3
mov dword [ebx], edx
or al, 0x30
add bh, bl
mov ecx, dword [eax + 4]
pop edi
invalid
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp - 0x2d]
push ebx
push esi
push edi
cmp dword [eax + 4], 1
jne 0x40638d
mov esi, dword [eax]
or al, 0x8b
inc ebp
or byte [ebx], dh
leave
jne 0x4061cc
add al, 0x8b
jnp 0x406228
test edx, edx
mov dword [ebp - 8], edi
clc
jbe 0x406240
mov esi, dword [eax + 0x30bb]
add esi, 0xffffff9a
cmp ebx, dword [esi]
je 0x40624e
inc byte [ebx - 0x35c4dd3a]
stc
hlt
pop edi
pop esi
mov eax, 0x1117f
pop ebx
in eax, 2
ret 8
adc dword [ecx - 0x8d72bf], edx
cmp ecx, edx
mov dword [eax + 4], esi
invalid
pop edi
pop esi
mov eax, 9
adc byte [ebx + 0x8c25de5], cl
add byte [eax - 0x6f6fb770], dl
push ebp
mov ebp, esp
sbb esp, dword [eax]
dec ecx
add byte [eax], al
call fcn.0040b820
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
pop ebx
inc ebx
test byte [ebp - 0x74ebb140], 0x45
adc al, 0x5f
pop esi
pop ebx
invalid

Function at 0x40775d
Capabilities:
Encode data using xor

Disassembly:
call 0x407646
mov ecx, 0x1df
call 0x40775d
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x407760
sub bl, cl
sub ch, 0x8b
out dx, al
clc
div esi
cmc
retf

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0xa51c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, 0x1a2c
mov edi, eax
mov dword [ebp - 8], esi
mov eax, 0x4c5b
test ecx, ecx
jle 0xa51c91
sub edx, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
push ebx
mov edx, esi
shr edx, 8
mov dword [ebp - 4], edx
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and dl, bl
mov ebx, esi
mov ecx, eax
shr ecx, 8
and dl, cl
mov dword [ebp - 0x14], ecx
mov ecx, esi
shr ecx, 0x18
shr ebx, 0x10
and cl, bl
mov bl, byte [ebp - 4]
xor dl, cl
mov ecx, dword [ebp - 0x10]
xor dl, byte [ecx + edi]
mov ecx, dword [ebp - 8]
lea esi, [eax*4]
xor esi, eax
add esi, esi
and bl, cl
xor esi, eax
xor dl, bl
xor dl, al
and esi, 0xfffffff0
shl eax, 4
xor esi, eax
shl ecx, 0x18
or ecx, dword [ebp - 0x14]
shl esi, 0x14
or esi, dword [ebp - 4]
mov byte [edi], dl
inc edi
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov eax, ecx
jne 0xa51c24
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa51ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [edx + edx]
xor eax, edx
shl eax, 4
xor eax, edx
and eax, 0xffffff80
mov esi, edx
shl esi, 7
xor eax, esi
mov esi, edx
shr esi, 8
shl eax, 0x11
or eax, esi
add eax, edx
lea edx, [eax + eax]
xor edx, eax
and edx, 0xfffffff8
lea esi, [eax*8]
xor edx, esi
shl edx, 4
mov esi, eax
and esi, 0xffffff80
xor edx, esi
shl edx, 0x11
mov esi, eax
shr esi, 8
or edx, esi
mov byte [ecx], al
add eax, edx
lea edx, [eax + eax]
xor edx, eax
and edx, 0xfffffff8
lea esi, [eax*8]
xor edx, esi
shl edx, 4
mov esi, eax
and esi, 0xffffff80
xor edx, esi
shl edx, 0x11
mov esi, eax
shr esi, 8
or edx, esi
mov byte [ecx + 1], al
add eax, edx
lea edx, [eax + eax]
xor edx, eax
and edx, 0xfffffff8
lea esi, [eax*8]
xor edx, esi
shl edx, 4
mov esi, eax
and esi, 0xffffff80
xor edx, esi
mov esi, eax
shr esi, 8
shl edx, 0x11
or edx, esi
mov byte [ecx + 2], al
add eax, edx
xor esi, esi
mov byte [ecx + 3], al
cmp dword [ebp + 0xc], esi
jle 0xa51e2e
movzx ebx, byte [ecx + 2]
mov dl, byte [ecx + 1]
mov byte [ebp - 1], bl
movzx ebx, al
mov byte [ebp - 2], bl
mov edi, dword [ebp + 8]
movzx edi, byte [esi + edi]
add eax, edi
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
shl edi, 0x11
mov ebx, eax
shr ebx, 8
or edi, ebx
add eax, edi
add byte [ecx], al
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
shl edi, 0x11
mov ebx, eax
shr ebx, 8
or edi, ebx
add eax, edi
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
shl edi, 0x11
mov ebx, eax
shr ebx, 8
or edi, ebx
mov bl, byte [ebp - 1]
add dl, al
add eax, edi
add bl, al
mov byte [ebp - 1], bl
mov byte [ecx + 2], bl
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
mov ebx, eax
shr ebx, 8
shl edi, 0x11
or edi, ebx
mov bl, byte [ebp - 2]
add eax, edi
add bl, al
inc esi
mov byte [ecx + 1], dl
mov byte [ebp - 2], bl
mov byte [ecx + 3], bl
cmp esi, dword [ebp + 0xc]
jl 0xa51d62
xor edx, edx
cmp byte [edx + ecx], 0
jbe 0xa51e6a
movzx esi, byte [edx + ecx]
lea ebx, [ebx]
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
mov ebx, eax
shl edi, 0x11
shr ebx, 8
or edi, ebx
add eax, edi
dec esi
jne 0xa51e40
mov byte [edx + ecx], al
inc edx
cmp edx, 4
jl 0xa51e30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa51e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3ab8
call fcn.00a5b290
mov eax, dword [0xa6003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, cx
mov dword [ebp - 0x3aa0], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3a9c], ecx
mov dword [ebp - 0x3a98], edx
mov dword [ebp - 0x3a94], eax
mov edi, edi
mov ecx, 0x3a34
cmp ebx, 0x3a34
ja 0xa51ecf
mov ecx, ebx
sub ebx, ecx
mov esi, 0x1a2c
xor edi, edi
mov dword [ebp - 0x3a90], ecx
mov dword [ebp - 0x3ab0], ebx
mov dword [ebp - 0x3ab4], ecx
mov dword [ebp - 0x3aa8], esi
mov eax, 0x4c5b
test ecx, ecx
jle 0xa51faf
mov ecx, dword [ebp - 0x3aa0]
lea edx, [ebp - 0x3a8c]
sub ecx, edx
mov dword [ebp - 0x3aac], ecx
mov edx, esi
shr edx, 8
mov dword [ebp - 0x3aa4], edx
mov ebx, eax
shr ebx, 0x18
mov edx, eax
shr edx, 0x10
and bl, dl
mov edx, esi
mov ecx, eax
shr ecx, 8
and bl, cl
mov dword [ebp - 0x3ab8], ecx
mov ecx, esi
mov esi, dword [ebp - 0x3aac]
shr ecx, 0x18
shr edx, 0x10
and cl, dl
mov dl, byte [ebp - 0x3aa4]
xor bl, cl
mov ecx, dword [ebp - 0x3aa8]
and dl, cl
xor bl, dl
lea edx, [ebp + edi - 0x3a8c]
xor bl, byte [esi + edx]
lea esi, [eax*4]
xor esi, eax
add esi, esi
xor esi, eax
xor bl, al
and esi, 0xfffffff0
shl eax, 4
xor esi, eax
shl ecx, 0x18
or ecx, dword [ebp - 0x3ab8]
shl esi, 0x14
or esi, dword [ebp - 0x3aa4]
inc edi
mov byte [edx], bl
mov dword [ebp - 0x3aa8], esi
mov eax, ecx
cmp edi, dword [ebp - 0x3ab4]
jl 0xa51f11
mov ecx, dword [ebp - 0x3a90]
mov ebx, dword [ebp - 0x3ab0]
add dword [ebp - 0x3aa0], ecx
add ecx, 0x10
movzx esi, cx
lea edi, [ebp - 0x3a9c]
test si, si
je 0xa52007
mov ecx, dword [ebp + 8]
push 0
movzx eax, si
push eax
push edi
push ecx
call dword [0xa5c1b8]
test eax, eax
js 0xa51fe1
add edi, eax
sub esi, eax
jmp 0xa52002
cmp eax, 0xffffffff
jne 0xa52002
call dword [0xa5c1a4]
cmp eax, 0x2746
je 0xa52020
cmp eax, 0x2744
je 0xa52020
push 0xa
call dword [0xa5c07c]
test si, si
jne 0xa51fc6
test ebx, ebx
jne 0xa51ec0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a53734
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00a53734
mov esp, ebp
pop ebp
ret
Function at 0x403030
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40306c
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40308c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404b58
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4038cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x464020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403964
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403944
xor eax, eax
push ebp
push 0x40393d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403980
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403944
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x464020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x464020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404768
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466048], 0
je 0x4047c9
cmp word [0x46621c], 0xd7b2
jne 0x404791
cmp dword [0x466224], 0
jbe 0x404791
mov eax, 0x466218
call dword [0x466234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x4047f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46402c], 0
jne 0x4047e5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c5c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cdf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cdf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ea8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d68
xor eax, eax
push ebp
push 0x405d61
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a98
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d46
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ec8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d46
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d68
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405e82
cmp byte [ebp - 0xd], 0
jne 0x405daf
cmp byte [ebp - 0x12], 0
je 0x405e82
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405dc8
dec ebx
cmp byte [ebx], 0x2e
je 0x405dd7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405dc7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e82
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e14
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e82
cmp byte [ebp - 0xd], 0
je 0x405e82
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e82
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret