joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403030
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x403052
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x403044
pop ebx
pop esi
ret

Function at 0x4032c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
mov al, 0x44
push esi
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov al, 0x6f
mov esi, ecx
mov byte [esp + 0x19], al
mov byte [esp + 0x1f], al
mov al, 0xb9
mov cl, 0xb6
mov byte [esp + 5], al
mov byte [esp + 7], al
mov byte [esp + 8], al
lea eax, [esp + 0x14]
push 0
mov byte [esp + 8], cl
mov byte [esp + 0xa], cl
mov ecx, dword [0x4146f4]
push eax
push 0
push 0
mov byte [esp + 0x24], 0x54
mov byte [esp + 0x27], 0x47
mov byte [esp + 0x28], 0x75
mov byte [esp + 0x2a], 0x4d
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2c], 0x69
mov byte [esp + 0x2d], 0x6e
mov byte [esp + 0x2e], 0x46
mov byte [esp + 0x30], 0x72
mov byte [esp + 0x31], 0x6d
mov byte [esp + 0x32], 0
mov byte [esp + 0x19], 0xfb
mov byte [esp + 0x1a], 0xb2
mov byte [esp + 0x1b], 0xa5
mov byte [esp + 0x1c], 0xb7
mov byte [esp + 0x1d], 0xc5
mov byte [esp + 0x1e], 0xc6
mov byte [esp + 0x1f], 0xf7
mov byte [esp + 0x20], 0
call dword [ecx + 0x70]
test eax, eax
mov dword [esi + 8], eax
jne 0x40338a
lea edx, [esp + 4]
push edx
push eax
push eax
push eax
mov eax, dword [0x4146f4]
call dword [eax + 0x70]
test eax, eax
mov dword [esi + 8], eax
jne 0x40338a
pop esi
add esp, 0x20
ret 8
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x2c]
push 5
mov dword [edx], ecx
mov dword [eax], 0
mov ecx, dword [esi + 8]
mov edx, dword [0x4146f4]
push ecx
call dword [edx + 0x8c]
mov eax, dword [esi + 8]
mov ecx, dword [0x4146f4]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [ecx + 0x84]
mov edx, dword [esi + 8]
mov dword [esi], 0
mov eax, dword [0x4146f4]
push esi
push 0x4031a0
push edx
call dword [eax + 0x6c]
mov ecx, dword [esi + 4]
mov edx, dword [0x4146f4]
push 5
push ecx
call dword [edx + 0x8c]
mov eax, dword [esi + 4]
pop esi
add esp, 0x20
ret 8
Function at 0x40a8e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x144
mov al, 0x75
push ebx
mov byte [esp + 0xc], al
mov byte [esp + 0xd], al
mov al, 0x65
mov ebx, ecx
mov byte [esp + 0xf], al
mov byte [esp + 0x10], al
mov byte [esp + 0x12], al
mov byte [esp + 0x14], al
push ebp
mov cl, 0x73
xor eax, eax
push esi
push edi
mov byte [esp + 0x10], 0x33
mov byte [esp + 0x11], 0x36
mov byte [esp + 0x12], 0x30
mov byte [esp + 0x13], 0x49
mov byte [esp + 0x14], 0x6e
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], 0x74
mov byte [esp + 0x17], 0x2d
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1d], 0x2e
mov byte [esp + 0x1f], 0x78
mov byte [esp + 0x21], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x4146f4]
push 0
push 2
call dword [eax + 0xdc]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40a94e
mov edx, dword [0x4146f4]
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x128
push ecx
push ebp
call dword [edx + 0xd8]
test eax, eax
je 0x40a94e
mov eax, dword [ebx + 0x11c]
xor esi, esi
test eax, eax
jbe 0x40a9ec
xor eax, eax
mov edx, dword [ebx + 0x110]
lea ecx, [esp + 0x50]
push ecx
mov eax, dword [edx + eax*4]
push eax
call fcn.00402970
add esp, 8
test eax, eax
jne 0x40a9da
mov ecx, dword [esp + 0x34]
mov edx, dword [0x4146f4]
push ecx
push eax
push 1
call dword [edx + 0x144]
push 0
push eax
mov eax, dword [0x4146f4]
call dword [eax + 0x140]
mov ecx, dword [ebx + 0x11c]
inc esi
mov eax, esi
and eax, 0xffff
cmp eax, ecx
jb 0x40a99d
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40aa61
lea ecx, [esp + 0x10]
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.00402970
add esp, 8
test eax, eax
jne 0x40aaa2
mov eax, dword [0x4146f4]
call dword [eax + 0x11c]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
mov edx, dword [esp + 0x34]
jne 0x40aa53
mov eax, dword [0x4146f4]
push edx
push 0
push 1
call dword [eax + 0x144]
mov ecx, dword [0x4146f4]
push 0
push eax
call dword [ecx + 0x140]
mov dword [esp + 0x28], 1
jmp 0x40aaa2
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 1
jmp 0x40aaa2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.00402970
add esp, 8
test eax, eax
jne 0x40aaa2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
je 0x40aaa2
mov edx, dword [0x4146f4]
push eax
push 0
push 1
call dword [edx + 0x144]
push 0
push eax
mov eax, dword [0x4146f4]
call dword [eax + 0x140]
mov ecx, dword [0x4146f4]
push 0x32
call dword [ecx + 0x130]
mov eax, dword [0x4146f4]
lea edx, [esp + 0x2c]
push edx
push ebp
call dword [eax + 0xd4]
test eax, eax
jne 0x40a98f
mov ecx, dword [0x4146f4]
push ebp
call dword [ecx + 0x124]
mov edx, dword [0x4146f4]
push 0x320
call dword [edx + 0x130]
jmp 0x40a94e
Function at 0x40ce30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edx, ecx
sub esp, 0x11c
mov eax, dword [edx + 0xed8]
test eax, eax
jne 0x40ce4b
xor eax, eax
add esp, 0x11c
ret
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
add edx, 0xdd4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x104
push ecx
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x4f
mov byte [esp + 0x16], 0x46
mov byte [esp + 0x17], 0x54
mov byte [esp + 0x18], 0x57
mov byte [esp + 0x19], 0x41
mov byte [esp + 0x1a], 0x52
mov byte [esp + 0x1b], 0x45
mov byte [esp + 0x1c], 0x5c
mov byte [esp + 0x1d], 0x25
mov byte [esp + 0x1e], 0x73
mov byte [esp + 0x1f], 0
mov byte [esp + 0x20], 0
call fcn.00402830
mov ecx, dword [0x4146f4]
add esp, 0x10
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push 1
push 0
push eax
push 0x80000002
call dword [ecx + 0x15c]
test eax, eax
pop edi
je 0x40cf1f
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
mov edx, dword [0x4146f4]
push eax
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x30]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x38], 1
call dword [edx + 0x160]
xor eax, eax
add esp, 0x11c
ret
mov eax, 1
add esp, 0x11c
ret
Function at 0x40e250
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x40f640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x50
mov al, 0x61
push ebx
mov byte [esp + 0x21], al
mov byte [esp + 0x28], al
mov bl, 0x69
mov byte [esp + 0x31], al
mov byte [esp + 0x3a], al
mov byte [esp + 0x45], al
mov byte [esp + 0x4e], al
mov cl, 0x70
lea eax, [esp + 4]
mov byte [esp + 0x2f], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x47], bl
mov dl, 0x65
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], cl
mov byte [esp + 0x40], cl
mov byte [esp + 0x41], cl
mov byte [esp + 0x4d], cl
xor ebx, ebx
push eax
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b], dl
mov byte [esp + 0x3e], dl
mov byte [esp + 0x40], dl
mov byte [esp + 0x44], dl
mov edx, dword [0x4146f4]
push ebx
push ecx
push 0x80000001
mov byte [esp + 0x30], 0x53
mov byte [esp + 0x31], 0x6f
mov byte [esp + 0x32], 0x66
mov byte [esp + 0x33], 0x74
mov byte [esp + 0x34], 0x77
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x38], 0x5c
mov byte [esp + 0x39], 0x4c
mov byte [esp + 0x3a], 0x6f
mov byte [esp + 0x3b], 0x63
mov byte [esp + 0x3d], 0x6c
mov byte [esp + 0x3e], 0x20
mov byte [esp + 0x3f], 0x41
mov byte [esp + 0x42], 0x57
mov byte [esp + 0x44], 0x7a
mov byte [esp + 0x46], 0x72
mov byte [esp + 0x47], 0x64
mov byte [esp + 0x48], 0x2d
mov byte [esp + 0x49], 0x47
mov byte [esp + 0x4b], 0x6e
mov byte [esp + 0x4d], 0x72
mov byte [esp + 0x4f], 0x74
mov byte [esp + 0x51], 0x64
mov byte [esp + 0x52], 0x20
mov byte [esp + 0x53], 0x41
mov byte [esp + 0x56], 0x6c
mov byte [esp + 0x58], 0x63
mov byte [esp + 0x5a], 0x74
mov byte [esp + 0x5c], 0x6f
mov byte [esp + 0x5d], 0x6e
mov byte [esp + 0x5e], 0x73
mov byte [esp + 0x5f], 0x5c
mov byte [esp + 0x60], 0x43
mov byte [esp + 0x63], 0x58
mov byte [esp + 0x64], bl
call dword [edx + 0x15c]
test eax, eax
jne 0x40f770
mov eax, 1
pop ebx
add esp, 0x50
ret
mov al, 0x50
mov edx, dword [0x4146f4]
mov byte [esp + 0x16], al
mov byte [esp + 0x19], al
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push 1
push ebx
push ecx
push 0x80000002
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x21], 0x4f
mov byte [esp + 0x22], 0x46
mov byte [esp + 0x23], 0x54
mov byte [esp + 0x24], 0x57
mov byte [esp + 0x25], 0x41
mov byte [esp + 0x26], 0x52
mov byte [esp + 0x27], 0x45
mov byte [esp + 0x28], 0x5c
mov byte [esp + 0x29], 0x43
mov byte [esp + 0x2b], 0x41
mov byte [esp + 0x2c], 0x58
mov byte [esp + 0x2e], bl
call dword [edx + 0x15c]
neg eax
sbb eax, eax
pop ebx
inc eax
add esp, 0x50
ret
Function at 0x40f810
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0x4146f4]
sub esp, 0x268
push ebx
push ebp
push esi
call dword [eax + 0x94]
mov ecx, dword [0x4146f4]
xor ebx, ebx
push ebx
push 2
mov ebp, eax
call dword [ecx + 0xdc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f84a
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x268
ret
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [0x4146f4]
push edx
push esi
mov dword [esp + 0x54], 0x128
call dword [eax + 0xd8]
cmp dword [esp + 0x54], ebp
je 0x40f893
mov edx, dword [0x4146f4]
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [edx + 0xd4]
test eax, eax
je 0x40f897
cmp dword [esp + 0x54], ebp
jne 0x40f877
mov ebx, dword [esp + 0x64]
mov eax, dword [0x4146f4]
push esi
call dword [eax + 0x124]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x174], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x4146f4]
push ebx
stosw word es:[edi], ax
push 0
push 0x410
stosb byte es:[edi], al
call dword [ecx + 0x144]
mov esi, eax
mov al, 0x50
mov byte [esp + 0x10], al
mov byte [esp + 0x13], al
mov al, 0x4c
lea edx, [esp + 0x10]
mov byte [esp + 0x17], al
mov byte [esp + 0x18], al
mov eax, dword [0x4146f4]
push edx
mov byte [esp + 0x15], 0x53
mov byte [esp + 0x16], 0x41
mov byte [esp + 0x18], 0x49
mov byte [esp + 0x19], 0x2e
mov byte [esp + 0x1a], 0x44
mov byte [esp + 0x1d], 0
call dword [eax + 0x288]
mov edx, dword [0x4146f4]
lea ecx, [esp + 0x34]
mov bl, 0x65
push ecx
push eax
mov byte [esp + 0x3c], 0x47
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0x74
mov byte [esp + 0x3f], 0x4d
mov byte [esp + 0x40], 0x6f
mov byte [esp + 0x41], 0x64
mov byte [esp + 0x42], 0x75
mov byte [esp + 0x43], 0x6c
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 0x46
mov byte [esp + 0x46], 0x69
mov byte [esp + 0x47], 0x6c
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], 0x4e
mov byte [esp + 0x4a], 0x61
mov byte [esp + 0x4b], 0x6d
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], 0x45
mov byte [esp + 0x4e], 0x78
mov byte [esp + 0x4f], 0x41
mov byte [esp + 0x50], 0
call dword [edx + 0x28c]
lea ecx, [esp + 0x174]
push 0x104
push ecx
push 0
push esi
call eax
lea edx, [esp + 0x174]
push edx
call fcn.00402930
mov al, 0x77
mov byte [esp + 0x21], 0x69
mov byte [esp + 0x20], al
mov byte [esp + 0x22], 0x6e
mov byte [esp + 0x23], 0x64
mov byte [esp + 0x24], 0x6f
mov byte [esp + 0x25], al
mov byte [esp + 0x26], 0x73
mov byte [esp + 0x27], 0x5c
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 0x78
mov byte [esp + 0x2a], 0x70
mov byte [esp + 0x2b], 0x6c
mov al, 0x72
lea ecx, [esp + 0x178]
mov byte [esp + 0x2d], al
mov byte [esp + 0x2f], al
lea eax, [esp + 0x20]
mov byte [esp + 0x2c], 0x6f
push eax
push ecx
mov byte [esp + 0x36], bl
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], 0x78
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], 0
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x268
ret
Function at 0x410480
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x41187b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
mov al, 0x65
mov cl, 0x66
push edi
mov byte [esp + 0x11], al
mov byte [esp + 0x13], cl
mov byte [esp + 0x15], al
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
xor ebx, ebx
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xb1]
mov byte [esp + 0xb0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, 0x2c
mov ecx, 0x18
mov byte [esp + 0x29], al
mov byte [esp + 0x2b], al
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], bl
mov dl, 0x84
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov byte [esp + 0x10], 0x53
mov byte [esp + 0x12], 0x6c
mov byte [esp + 0x14], 0x44
mov byte [esp + 0x18], bl
mov byte [esp + 0x1c], 0x86
mov byte [esp + 0x1d], 0x5c
mov byte [esp + 0x1e], 0x73
mov byte [esp + 0x1f], 0x58
mov byte [esp + 0x20], 0xda
mov byte [esp + 0x21], 0x32
mov byte [esp + 0x22], 0x6b
mov byte [esp + 0x23], 0x48
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x25], 0xf0
mov byte [esp + 0x26], dl
mov byte [esp + 0x27], 0xe3
mov byte [esp + 0x28], 0xa
mov byte [esp + 0x2a], 0x2d
mov byte [esp + 0x2c], bl
stosb byte es:[edi], al
mov byte [esp + 0x30], 0x8f
mov byte [esp + 0x31], 0x17
mov byte [esp + 0x32], 0x6e
mov byte [esp + 0x33], 6
mov byte [esp + 0x34], 0x59
mov byte [esp + 0x35], 0x88
mov byte [esp + 0x36], 0xe8
mov byte [esp + 0x37], 0x85
mov byte [esp + 0x38], 0x58
mov byte [esp + 0x39], 0x9d
mov byte [esp + 0x3a], 0xb3
mov byte [esp + 0x3b], 0x8d
mov byte [esp + 0x3c], 0xf1
mov byte [esp + 0x3d], 0xe5
mov byte [esp + 0x3e], 0xdd
mov byte [esp + 0x3f], dl
mov byte [esp + 0x40], 0x70
mov byte [esp + 0x41], 0xc3
mov byte [esp + 0x42], 0xbc
mov byte [esp + 0x43], 0x8e
mov byte [esp + 0x44], 0x8a
mov byte [esp + 0x45], 0xeb
mov byte [esp + 0x46], 0x44
mov byte [esp + 0x47], 0xfd
mov byte [esp + 0x48], bl
call fcn.00402be0
push 1
mov dword [esp + 0x120], ebx
push 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push 0x10
lea edx, [esp + 0xc0]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00402c20
push 1
lea eax, [esp + 0x14]
push 8
push eax
lea ecx, [esp + 0x3c]
push 0x18
lea edx, [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00402c20
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.00410440
pop edi
pop esi
cmp eax, 0xdededede
pop ebx
mov dword [esp + 0x110], 0xffffffff
lea ecx, [esp]
je 0x41065b
call fcn.00402c10
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
call fcn.00402c10
mov ecx, dword [esp + 0x108]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x410a30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
mov al, 0x65
mov edx, dword [0x4146f4]
mov byte [esp + 5], al
mov byte [esp + 6], al
mov byte [esp + 9], al
xor al, al
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
xor eax, eax
push esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
push edi
mov edi, ecx
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
lea ecx, [esp + 0x18]
push 0x14
mov word [esp + 0x2d], ax
push ecx
push esi
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x79
mov byte [esp + 0x16], 0x73
mov byte [esp + 0x17], 0x54
mov byte [esp + 0x18], 0x72
mov byte [esp + 0x1b], 0x56
mov byte [esp + 0x1c], 0x69
mov byte [esp + 0x1e], 0x77
mov byte [esp + 0x1f], 0x33
mov byte [esp + 0x20], 0x32
mov byte [esp + 0x37], al
call dword [edx + 0x64]
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00402970
add esp, 8
test eax, eax
jne 0x410ae2
mov edx, dword [0x4146f4]
push esi
call dword [edx + 0x60]
test eax, eax
je 0x410ae2
mov dword [edi + 4], esi
pop edi
xor eax, eax
pop esi
add esp, 0x24
ret 4
pop edi
mov eax, 1
pop esi
add esp, 0x24
ret 4
Function at 0x402fc4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x478008], 0x8088405
inc edx
mov dword [ebx + 0x478008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036d0
Capabilities:
Query or enumerate registry value

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

Function at 0x40457c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48404c], 0
je 0x4045dd
cmp word [0x484220], 0xd7b2
jne 0x4045a5
cmp dword [0x484228], 0
jbe 0x4045a5
mov eax, 0x48421c
call dword [0x484238]
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 0x404604
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x478030], 0
jne 0x4045f9
push 0
push 0x478754
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408550
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4085e0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4085e0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408593
test edx, 3
jne 0x408582
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40858d
jmp 0x408593
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408593
cmp dword [ecx - 8], 1
je 0x40859d
mov edx, ebx
or edx, 3
call fcn.00404e48
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4085af
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046fc

Function at 0x4085ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40867c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40867c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40862f
test edx, 3
jne 0x40861e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408629
jmp 0x40862f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40862f
cmp dword [ecx - 8], 1
je 0x408639
mov edx, ebx
or edx, 3
call fcn.00404e48
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40864b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046fc

Function at 0x40b9b8
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 0x40b9f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047ec
jmp 0x40b9fa
mov eax, ebx
mov edx, esi
call fcn.00404750
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba04
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 0x40ba26
movzx eax, byte [esp]
jmp 0x40ba28
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c0b8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf30
mov eax, dword [0x483240]
cmp byte [eax], 0
je 0x40c134
mov eax, dword [0x48302c]
call fcn.00403098
call fcn.00402e08
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.00409104
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 0x40c17c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c16a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x482fc8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4867f8]
call fcn.00405c1c
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 0x40ca10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cae6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404794
lea eax, [ebp - 4]
call fcn.00404c10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cad0
mov eax, ebx
call fcn.00402cac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cac9
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 - 4]
call fcn.00404bc0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cab3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40caf8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cab3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cad0
mov eax, dword [ebp - 0x10]
call fcn.00402cc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caed
lea eax, [ebp - 4]
call fcn.004046fc
ret