joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406420
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov ecx, dword [esp + 0x70]
xor eax, eax
push ebx
mov dword [esp + 4], eax
push ebp
push esi
mov dword [esp + 0x10], eax
push edi
xor ebp, ebp
mov dword [esp + 0x18], eax
push 0x41f504
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
xor al, 0x76
push esp
xor dl, byte [eax]
mov dword [esp + 0x24], eax
call dword [0x41c314]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x406551
mov edi, dword [0x41c318]
push 2
push ebp
push esi
call edi
push esi
call dword [0x41c2f4]
push ebp
push ebp
push esi
mov ebx, eax
call edi
mov eax, dword [esp + 0xa0]
add esp, 0x1c
cmp ebx, eax
jg 0x4064b2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret
mov ebp, dword [esp + 0x88]
cmp ebx, ebp
jge 0x4064bf
mov ebp, ebx
push 0
push eax
push esi
sub ebp, eax
call edi
push ebp
call fcn.0040e556
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push 1
rep stosb byte es:[edi], al
push ebx
call dword [0x41c31c]
push eax
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.00405690
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00406130
push esi
call dword [0x41c320]
mov eax, dword [esp + 0x54]
mov esi, dword [0x41c3ec]
add esp, 0x38
push eax
call esi
mov ecx, dword [esp + 0x18]
push eax
push ecx
call esi
mov edx, dword [esp + 0x18]
push eax
push edx
call esi
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x88]
push eax
push str._08x_08x_08x_08x
push ecx
call dword [0x41c38c]
add esp, 0x18
jmp 0x406558
mov ebx, dword [esp + 0x80]
test ebx, ebx
je 0x406565
push ebx
call fcn.0040e550
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x68
ret

Function at 0x406f04
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
or al, 0x85
fstp xword [esi + 0x58]
lea edx, [ebx + 8]
mov eax, 0x38e38e39
mul edx
mov ecx, dword [esp + 8]
push ebp
push esi
mov esi, 9
push edi
sub esi, ecx
mov edi, edx
mov ebp, ebx
mov dword [esp + 0x18], esi
shr edi, 1
jmp 0x406f31
mov esi, dword [esp + 0x18]
add esi, ecx
cmp esi, ebx
mov esi, 9
jl 0x406f3e
mov esi, ebp
xor eax, eax
test esi, esi
jle 0x406f55
mov edx, dword [str.f3s_42sdf]
mov dl, byte [edx + eax]
xor byte [ecx + eax], dl
inc eax
cmp eax, esi
jl 0x406f44
sub ebp, 9
add ecx, 9
dec edi
jne 0x406f2d
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x64c
push ebp
lea eax, [esp + 0x14c]
xor ebp, ebp
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebp
call fcn.00401eb0
add esp, 4
test eax, eax
jne 0x407045
pop ebp
add esp, 0x64c
ret
mov cl, 0x73
mov dl, 0x25
push ebx
mov byte [esp + 0x2d], cl
mov al, 0x5c
mov byte [esp + 0x15], cl
mov byte [esp + 0xd], cl
mov byte [esp + 0x21], cl
push esi
mov esi, dword [0x41c38c]
mov byte [esp + 0x30], dl
mov byte [esp + 0x18], dl
mov byte [esp + 0x10], dl
mov byte [esp + 0x24], dl
lea ecx, [esp + 0x154]
push edi
mov byte [esp + 0x36], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x16], al
mov byte [esp + 0x2a], al
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x58]
mov bl, 0x61
push edx
push eax
mov byte [esp + 0x43], 0x43
mov byte [esp + 0x44], 0x6f
mov byte [esp + 0x45], 0x6d
mov byte [esp + 0x46], 0x70
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], 0x74
mov byte [esp + 0x49], 0x69
mov byte [esp + 0x4a], 0x62
mov byte [esp + 0x4b], 0x6c
mov byte [esp + 0x4c], 0x65
mov byte [esp + 0x4d], 0
mov byte [esp + 0x2b], 0x64
mov byte [esp + 0x2c], 0x6f
mov byte [esp + 0x2d], 0x6d
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], 0x69
mov byte [esp + 0x30], 0x6e
mov byte [esp + 0x31], 0
mov byte [esp + 0x23], 0x70
mov byte [esp + 0x24], 0x77
mov byte [esp + 0x25], 0
mov byte [esp + 0x37], 0x43

Function at 0x4074f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor esi, esi
test edi, edi
jle 0x407578
push ebp
mov ebp, dword [esp + 0x18]
jmp 0x407515
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
inc cl
and ecx, 0xff
mov edi, ecx
mov dword [esp + 0xc], edi
mov ecx, dword [eax + edi*4 + 8]
mov dword [esp + 0x18], ecx
add cl, dl
mov edx, dword [esp + 0x18]
and ecx, 0xff
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + ecx*4 + 8]
mov dword [eax + edi*4 + 8], ecx
mov edi, dword [esp + 0x14]
add cl, dl
and ecx, 0xff
mov dword [eax + edi*4 + 8], edx
mov dl, byte [esi + ebp]
mov cl, byte [eax + ecx*4 + 8]
xor dl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + ebp], dl
inc esi
cmp esi, ecx
jl 0x40750d
mov edx, dword [esp + 0xc]
mov ecx, edi
pop ebp
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop esi
pop ecx
ret
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
pop ecx
ret
Function at 0x4086c4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x451b06
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4632c0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x457d40
mov byte [ecx + 4], bl
call fcn.00402084
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], ebx
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x457d40
mov byte [ecx + 4], bl
call fcn.00402084
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 1
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x457d40
mov byte [ecx + 4], bl
call fcn.00402084
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40d4d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451510
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4632c0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4632c0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor esi, esi
push 0xffffffffffffffff
mov dword [esp + 0x28], ecx
xor edx, edx
push esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], esi
mov word [esp + 0x50], dx
call fcn.00402a14
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x74], esi
lea ebx, [esi + 1]
xor eax, eax
lea edx, [esp + 0x48]
mov dword [esp + 0x1c], 0x2e
call fcn.004080c4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d61f
mov edi, edi
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
xor edx, edx
lea esi, [esp + 0x2c]
mov dword [esp + 0x20], 0
call fcn.00408094
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x78], 1
call fcn.0040d4d4
test al, al
je 0x40d5a4
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], 6
jne 0x40d5a4
mov edi, eax
mov al, 1
jmp 0x40d5aa
mov edi, dword [esp + 0x1c]
xor al, al
test al, al
mov esi, 8
sete byte [esp + 0x17]
mov byte [esp + 0x70], 0
cmp dword [esp + 0x40], esi
jb 0x40d5ce
mov eax, dword [esp + 0x2c]
push eax
call 0x435d19
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
cmp byte [esp + 0x17], cl
jne 0x40d653
lea eax, [ebx + 1]
xor ebx, ebx
lea esi, [esp + 0x44]
call fcn.00402bd4
lea edx, [esp + 0x1c]
push edx
mov ebx, 1
xor eax, eax
mov edx, esi
mov dword [esp + 0x20], 0x2e
call fcn.004080c4
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d564
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x20]
lea esi, [edi + 0xc]
push edx
call fcn.0040da94
mov edi, dword [esp + 0x1c]
mov ebx, dword [esi + 0x18]
mov esi, dword [esi]
test edi, edi
je 0x40d642
cmp edi, esi
je 0x40d647
call 0x435fdb
mov esi, dword [esp + 0x20]
cmp esi, ebx
jne 0x40d66a
xor bl, bl
jmp 0x40d68c
cmp dword [esp + 0x5c], esi
jb 0x40d666
mov eax, dword [esp + 0x48]
push eax
call 0x435d19
add esp, 4
xor al, al
jmp 0x40d6a2
test edi, edi
jne 0x40d6c2
call 0x435fdb
cmp esi, dword [edi + 0x18]
jne 0x40d67d
call 0x435fdb
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40d68a
mov ecx, dword [esi + 0x28]
mov dword [eax], ecx
mov bl, 1
cmp dword [esp + 0x5c], 8
jb 0x40d6a0
mov edx, dword [esp + 0x48]
push edx
call 0x435d19
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call 0x435d24
mov esp, ebp
pop ebp
ret 8
mov edi, dword [edi]
jmp 0x40d673

Function at 0x411177
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x770
push ebx
push esi
push edi
push 0x42783c
call dword [0x41c02c]
mov esi, 0x1000
mov ebx, 0x400
push esi
mov dword [ebp - 8], esi
call fcn.0040e556
xor edi, edi
push esi
Function at 0x412346
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
xor edi, edi
push 0x30c
lea eax, [ebp - 0x338]
push edi
push eax
call fcn.0041758c
lea eax, [ebp - 0x338]
push 0x30b
push eax
push dword [ebp + 8]
call fcn.00408440
or dword [ebp - 4], 0xffffffff
or dword [ebp - 8], 0xffffffff
push edi
xor ebx, ebx
push dword [ebp + 8]
call dword [0x41c2a0]
mov esi, dword [ebp + 0x10]
add esp, 0x20
test eax, eax
jne 0x412429
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [0x427730]
cmp eax, edi
mov dword [ebp + 0x10], eax
je 0x412429
cmp eax, 0xffffffff
je 0x412429
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
push ecx
push eax
call dword [0x41c050]
cmp dword [ebp + 8], edi
mov dword [ebp - 8], eax
jbe 0x4123db
or eax, 0x80000000
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x4123e4
mov dword [ebp - 4], edi
jmp 0x412420
cmp eax, 0x3c00000
jbe 0x4123f4
mov dword [ebp - 4], 1
jmp 0x412420
add eax, 0x400
mov dword [ebp - 4], 2
push eax
call fcn.0040e556
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 0x10]
call dword [0x41c04c]
mov eax, dword [ebp - 8]
add dword [esi], eax
push dword [ebp + 0x10]
call dword [0x41c020]
and byte [ebp - 0xa], 0
cmp dword [ebp - 4], 2
mov byte [ebp - 0x1c], 0x6d
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x18], 0x74
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x76
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 0x12], 0x75
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0x10], 0x3a
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x25
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0xd
mov byte [ebp - 0xb], 0xa
je 0x412529
lea eax, [ebp - 0x2c]
push eax
call dword [0x41c004]
push 0x400
call fcn.0040e556
mov ebx, eax
pop ecx
lea eax, [ebp - 0x338]
mov dword [esi], edi
mov edi, dword [0x41c38c]
push eax
push str.filename:__s_r_n
push ebx
call edi
movzx ecx, word [ebp - 0x20]
add esp, 0xc
mov dword [esi], eax
add eax, ebx
push ecx
movzx ecx, word [ebp - 0x22]
push ecx
movzx ecx, word [ebp - 0x24]
push ecx
movzx ecx, word [ebp - 0x26]
push ecx
movzx ecx, word [ebp - 0x2a]
push ecx
movzx ecx, word [ebp - 0x2c]
push ecx
push str.time:__04d_02d_02d_02d_02d_02d_r_n
push eax
call edi
add dword [esi], eax
mov eax, dword [esi]
add esp, 0x20
add eax, ebx
push dword [ebp + 0x14]
push str.monitortype:__s_r_n
push eax
call edi
add dword [esi], eax
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x1c]
add eax, ebx
push dword [ebp + 0x18]
push ecx
push eax
call edi
add dword [esi], eax
mov eax, dword [esi]
add esp, 0xc
add eax, ebx
push 0
push str.content_length:__d_r_n
push eax
call edi
add dword [esi], eax
mov eax, dword [esi]
add esp, 0xc
add eax, ebx
push str.content_type:_file_r_n_r_n
push eax
call edi
add dword [esi], eax
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x101d4490
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101d466e
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe4000]
push edi
or ebp, 0xffffffff
jmp 0x101d44ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101d44c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d44b0
mov eax, 1
add ebx, ebx
jne 0x101d44d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101d44e4
jne 0x101d4503
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d4503
dec eax
add ebx, ebx
jne 0x101d44f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101d44c8
add ebx, ebx
jne 0x101d44ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101d4555
xor ecx, ecx
sub eax, 3
jb 0x101d451b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101d458a
sar eax, 1
mov ebp, eax
jmp 0x101d4526
add ebx, ebx
jne 0x101d4526
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d44f4
inc ecx
add ebx, ebx
jne 0x101d4534
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d44f4
add ebx, ebx
jne 0x101d4541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101d4536
jne 0x101d4552
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101d4536
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101d4574
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101d4566
jmp 0x101d44b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101d4574
add edi, ecx
jmp 0x101d44b6
pop esi
mov edi, esi
mov ecx, 0xda53d
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x101d45af
cmp byte [edi], 0x13
jne 0x101d4594
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x101d4592
lea edi, [esi + 0x1cb000]
mov eax, dword [edi]
or eax, eax
je 0x101d4600
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e5df0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e5f1c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101d45b5
mov ecx, edi
jns 0x101d45e4
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e5f20]
or eax, eax
je 0x101d45fa
mov dword [ebx], eax
add ebx, 4
jmp 0x101d45d2
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101d4631
cmp al, 0xef
ja 0x101d4624
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101d4606
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101d4613
mov ebp, dword [esi + 0x1e5f24]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101d4665
sub esp, 0xffffff80
jmp 0x100a45b5
Function at 0x403408
Capabilities:
Query or enumerate registry value

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

Function at 0x4041a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48004c], 0
je 0x404205
cmp word [0x480220], 0xd7b2
jne 0x4041cd
cmp dword [0x480228], 0
jbe 0x4041cd
mov eax, 0x48021c
call dword [0x480238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47e06c
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 0x40422c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47e030], 0
jne 0x404221
push 0
push 0x47e064
push 0x47e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406284
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 0x4062ea
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.00404598
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fa8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062f1
lea eax, [ebp - 0x10]
call fcn.00404328
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047e8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408c6d
test al, 0x10
jne 0x408c71
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b6d0
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 0x40b709
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404418
jmp 0x40b712
mov eax, ebx
mov edx, esi
call fcn.0040437c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b71c
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 0x40b73d
mov al, byte [esp]
jmp 0x40b73f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bdd4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc3c
mov eax, dword [0x47fd44]
cmp byte [eax], 0
je 0x40be50
mov eax, dword [0x47fb1c]
call fcn.00402e14
call fcn.00402c88
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.00408e3c
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 0x40be98
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be86
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47fac8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x480668]
call fcn.004056a4
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 0x40c748
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 0x40c81e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043c0
lea eax, [ebp - 8]
call fcn.00404838
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047e8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c808
mov eax, ebx
call fcn.00402afc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c801
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.004047e8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c7eb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c830
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c7eb
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 0x40c808
mov eax, dword [ebp - 0x10]
call fcn.00402b2c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c825
lea eax, [ebp - 8]
call fcn.00404328
ret

Function at 0x40cd84
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 0x40cde8
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.00404598
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004088b4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cdef
lea eax, [ebp - 0xc]
call fcn.00404328
ret
Function at 0x41ecb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x480888
cmp dword [esi], 0
jne 0x41ed56
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x480884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x47e400
mov ecx, 2
call fcn.00402d1c
mov edx, 0x41ec88
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041eca8
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041eca8
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41ed1d
mov eax, dword [ebp - 8]
mov dword [0x480884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4202b4
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 0x4202ba
ret

Function at 0x422738
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x422789
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422770
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422760
jmp 0x422789
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x422771
pop ebx
mov esp, ebp
pop ebp
ret