joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ad600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e4142
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov al, byte [esp + 0x34]
sub esp, 0x24
mov ebx, esp
mov dword [esp + 0x50], 0
mov dword [esp + 0x3c], esp
mov dword [esp + 0x38], ebx
mov byte [ebx], al
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jne 0x5ad647
xor eax, eax
jmp 0x5ad650
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 4
test eax, eax
jge 0x5ad656
xor eax, eax
shl eax, 4
push eax
call fcn.005bcf2f
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
add esp, 4
mov esi, eax
cmp ebp, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], esi
je 0x5ad709
add ebp, 4
mov dword [esp + 0x44], esi
test esi, esi
mov byte [esp + 0x50], 1
je 0x5ad6f0
mov cl, byte [ebp - 4]
mov byte [esi], cl
mov ecx, dword [ebp]
test ecx, ecx
jne 0x5ad69f
xor eax, eax
jmp 0x5ad6a7
mov eax, dword [ebp + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x5ad6ad
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.005bcf2f
mov dword [esi + 4], eax
mov ebx, dword [ebp + 4]
mov esi, dword [ebp]
add esp, 4
cmp esi, ebx
mov edi, eax
je 0x5ad6e0
push esi
push edi
call fcn.00402e10
add esi, 4
add esp, 8
add edi, 4
cmp esi, ebx
jne 0x5ad6cc
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov esi, eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov ecx, dword [esp + 0x3c]
add ebp, 0x10
add esi, 0x10
lea eax, [ebp - 4]
mov dword [esp + 0x34], esi
cmp eax, ecx
jne 0x5ad682
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov cl, byte [esp + 0x68]
mov byte [esp + 0x50], 2
mov byte [ebx + 0x10], cl
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jne 0x5ad727
xor eax, eax
jmp 0x5ad730
mov eax, dword [esp + 0x70]
sub eax, ecx
sar eax, 3
test eax, eax
jge 0x5ad736
xor eax, eax
lea edx, [eax*8]
push edx
call fcn.005bcf2f
mov dword [ebx + 0x14], eax
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
add esp, 4
mov esi, eax
cmp edi, ecx
mov ebp, ecx
mov dword [esp + 0x3c], esi
je 0x5ad780
mov dword [esp + 0x44], esi
test esi, esi
mov byte [esp + 0x50], 3
je 0x5ad772
push edi
mov ecx, esi
call fcn.00412630
add edi, 8
add esi, 8
cmp edi, ebp
mov dword [esp + 0x3c], esi
jne 0x5ad75d
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov al, byte [esp + 0x78]
add ecx, 0x1ff0
mov byte [ebx + 0x20], al
mov byte [esp + 0x50], 0
call fcn.00559e10
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00559d60
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x24
Function at 0x5b7ff0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
test eax, eax
push edi
mov edi, ecx
jbe 0x5b8135
fldln2
push ebx
push ebp
push esi
fld qword [0x5e7840]
fyl2x
fldln2
fld qword [0x5e6c48]
fyl2x
fdivp st(1)
call fcn.005bd300
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov ecx, 0xfffffffc
sub ecx, eax
lea esi, [eax + 4]
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
add ecx, eax
mov eax, dword [esi + 8]
mov dword [esi], ecx
mov ecx, dword [edi + 0xc]
add eax, ecx
lea ebp, [edi + 0x14]
mov dword [esi + 8], eax
mov dword [esp + 0x14], 0x10
mov edx, dword [esp + 0x10]
mov ebx, dword [esi]
push edx
mov ecx, edi
call fcn.005b8210
push eax
lea eax, [ebx + ebx + 1]
imul eax, ebx
push eax
mov ecx, edi
call fcn.005b8240
mov ecx, dword [esp + 0x10]
mov ebx, dword [esi + 8]
push ecx
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.005b8210
lea edx, [ebx + ebx + 1]
push eax
imul edx, ebx
push edx
mov ecx, edi
call fcn.005b8240
mov ebx, eax
mov ecx, edi
push ebx
call fcn.005b8210
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esi - 4]
xor eax, ecx
mov ecx, edi
push eax
call fcn.005b8240
mov ecx, dword [ebp - 4]
add eax, ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esi - 4], eax
call fcn.005b8210
mov ecx, dword [esi + 4]
push eax
xor ebx, ecx
mov ecx, edi
push ebx
call fcn.005b8240
mov edx, dword [ebp]
add ebp, 8
add eax, edx
mov edx, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [esi - 4]
mov ecx, dword [esi + 4]
mov dword [esi - 4], edx
mov edx, dword [esi + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esi], ecx
dec eax
mov dword [esi + 4], edx
mov dword [esp + 0x14], eax
jne 0x5b8055
mov eax, dword [edi + 0x90]
mov ebx, dword [esi - 4]
add ebx, eax
mov eax, dword [esp + 0x24]
mov dword [esi - 4], ebx
mov ecx, dword [edi + 0x94]
add edx, ecx
mov dword [esi + 4], edx
mov edx, dword [esp + 0x18]
add esi, 0x10
add edx, esi
cmp edx, eax
jb 0x5b8036
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret 8
Function at 0x5b8140
Capabilities:
Encrypt data using rc6

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, eax
mov ecx, eax
mov edx, eax
and ebx, 0x1000
and eax, 1
shr ecx, 0x10
shl edx, 0x10
or ebx, ecx
or edx, eax
shr ebx, 8
shl edx, 8
push edi
or ebx, edx
mov dword [esi + 8], 0xb7e15163
lea eax, [esi + 0xc]
mov ecx, 0x23
mov edx, dword [eax - 4]
add eax, 4
sub edx, 0x61c88647
dec ecx
mov dword [eax - 4], edx
jne 0x5b817b
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], 0x6c
push 3
mov ecx, esi
call fcn.005b8210
push eax
mov eax, dword [esp + 0x1c]
add eax, ebp
mov ebp, dword [esi + edi*4 + 8]
add eax, ebp
mov ecx, esi
push eax
call fcn.005b8240
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov dword [esi + edi*4 + 8], eax
lea eax, [ecx + ebp]
mov ecx, esi
push eax
mov dword [esp + 0x1c], eax
call fcn.005b8210
mov edx, dword [esp + 0x18]
push eax
add edx, ebx
mov ecx, esi
push edx
call fcn.005b8240
mov ebx, eax
lea eax, [edi + 1]
xor edx, edx
mov ecx, 0x24
div ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
dec eax
mov dword [esp + 0x10], eax
mov edi, edx
jne 0x5b819d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x5b8340
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x60
mov ecx, 8
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
lea edi, [esp + 0x10]
push 0x30
push 0x612d88
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005b8260
mov esi, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
add esp, 0xc
xor eax, eax
sub esi, ecx
mov bl, byte [esp + eax + 0x10]
lea ecx, [esp + eax + 0x10]
mov dl, byte [esi + ecx]
xor dl, bl
mov byte [esp + eax + 0x40], dl
inc eax
cmp eax, 0x30
jl 0x5b8379
mov ebp, dword [esp + 0x7c]
xor ebx, ebx
lea ecx, [esp + 0x45]
lea esi, [ebp + 2]
movsx eax, byte [ecx - 5]
movsx edx, byte [ecx]
lea eax, [edx + eax*2]
movsx edx, byte [ecx - 4]
lea eax, [edx + eax*2]
movsx edx, byte [ecx - 3]
lea eax, [edx + eax*2]
movsx edx, byte [ecx - 2]
lea eax, [edx + eax*2]
movsx edx, byte [ecx - 1]
lea eax, [edx + eax*2]
lea edi, [ebx + eax]
mov eax, dword [edi*4 + 0x612ec8]
cdq
and edx, 7
add eax, edx
sar eax, 3
movsx eax, al
and eax, 0x80000001
jns 0x5b83e5
dec eax
or eax, 0xfffffffe
inc eax
mov byte [esi - 2], al
mov eax, dword [edi*4 + 0x612ec8]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsx edx, al
and edx, 0x80000001
jns 0x5b8408
dec edx
or edx, 0xfffffffe
inc edx
mov byte [esi - 1], dl
mov eax, dword [edi*4 + 0x612ec8]
cdq
sub eax, edx
sar eax, 1
movsx eax, al
and eax, 0x80000001
jns 0x5b8426
dec eax
or eax, 0xfffffffe
inc eax
mov byte [esi], al
movsx edx, byte [edi*4 + 0x612ec8]
and edx, 0x80000001
jns 0x5b843d
dec edx
or edx, 0xfffffffe
inc edx
mov byte [esi + 1], dl
add ebx, 0x40
add ecx, 6
add esi, 4
cmp ebx, 0x200
jl 0x5b839d
push 0x20
push 0x612e48
push ebp
call fcn.005b8260
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x5b8470
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50c
mov ecx, dword [esp + 0x514]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x520]
sub ecx, edi
lea ebp, [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 8
jmp 0x5b84a0
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + edi]
mov dl, byte [edi]
mov byte [esp + 0x13], cl
mov esi, ebp
lea ecx, [esp + 0x5c]
xor eax, eax
mov byte [esp + 0x12], dl
mov edx, 7
sub esi, ecx
mov bl, byte [esp + 0x13]
mov cl, dl
sar bl, cl
lea ecx, [esi + eax]
and bl, 1
mov byte [esp + ecx + 0x5c], bl
mov bl, byte [esp + 0x12]
mov cl, dl
sar bl, cl
lea ecx, [esi + eax]
and bl, 1
inc eax
dec edx
cmp eax, 8
mov byte [esp + ecx + 0x1c], bl
jl 0x5b84bc
mov eax, dword [esp + 0x14]
inc edi
add ebp, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x5b849c
push 0x40
lea edx, [esp + 0x20]
push 0x6129a8
push edx
call fcn.005b8260
push 0x38
lea eax, [esp + 0x6c]
push str.91__
push eax
call fcn.005b8260
add esp, 0x18
lea ebp, [esp + 0x11c]
mov ebx, 0x612c88
mov ecx, dword [ebx]
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.005b82e0
mov edi, ebp
add ebx, 4
add esp, 8
mov ecx, 0x10
lea esi, [esp + 0x5c]
add ebp, 0x40
cmp ebx, 0x612cc8
rep movsd dword es:[edi], dword [esi]
jl 0x5b8527
push 0x30
lea eax, [esp + 0x4e0]
push 0x612cc8
push eax
call fcn.005b8260
mov ecx, 8
lea esi, [esp + 0x28]
lea edi, [esp + 0xe8]
lea edx, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x48]
lea edi, [esp + 0x28]
lea eax, [esp + 0x4e8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xa8]
push ecx
push edx
push eax
call fcn.005b8340
add esp, 0x18
xor eax, eax
mov cl, byte [esp + eax + 0x9c]
mov bl, byte [esp + eax + 0xdc]
xor cl, bl
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 0x20
jl 0x5b85a6
lea ebx, [esp + 0x49c]
mov ebp, 0xf
mov ecx, 8
lea esi, [esp + 0x3c]
lea edi, [esp + 0xdc]
push 0x30
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x20]
lea edi, [esp + 0x40]
push 0x612cc8
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.005b8260
lea edx, [esp + 0xa8]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
call fcn.005b8340
add esp, 0x18
xor eax, eax
mov cl, byte [esp + eax + 0x9c]
mov dl, byte [esp + eax + 0xdc]
xor cl, dl
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 0x20
jl 0x5b8612
sub ebx, 0x40
dec ebp
jne 0x5b85cc
push 0x40
lea edx, [esp + 0x20]
push 0x612aa8
push edx
call fcn.005b8260
mov eax, dword [esp + 0x534]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.005b82a0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50c
ret
Function at 0x5b97c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
mov al, 0x62
mov edx, dword [esp + 0x24]
mov byte [esp + 5], al
mov byte [esp + 0xd], al
xor eax, eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x10], eax
push edx
mov dword [esp + 0x18], eax
mov byte [esp + 4], 0x12
mov dword [esp + 0x1c], eax
mov byte [esp + 5], 0x22
mov dword [esp + 0x20], eax
push eax
lea eax, [esp + 8]
mov byte [esp + 0xa], 0x32
push eax
push 0
push 1
mov byte [esp + 0x17], 0x42
mov byte [esp + 0x18], 0x5a
mov byte [esp + 0x1a], 0x72
mov byte [esp + 0x1b], 0x82
mov byte [esp + 0x1c], 0xff
mov byte [esp + 0x1d], 0x24
mov byte [esp + 0x1e], 0x3a
mov byte [esp + 0x1f], 0x44
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x22], 0xc4
mov byte [esp + 0x23], 0x84
call fcn.005ba130
neg eax
sbb eax, eax
inc eax
add esp, 0x20
ret 4
Function at 0x5bab20
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x1c], edx
jbe 0x5bac2b
push ebx
push edi
lea eax, [esi + 0x32]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x615dd8]
mov ecx, dword [ecx*4 + 0x6165d8]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x6161d8]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x6159d8]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x6161d8]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x6165d8]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x615dd8]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x6159d8]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x6161d8]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x6165d8]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x615dd8]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x6159d8]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x6161d8]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x6165d8]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x615dd8]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x6159d8]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x1c]
cmp edx, ecx
jb 0x5bab36
pop edi
pop ebx
pop esi
ret
Function at 0x5bc3a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, byte [0x629090]
sub esp, 0x20
push ebx
mov ebx, 1
test bl, al
jne 0x5bc3d3
mov dl, al
mov ecx, 0x628f80
or dl, bl
mov byte [0x629090], dl
call fcn.005ba120
push 0x5bc4c0
call fcn.005bca9b
add esp, 4
mov eax, dword [0x629094]
test eax, eax
jne 0x5bc467
mov al, 0x3a
lea ecx, [esp + 4]
mov byte [esp + 6], al
mov byte [esp + 0xe], al
xor eax, eax
mov byte [esp + 4], 0x18
mov dword [esp + 0x14], eax
mov byte [esp + 5], 0x29
mov dword [esp + 0x18], eax
mov byte [esp + 7], 0x47
mov dword [esp + 0x1c], eax
mov byte [esp + 8], 0x57
push eax
push eax
push ecx
push ebx
push ebx
mov ecx, 0x628f80
mov byte [esp + 0x1d], 0x67
mov byte [esp + 0x1e], 0x77
mov byte [esp + 0x1f], 0x87
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], 0x24
mov byte [esp + 0x23], 0x44
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x25], 0x62
mov byte [esp + 0x26], 0xc4
mov byte [esp + 0x27], 0x84
mov dword [esp + 0x34], eax
call fcn.005ba130
test eax, eax
je 0x5bc461
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret
mov dword [0x629094], ebx
mov eax, dword [esp + 0x2c]
push esi
push edi
xor edi, edi
xor esi, esi
test eax, eax
jle 0x5bc4b0
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x34]
lea edx, [edi + ebx]
lea eax, [esi + ebp]
push edx
push 0x80
push eax
mov ecx, 0x628f80
call fcn.005ba5a0
test eax, eax
jle 0x5bc4a4
cdq
and edx, 7
add eax, edx
sar eax, 3
add edi, eax
mov eax, dword [esp + 0x38]
add esi, 0x10
cmp esi, eax
jl 0x5bc47e
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x49131b
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004914cb
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x491419
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4913bc
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4913ff
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4913d3
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4913ee
test al, 0x40
je 0x4913e5
mov ecx, dword [edi + 0x20]
jmp 0x4913ec
test al, 0x80
je 0x4913ff
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4913ff
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x49138b
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x51e666
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x51e69e
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x51e68c
mov al, 1
jmp 0x51e6e8
cmp dword [ebx + 0x54], ecx
jne 0x51e695
mov al, 2
jmp 0x51e6e8
cmp dword [ebx + 0x7c], ecx
jne 0x51e6e8
mov al, 3
jmp 0x51e6e8
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x51e6b3
mov al, 4
jmp 0x51e6e8
cmp ecx, 5
jne 0x51e6d3
cmp ebx, 0
jne 0x51e6c1
mov al, 5
jmp 0x51e6e8
cmp ebx, 1
jne 0x51e6ca
mov al, 6
jmp 0x51e6e8
cmp ebx, 2
jne 0x51e6d3
mov al, 7
jmp 0x51e6e8
cmp ecx, 6
jne 0x51e6df
cmp ebx, 0
jne 0x51e6e1
mov al, 8
jmp 0x51e6e8
cmp ebx, 1
jne 0x51e6e8
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405b4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405bb2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404208
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b9c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bb9
lea eax, [ebp - 0x10]
call fcn.00403f98
ret

Function at 0x40acc8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ad01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404088
jmp 0x40ad0a
mov eax, ebx
mov edx, esi
call fcn.00403fec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ad14
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ad35
mov al, byte [esp]
jmp 0x40ad37
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b3bc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b234
mov eax, dword [0x4749bc]
cmp byte [eax], 0
je 0x40b438
mov eax, dword [0x4747d0]
call fcn.00402af0
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040853c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b480
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b46e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x474780]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x475664]
call fcn.00405060
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bcd4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bdaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404030
lea eax, [ebp - 8]
call fcn.004044a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bd94
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bd8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404458
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bd77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bdbc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bd77
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd94
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bdb1
lea eax, [ebp - 8]
call fcn.00403f98
ret

Function at 0x40c2bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c320
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404208
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408084
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c327
lea eax, [ebp - 0xc]
call fcn.00403f98
ret

Function at 0x41a57c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x475884
cmp dword [edi], 0
jne 0x41a5f8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x475880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4733ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a554
lea eax, [esi + 5]
call fcn.0041a574
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a574
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a5cd
mov dword [0x475880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41bb7c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bb82
ret
Function at 0x4270e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404448
xor eax, eax
push ebp
push 0x42720e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4271e1
xor eax, eax
push ebp
push 0x4271da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404258
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4271af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42719e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404258
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404458
mov edx, ebx
pop ecx
call fcn.004028b8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4271a5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x47472c]
mov dl, 1
mov eax, dword [0x406f08]
call fcn.0040b540
call fcn.004039d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427215
lea eax, [ebp - 4]
call fcn.00403f98
ret