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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x43c438], 0x7b6
mov dword [0x43c43c], 0x120d
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x415a68
lea eax, [ebp - 0x12c]
mov dword [0x43c43c], 0x20f6
mov dword [ebp - 0x13c], eax
call fcn.00416fa2
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.00416d94
mov ecx, eax
mov dword [0x43c454], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], ecx
jmp 0x415ad8
mov eax, dword [ebp - 0x150]
mov cl, byte [eax + 0x418ba0]
mov dl, byte [eax + 0x418b71]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x150], eax
je 0x4159c0
jmp 0x415a33
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x16c
mov edi, edx
add edi, esi
add edi, 0x168
mov esi, dword [edi]
imul edi, eax, 0x16c
add edx, edi
add edx, 0x70
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x16b
mov ecx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x415a68
xor eax, eax
mov dword [0x43c438], 0x1063
mov dword [ebp - 0x150], eax
jmp 0x415a33
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea edx, section..data
mov esi, dword [ebp - 0x144]
add esi, eax
imul edi, ecx, 0x16c
mov ebx, edx
add ebx, edi
add ebx, 0x70
imul edi, ecx, 0x16c
mov dword [ebp - 0x154], eax
mov eax, edx
add eax, edi
add eax, 0x168
imul edi, ecx, 0x16c
add edx, edi
add edx, 0x20
add ecx, 1
mov eax, dword [eax]
mov edx, dword [edx]
movzx edi, word [ebx]
xor edi, eax
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edi
call fcn.00416b99
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x154]
add eax, ecx
mov edx, dword [ebp - 0x158]
cmp edx, 0x16b
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], eax
jne 0x415ad8
lea eax, [0x418b7f]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [0x43c438]
add esi, 0xfffff347
mov dword [0x43c43c], esi
mov dword [0x43c438], 0x1b82
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.00415e13
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.00416450
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0xd64ee
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x12d200
mov ecx, dword [ebp - 0x144]
add ecx, 0xc2d20
mov dword [edx + 8], ecx
mov dword [0x43c438], 0x1b17
mov dword [edx + 0xc], 0x2030
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x415e13
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x43c444], 0
mov byte [0x43c448], 0
mov dword [0x43c440], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x43c440]
add eax, 1
mov dword [0x43c440], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x415e4e
jmp 0x415e7e
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x43c440], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x43c44c], 0
mov edx, dword [0x43c444]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x43c44c], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x43c444], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x43c448], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x43c448]
mov edx, dword [0x43c444]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x43c440]
add edx, 1
mov dword [0x43c440], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x415e8d
jmp 0x415e76
Function at 0x41618d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x43c43c], 0x262f
mov dword [0x43c438], 0x1063
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x418ba0]
mov dl, byte [eax + 0x418b71]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x4161b9
lea eax, [ebp - 0x24]
mov dword [0x43c43c], 0xe2
mov dword [ebp - 0x34], eax
call fcn.00416fa2
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.00416d94
mov dword [0x43c438], 0x14e9
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x4162c2
mov eax, dword [ebp - 0x38]
mov dword [0x43c438], 0x58d
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.00415c37
xor eax, eax
mov dword [0x43c43c], 0x158b
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x43c438], 0x177f
mov edx, dword [ebp - 0x2c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 4], ecx
add ecx, 0x1c59
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x4162b9
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x4162ca
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov ecx, dword [0x43c438]
add ecx, 0xfffff274
mov dword [0x43c438], ecx
mov dword [ebp - 0x10], eax
call fcn.004165be
mov ecx, eax
mov dword [0x43c43c], 0x184
mov eax, dword [eax + 0x3c]
mov dword [0x43c438], 0xffffc88c
add eax, 0x78
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov esi, dword [ecx + edx]
add ecx, dword [ecx + esi + 0x20]
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + esi + 0x24]
mov dword [0x43c438], 0xb
mov edx, dword [edi + esi + 0x18]
cmp edx, 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
jne 0x41638b
mov eax, dword [ebp - 0x2c]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x30]
add eax, 2
mov dword [ebp - 0x34], eax
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x24]
cmp ecx, edx
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ecx
jb 0x4163a9
jmp 0x41634f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x4c], eax
mov eax, 0xb
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
xor esi, esi
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + eax*4]
add edx, 0xfffff274
mov dword [0x43c438], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x54]
mov ecx, eax
mov edx, dword [ebp - 0x50]
add ecx, edx
mov esi, dword [ebp - 0x14]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], bh
mov byte [ebp - 0x5a], cl
je 0x416426
mov eax, dword [ebp - 0x58]
add eax, 1
mov cl, byte [ebp - 0x59]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x5a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x54], eax
jne 0x4163d5
mov al, byte [ebp - 0x5a]
test al, 1
jne 0x416432
jmp 0x41635a
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x14]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x2c], edi
jmp 0x41634f
Function at 0x416450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x43c440], 0
mov dword [0x43c444], 0
mov dword [0x43c450], 0
cmp eax, 0
sete bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x1d], bl
xor eax, eax
mov cl, byte [ebp - 0x1d]
test cl, 1
mov edx, eax
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jne 0x4165b6
jmp 0x4164b7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x43c440], edx
mov ecx, dword [0x43c438]
add ecx, 0xfffff3fd
mov dword [0x43c438], ecx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x43c444], edx
mov dword [0x43c438], 0x1051
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x43c448], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x43c448]
mov edx, dword [0x43c444]
mov byte [edi + edx], cl
mov dword [0x43c438], 0x60d
mov edx, dword [0x43c440]
movzx edx, byte [edi + edx]
mov ebx, dword [0x43c444]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x43c438], 0x1495
and ebx, 0xff
mov dword [0x43c450], ebx
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov dword [0x43c438], 0x97a
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x3c], ebx
je 0x4165b6
mov eax, dword [0x43c440]
mov ecx, dword [0x43c444]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
jmp 0x4164b7
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4169d8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x43c438], 0x1517
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.00415982
lea ecx, [0x416988]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], edx
mov edx, dword [0x43c43c]
mov dword [esp + 0x3c], 0x12d200
mov esi, dword [0x43c424]
mov dword [esp + 0x78], esi
mov esi, dword [0x43c428]
mov dword [esp + 0x60], esi
add edx, 0xfffffc43
mov dword [0x43c438], edx
mov edx, dword [0x43c42c]
mov dword [esp + 0x7c], edx
mov edx, dword [0x43c430]
mov dword [esp + 0x68], edx
mov edx, dword [0x43c434]
mov dword [esp + 0x84], edx
mov dword [0x43c43c], 0xffffe615
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x416a7e
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x416aa1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x416ab5
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x416a7e
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov dword [0x43c43c], 0x184
mov dword [0x43c438], 0xffffc88c
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x44], edx
call fcn.00416c60
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x416a74
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0041618d
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x416a74
Function at 0x416c60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [0x43c43c], 0x2149
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x43c438], 0x817
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x416ccf
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x416d8c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x416d1a
jmp 0x416ca0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x416cfe
jmp 0x416ca0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x416cbb
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jl 0x416ccf
jmp 0x416cbb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
sete dl
mov byte [ebp - 0x21], dl
mov al, byte [ebp - 0x21]
test al, 1
jne 0x416caa
jmp 0x416ca0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x416ca0
mov dword [0x43c438], 0x24e4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x416ca0
mov dword [0x43c438], 0x4cc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x416ca0
mov dword [0x43c438], 0x1d5c
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
jne 0x416ca0
mov eax, dword [ebp - 0x14]
add esp, 0x24
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x408933
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
call fcn.00408961
add edx, 0x14fd7fed
mov edx, ecx
xor dword [eax], edi
add eax, 1
dec edx
inc edx
cmp eax, esi
jne fcn.00408933
sub ecx, 0x1cc7f6b0
ret
Function at 0x408fe8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004093cc
mov byte [esp], al
cmp byte [esp], 0
jne 0x409172
test edi, edi
je 0x409172
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4090b2
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40908d
cmp edi, 0xffffffff
je 0x40904d
call sub.KERNEL32.DLL_GetTickCount_1
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40904d
mov byte [esp], 0
jmp 0x409172
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40908d
test ebx, ebx
jne 0x40907f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40907f
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409172
lea eax, [esp + 0xc]
call fcn.00408cc8
dec ebp
test ebp, ebp
jg 0x409032
cmp edi, 0xffffffff
je 0x4090b2
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4090b0
mov byte [esp], 0
jmp 0x409172
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408ff6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090b2
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 4], eax
mov eax, esi
call fcn.004091e0
mov edx, eax
mov ebx, dword [0x61b8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409116
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409114
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409116
xor edi, edi
cmp byte [esp], 0
je 0x40913c
mov ebx, dword [esi]
test bl, 1
jne 0x409152
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40911c
mov byte [esp + 1], 1
jmp 0x409152
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40913c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4090c9
cmp byte [esp], 0
je 0x409172
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409f58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61b05c], 0
je 0x409fbf
cmp word [0x61b348], 0xd7b2
jne 0x409f81
cmp dword [0x61b350], 0
jbe 0x409f81
mov eax, 0x61b344
call dword [0x61b360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409fec
call fcn.0040abb8
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x610032], 0
jne 0x409fdb
push 0
push 0x6109c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a17c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x610034], 0
je 0x40a1a7
mov edx, edi
mov eax, esi
call dword [0x610034]
mov ebx, eax
jmp 0x40a1b8
mov eax, 8
call fcn.00406750
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x61b05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a144
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread_1
mov esi, eax
test esi, esi
jne 0x40a1e8
mov eax, ebx
call fcn.0040676c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40cb34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40cc99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a2bc
cmp si, word [0x610a00]
jb 0x40cbcc
cmp si, word [0x610c00]
ja 0x40cbcc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40cbcc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x610a00]
jae 0x40cba6
mov edi, ebx
dec edi
jmp 0x40cbc7
cmp si, word [ebx*8 + 0x610a00]
jbe 0x40cbb6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40cbc7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x610a04]
call fcn.0040ca54
jmp 0x40cbcc
cmp edi, dword [ebp - 8]
jae 0x40cb90
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40cc7b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale_1
test eax, eax
je 0x40cc7b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b00c
push dword [ebp - 0x160]
push 0x40ccb4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b00c
push dword [ebp - 0x164]
push 0x40ccc4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b00c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b244
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cca0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a31c
ret