joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d01e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4346c0]
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.004180c3
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.004180c3
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 0x41d095
cmp word [ecx], dx
je 0x41d095
mov eax, dword [0x42bc7c]
push edi
dec eax
push eax
push 0x42bb68
call fcn.0041d20e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41d108
cmp word [eax], dx
je 0x41d108
mov eax, dword [edi]
test eax, eax
je 0x41d0b9
cmp word [eax], dx
je 0x41d0b9
lea eax, [ebp - 0x10]
push eax
call fcn.0041d26f
jmp 0x41d0c2
lea eax, [ebp - 0x10]
push eax
call fcn.0041d55d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41d132
mov eax, dword [0x42bb64]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42b858
call fcn.0041d20e
add esp, 0xc
test al, al
je 0x41d132
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41d0fd
cmp word [eax], di
je 0x41d0fd
lea eax, [ebp - 0x10]
push eax
call fcn.0041d26f
pop ecx
jmp 0x41d134
lea eax, [ebp - 0x10]
push eax
call fcn.0041d55d
jmp 0x41d0fa
mov eax, dword [edi]
test eax, eax
je 0x41d11f
cmp word [eax], dx
je 0x41d11f
lea eax, [ebp - 0x10]
push eax
call fcn.0041d691
pop ecx
jmp 0x41d132
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 0x41d1fd
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041d783
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41d1fd
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41d1fd
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41d1fd
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41d18a
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00418cb7
test ebx, ebx
je 0x41d1f8
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00418cb7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41d1fd
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 0x41d1fd
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00424d69
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41d1ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408652
leave
ret
Function at 0x41d889
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004180c3
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 0x41d8f8
cmp esi, dword [ebp - 4]
je 0x41d8f3
cmp dword [ebp + 0xc], 0
je 0x41d8f3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41d8d0
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041d952
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41d8fa
xor eax, eax
inc eax
jmp 0x41d8fa
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41e992
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c140
mov eax, dword [0x4346c0]
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.0041b4ff
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41e9d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41eb30
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004249e0
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 + 0x436188]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041e73a
mov ecx, dword [esi*4 + 0x436188]
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 0x41eb29
cmp eax, dword [ecx + edi + 0x24]
jne 0x41eb29
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 0x41eb29
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e73a
add esp, 0x14
test edx, edx
jl 0x41eb29
jg 0x41ea9f
test eax, eax
jb 0x41eb29
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41eb29
jl 0x41eab9
cmp dword [ebp - 0x1008], eax
ja 0x41eb29
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ead7
test ebx, ebx
je 0x41eb10
cmp ecx, edi
jae 0x41eb10
mov al, byte [ecx]
cmp al, 0xd
jne 0x41eaf1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41eafd
cmp byte [ecx + 1], 0xa
jne 0x41eafd
inc ecx
jmp 0x41eafd
movzx eax, al
movsx eax, byte [eax + 0x4350b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ead7
cmp edx, ebx
jne 0x41ead7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41eb2e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408652
leave
ret
Function at 0x41ef38
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 0x41efd5
push ebx
push esi
call fcn.0041efd8
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.00417f81
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ef82
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41efd4
push edi
push eax
call fcn.00417e71
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41efa2
call fcn.00417e37
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41efd3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417f81
add esp, 0x20
test eax, eax
jne 0x41efc1
push edi
call fcn.00417e37
jmp 0x41efc9
push ebx
call fcn.00417e37
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 0x420ea6
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 + 0x436188]
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 0x420ee6
cmp byte [ebx], 0xa
jne 0x420ee6
or byte [edi + eax + 0x28], 4
jmp 0x420eeb
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 0x420fea
mov dl, byte [eax]
cmp dl, 0x1a
je 0x420fcd
inc eax
cmp dl, 0xd
je 0x420f17
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x420f3d
cmp eax, ecx
jae 0x420f4b
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 0x420eff
jmp 0x420fea
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 0x420fc8
cmp dword [ebp - 0x10], 0
je 0x420fc8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x436188]
test byte [eax + edi + 0x28], 0x48
je 0x420fa2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420f8d
mov byte [esi], dl
jmp 0x420f9e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x436188]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420fea
cmp byte [ebp - 1], 0xa
jne 0x420fb1
cmp esi, ebx
jne 0x420fb1
mov byte [esi], 0xa
jmp 0x420fe9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e6dc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420fea
mov byte [esi], 0xd
jmp 0x420fe9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x436188]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420fe7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420fea
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420ff3
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 + 0x436188]
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 0x421039
cmp word [ebx], dx
jne 0x421039
or byte [eax + edi + 0x28], 4
jmp 0x42103e
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 0x4211a1
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 0x421181
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42107f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4210b5
cmp eax, edx
jae 0x4210c3
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 0x42105a
jmp 0x4211a1
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 0x42117c
cmp dword [ebp - 0x18], 0
je 0x42117c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x436188]
test byte [eax + edi + 0x28], 0x48
je 0x421152
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 0x421116
mov word [esi], cx
jmp 0x42114d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x436188]
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 + 0x436188]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x436188]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4211a1
pop eax
cmp word [ebp - 4], ax
jne 0x421162
cmp esi, ebx
jne 0x421162
mov word [esi], ax
jmp 0x42119e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e6dc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4211a1
push 0xd
pop eax
jmp 0x42115d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x436188]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42119b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4211a1
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 0x401960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40197b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019b2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4019ae
jmp 0x4019a0
cmp esi, eax
jae 0x4019b2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019a0
cmp esi, eax
jb 0x4019b9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402c50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x44bb64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.00402520
mov ebx, eax
cmp ebx, esi
je 0x402cca
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x402cb5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004234ee
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x402d4c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00402c50
mov ebx, eax
cmp ebx, esi
jne 0x402ca4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x402d00
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x402d65
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.00402400
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x402d88
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004234ee
mov esp, ebp
pop ebp
ret 4
Function at 0x404960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4397b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x44bb64]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x4049dd
call fcn.004021e0
mov edi, eax
jmp 0x404ac2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4049f6
call fcn.004021e0
jmp 0x404ab9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x404a14
call fcn.004021e0
jmp 0x404ab9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x404a35
mov edi, 0x8007000e
jmp 0x404abb
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00403620
mov dword [ebp - 4], 1
jmp 0x404a6d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x404a7e
mov edi, 0x8007000e
jmp 0x404abb
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x404a97
call fcn.004021e0
jmp 0x404ab9
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00404650
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x404ae0
lea ecx, [ebp - 0x418]
call fcn.00402bf0
jmp 0x404ae0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004234ee
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405c40
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44bb64]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
xor eax, eax
movsx edx, byte [eax + 0x44b3c8]
dec edx
cmp edx, ecx
je 0x405c68
inc eax
cmp eax, 0x20
jl 0x405c54
jmp 0x405c6c
mov byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0x20
jl 0x405c52
mov eax, dword [0x44d210]
push ebx
push esi
push edi
lea edi, [ebp - 0x23]
mov dword [ebp - 0x28], 0x44b1c8
xor esi, esi
mov dword [ebp - 0x2c], eax
lea esp, [esp]
mov eax, esi
sar eax, 1
mov ecx, esi
and ecx, 1
shl ecx, 4
and eax, 0xf
or eax, ecx
mov ecx, esi
and ecx, 0x20
or eax, ecx
mov ecx, dword [ebp - 0x28]
movsx eax, byte [ecx + eax]
xor edx, edx
test al, 8
je 0x405cc7
movsx edx, byte [edi - 1]
mov ecx, 0x1f
sub ecx, edx
mov edx, 1
shl edx, cl
test al, 4
je 0x405cde
movsx ebx, byte [edi]
mov ecx, 0x1f
sub ecx, ebx
mov ebx, 1
shl ebx, cl
or edx, ebx
test al, 2
je 0x405cf6
movsx ebx, byte [edi + 1]
mov ecx, 0x1f
sub ecx, ebx
mov ebx, 1
shl ebx, cl
or edx, ebx
test al, 1
je 0x405d0e
movsx eax, byte [edi + 2]
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
or edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
inc esi
add eax, 4
mov dword [ebp - 0x2c], eax
cmp esi, 0x40
jl 0x405c90
mov ecx, dword [ebp - 0x28]
add ecx, 0x40
add edi, 4
mov dword [ebp - 0x28], ecx
cmp ecx, 0x44b3c8
jl 0x405c84
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004234ee
mov esp, ebp
pop ebp
ret
Function at 0x406440
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x3f9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x20
push 0x20
push 0x1036
push eax
mov dword [esi + 0x24], eax
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x58]
push eax
push 0
push 0x1057
push edx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x20], eax
call edi
mov ecx, dword [esi + 0x24]
add eax, 0xf
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x1061
push ecx
mov dword [ebp - 0x18], 0
call edi
mov edx, dword [esi + 0x24]
push 0x190
push 0
push 0x101e
push edx
call edi
mov ecx, dword [esi + 0x24]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x5c]
push eax
push 0
push 0x1057
push ecx
mov dword [ebp - 0x2c], 0xd
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], eax
call edi
lea edx, [ebp - 0x2c]
push edx
add eax, 0xf
push 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 1
push 0x1061
mov eax, dword [esi + 0x24]
push eax
call edi
mov ecx, dword [esi + 0x24]
push 0xa0
push 1
push 0x101e
push ecx
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439966
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x44bb64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, 1
mov dword [esi], vtable.CDetailsDlg.0
mov dword [ebp - 4], ebx
test byte [0x44d174], al
jne 0x4066a1
or dword [0x44d174], eax
mov ecx, 0x44d050
mov byte [ebp - 4], al
call fcn.0041a400
push 0x43bde0
call fcn.00423de2
add esp, 4
mov byte [ebp - 4], bl
mov dword [esi + 0x20], 0x44d050
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [0x44bb48]
mov edx, dword [eax + 0xc]
mov ecx, 0x44bb48
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [0x44bb48]
mov edx, dword [eax + 0xc]
mov ecx, 0x44bb48
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4399a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44bb64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x30]
sub eax, 0x10
mov dword [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40696f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x2c]
sub eax, 0x10
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406992
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4069a6
push eax
call fcn.00423039
test byte [ebp + 8], 1
je 0x4069b5
push esi
call fcn.004231f8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x407b70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 8], eax
cmp edx, ecx
ja 0x407ba8
jb 0x407b9e
cmp eax, ebx
jae 0x407ba8
mov eax, ebx
mov edx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x18]
push 0
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x407bce
call fcn.004021e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp + 0x10]
test ebx, ebx
jne 0x407bdf
mov ecx, dword [ebp - 8]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x407be2
mov dword [esi + 4], ebx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0x14]
push 0
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x407c30
call fcn.004021e0
mov edi, eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18