joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45005f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4500fc
push ebx
push esi
call fcn.00450028
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044ffbc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4500a9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4500fb
push edi
push eax
call fcn.0044d6ed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4500c9
call fcn.0044d59a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4500fa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044ffbc
add esp, 0x20
test eax, eax
jne 0x4500e8
push edi
call fcn.0044d59a
jmp 0x4500f0
push ebx
call fcn.0044d59a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x452d50
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0044c8c2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x452dbf
cmp esi, dword [ebp - 4]
je 0x452dba
cmp dword [ebp + 0xc], 0
je 0x452dba
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x452d97
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004528a2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x452dc1
xor eax, eax
inc eax
jmp 0x452dc1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x452e26
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b22c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0044c8c2
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0044c8c2
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x452e9d
cmp word [ecx], dx
je 0x452e9d
mov eax, dword [0x4ac0ec]
push edi
dec eax
push eax
push 0x4abfd8
call fcn.00452dc5
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x452f10
cmp word [eax], dx
je 0x452f10
mov eax, dword [edi]
test eax, eax
je 0x452ec1
cmp word [eax], dx
je 0x452ec1
lea eax, [ebp - 0x10]
push eax
call fcn.004527a8
jmp 0x452eca
lea eax, [ebp - 0x10]
push eax
call fcn.00452843
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x452f3a
mov eax, dword [0x4abfd4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4abcc8
call fcn.00452dc5
add esp, 0xc
test al, al
je 0x452f3a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x452f05
cmp word [eax], di
je 0x452f05
lea eax, [ebp - 0x10]
push eax
call fcn.004527a8
pop ecx
jmp 0x452f3c
lea eax, [ebp - 0x10]
push eax
call fcn.00452843
jmp 0x452f02
mov eax, dword [edi]
test eax, eax
je 0x452f27
cmp word [eax], dx
je 0x452f27
lea eax, [ebp - 0x10]
push eax
call fcn.0045275d
pop ecx
jmp 0x452f3a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x453005
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00452c4a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x453005
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x453005
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x453005
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x452f92
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044c42b
test ebx, ebx
je 0x453000
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044c42b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x453005
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x453005
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00458e0a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x453007
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043d670
leave
ret
Function at 0x4549b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043d680
mov eax, dword [0x4b22c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0044e531
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4549f9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x454b55
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045aec0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4b3a58]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004559b4
mov ecx, dword [esi*4 + 0x4b3a58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x454b4e
cmp eax, dword [ecx + edi + 0x24]
jne 0x454b4e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x454b4e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004559b4
add esp, 0x14
test edx, edx
jl 0x454b4e
jg 0x454ac4
test eax, eax
jb 0x454b4e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x454b4e
jl 0x454ade
cmp dword [ebp - 0x1008], eax
ja 0x454b4e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x454afc
test ebx, ebx
je 0x454b35
cmp ecx, edi
jae 0x454b35
mov al, byte [ecx]
cmp al, 0xd
jne 0x454b16
lea eax, [edi - 1]
cmp ecx, eax
jae 0x454b22
cmp byte [ecx + 1], 0xa
jne 0x454b22
inc ecx
jmp 0x454b22
movzx eax, al
movsx eax, byte [eax + 0x4b2ab8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x454afc
cmp edx, ebx
jne 0x454afc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x454b53
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043d670
leave
ret
Function at 0x454e4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4b3a58]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x454e8c
cmp byte [ebx], 0xa
jne 0x454e8c
or byte [edi + eax + 0x28], 4
jmp 0x454e91
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x454f90
mov dl, byte [eax]
cmp dl, 0x1a
je 0x454f73
inc eax
cmp dl, 0xd
je 0x454ebd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x454ee3
cmp eax, ecx
jae 0x454ef1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x454ea5
jmp 0x454f90
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x454f6e
cmp dword [ebp - 0x10], 0
je 0x454f6e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4b3a58]
test byte [eax + edi + 0x28], 0x48
je 0x454f48
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x454f33
mov byte [esi], dl
jmp 0x454f44
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b3a58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x454f90
cmp byte [ebp - 1], 0xa
jne 0x454f57
cmp esi, ebx
jne 0x454f57
mov byte [esi], 0xa
jmp 0x454f8f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004559d2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x454f90
mov byte [esi], 0xd
jmp 0x454f8f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4b3a58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x454f8d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x454f90
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x454f99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4b3a58]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x454fdf
cmp word [ebx], dx
jne 0x454fdf
or byte [eax + edi + 0x28], 4
jmp 0x454fe4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x455147
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x455127
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x455025
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45505b
cmp eax, edx
jae 0x455069
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x455000
jmp 0x455147
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x455122
cmp dword [ebp - 0x18], 0
je 0x455122
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4b3a58]
test byte [eax + edi + 0x28], 0x48
je 0x4550f8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4550bc
mov word [esi], cx
jmp 0x4550f3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4b3a58]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4b3a58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4b3a58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x455147
pop eax
cmp word [ebp - 4], ax
jne 0x455108
cmp esi, ebx
jne 0x455108
mov word [esi], ax
jmp 0x455144
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004559d2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x455147
push 0xd
pop eax
jmp 0x455103
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4b3a58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x455141
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x455147
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45ae80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45aead
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45aead
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100034d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10003539
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10003080
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x10003550
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100035e2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x100035d4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x100035cc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10003595
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x401110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ecx, ecx
xor ebx, ebx
xor edi, edi
mov esi, 0x7a25
mov eax, 0x51eb851f
imul esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401121
inc ecx
mov eax, ecx
and eax, 0x80000007
jns 0x401143
dec eax
or eax, 0xfffffff8
inc eax
jne 0x401146
inc ecx
cmp ecx, 0x6d86
jl 0x401134
xor edi, edi
inc edi
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, edi
lea eax, [eax + eax*8]
sub ecx, eax
jne 0x40116d
add edi, 5
cmp edi, 0x4b1
jl 0x401150
mov eax, dword [ebp + 8]
mov edi, ebx
test eax, eax
je 0x4011f8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4011f8
cmp eax, ecx
jae 0x4011f8
mov esi, ecx
sub esi, eax
mov ebx, 0x980
mov eax, 0x78787879
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401192
mov ebx, dword [ebp + 8]
mov ecx, 0xedc
lea ecx, [ecx]
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4011b0
inc edi
mov eax, edi
and eax, 0x80000001
jns 0x4011d4
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4011d7
inc edi
cmp edi, 0x666c
jl 0x4011c5
xor ecx, ecx
test esi, esi
je 0x40124a
mov al, byte [ecx + ebx + 1]
sub al, 0x4c
xor byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jb 0x4011e5
pop edi
pop esi
pop ebx
pop ebp
ret
inc esi
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*4]
sub ecx, eax
jne 0x401216
add esi, esi
jmp 0x40121f
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add esi, eax
cmp esi, 0x30f8
jl 0x4011f8
inc ebx
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, ebx
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x401242
add ebx, 2
cmp ebx, 0x5ba1
jl 0x401227
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, 0x2454
jmp 0x4031a0
mov eax, 0xae4c415d
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4031a0
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], eax
jbe 0x40332f
mov ecx, dword [ebp + 8]
push ebx
add ecx, 0x1d
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0xee
push edi
add eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x28], eax
mov al, byte [eax]
mov dword [ebp - 8], 0x6148
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 8]
mov byte [ebp - 2], al
mov edi, 0x4239
mov ecx, 0x5fd6
mov dword [ebp - 0x14], 0x226c
mov dword [ebp - 0x18], 0x86
mov ebx, 0x3dc2
mov dword [ebp - 0x24], 0x6f35
mov eax, 0x3159721f
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x403214
mov esi, dword [ebp - 0x10]
lea ebx, [ebx]
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x403230
mov eax, 0x83993053
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x403245
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
inc byte [edi + 0xa]
mov al, byte [edi + 0xa]
mov byte [ebp - 1], al
lea esp, [esp]
mov eax, 0xb70fbb5b
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x403270
movzx eax, byte [ebp - 1]
add eax, 0x1d
add eax, edi
mov dword [ebp - 8], eax
movzx edx, byte [eax]
movzx eax, byte [edi + 0x17]
add edx, eax
mov eax, dword [ebp - 0x18]
mov byte [edi + 0x17], dl
mov ecx, 0x496
cmp eax, 0xee
cmovl eax, dword [ebp - 0x1c]
dec ecx
jne 0x4032a5
movzx eax, dl
add edi, 0x1d
add edi, eax
push edi
push dword [ebp - 8]
call fcn.004036d0
add esp, 8
inc esi
mov eax, esi
and eax, 0x80000003
jns 0x4032d4
dec eax
or eax, 0xfffffffc
inc eax
jne 0x4032d7
inc esi
cmp esi, 0x337a
jl 0x4032c5
mov eax, dword [ebp - 8]
mov cl, byte [eax]
add cl, byte [edi]
mov eax, 0xd62b80d7
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4032e6
mov eax, dword [ebp - 0x20]
movzx ecx, cl
mov cl, byte [ecx + eax]
mov eax, dword [ebp - 0x24]
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jne 0x403307
xor cl, byte [ebp - 2]
mov eax, dword [ebp - 0x28]
mov byte [eax], cl
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp + 0x10]
jb 0x4031d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403090
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047f8
test esi, esi
jne 0x4030c6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048e8
jmp 0x4030e4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f94
mov edi, eax
test esi, esi
je 0x4030e4
cmp dword [ebx], 0
je 0x4030e4
dec esi
jmp 0x4030cd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x488020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40386c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40384c
xor eax, eax
push ebp
push 0x403845
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 0x403888
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 0x40384c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x488020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x488020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404678
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48c048], 0
je 0x4046d9
cmp word [0x48c21c], 0xd7b2
jne 0x4046a1
cmp dword [0x48c224], 0
jbe 0x4046a1
mov eax, 0x48c218
call dword [0x48c234]
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 0x404700
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48802c], 0
jne 0x4046f5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405bb4
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 0x405de4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c37
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405de4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c37
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405cc0
xor eax, eax
push ebp
push 0x405cb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004059f0
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 0x405c9e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c9e
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 0x405cc0
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 0x405dda
cmp byte [ebp - 0xd], 0
jne 0x405d07
cmp byte [ebp - 0x12], 0
je 0x405dda
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d20
dec ebx
cmp byte [ebx], 0x2e
je 0x405d2f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d1f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405dda
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d6c
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 0x405dda
cmp byte [ebp - 0xd], 0
je 0x405dda
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 0x405dda
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