joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414805
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov ecx, dword [ebp + 8]
push esi
push edi
call fcn.00409563
mov edi, eax
test edi, edi
je 0x414a02
mov ecx, dword [ebp + 8]
push ebx
call fcn.00402eb2
push 6
mov dword [ebp + 8], eax
lea eax, [eax*8 + 5]
xor edx, edx
pop ecx
div ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.00402eb2
push 0x4c
mov ecx, eax
lea eax, [esi + 0x4b]
xor edx, edx
pop ebx
add esi, ecx
div ebx
mov ecx, dword [ebp + 0xc]
lea eax, [esi + eax*2 + 1]
push eax
call fcn.00402d7a
mov ebx, dword [ebp + 8]
xor esi, esi
cmp ebx, 2
mov word [edi + ebx*2], si
mov word [ebp - 0x10], si
jbe 0x41492a
push 3
mov eax, ebx
xor edx, edx
pop ecx
div ecx
mov dword [ebp + 8], eax
mov eax, dword [0x439a24]
cmp esi, 0x4c
jl 0x4148b5
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push eax
call fcn.00402e0f
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4148b0
mov ecx, dword [ebp + 0xc]
push 0x427b14
call fcn.00402e0f
mov eax, dword [0x439a24]
movzx ecx, word [edi]
movzx edx, word [edi + 2]
shl ecx, 8
or ecx, edx
sub ebx, 3
movzx edx, word [edi + 4]
shl ecx, 8
or ecx, edx
add edi, 6
mov edx, ecx
shr edx, 0x12
and edx, 0x3f
inc esi
mov dx, word [eax + edx*2]
mov word [ebp + esi*2 - 0xaa], dx
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
inc esi
mov dx, word [eax + edx*2]
mov word [ebp + esi*2 - 0xaa], dx
mov edx, ecx
shr edx, 6
and edx, 0x3f
and ecx, 0x3f
inc esi
mov dx, word [eax + edx*2]
mov word [ebp + esi*2 - 0xaa], dx
mov cx, word [eax + ecx*2]
mov word [ebp + esi*2 - 0xa8], cx
inc esi
dec dword [ebp + 8]
jne 0x414888
jmp 0x41492f
mov eax, dword [0x439a24]
test ebx, ebx
je 0x4149d2
cmp esi, 0x4c
jl 0x414964
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push eax
call fcn.00402e0f
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x41495f
mov ecx, dword [ebp + 0xc]
push 0x427b14
call fcn.00402e0f
mov eax, dword [0x439a24]
movzx ecx, word [edi]
movzx edx, word [edi + 2]
shl ecx, 8
or ecx, edx
mov edx, ecx
shr edx, 0xa
and edx, 0x3f
inc esi
mov dx, word [eax + edx*2]
mov word [ebp + esi*2 - 0xaa], dx
mov edx, ecx
shr edx, 4
and edx, 0x3f
inc esi
cmp ebx, 2
mov dx, word [eax + edx*2]
mov word [ebp + esi*2 - 0xaa], dx
jne 0x4149b0
and ecx, 0xf
mov ax, word [eax + ecx*8]
mov word [ebp + esi*2 - 0xa8], ax
jmp 0x4149c0
cmp dword [ebp + 0x14], 0
je 0x4149d2
mov word [ebp + esi*2 - 0xa8], 0x3d
inc esi
cmp dword [ebp + 0x14], 0
je 0x4149d2
mov word [ebp + esi*2 - 0xa8], 0x3d
inc esi
test esi, esi
pop ebx
je 0x414a02
mov ecx, dword [ebp + 0xc]
and word [ebp + esi*2 - 0xa8], 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00402e0f
cmp dword [ebp + 0x10], 0
je 0x414a02
mov ecx, dword [ebp + 0xc]
push 0x427b14
call fcn.00402e0f
pop edi
pop esi
leave
ret
Function at 0x417055
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42685c
call fcn.0041bdc0
sub esp, 0x2cc
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 1
call fcn.00402ccc
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00402ccc
mov ebx, dword [ebp + 0x1c]
mov byte [ebp - 4], 1
cmp ebx, edi
jne 0x417158
push 0x2e
push dword [ebp + 0x18]
call fcn.004048ed
pop ecx
cmp eax, edi
pop ecx
je 0x41710f
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.0041b4fb
pop ecx
lea eax, [ebp - 0x10]
pop ecx
push eax
push 0x20019
lea eax, [ebp - 0x2d8]
push edi
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x41710f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x50
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.Content_Type
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
lea ebx, [ebp - 0xd0]
je 0x417158
xor ebx, ebx
cmp dword [0x439ae8], edi
je 0x41713e
mov eax, 0x439ae8
mov esi, eax
push dword [eax]
lea eax, [ebp - 0x2d8]
push eax
call fcn.0041b880
pop ecx
test eax, eax
pop ecx
je 0x417151
add esi, 8
inc ebx
mov eax, esi
cmp dword [esi], edi
jne 0x417120
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x41714a
cmp word [ebx], di
jne 0x417158
mov ebx, str.application_octet_stream
jmp 0x417158
mov ebx, dword [ebx*8 + 0x439aec]
mov esi, dword [ebp + 8]
push 1
lea eax, [ebp - 0x24]
push 7
push eax
push dword [ebp + 0x18]
push esi
call fcn.00415003
mov edi, dword [ebp + 0xc]
add esp, 0x14
mov ecx, edi
push 0x433d0c
call fcn.00402f0a
push ebx
mov ecx, edi
call fcn.00402e0f
cmp word [esi + 0x30e], 0
je 0x4171cf
push str.__r_n_charset_
mov ecx, edi
call fcn.00402e0f
add esi, 0x68c
mov ecx, esi
call fcn.00409563
test eax, eax
je 0x4171b7
push esi
mov ecx, edi
call fcn.00402e48
jmp 0x4171c3
push str.ISO_8859_1
mov ecx, edi
call fcn.00402e0f
push 0x428b2c
mov ecx, edi
call fcn.00402e0f
push str.__r_n_name_
mov ecx, edi
call fcn.00402e0f
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00402e48
push 0x428a7c
mov ecx, edi
call fcn.00402e0f
cmp dword [ebp + 0x10], 0
je 0x417203
push ebx
push dword [ebp + 0x10]
call fcn.0041b4fb
pop ecx
pop ecx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402cbe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402cbe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x419a6d
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x41a949
Capabilities:
Parse credit card information

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
cmp dword [esp + 0xc], eax
push esi
mov cx, word [edx]
push edi
je 0x41a993
cmp cx, ax
je 0x41aabe
cmp cx, 9
je 0x41a98c
mov cx, word [edx]
cmp cx, 0xd
je 0x41a98c
cmp cx, 0xa
je 0x41a98c
cmp cx, 0x20
jb 0x41aabb
cmp cx, 0x7f
jae 0x41aabb
inc edx
inc edx
mov cx, word [edx]
jmp 0x41a95a
cmp cx, ax
je 0x41aabe
mov edi, dword [esp + 0xc]
mov esi, edx
cmp cx, 0xff
ja 0x41aabb
mov cx, word [esi]
cmp cx, 0xd
je 0x41aa93
cmp cx, 0xa
je 0x41aa93
cmp cx, 0x20
jne 0x41a9f0
mov dx, word [esi + 2]
cmp dx, ax
je 0x41a9e3
cmp dx, 0xd
je 0x41a9e3
cmp dx, 0xa
jne 0x41aa93
cmp word [edi + 0x30a], 2
jmp 0x41aa91
mov dx, word [edi + 0x30a]
cmp dx, ax
je 0x41aa1b
cmp cx, ax
je 0x41aabb
cmp dx, 2
jae 0x41aa93
cmp cx, 0x3d
je 0x41aabb
jmp 0x41aa93
cmp cx, 0x3d
je 0x41aabb
cmp cx, 0x3f
je 0x41aabb
cmp cx, 0x21
je 0x41aabb
cmp cx, 0x22
je 0x41aabb
cmp cx, 0x23
je 0x41aabb
cmp cx, 0x24
je 0x41aabb
cmp cx, 0x40
je 0x41aabb
cmp cx, 0x5b
je 0x41aabb
cmp cx, 0x5c
je 0x41aabb
cmp cx, 0x5d
je 0x41aabb
cmp cx, 0x5e
je 0x41aabb
cmp cx, 0x60
je 0x41aabb
cmp cx, 0x7b
je 0x41aabb
cmp cx, 0x7c
je 0x41aabb
cmp cx, 0x7d
je 0x41aabb
cmp cx, 0x7e
je 0x41aabb
cmp cx, 0x7f
je 0x41aabb
cmp cx, 0x20
jb 0x41aabb
cmp cx, 0x7f
jbe 0x41aaab
cmp word [edi + 0x306], ax
je 0x41aabb
cmp word [edi + 0x308], ax
je 0x41aabb
inc esi
inc esi
mov cx, word [esi]
cmp cx, ax
jne 0x41a9a2
jmp 0x41aabe
push 1
pop eax
pop edi
pop esi
ret
Function at 0x41aac1
Capabilities:
Parse credit card information

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
cmp dword [esp + 0xc], eax
mov cx, word [edx]
je 0x41ab37
test cx, cx
je 0x41ac5e
cmp cx, 0x5f
jne 0x41aae4
add eax, 3
jmp 0x41ab30
mov cx, word [edx]
cmp cx, 0x61
jb 0x41aaf3
cmp cx, 0x7a
jbe 0x41ab2f
cmp cx, 0x41
jb 0x41aaff
cmp cx, 0x5a
jbe 0x41ab2f
cmp cx, 0x30
jb 0x41ab0b
cmp cx, 0x39
jbe 0x41ab2f
cmp cx, 0x20
je 0x41ab2f
cmp cx, 0x21
je 0x41ab2f
cmp cx, 0x2a
je 0x41ab2f
cmp cx, 0x2b
je 0x41ab2f
cmp cx, 0x2d
je 0x41ab2f
cmp cx, 0x2f
jne 0x41aadf
inc eax
inc edx
inc edx
mov cx, word [edx]
jmp 0x41aad0
test cx, cx
je 0x41ac5e
push esi
push edi
mov edi, dword [esp + 0xc]
cmp cx, 0xd
je 0x41ac4e
mov cx, word [edx]
cmp cx, 0xa
jne 0x41ab60
inc eax
inc eax
jmp 0x41ac4e
cmp cx, 0x20
jne 0x41ab91
mov cx, word [edx + 2]
test cx, cx
je 0x41ab81
cmp cx, 0xd
je 0x41ab81
cmp cx, 0xa
je 0x41ab81
inc eax
jmp 0x41ac4e
cmp word [edi + 0x30a], 2
jne 0x41ac4b
jmp 0x41ab7b
mov si, word [edi + 0x30a]
test si, si
je 0x41abb5
test cx, cx
je 0x41ac4b
cmp si, 2
jae 0x41ab7b
cmp cx, 0x3d
jmp 0x41ac45
cmp cx, 0x3d
je 0x41ac4b
cmp cx, 0x3f
je 0x41ac4b
cmp cx, 0x21
je 0x41ac4b
cmp cx, 0x22
je 0x41ac4b
cmp cx, 0x23
je 0x41ac4b
cmp cx, 0x24
je 0x41ac4b
cmp cx, 0x40
je 0x41ac4b
cmp cx, 0x5b
je 0x41ac4b
cmp cx, 0x5c
je 0x41ac4b
cmp cx, 0x5d
je 0x41ac4b
cmp cx, 0x5e
je 0x41ac4b
cmp cx, 0x60
je 0x41ac4b
cmp cx, 0x7b
je 0x41ac4b
cmp cx, 0x7c
je 0x41ac4b
cmp cx, 0x7d
je 0x41ac4b
cmp cx, 0x7e
je 0x41ac4b
cmp cx, 0x7f
je 0x41ac4b
cmp cx, 0x20
jb 0x41ac4b
cmp cx, 0x7f
jbe 0x41ab7b
cmp word [edi + 0x306], 0
je 0x41ac4b
cmp word [edi + 0x308], 0
jne 0x41ab7b
add eax, 3
inc edx
inc edx
mov cx, word [edx]
test cx, cx
jne 0x41ab46
pop edi
pop esi
ret
Function at 0x41ac5f
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
call fcn.00409563
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.00402eb2
xor ebx, ebx
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x14], ebx
je 0x41ad2f
cmp eax, ebx
je 0x41aedf
mov edi, dword [ebp + 0x10]
mov ebx, eax
mov esi, str._02hX
mov eax, dword [ebp - 4]
add dword [ebp - 4], 2
mov ax, word [eax]
cmp ax, 0x20
jne 0x41acaf
push 0x5f
jmp 0x41ad1c
cmp ax, 0x5f
jne 0x41acd1
push 0x5f
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0041af29
add esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00402e0f
jmp 0x41ad23
cmp ax, 0x61
jb 0x41acdd
cmp ax, 0x7a
jbe 0x41ad1b
cmp ax, 0x41
jb 0x41ace9
cmp ax, 0x5a
jbe 0x41ad1b
cmp ax, 0x30
jb 0x41acf5
cmp ax, 0x39
jbe 0x41ad1b
cmp ax, 0x21
je 0x41ad1b
cmp ax, 0x2a
je 0x41ad1b
cmp ax, 0x2b
je 0x41ad1b
cmp ax, 0x2d
je 0x41ad1b
cmp ax, 0x2f
je 0x41ad1b
and eax, 0xff
push eax
jmp 0x41acb7
push eax
mov ecx, edi
call fcn.00402e39
dec ebx
jne 0x41ac9b
jmp 0x41aedf
cmp eax, ebx
je 0x41aedf
mov edi, dword [ebp + 0x10]
mov esi, str._02hX
mov ecx, dword [ebp - 4]
mov ax, word [ecx]
inc ecx
inc ecx
cmp ax, 0xd
mov dword [ebp - 4], ecx
je 0x41aec5
cmp ax, 0xa
jne 0x41ad64
push 0x427b14
jmp 0x41aebc
push 0x20
pop edx
cmp ax, dx
jne 0x41ada3
cmp dword [ebp + 0xc], 1
jbe 0x41ad84
mov ax, word [ecx]
cmp ax, 0xd
je 0x41ad84
cmp ax, 0xa
je 0x41ad84
push edx
jmp 0x41ad96
mov eax, dword [ebp + 8]
push edx
cmp word [eax + 0x30a], 2
jne 0x41ae97
mov ecx, edi
call fcn.00402e39
inc ebx
jmp 0x41aeb2
mov edx, dword [ebp + 8]
mov cx, word [edx + 0x30a]
test cx, cx
je 0x41ade9
test ax, ax
je 0x41adc6
cmp cx, 2
jae 0x41adc3
cmp ax, 0x3d
je 0x41adc6
push eax
jmp 0x41ad96
and eax, 0xff
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0041af29
add esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00402e0f
add ebx, 3
jmp 0x41ad9d
cmp ax, 0x3d
je 0x41ae91
cmp ax, 0x3f
je 0x41ae91
cmp ax, 0x21
je 0x41ae91
cmp ax, 0x22
je 0x41ae91
cmp ax, 0x23
je 0x41ae91
cmp ax, 0x24
je 0x41ae91
cmp ax, 0x40
je 0x41ae91
cmp ax, 0x5b
je 0x41ae91
cmp ax, 0x5c
je 0x41ae91
cmp ax, 0x5d
je 0x41ae91
cmp ax, 0x5e
je 0x41ae91
cmp ax, 0x60
je 0x41ae91
cmp ax, 0x7b
je 0x41ae91
cmp ax, 0x7c
je 0x41ae91
cmp ax, 0x7d
je 0x41ae91
cmp ax, 0x7e
je 0x41ae91
cmp ax, 0x7f
je 0x41ae91
cmp ax, 0x20
jb 0x41ae91
cmp ax, 9
je 0x41adc3
cmp ax, 0x7f
jb 0x41adc3
cmp word [edx + 0x306], 0
je 0x41ae91
cmp word [edx + 0x308], 0
jne 0x41adc3
and eax, 0xff
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0041af29
add esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00402e0f
add ebx, 3
cmp ebx, 0x47
jle 0x41aec5
push 0x435678
mov ecx, edi
call fcn.00402e0f
xor ebx, ebx
dec dword [ebp + 0xc]
jne 0x41ad3f
cmp ebx, 0x47
jle 0x41aedf
push 0x435678
mov ecx, edi
call fcn.00402e0f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41b540
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041f46d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41b563
test byte [esp + 8], 2
je 0x41b563
call fcn.0041f4e0
mov dword [eax], 0xd
call fcn.0041f4e9
mov dword [eax], 5
jmp 0x41b53c
xor eax, eax
ret

Function at 0x421b15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43a420
cmp edx, dword [eax]
je 0x421b37
add eax, 8
inc ecx
cmp eax, 0x43a4b0
jl 0x421b28
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43a420]
jne 0x421c65
mov eax, dword [0x43c320]
cmp eax, 1
je 0x421c3f
test eax, eax
jne 0x421b68
cmp dword [0x439f44], 1
je 0x421c3f
cmp edx, 0xfc
je 0x421c65
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421b9f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00423980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041caa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x421be2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041caa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x435b00
push edi
call fcn.0041d880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00423980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00423990
lea eax, [ebp - 0xa0]
push 0x435ae0
push eax
call fcn.00423990
push dword [esi + 0x43a424]
lea eax, [ebp - 0xa0]
push eax
call fcn.00423990
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00423b54
add esp, 0x2c
pop edi
jmp 0x421c65
lea eax, [ebp + 8]
lea esi, [esi + 0x43a424]
push 0
push eax
push dword [esi]
call fcn.0041caa0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402cdc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d19
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d39
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f58
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f30
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ce8
test esi, esi
jne 0x402f67
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404dd8
jmp 0x402f88
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dcc
mov dword [esp], eax
test esi, esi
je 0x402f88
cmp dword [ebx], 0
je 0x402f88
dec esi
jmp 0x402f6f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403638
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403d5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403df4
push reloc.shell32.dll_SHChangeNotifyRegister
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403dd4
xor eax, eax
push ebp
push 0x403dcd
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 0x403e10
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 0x403dd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47d024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47d024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ae0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f04c], 0
je 0x404b41
cmp word [0x47f220], 0xd7b2
jne 0x404b09
cmp dword [0x47f228], 0
jbe 0x404b09
mov eax, 0x47f21c
call dword [0x47f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47d094
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 0x404b68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47d034], 0
jne 0x404b5d
push 0
push 0x47d08c
push 0x47d094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c9c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ad0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c64
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406cf4
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 0x406d5a
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.00404f58
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004037ac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406d44
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d61
lea eax, [ebp - 0x10]
call fcn.00404ce8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004051a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409979
test al, 0x10
jne 0x40997d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409984
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004051a8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4099a6
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c668
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 0x40c6a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dd8
jmp 0x40c6aa
mov eax, ebx
mov edx, esi
call fcn.00404d3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6b4
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 0x40c6d5
mov al, byte [esp]
jmp 0x40c6d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d6d4
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 0x40d7aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d80
lea eax, [ebp - 8]
call fcn.004051f8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004051a8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d794
mov eax, ebx
call fcn.00402ad0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d78d
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.004051a8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d777
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d7bc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d777
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 0x40d794
mov eax, dword [ebp - 0x10]
call fcn.00402b00
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7b1
lea eax, [ebp - 8]
call fcn.00404ce8
ret

Function at 0x40dd3c
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 0x40dda0
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.00404f58
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040958c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dda7
lea eax, [ebp - 0xc]
call fcn.00404ce8
ret

Function at 0x41f9c4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f81c
dec esi
jne 0x41f9e6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x420b28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47f88c
cmp dword [edi], 0
jne 0x420ba4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47f888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47d52c
mov ecx, 2
call fcn.00402d8c
mov edx, 0x420b00
lea eax, [esi + 5]
call fcn.00420b20
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420b20
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x420b79
mov dword [0x47f888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421dc0
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 0x421dc6
ret

Function at 0x424238
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 0x424289
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x424270
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424260
jmp 0x424289
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 0x424271
pop ebx
mov esp, ebp
pop ebp
ret